From 642ccf4c1affe69124f23258d9301d7e3075f6d9 Mon Sep 17 00:00:00 2001 From: MarcioJRGodoi Date: Wed, 24 Jun 2026 13:51:05 -0300 Subject: [PATCH] feat: melhoria componentes de data --- dist/eli-vue.es.js | 8640 +++++++++-------- dist/eli-vue.umd.js | 76 +- .../EliEntrada/EliEntradaDataHora.vue.d.ts | 231 - .../EliEntradaDataHora/Calendario.vue.d.ts | 144 + .../EliEntradaDataHora/calendarioHelpers.d.ts | 13 + .../EliEntradaDataHora/index.vue.d.ts | 700 ++ .../EliEntradaDataHora/useDataHora.d.ts | 408 + .../EliEntrada/EliEntradaSelecao.vue.d.ts | 4 +- .../EliEntradaSelecaoMultipla.vue.d.ts | 4 +- dist/types/componentes/EliEntrada/index.d.ts | 2 +- package.json | 2 +- pnpm-lock.yaml | 8 +- .../EliEntrada/EliEntradaDataHora.vue | 223 - .../EliEntradaDataHora/Calendario.css | 228 + .../EliEntradaDataHora/Calendario.vue | 231 + .../EliEntradaDataHora/EliEntradaDataHora.css | 123 + .../EliEntradaDataHora/calendarioHelpers.ts | 73 + .../EliEntrada/EliEntradaDataHora/index.vue | 133 + .../EliEntradaDataHora/useDataHora.ts | 248 + src/componentes/EliEntrada/index.ts | 2 +- .../EliEntrada/registryEliEntradas.ts | 2 +- 21 files changed, 6888 insertions(+), 4607 deletions(-) delete mode 100644 dist/types/componentes/EliEntrada/EliEntradaDataHora.vue.d.ts create mode 100644 dist/types/componentes/EliEntrada/EliEntradaDataHora/Calendario.vue.d.ts create mode 100644 dist/types/componentes/EliEntrada/EliEntradaDataHora/calendarioHelpers.d.ts create mode 100644 dist/types/componentes/EliEntrada/EliEntradaDataHora/index.vue.d.ts create mode 100644 dist/types/componentes/EliEntrada/EliEntradaDataHora/useDataHora.d.ts delete mode 100644 src/componentes/EliEntrada/EliEntradaDataHora.vue create mode 100644 src/componentes/EliEntrada/EliEntradaDataHora/Calendario.css create mode 100644 src/componentes/EliEntrada/EliEntradaDataHora/Calendario.vue create mode 100644 src/componentes/EliEntrada/EliEntradaDataHora/EliEntradaDataHora.css create mode 100644 src/componentes/EliEntrada/EliEntradaDataHora/calendarioHelpers.ts create mode 100644 src/componentes/EliEntrada/EliEntradaDataHora/index.vue create mode 100644 src/componentes/EliEntrada/EliEntradaDataHora/useDataHora.ts diff --git a/dist/eli-vue.es.js b/dist/eli-vue.es.js index 6804ee1..bd3e632 100644 --- a/dist/eli-vue.es.js +++ b/dist/eli-vue.es.js @@ -1,18 +1,18 @@ -(function(){"use strict";try{if(typeof document<"u"){var e=document.createElement("style");e.appendChild(document.createTextNode('@font-face{font-family:Google Sans;font-style:normal;font-weight:100 900;font-display:swap;src:url(https://paiol.idz.one/estaticos/GoogleSans/GoogleSans-VariableFont_GRAD,opsz,wght.ttf) format("truetype")}@font-face{font-family:Google Sans;font-style:italic;font-weight:100 900;font-display:swap;src:url(https://paiol.idz.one/estaticos/GoogleSans/GoogleSans-Italic-VariableFont_GRAD,opsz,wght.ttf) format("truetype")}:root{--eli-font-family: "Google Sans", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", "Liberation Sans", sans-serif;--v-font-family: var(--eli-font-family)}html,body{font-family:var(--eli-font-family)}:where([class^=eli-],[class*=" eli-"]){font-family:var(--eli-font-family);--v-font-family: var(--eli-font-family)}button,input,select,textarea{font-family:inherit}:root{--cor-eli-primaria-bg: #EEF3D0;--cor-eli-primaria-zebra: #F6F9E8;--cor-eli-primaria-suave: #BFC99C;--cor-eli-primaria-header: #ADCC44;--cor-eli-primaria-clara: #D4E290;--cor-eli-primaria-media: #ADCC44;--cor-eli-primaria-acao: #8AAF00;--cor-eli-primaria: #688C00;--cor-eli-primaria-escura: #4A6500;--cor-eli-primaria-texto: #2E3F00;--cor-eli-alerta-bg: #FAF3DF;--cor-eli-alerta-clara: #F5DC8A;--cor-eli-alerta: #DDB847;--cor-eli-alerta-forte: #8C6A00;--cor-eli-fundo: #F2F3EE;--cor-eli-borda: #D5D8CC;--cor-eli-borda-forte: #B5BAA8;--cor-eli-neutro: #5E6553;--cor-eli-neutro-escuro: #3E4436;--cor-eli-superficie: #FFFFFF;--cor-eli-sucesso: #2E7D32;--cor-eli-sucesso-bg: #E8F5E9;--cor-eli-erro: #C62828;--cor-eli-erro-bg: #FFEBEE;--cor-eli-info: #1565C0;--cor-eli-info-bg: #E3F2FD}.eli-badge .v-badge__badge,.eli-badge .v-badge__content{border-radius:var(--eli-badge-radius)!important}.eli-cartao{border-radius:12px}.eli-cartao__titulo{display:flex;align-items:center;justify-content:space-between;gap:12px}.eli-cartao__titulo-texto{min-width:0}.eli-cartao__conteudo{padding-top:8px}.eli-cartao__acoes{padding-top:0}.eli-cartao--cancelado{opacity:.85}.leaflet-pane,.leaflet-tile,.leaflet-marker-icon,.leaflet-marker-shadow,.leaflet-tile-container,.leaflet-pane>svg,.leaflet-pane>canvas,.leaflet-zoom-box,.leaflet-image-layer,.leaflet-layer{position:absolute;left:0;top:0}.leaflet-container{overflow:hidden}.leaflet-tile,.leaflet-marker-icon,.leaflet-marker-shadow{-webkit-user-select:none;-moz-user-select:none;user-select:none;-webkit-user-drag:none}.leaflet-tile::selection{background:transparent}.leaflet-safari .leaflet-tile{image-rendering:-webkit-optimize-contrast}.leaflet-safari .leaflet-tile-container{width:1600px;height:1600px;-webkit-transform-origin:0 0}.leaflet-marker-icon,.leaflet-marker-shadow{display:block}.leaflet-container .leaflet-overlay-pane svg{max-width:none!important;max-height:none!important}.leaflet-container .leaflet-marker-pane img,.leaflet-container .leaflet-shadow-pane img,.leaflet-container .leaflet-tile-pane img,.leaflet-container img.leaflet-image-layer,.leaflet-container .leaflet-tile{max-width:none!important;max-height:none!important;width:auto;padding:0}.leaflet-container img.leaflet-tile{mix-blend-mode:plus-lighter}.leaflet-container.leaflet-touch-zoom{-ms-touch-action:pan-x pan-y;touch-action:pan-x pan-y}.leaflet-container.leaflet-touch-drag{-ms-touch-action:pinch-zoom;touch-action:none;touch-action:pinch-zoom}.leaflet-container.leaflet-touch-drag.leaflet-touch-zoom{-ms-touch-action:none;touch-action:none}.leaflet-container{-webkit-tap-highlight-color:transparent}.leaflet-container a{-webkit-tap-highlight-color:rgba(51,181,229,.4)}.leaflet-tile{filter:inherit;visibility:hidden}.leaflet-tile-loaded{visibility:inherit}.leaflet-zoom-box{width:0;height:0;-moz-box-sizing:border-box;box-sizing:border-box;z-index:800}.leaflet-overlay-pane svg{-moz-user-select:none}.leaflet-pane{z-index:400}.leaflet-tile-pane{z-index:200}.leaflet-overlay-pane{z-index:400}.leaflet-shadow-pane{z-index:500}.leaflet-marker-pane{z-index:600}.leaflet-tooltip-pane{z-index:650}.leaflet-popup-pane{z-index:700}.leaflet-map-pane canvas{z-index:100}.leaflet-map-pane svg{z-index:200}.leaflet-vml-shape{width:1px;height:1px}.lvml{behavior:url(#default#VML);display:inline-block;position:absolute}.leaflet-control{position:relative;z-index:800;pointer-events:visiblePainted;pointer-events:auto}.leaflet-top,.leaflet-bottom{position:absolute;z-index:1000;pointer-events:none}.leaflet-top{top:0}.leaflet-right{right:0}.leaflet-bottom{bottom:0}.leaflet-left{left:0}.leaflet-control{float:left;clear:both}.leaflet-right .leaflet-control{float:right}.leaflet-top .leaflet-control{margin-top:10px}.leaflet-bottom .leaflet-control{margin-bottom:10px}.leaflet-left .leaflet-control{margin-left:10px}.leaflet-right .leaflet-control{margin-right:10px}.leaflet-fade-anim .leaflet-popup{opacity:0;-webkit-transition:opacity .2s linear;-moz-transition:opacity .2s linear;transition:opacity .2s linear}.leaflet-fade-anim .leaflet-map-pane .leaflet-popup{opacity:1}.leaflet-zoom-animated{-webkit-transform-origin:0 0;-ms-transform-origin:0 0;transform-origin:0 0}svg.leaflet-zoom-animated{will-change:transform}.leaflet-zoom-anim .leaflet-zoom-animated{-webkit-transition:-webkit-transform .25s cubic-bezier(0,0,.25,1);-moz-transition:-moz-transform .25s cubic-bezier(0,0,.25,1);transition:transform .25s cubic-bezier(0,0,.25,1)}.leaflet-zoom-anim .leaflet-tile,.leaflet-pan-anim .leaflet-tile{-webkit-transition:none;-moz-transition:none;transition:none}.leaflet-zoom-anim .leaflet-zoom-hide{visibility:hidden}.leaflet-interactive{cursor:pointer}.leaflet-grab{cursor:-webkit-grab;cursor:-moz-grab;cursor:grab}.leaflet-crosshair,.leaflet-crosshair .leaflet-interactive{cursor:crosshair}.leaflet-popup-pane,.leaflet-control{cursor:auto}.leaflet-dragging .leaflet-grab,.leaflet-dragging .leaflet-grab .leaflet-interactive,.leaflet-dragging .leaflet-marker-draggable{cursor:move;cursor:-webkit-grabbing;cursor:-moz-grabbing;cursor:grabbing}.leaflet-marker-icon,.leaflet-marker-shadow,.leaflet-image-layer,.leaflet-pane>svg path,.leaflet-tile-container{pointer-events:none}.leaflet-marker-icon.leaflet-interactive,.leaflet-image-layer.leaflet-interactive,.leaflet-pane>svg path.leaflet-interactive,svg.leaflet-image-layer.leaflet-interactive path{pointer-events:visiblePainted;pointer-events:auto}.leaflet-container{background:#ddd;outline-offset:1px}.leaflet-container a{color:#0078a8}.leaflet-zoom-box{border:2px dotted #38f;background:#ffffff80}.leaflet-container{font-family:Helvetica Neue,Arial,Helvetica,sans-serif;font-size:12px;font-size:.75rem;line-height:1.5}.leaflet-bar{box-shadow:0 1px 5px #000000a6;border-radius:4px}.leaflet-bar a{background-color:#fff;border-bottom:1px solid #ccc;width:26px;height:26px;line-height:26px;display:block;text-align:center;text-decoration:none;color:#000}.leaflet-bar a,.leaflet-control-layers-toggle{background-position:50% 50%;background-repeat:no-repeat;display:block}.leaflet-bar a:hover,.leaflet-bar a:focus{background-color:#f4f4f4}.leaflet-bar a:first-child{border-top-left-radius:4px;border-top-right-radius:4px}.leaflet-bar a:last-child{border-bottom-left-radius:4px;border-bottom-right-radius:4px;border-bottom:none}.leaflet-bar a.leaflet-disabled{cursor:default;background-color:#f4f4f4;color:#bbb}.leaflet-touch .leaflet-bar a{width:30px;height:30px;line-height:30px}.leaflet-touch .leaflet-bar a:first-child{border-top-left-radius:2px;border-top-right-radius:2px}.leaflet-touch .leaflet-bar a:last-child{border-bottom-left-radius:2px;border-bottom-right-radius:2px}.leaflet-control-zoom-in,.leaflet-control-zoom-out{font:700 18px Lucida Console,Monaco,monospace;text-indent:1px}.leaflet-touch .leaflet-control-zoom-in,.leaflet-touch .leaflet-control-zoom-out{font-size:22px}.leaflet-control-layers{box-shadow:0 1px 5px #0006;background:#fff;border-radius:5px}.leaflet-control-layers-toggle{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABoAAAAaCAQAAAADQ4RFAAACf0lEQVR4AY1UM3gkARTePdvdoTxXKc+qTl3aU5U6b2Kbkz3Gtq3Zw6ziLGNPzrYx7946Tr6/ee/XeCQ4D3ykPtL5tHno4n0d/h3+xfuWHGLX81cn7r0iTNzjr7LrlxCqPtkbTQEHeqOrTy4Yyt3VCi/IOB0v7rVC7q45Q3Gr5K6jt+3Gl5nCoDD4MtO+j96Wu8atmhGqcNGHObuf8OM/x3AMx38+4Z2sPqzCxRFK2aF2e5Jol56XTLyggAMTL56XOMoS1W4pOyjUcGGQdZxU6qRh7B9Zp+PfpOFlqt0zyDZckPi1ttmIp03jX8gyJ8a/PG2yutpS/Vol7peZIbZcKBAEEheEIAgFbDkz5H6Zrkm2hVWGiXKiF4Ycw0RWKdtC16Q7qe3X4iOMxruonzegJzWaXFrU9utOSsLUmrc0YjeWYjCW4PDMADElpJSSQ0vQvA1Tm6/JlKnqFs1EGyZiFCqnRZTEJJJiKRYzVYzJck2Rm6P4iH+cmSY0YzimYa8l0EtTODFWhcMIMVqdsI2uiTvKmTisIDHJ3od5GILVhBCarCfVRmo4uTjkhrhzkiBV7SsaqS+TzrzM1qpGGUFt28pIySQHR6h7F6KSwGWm97ay+Z+ZqMcEjEWebE7wxCSQwpkhJqoZA5ivCdZDjJepuJ9IQjGGUmuXJdBFUygxVqVsxFsLMbDe8ZbDYVCGKxs+W080max1hFCarCfV+C1KATwcnvE9gRRuMP2prdbWGowm1KB1y+zwMMENkM755cJ2yPDtqhTI6ED1M/82yIDtC/4j4BijjeObflpO9I9MwXTCsSX8jWAFeHr05WoLTJ5G8IQVS/7vwR6ohirYM7f6HzYpogfS3R2OAAAAAElFTkSuQmCC);width:36px;height:36px}.leaflet-retina .leaflet-control-layers-toggle{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADQAAAA0CAQAAABvcdNgAAAEsklEQVR4AWL4TydIhpZK1kpWOlg0w3ZXP6D2soBtG42jeI6ZmQTHzAxiTbSJsYLjO9HhP+WOmcuhciVnmHVQcJnp7DFvScowZorad/+V/fVzMdMT2g9Cv9guXGv/7pYOrXh2U+RRR3dSd9JRx6bIFc/ekqHI29JC6pJ5ZEh1yWkhkbcFeSjxgx3L2m1cb1C7bceyxA+CNjT/Ifff+/kDk2u/w/33/IeCMOSaWZ4glosqT3DNnNZQ7Cs58/3Ce5HL78iZH/vKVIaYlqzfdLu8Vi7dnvUbEza5Idt36tquZFldl6N5Z/POLof0XLK61mZCmJSWjVF9tEjUluu74IUXvgttuVIHE7YxSkaYhJZam7yiM9Pv82JYfl9nptxZaxMJE4YSPty+vF0+Y2up9d3wwijfjZbabqm/3bZ9ecKHsiGmRflnn1MW4pjHf9oLufyn2z3y1D6n8g8TZhxyzipLNPnAUpsOiuWimg52psrTZYnOWYNDTMuWBWa0tJb4rgq1UvmutpaYEbZlwU3CLJm/ayYjHW5/h7xWLn9Hh1vepDkyf7dE7MtT5LR4e7yYpHrkhOUpEfssBLq2pPhAqoSWKUkk7EDqkmK6RrCEzqDjhNDWNE+XSMvkJRDWlZTmCW0l0PHQGRZY5t1L83kT0Y3l2SItk5JAWHl2dCOBm+fPu3fo5/3v61RMCO9Jx2EEYYhb0rmNQMX/vm7gqOEJLcXTGw3CAuRNeyaPWwjR8PRqKQ1PDA/dpv+on9Shox52WFnx0KY8onHayrJzm87i5h9xGw/tfkev0jGsQizqezUKjk12hBMKJ4kbCqGPVNXudyyrShovGw5CgxsRICxF6aRmSjlBnHRzg7Gx8fKqEubI2rahQYdR1YgDIRQO7JvQyD52hoIQx0mxa0ODtW2Iozn1le2iIRdzwWewedyZzewidueOGqlsn1MvcnQpuVwLGG3/IR1hIKxCjelIDZ8ldqWz25jWAsnldEnK0Zxro19TGVb2ffIZEsIO89EIEDvKMPrzmBOQcKQ+rroye6NgRRxqR4U8EAkz0CL6uSGOm6KQCdWjvjRiSP1BPalCRS5iQYiEIvxuBMJEWgzSoHADcVMuN7IuqqTeyUPq22qFimFtxDyBBJEwNyt6TM88blFHao/6tWWhuuOM4SAK4EI4QmFHA+SEyWlp4EQoJ13cYGzMu7yszEIBOm2rVmHUNqwAIQabISNMRstmdhNWcFLsSm+0tjJH1MdRxO5Nx0WDMhCtgD6OKgZeljJqJKc9po8juskR9XN0Y1lZ3mWjLR9JCO1jRDMd0fpYC2VnvjBSEFg7wBENc0R9HFlb0xvF1+TBEpF68d+DHR6IOWVv2BECtxo46hOFUBd/APU57WIoEwJhIi2CdpyZX0m93BZicktMj1AS9dClteUFAUNUIEygRZCtik5zSxI9MubTBH1GOiHsiLJ3OCoSZkILa9PxiN0EbvhsAo8tdAf9Seepd36lGWHmtNANTv5Jd0z4QYyeo/UEJqxKRpg5LZx6btLPsOaEmdMyxYdlc8LMaJnikDlhclqmPiQnTEpLUIZEwkRagjYkEibQErwhkTAKCLQEbUgkzJQWc/0PstHHcfEdQ+UAAAAASUVORK5CYII=);background-size:26px 26px}.leaflet-touch .leaflet-control-layers-toggle{width:44px;height:44px}.leaflet-control-layers .leaflet-control-layers-list,.leaflet-control-layers-expanded .leaflet-control-layers-toggle{display:none}.leaflet-control-layers-expanded .leaflet-control-layers-list{display:block;position:relative}.leaflet-control-layers-expanded{padding:6px 10px 6px 6px;color:#333;background:#fff}.leaflet-control-layers-scrollbar{overflow-y:scroll;overflow-x:hidden;padding-right:5px}.leaflet-control-layers-selector{margin-top:2px;position:relative;top:1px}.leaflet-control-layers label{display:block;font-size:13px;font-size:1.08333em}.leaflet-control-layers-separator{height:0;border-top:1px solid #ddd;margin:5px -10px 5px -6px}.leaflet-default-icon-path{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABkAAAApCAYAAADAk4LOAAAFgUlEQVR4Aa1XA5BjWRTN2oW17d3YaZtr2962HUzbDNpjszW24mRt28p47v7zq/bXZtrp/lWnXr337j3nPCe85NcypgSFdugCpW5YoDAMRaIMqRi6aKq5E3YqDQO3qAwjVWrD8Ncq/RBpykd8oZUb/kaJutow8r1aP9II0WmLKLIsJyv1w/kqw9Ch2MYdB++12Onxee/QMwvf4/Dk/Lfp/i4nxTXtOoQ4pW5Aj7wpici1A9erdAN2OH64x8OSP9j3Ft3b7aWkTg/Fm91siTra0f9on5sQr9INejH6CUUUpavjFNq1B+Oadhxmnfa8RfEmN8VNAsQhPqF55xHkMzz3jSmChWU6f7/XZKNH+9+hBLOHYozuKQPxyMPUKkrX/K0uWnfFaJGS1QPRtZsOPtr3NsW0uyh6NNCOkU3Yz+bXbT3I8G3xE5EXLXtCXbbqwCO9zPQYPRTZ5vIDXD7U+w7rFDEoUUf7ibHIR4y6bLVPXrz8JVZEql13trxwue/uDivd3fkWRbS6/IA2bID4uk0UpF1N8qLlbBlXs4Ee7HLTfV1j54APvODnSfOWBqtKVvjgLKzF5YdEk5ewRkGlK0i33Eofffc7HT56jD7/6U+qH3Cx7SBLNntH5YIPvODnyfIXZYRVDPqgHtLs5ABHD3YzLuespb7t79FY34DjMwrVrcTuwlT55YMPvOBnRrJ4VXTdNnYug5ucHLBjEpt30701A3Ts+HEa73u6dT3FNWwflY86eMHPk+Yu+i6pzUpRrW7SNDg5JHR4KapmM5Wv2E8Tfcb1HoqqHMHU+uWDD7zg54mz5/2BSnizi9T1Dg4QQXLToGNCkb6tb1NU+QAlGr1++eADrzhn/u8Q2YZhQVlZ5+CAOtqfbhmaUCS1ezNFVm2imDbPmPng5wmz+gwh+oHDce0eUtQ6OGDIyR0uUhUsoO3vfDmmgOezH0mZN59x7MBi++WDL1g/eEiU3avlidO671bkLfwbw5XV2P8Pzo0ydy4t2/0eu33xYSOMOD8hTf4CrBtGMSoXfPLchX+J0ruSePw3LZeK0juPJbYzrhkH0io7B3k164hiGvawhOKMLkrQLyVpZg8rHFW7E2uHOL888IBPlNZ1FPzstSJM694fWr6RwpvcJK60+0HCILTBzZLFNdtAzJaohze60T8qBzyh5ZuOg5e7uwQppofEmf2++DYvmySqGBuKaicF1blQjhuHdvCIMvp8whTTfZzI7RldpwtSzL+F1+wkdZ2TBOW2gIF88PBTzD/gpeREAMEbxnJcaJHNHrpzji0gQCS6hdkEeYt9DF/2qPcEC8RM28Hwmr3sdNyht00byAut2k3gufWNtgtOEOFGUwcXWNDbdNbpgBGxEvKkOQsxivJx33iow0Vw5S6SVTrpVq11ysA2Rp7gTfPfktc6zhtXBBC+adRLshf6sG2RfHPZ5EAc4sVZ83yCN00Fk/4kggu40ZTvIEm5g24qtU4KjBrx/BTTH8ifVASAG7gKrnWxJDcU7x8X6Ecczhm3o6YicvsLXWfh3Ch1W0k8x0nXF+0fFxgt4phz8QvypiwCCFKMqXCnqXExjq10beH+UUA7+nG6mdG/Pu0f3LgFcGrl2s0kNNjpmoJ9o4B29CMO8dMT4Q5ox8uitF6fqsrJOr8qnwNbRzv6hSnG5wP+64C7h9lp30hKNtKdWjtdkbuPA19nJ7Tz3zR/ibgARbhb4AlhavcBebmTHcFl2fvYEnW0ox9xMxKBS8btJ+KiEbq9zA4RthQXDhPa0T9TEe69gWupwc6uBUphquXgf+/FrIjweHQS4/pduMe5ERUMHUd9xv8ZR98CxkS4F2n3EUrUZ10EYNw7BWm9x1GiPssi3GgiGRDKWRYZfXlON+dfNbM+GgIwYdwAAAAASUVORK5CYII=)}.leaflet-container .leaflet-control-attribution{background:#fff;background:#fffc;margin:0}.leaflet-control-attribution,.leaflet-control-scale-line{padding:0 5px;color:#333;line-height:1.4}.leaflet-control-attribution a{text-decoration:none}.leaflet-control-attribution a:hover,.leaflet-control-attribution a:focus{text-decoration:underline}.leaflet-attribution-flag{display:inline!important;vertical-align:baseline!important;width:1em;height:.6669em}.leaflet-left .leaflet-control-scale{margin-left:5px}.leaflet-bottom .leaflet-control-scale{margin-bottom:5px}.leaflet-control-scale-line{border:2px solid #777;border-top:none;line-height:1.1;padding:2px 5px 1px;white-space:nowrap;-moz-box-sizing:border-box;box-sizing:border-box;background:#fffc;text-shadow:1px 1px #fff}.leaflet-control-scale-line:not(:first-child){border-top:2px solid #777;border-bottom:none;margin-top:-2px}.leaflet-control-scale-line:not(:first-child):not(:last-child){border-bottom:2px solid #777}.leaflet-touch .leaflet-control-attribution,.leaflet-touch .leaflet-control-layers,.leaflet-touch .leaflet-bar{box-shadow:none}.leaflet-touch .leaflet-control-layers,.leaflet-touch .leaflet-bar{border:2px solid rgba(0,0,0,.2);background-clip:padding-box}.leaflet-popup{position:absolute;text-align:center;margin-bottom:20px}.leaflet-popup-content-wrapper{padding:1px;text-align:left;border-radius:12px}.leaflet-popup-content{margin:13px 24px 13px 20px;line-height:1.3;font-size:13px;font-size:1.08333em;min-height:1px}.leaflet-popup-content p{margin:1.3em 0}.leaflet-popup-tip-container{width:40px;height:20px;position:absolute;left:50%;margin-top:-1px;margin-left:-20px;overflow:hidden;pointer-events:none}.leaflet-popup-tip{width:17px;height:17px;padding:1px;margin:-10px auto 0;pointer-events:auto;-webkit-transform:rotate(45deg);-moz-transform:rotate(45deg);-ms-transform:rotate(45deg);transform:rotate(45deg)}.leaflet-popup-content-wrapper,.leaflet-popup-tip{background:#fff;color:#333;box-shadow:0 3px 14px #0006}.leaflet-container a.leaflet-popup-close-button{position:absolute;top:0;right:0;border:none;text-align:center;width:24px;height:24px;font:16px/24px Tahoma,Verdana,sans-serif;color:#757575;text-decoration:none;background:transparent}.leaflet-container a.leaflet-popup-close-button:hover,.leaflet-container a.leaflet-popup-close-button:focus{color:#585858}.leaflet-popup-scrolled{overflow:auto}.leaflet-oldie .leaflet-popup-content-wrapper{-ms-zoom:1}.leaflet-oldie .leaflet-popup-tip{width:24px;margin:0 auto;-ms-filter:"progid:DXImageTransform.Microsoft.Matrix(M11=0.70710678, M12=0.70710678, M21=-0.70710678, M22=0.70710678)";filter:progid:DXImageTransform.Microsoft.Matrix(M11=.70710678,M12=.70710678,M21=-.70710678,M22=.70710678)}.leaflet-oldie .leaflet-control-zoom,.leaflet-oldie .leaflet-control-layers,.leaflet-oldie .leaflet-popup-content-wrapper,.leaflet-oldie .leaflet-popup-tip{border:1px solid #999}.leaflet-div-icon{background:#fff;border:1px solid #666}.leaflet-tooltip{position:absolute;padding:6px;background-color:#fff;border:1px solid #fff;border-radius:3px;color:#222;white-space:nowrap;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;pointer-events:none;box-shadow:0 1px 3px #0006}.leaflet-tooltip.leaflet-interactive{cursor:pointer;pointer-events:auto}.leaflet-tooltip-top:before,.leaflet-tooltip-bottom:before,.leaflet-tooltip-left:before,.leaflet-tooltip-right:before{position:absolute;pointer-events:none;border:6px solid transparent;background:transparent;content:""}.leaflet-tooltip-bottom{margin-top:6px}.leaflet-tooltip-top{margin-top:-6px}.leaflet-tooltip-bottom:before,.leaflet-tooltip-top:before{left:50%;margin-left:-6px}.leaflet-tooltip-top:before{bottom:0;margin-bottom:-12px;border-top-color:#fff}.leaflet-tooltip-bottom:before{top:0;margin-top:-12px;margin-left:-6px;border-bottom-color:#fff}.leaflet-tooltip-left{margin-left:-6px}.leaflet-tooltip-right{margin-left:6px}.leaflet-tooltip-left:before,.leaflet-tooltip-right:before{top:50%;margin-top:-6px}.leaflet-tooltip-left:before{right:0;margin-right:-12px;border-left-color:#fff}.leaflet-tooltip-right:before{left:0;margin-left:-12px;border-right-color:#fff}@media print{.leaflet-control{-webkit-print-color-adjust:exact;print-color-adjust:exact}}.eli-coordenadas{width:100%;display:flex;flex-direction:column;gap:8px}.eli-coordenadas__mapa-container{width:100%;border-radius:8px;overflow:hidden;border:1px solid rgba(var(--v-border-color),var(--v-border-opacity));position:relative}.eli-coordenadas__mapa-container .leaflet-container{width:100%;height:100%;z-index:0}.eli-coordenadas__campos{display:flex;gap:12px;align-items:center}.eli-coordenadas__campo{flex:1}.eli-data-hora{width:100%}.eli-entrada__prefixo,.eli-entrada__sufixo{opacity:.75;font-size:.9em;white-space:nowrap}.eli-entrada__prefixo{margin-right:6px}.eli-entrada__sufixo{margin-left:6px}.eli-tabela__acoes-cabecalho{display:inline-flex;gap:8px;flex-wrap:wrap}.eli-tabela__acoes-cabecalho-botao{display:inline-flex;align-items:center;gap:6px;height:var(--eli-tabela-cabecalho-controle-altura);padding:0 14px;border-radius:var(--eli-tabela-cabecalho-controle-radius);border:none;background:var(--cor-eli-primaria-bg);color:var(--cor-eli-primaria-escura);font-size:.875rem;font-weight:500;line-height:1;cursor:pointer;transition:background-color .2s ease,color .2s ease}.eli-tabela__acoes-cabecalho-botao:hover,.eli-tabela__acoes-cabecalho-botao:focus-visible{background:var(--cor-eli-primaria-clara)}.eli-tabela__acoes-cabecalho-botao:focus-visible{outline:2px solid var(--cor-eli-primaria-clara);outline-offset:2px}.eli-tabela__acoes-cabecalho-icone{display:inline-block}.eli-tabela__acoes-cabecalho-rotulo{line-height:1}.eli-tabela__acoes-toggle{display:inline-flex;align-items:center;justify-content:center;width:32px;height:32px;border-radius:9999px;border:none;background:transparent;color:#0f172ab8;cursor:pointer;transition:background-color .2s ease,color .2s ease}.eli-tabela__acoes-toggle-icone{display:block}.eli-tabela__acoes-toggle:hover,.eli-tabela__acoes-toggle:focus-visible{background-color:#0f172a14;color:#0f172af2}.eli-tabela__acoes-toggle:focus-visible{outline:2px solid var(--cor-eli-primaria-clara);outline-offset:2px}.eli-tabela__acoes-toggle:disabled{cursor:default;color:#94a3b8cc;background:transparent}.eli-tabela__acoes-menu{min-width:180px;padding:6px 0;margin:0;list-style:none;background:var(--cor-eli-superficie);border:1px solid rgba(15,23,42,.08);border-radius:10px;box-shadow:0 12px 30px #0f172a2e;z-index:1000}.eli-tabela__acoes-item{margin:0}.eli-tabela__acoes-item-botao{display:flex;align-items:center;gap:8px;width:100%;padding:8px 12px;border:none;background:transparent;font-size:.9rem;cursor:pointer;transition:background-color .2s ease}.eli-tabela__acoes-item-botao:hover,.eli-tabela__acoes-item-botao:focus-visible{background-color:#0f172a0f}.eli-tabela__acoes-item-botao:focus-visible{outline:2px solid currentColor;outline-offset:-2px}.eli-tabela__acoes-item-icone{flex-shrink:0}.eli-tabela__acoes-item-texto{flex:1;text-align:left}.eli-tabela__th--expander,.eli-tabela__td--expander{width:42px;padding:6px 8px;text-align:center;vertical-align:middle}.eli-tabela__expander-botao{display:inline-flex;align-items:center;justify-content:center;width:28px;height:28px;border-radius:9999px;border:none;background:transparent;color:#0f172ab8;cursor:pointer;transition:background-color .2s ease,color .2s ease}.eli-tabela__expander-botao:hover,.eli-tabela__expander-botao:focus-visible{background-color:#0f172a14;color:#0f172af2}.eli-tabela__expander-botao:focus-visible{outline:2px solid var(--cor-eli-primaria-clara);outline-offset:2px}.eli-tabela__expander-botao--ativo{background-color:#0f172a0f;color:#0f172af2}.eli-tabela__td--detalhes{padding:12px}.eli-tabela__tr--detalhes .eli-tabela__td{border-bottom:1px solid rgba(0,0,0,.08)}.eli-tabela__detalhes{display:grid;gap:10px;padding-left:4px}.eli-tabela__detalhe{display:grid;grid-template-columns:180px 1fr;gap:10px;align-items:start}.eli-tabela__detalhe-rotulo{font-weight:600;color:#0f172ad9}.eli-tabela__detalhe-valor{min-width:0}@media(max-width:720px){.eli-tabela__detalhe{grid-template-columns:1fr}}.eli-tabela__th--selecao,.eli-tabela__td--selecao{width:48px;min-width:48px;max-width:48px;text-align:center;padding:0 8px;vertical-align:middle}.eli-tabela__checkbox{-moz-appearance:none;appearance:none;-webkit-appearance:none;width:15px;height:15px;cursor:pointer;border:2px solid rgba(0,0,0,.54);border-radius:2px;margin:0;vertical-align:middle;position:relative;transition:all .2s ease-in-out;background-color:transparent;outline:none}.eli-tabela__checkbox:hover{border-color:#000000de}.eli-tabela__checkbox:checked,.eli-tabela__checkbox:indeterminate{background-color:var(--cor-eli-primaria);border-color:var(--cor-eli-primaria)}.eli-tabela__checkbox:checked:after{content:"";position:absolute;top:0;left:4px;width:4px;height:9px;border:solid white;border-width:0 2px 2px 0;transform:rotate(45deg)}.eli-tabela__checkbox:indeterminate:after{content:"";position:absolute;top:5px;left:2px;width:8px;height:2px;background-color:#fff;border-radius:1px}.eli-tabela__checkbox:focus-visible{box-shadow:0 0 0 2px var(--cor-eli-primaria-clara)}.eli-tabela{width:100%}.eli-tabela__table-wrapper{width:100%;overflow-x:auto}.eli-tabela__td--estados{padding:0}.eli-tabela__estados-inline{border:none;border-radius:0}.eli-tabela__table{width:100%;border-collapse:separate;border-spacing:0;border:1px solid rgba(0,0,0,.12);border-radius:12px;overflow:visible}.eli-tabela__table thead tr:first-child th:first-child{border-top-left-radius:11px}.eli-tabela__table thead tr:first-child th:last-child{border-top-right-radius:11px}.eli-tabela__table tbody tr:last-child td:first-child{border-bottom-left-radius:11px}.eli-tabela__table tbody tr:last-child td:last-child{border-bottom-right-radius:11px}.eli-tabela__tbody{overflow:visible}.eli-tabela__tbody .eli-tabela__tr .eli-tabela__td{background:var(--cor-eli-superficie, #ffffff)}.eli-tabela__tbody .eli-tabela__tr--zebra .eli-tabela__td{background:var(--cor-eli-primaria-zebra, #F6F9E8)}.eli-tabela__th,.eli-tabela__td{padding:10px 12px;border-bottom:1px solid var(--cor-eli-borda);vertical-align:top}.eli-tabela__th{text-align:left;font-weight:600;font-size:.82rem;letter-spacing:.02em;text-transform:uppercase;color:var(--cor-eli-neutro-escuro, #3E4436);background:var(--cor-eli-primaria-suave, #BFC99C);border-bottom:2px solid var(--cor-eli-primaria-bg, #EEF3D0)}.eli-tabela__th--ordenavel{padding:0}.eli-tabela__th--ordenavel .eli-tabela__th-botao{padding:10px 12px}.eli-tabela__th-botao{display:inline-flex;align-items:center;justify-content:flex-start;gap:8px;width:100%;background:transparent;border:none;font:inherit;color:inherit;cursor:pointer;text-align:left;transition:color .2s ease}.eli-tabela__th-botao:hover,.eli-tabela__th-botao:focus-visible{color:var(--cor-eli-primaria-texto, #2E3F00)}.eli-tabela__th-botao:focus-visible{outline:2px solid var(--cor-eli-primaria, #688C00);outline-offset:2px}.eli-tabela__th-botao--ativo{color:var(--cor-eli-primaria-texto, #2E3F00)}.eli-tabela__th-texto{flex:1;min-width:0;white-space:nowrap}.eli-tabela__th-icone{flex-shrink:0}.eli-tabela__th-icone--oculto{opacity:0}.eli-tabela__tr:last-child .eli-tabela__td{border-bottom:none}.eli-tabela__td--clicavel{cursor:pointer}.eli-tabela__td--clicavel:hover{background:#00000008}.eli-tabela--erro{display:flex;align-items:flex-start;gap:10px;border:1px solid rgba(220,53,69,.35);border-radius:12px;padding:12px}.eli-tabela--carregando{display:flex;align-items:center;gap:10px;border:1px dashed rgba(0,0,0,.25);border-radius:12px;padding:12px;opacity:.8}.eli-tabela__erro-titulo{font-weight:700;margin-bottom:4px}.eli-tabela__erro-mensagem{opacity:.9}.eli-tabela--vazio{display:flex;align-items:center;gap:10px;border:1px dashed rgba(0,0,0,.25);border-radius:12px;padding:12px;opacity:.8}.eli-tabela__estado-icone{flex-shrink:0;color:#0f172a73}.eli-tabela__estado-icone--erro{color:var(--cor-eli-erro)}.eli-tabela__estado-icone--spin{animation:eli-tabela-spin 1s linear infinite}@keyframes eli-tabela-spin{0%{transform:rotate(0)}to{transform:rotate(360deg)}}.eli-tabela__th--acoes{text-align:right;white-space:nowrap}.eli-tabela__td--acoes{white-space:nowrap;overflow:visible}.eli-tabela__acoes-container{display:flex;justify-content:flex-end;position:relative;z-index:1}.eli-tabela__acoes-container--aberto{z-index:200}.eli-tabela__rodape{display:flex;align-items:center;justify-content:flex-end;gap:12px;margin-top:12px;flex-wrap:wrap}.eli-tabela__paginacao{display:flex;align-items:center;justify-content:flex-end;gap:12px;margin-top:0;flex-wrap:wrap}.eli-tabela__acoes-inferiores{display:inline-flex;gap:8px;align-items:center;flex-wrap:wrap}.eli-tabela__cabecalho{width:100%;box-sizing:border-box;display:flex;align-items:center;justify-content:flex-end;gap:12px;margin-bottom:12px;flex-wrap:wrap;--eli-tabela-cabecalho-controle-altura: 34px;--eli-tabela-cabecalho-controle-radius: 8px}.eli-tabela__celula-tags{display:flex;flex-wrap:wrap;gap:6px;align-items:center}.eli-tabela__celula-tag{cursor:default}.eli-tabela__celula-tag-icone{margin-right:6px}.eli-tabela__texto-truncado{display:inline-block;max-width:260px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;vertical-align:top}.eli-tabela__celula-link{all:unset;display:inline;color:#2563eb;cursor:pointer;text-decoration:underline;text-decoration-color:var(--cor-eli-primaria-clara);text-underline-offset:2px}.eli-tabela__celula-link:hover{color:#1d4ed8;text-decoration-color:#1d4ed8bf}.eli-tabela__celula-link:focus-visible{outline:2px solid var(--cor-eli-primaria-clara);outline-offset:2px;border-radius:4px}.eli-tabela__busca{display:flex;align-items:center;justify-content:flex-end;gap:8px;flex-wrap:wrap}.eli-tabela__busca-input-wrapper{display:inline-flex;align-items:stretch;border-radius:var(--eli-tabela-cabecalho-controle-radius, 8px);border:1px solid rgba(15,23,42,.15);overflow:hidden;background:var(--cor-eli-superficie);height:var(--eli-tabela-cabecalho-controle-altura, 34px)}.eli-tabela__busca-input{height:100%;padding:0 12px;border:none;outline:none;font-size:.875rem;color:#0f172ad9}.eli-tabela__busca-input::-webkit-search-cancel-button,.eli-tabela__busca-input::-webkit-search-decoration{-webkit-appearance:none}.eli-tabela__busca-input::placeholder{color:var(--cor-eli-neutro)}.eli-tabela__busca-botao{display:inline-flex;align-items:center;justify-content:center;border:none;background:var(--cor-eli-primaria-bg);color:var(--cor-eli-primaria-escura);height:100%;padding:0 12px;cursor:pointer;transition:background-color .2s ease,color .2s ease}.eli-tabela__busca-botao-icone{display:block}.eli-tabela__busca-botao:hover,.eli-tabela__busca-botao:focus-visible{background:var(--cor-eli-primaria-clara);color:var(--cor-eli-primaria-escura)}.eli-tabela__busca-botao:focus-visible{outline:2px solid var(--cor-eli-primaria-clara);outline-offset:2px}.eli-tabela__busca-grupo{display:inline-flex;align-items:center;gap:8px;flex-wrap:wrap}.eli-tabela__filtro-icone-container{position:relative;display:inline-flex;align-items:center}.eli-tabela__filtro-badge{position:absolute;top:-7px;right:-9px;min-width:16px;height:16px;padding:0 4px;border-radius:9999px;background:var(--cor-eli-erro, #dc3545);color:#fff;font-size:.65rem;font-weight:700;line-height:16px;text-align:center;pointer-events:none;box-shadow:0 1px 3px #0003}.eli-tabela-modal-colunas__item{display:flex;align-items:center;gap:8px;padding:9px 10px;border-radius:8px;border:1px solid var(--cor-eli-borda);background:var(--cor-eli-superficie);cursor:grab;-webkit-user-select:none;user-select:none;transition:box-shadow .15s ease,opacity .15s ease,border-color .15s ease}.eli-tabela-modal-colunas__item+.eli-tabela-modal-colunas__item{margin-top:6px}.eli-tabela-modal-colunas__item:hover{border-color:var(--cor-eli-borda-forte);box-shadow:0 2px 8px #0f172a14}.eli-tabela-modal-colunas__item:active{cursor:grabbing}.eli-tabela-modal-colunas__item--invisivel{opacity:.72}.eli-tabela-modal-colunas__item--arrastando{opacity:.15;border-style:dashed;border-color:var(--cor-eli-primaria-media)}.eli-tabela-modal-colunas__item-handle{color:var(--cor-eli-borda-forte);flex-shrink:0;transition:color .15s ease}.eli-tabela-modal-colunas__item:hover .eli-tabela-modal-colunas__item-handle{color:var(--cor-eli-neutro)}.eli-tabela-modal-colunas__item-texto{flex:1;min-width:0;font-size:.875rem;color:var(--cor-eli-neutro-escuro);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.eli-tabela-modal-colunas__item-badge-icone{flex-shrink:0}.eli-tabela-modal-colunas__item-badge-icone--visivel{color:var(--cor-eli-primaria-acao)}.eli-tabela-modal-colunas__item-badge-icone--invisivel{color:var(--cor-eli-borda-forte)}.eli-tabela-modal-colunas__vazio{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;padding:24px 12px;text-align:center;font-size:.8rem;color:var(--cor-eli-neutro);line-height:1.5}.eli-tabela-modal-colunas__vazio-icone{color:var(--cor-eli-borda-forte)}.eli-tabela-modal-colunas__vazio-icone--ok{color:var(--cor-eli-primaria-acao)}.list-move,.list-enter-active,.list-leave-active{transition:all .25s cubic-bezier(.4,0,.2,1)}.list-enter-from,.list-leave-to{opacity:0;transform:scale(.95)}.list-leave-active{position:absolute;width:calc(100% - 16px)}.eli-tabela-modal-colunas__footer{display:flex;justify-content:flex-end;gap:8px;padding:12px 16px;border-top:1px solid var(--cor-eli-borda);background:var(--cor-eli-fundo)}.eli-tabela-modal-colunas__botao{display:inline-flex;align-items:center;gap:6px;height:34px;padding:0 16px;border-radius:8px;border:1px solid var(--cor-eli-borda);background:var(--cor-eli-superficie);cursor:pointer;font-size:.875rem;font-weight:500;transition:background .2s ease,border-color .2s ease,color .2s ease}.eli-tabela-modal-colunas__botao--sec{color:var(--cor-eli-neutro-escuro)}.eli-tabela-modal-colunas__botao--sec:hover,.eli-tabela-modal-colunas__botao--sec:focus-visible{background:var(--cor-eli-fundo);border-color:var(--cor-eli-borda-forte)}.eli-tabela-modal-colunas__botao--sec:focus-visible{outline:2px solid var(--cor-eli-primaria-clara);outline-offset:2px}.eli-tabela-modal-colunas__botao--prim{border:none;background:var(--cor-eli-primaria);color:#fff}.eli-tabela-modal-colunas__botao--prim:hover,.eli-tabela-modal-colunas__botao--prim:focus-visible{background:var(--cor-eli-primaria-escura)}.eli-tabela-modal-colunas__botao--prim:focus-visible{outline:2px solid var(--cor-eli-primaria-clara);outline-offset:2px}@media(max-width:720px){.eli-tabela-modal-colunas__conteudo{grid-template-columns:1fr}.eli-tabela-modal-colunas__coluna+.eli-tabela-modal-colunas__coluna{border-left:none;border-top:1px solid var(--cor-eli-borda)}}.eli-tabela-modal-colunas__overlay{position:fixed;top:0;right:0;bottom:0;left:0;background:#0f172a73;-webkit-backdrop-filter:blur(2px);backdrop-filter:blur(2px);z-index:4000;display:flex;align-items:center;justify-content:center;padding:16px}.eli-tabela-modal-colunas__modal{width:min(820px,100%);background:var(--cor-eli-superficie);border-radius:16px;border:1px solid var(--cor-eli-borda);box-shadow:0 24px 64px #0f172a38;overflow:hidden;display:flex;flex-direction:column}.eli-tabela-modal-colunas__header{display:flex;align-items:center;justify-content:space-between;padding:14px 16px;border-bottom:1px solid var(--cor-eli-borda);background:var(--cor-eli-primaria-header, #ADCC44)}.eli-tabela-modal-colunas__header-info{display:flex;align-items:center;gap:8px}.eli-tabela-modal-colunas__header-icone{color:var(--cor-eli-primaria-escura);flex-shrink:0}.eli-tabela-modal-colunas__titulo{font-size:.95rem;font-weight:600;color:var(--cor-eli-primaria-texto);margin:0}.eli-tabela-modal-colunas__fechar{display:inline-flex;align-items:center;justify-content:center;width:30px;height:30px;border-radius:8px;border:none;background:transparent;cursor:pointer;color:var(--cor-eli-primaria-escura);transition:background .2s ease}.eli-tabela-modal-colunas__fechar:hover,.eli-tabela-modal-colunas__fechar:focus-visible{background:#0f172a1a}.eli-tabela-modal-colunas__fechar:focus-visible{outline:2px solid var(--cor-eli-primaria);outline-offset:2px}.eli-tabela-modal-colunas__instrucao{display:flex;align-items:center;gap:6px;padding:8px 16px;background:var(--cor-eli-fundo);border-bottom:1px solid var(--cor-eli-borda);font-size:.78rem;color:var(--cor-eli-neutro);line-height:1.4}.eli-tabela-modal-colunas__instrucao-icone{flex-shrink:0;color:var(--cor-eli-borda-forte)}.eli-tabela-modal-colunas__conteudo{display:grid;grid-template-columns:1fr 1fr;gap:0;flex:1}.eli-tabela-modal-colunas__coluna{display:flex;flex-direction:column;padding:12px}.eli-tabela-modal-colunas__coluna+.eli-tabela-modal-colunas__coluna{border-left:1px solid var(--cor-eli-borda)}.eli-tabela-modal-colunas__coluna-cabecalho{display:flex;align-items:center;gap:6px;font-size:.75rem;font-weight:700;letter-spacing:.06em;text-transform:uppercase;padding:6px 10px;border-radius:8px;margin-bottom:8px}.eli-tabela-modal-colunas__coluna-cabecalho--visiveis{color:var(--cor-eli-primaria-escura);background:var(--cor-eli-primaria-bg)}.eli-tabela-modal-colunas__coluna-cabecalho--invisiveis{color:var(--cor-eli-neutro-escuro);background:var(--cor-eli-fundo)}.eli-tabela-modal-colunas__coluna-contador{margin-left:auto;font-size:.72rem;font-weight:700;padding:1px 7px;border-radius:9999px;background:#0f172a14;color:inherit}.eli-tabela-modal-colunas__lista{flex:1;min-height:220px;border:1.5px dashed var(--cor-eli-borda);border-radius:10px;padding:8px;position:relative;overflow:hidden;transition:border-color .2s ease,background .2s ease}.eli-tabela-modal-colunas__lista--visiveis{background:#688c0005}.eli-tabela-modal-colunas__lista--invisiveis{background:var(--cor-eli-fundo)}.eli-tabela-modal-filtro__formula-container{display:flex;flex-direction:row;align-items:center;gap:8px;margin-left:auto}.eli-tabela-modal-filtro__formula-label{font-size:.82rem;font-weight:500;color:#0f172a8c;white-space:nowrap;flex-shrink:0}.eli-tabela-modal-filtro__formula-ajuda{position:relative;display:inline-flex;align-items:center;color:#0f172a59;cursor:help;transition:color .15s}.eli-tabela-modal-filtro__formula-ajuda:hover,.eli-tabela-modal-filtro__formula-ajuda:focus-visible{color:var(--cor-eli-primaria);outline:none}.eli-tabela-modal-filtro__formula-ajuda:hover .eli-tabela-modal-filtro__formula-tooltip,.eli-tabela-modal-filtro__formula-ajuda:focus-visible .eli-tabela-modal-filtro__formula-tooltip{opacity:1;pointer-events:auto;transform:translateY(0)}.eli-tabela-modal-filtro__formula-tooltip{position:absolute;bottom:calc(100% + 10px);right:0;width:280px;background:#0f172a;color:#e2e8f0;border-radius:10px;padding:14px 16px;font-size:.8rem;line-height:1.55;z-index:100;opacity:0;pointer-events:none;transform:translateY(4px);transition:opacity .18s ease,transform .18s ease;box-shadow:0 8px 30px #00000059}.eli-tabela-modal-filtro__formula-tooltip:after{content:"";position:absolute;top:100%;right:6px;border:6px solid transparent;border-top-color:#0f172a}.eli-tabela-modal-filtro__formula-tooltip strong{font-size:.82rem;color:var(--cor-eli-fundo);display:block;margin-bottom:6px}.eli-tabela-modal-filtro__formula-tooltip p{margin:6px 0 4px;color:#94a3b8}.eli-tabela-modal-filtro__formula-tooltip ul{margin:4px 0 8px 14px;padding:0}.eli-tabela-modal-filtro__formula-tooltip li{margin-bottom:3px;color:#cbd5e1}.eli-tabela-modal-filtro__formula-tooltip code{font-family:SFMono-Regular,Consolas,Liberation Mono,Menlo,monospace;color:#7dd3fc;font-size:.78rem;background:#ffffff12;border-radius:4px;padding:1px 4px}.eli-tabela-modal-filtro__formula-input{width:220px;height:36px;border-radius:10px;border:1px solid rgba(15,23,42,.12);padding:0 10px;font-family:SFMono-Regular,Consolas,Liberation Mono,Menlo,monospace;font-size:.85rem;background:var(--cor-eli-fundo);transition:border-color .15s,background .15s;box-sizing:border-box}.eli-tabela-modal-filtro__formula-input:focus{outline:none;border-color:var(--cor-eli-primaria);background:#fff}.eli-tabela-modal-filtro__formula-tooltip-nota{margin-top:8px;opacity:.75}.eli-tabela-modal-filtro__footer{display:flex;align-items:center;gap:8px;padding:14px 20px;border-top:1px solid rgba(15,23,42,.08)}.eli-tabela-modal-filtro__footer-spacer{flex:1}.eli-tabela-modal-filtro__botao{display:inline-flex;align-items:center;gap:5px;height:36px;padding:0 16px;border-radius:10px;border:1px solid rgba(15,23,42,.12);background:#fff;cursor:pointer;font-size:.875rem;font-weight:500;transition:background .15s,color .15s,border-color .15s}.eli-tabela-modal-filtro__botao:disabled{opacity:.45;cursor:not-allowed}.eli-tabela-modal-filtro__botao--sec:hover:not(:disabled),.eli-tabela-modal-filtro__botao--sec:focus-visible{background:#0f172a0d}.eli-tabela-modal-filtro__botao--prim{border:none;background:var(--cor-eli-primaria);color:#fff}.eli-tabela-modal-filtro__botao--prim:hover:not(:disabled),.eli-tabela-modal-filtro__botao--prim:focus-visible{background:var(--cor-eli-primaria-escura)}.eli-tabela-modal-filtro__botao--perigo{color:#dc2626d9;border-color:#dc26262e;background:#fff}.eli-tabela-modal-filtro__botao--perigo:hover:not(:disabled),.eli-tabela-modal-filtro__botao--perigo:focus-visible{background:#ef44440f;border-color:#dc26264d;color:#dc2626}@media(max-width:600px){.eli-tabela-modal-filtro__lista{grid-template-columns:1fr}.eli-tabela-modal-filtro__rodape-filtros{flex-direction:column;align-items:stretch}.eli-tabela-modal-filtro__acoes{flex-wrap:wrap}}.eli-tabela-modal-filtro-enter-active,.eli-tabela-modal-filtro-leave-active{transition:opacity .2s ease}.eli-tabela-modal-filtro-enter-active .eli-tabela-modal-filtro__modal,.eli-tabela-modal-filtro-leave-active .eli-tabela-modal-filtro__modal{transition:transform .2s ease,opacity .2s ease}.eli-tabela-modal-filtro-enter-from,.eli-tabela-modal-filtro-leave-to{opacity:0}.eli-tabela-modal-filtro-enter-from .eli-tabela-modal-filtro__modal,.eli-tabela-modal-filtro-leave-to .eli-tabela-modal-filtro__modal{transform:scale(.96);opacity:0}.eli-tabela-modal-filtro__overlay{position:fixed;top:0;right:0;bottom:0;left:0;background:#0f172a59;z-index:4000;display:flex;align-items:center;justify-content:center;padding:16px}.eli-tabela-modal-filtro__modal{width:min(980px,100%);background:#fff;border-radius:14px;border:1px solid rgba(15,23,42,.1);box-shadow:0 18px 60px #0f172a40;overflow:hidden}.eli-tabela-modal-filtro__header{display:flex;align-items:center;justify-content:space-between;padding:14px 20px;border-bottom:1px solid rgba(15,23,42,.08)}.eli-tabela-modal-filtro__header-titulo{display:flex;align-items:center;gap:10px}.eli-tabela-modal-filtro__titulo{font-size:1rem;font-weight:600;margin:0;color:#0f172ae6}.eli-tabela-modal-filtro__header-icone{color:var(--cor-eli-primaria);flex-shrink:0}.eli-tabela-modal-filtro__contador{font-size:.75rem;font-weight:500;color:var(--cor-eli-primaria);background:var(--cor-eli-primaria-bg);padding:2px 8px;border-radius:10px;letter-spacing:.01em}.eli-tabela-modal-filtro__fechar{display:inline-flex;align-items:center;justify-content:center;width:34px;height:34px;border-radius:10px;border:none;background:transparent;cursor:pointer;color:#0f172a8c;transition:background .15s,color .15s}.eli-tabela-modal-filtro__fechar:hover,.eli-tabela-modal-filtro__fechar:focus-visible{background:#0f172a0f;color:#0f172ae6}.eli-tabela-modal-filtro__conteudo{padding:20px}.eli-tabela-modal-filtro__vazio{opacity:.65;font-size:.85rem;padding:12px 0 4px}.eli-tabela-modal-filtro__estado-vazio{display:flex;flex-direction:column;align-items:center;gap:10px;padding:28px 16px;color:#0f172a59;border:1px dashed rgba(15,23,42,.12);border-radius:10px;background:#0f172a04}.eli-tabela-modal-filtro__estado-vazio span{font-size:.85rem;font-weight:500}.eli-tabela-modal-filtro__lista{display:grid;grid-template-columns:repeat(2,1fr);gap:8px}.eli-tabela-modal-filtro__linha{display:flex;flex-direction:column;gap:4px;padding:10px 12px;border:1px solid rgba(15,23,42,.08);border-radius:10px;background:#0f172a04;transition:border-color .15s}.eli-tabela-modal-filtro__linha:hover{border-color:var(--cor-eli-primaria-clara)}.eli-tabela-modal-filtro__linha-header{display:flex;align-items:center;gap:8px}.eli-tabela-modal-filtro__rotulo-filtro{font-size:.82rem;font-weight:500;color:#0f172aa6;flex:1;min-width:0}.eli-tabela-modal-filtro__id-badge{display:inline-flex;align-items:center;justify-content:center;width:32px;height:24px;border-radius:6px;background:var(--cor-eli-primaria-bg);color:var(--cor-eli-primaria);font-family:SFMono-Regular,Consolas,Liberation Mono,Menlo,monospace;font-size:.72rem;font-weight:600;letter-spacing:.01em;cursor:default;-webkit-user-select:none;user-select:none;flex-shrink:0}.eli-tabela-modal-filtro__entrada{min-width:0}.eli-tabela-modal-filtro__remover{display:inline-flex;align-items:center;justify-content:center;width:26px;height:26px;border-radius:8px;border:none;background:transparent;cursor:pointer;color:#0f172a59;transition:background .15s,color .15s;margin-left:auto;flex-shrink:0}.eli-tabela-modal-filtro__remover:hover,.eli-tabela-modal-filtro__remover:focus-visible{background:#ef444414;color:#dc2626e6;border-color:#ef444433}.eli-tabela-modal-filtro__rodape-filtros{margin-top:14px;padding-top:14px;border-top:1px solid rgba(15,23,42,.07);display:flex;gap:12px;align-items:flex-end}.eli-tabela-modal-filtro__acoes{display:flex;gap:8px;align-items:center;flex-shrink:0}.eli-tabela-modal-filtro__select{height:36px;border-radius:10px;border:1px solid rgba(15,23,42,.12);padding:0 10px;background:#fff;font-size:.875rem;color:#0f172ad9;transition:border-color .15s}.eli-tabela-modal-filtro__select:focus{outline:none;border-color:var(--cor-eli-primaria)}.eli-tabela__paginacao{display:flex;align-items:center;justify-content:flex-end;gap:12px;margin-top:12px;flex-wrap:wrap}.eli-tabela__pagina-botao{display:inline-flex;align-items:center;justify-content:center;gap:6px;padding:6px 14px;border-radius:9999px;border:1px solid rgba(15,23,42,.12);background:var(--cor-eli-superficie);font-size:.875rem;font-weight:500;color:#0f172ad1;cursor:pointer;transition:background-color .2s ease,border-color .2s ease,color .2s ease}.eli-tabela__pagina-botao:hover,.eli-tabela__pagina-botao:focus-visible{background-color:var(--cor-eli-primaria-bg);border-color:var(--cor-eli-primaria-clara);color:var(--cor-eli-primaria-escura)}.eli-tabela__pagina-botao:focus-visible{outline:2px solid var(--cor-eli-primaria-clara);outline-offset:2px}.eli-tabela__pagina-botao:disabled{cursor:default;opacity:.5;background:#94a3b814;border-color:#94a3b82e;color:#475569bf}.eli-tabela__pagina-botao--ativo{background:var(--cor-eli-primaria-bg);border-color:var(--cor-eli-primaria);color:var(--cor-eli-primaria-escura)}.eli-tabela__pagina-ellipsis{display:inline-flex;align-items:center;justify-content:center;width:32px;color:var(--cor-eli-neutro);font-size:.9rem}.eli-tabela__acao-inferior{display:inline-flex;align-items:center;gap:6px;height:34px;padding:0 14px;border-radius:8px;border:1px solid var(--cor-eli-primaria);background:var(--cor-eli-superficie);color:var(--cor-eli-primaria);font-size:.875rem;font-weight:500;line-height:1;cursor:pointer;transition:background-color .2s ease,color .2s ease}.eli-tabela__acao-inferior:hover,.eli-tabela__acao-inferior:focus-visible{background-color:var(--cor-eli-primaria-bg)}.eli-tabela__acao-inferior:focus-visible{outline:2px solid var(--cor-eli-primaria);outline-offset:2px}.eli-fb-painel{position:fixed;bottom:68px;right:24px;z-index:99999;width:360px;background:#fff;border-radius:14px;box-shadow:0 12px 40px #00000026,0 2px 8px #00000014;overflow:hidden;animation:eliFbSlideUp .25s ease;font-family:Inter,Segoe UI,system-ui,sans-serif}.eli-fb-painel-header{background:linear-gradient(135deg,#c62828,#e53935);color:#fff;padding:14px 18px;display:flex;align-items:center;justify-content:space-between}.eli-fb-painel-header h3{margin:0;font-size:14px;font-weight:700;letter-spacing:.02em}.eli-fb-painel-fechar{background:#ffffff26;border:none;color:#fff;width:28px;height:28px;border-radius:50%;cursor:pointer;display:flex;align-items:center;justify-content:center;font-size:14px;transition:background .15s}.eli-fb-painel-fechar:hover{background:#ffffff4d}.eli-fb-painel-corpo{padding:16px 18px}.eli-fb-el-info{background:#f5f5f5;border-radius:8px;padding:10px 12px;margin-bottom:14px;font-size:11px;color:#616161;line-height:1.6}.eli-fb-el-info code{background:#e0e0e0;padding:1px 5px;border-radius:3px;font-size:10.5px;font-family:SFMono-Regular,Consolas,monospace;color:#333}.eli-fb-el-info strong{color:#424242}.eli-fb-textarea{width:100%;min-height:80px;max-height:160px;border:1.5px solid #E0E0E0;border-radius:8px;padding:10px 12px;font-size:13px;font-family:Inter,Segoe UI,system-ui,sans-serif;resize:vertical;outline:none;transition:border-color .15s;color:#333;box-sizing:border-box}.eli-fb-textarea:focus{border-color:#c62828;box-shadow:0 0 0 3px #c6282814}.eli-fb-textarea::placeholder{color:#bdbdbd}.eli-fb-painel-acoes{display:flex;gap:8px;margin-top:12px;justify-content:flex-end}.eli-fb-btn-salvar{background:linear-gradient(135deg,#c62828,#e53935);color:#fff;border:none;border-radius:8px;padding:8px 18px;font-size:13px;font-weight:600;cursor:pointer;transition:all .15s}.eli-fb-btn-salvar:hover{transform:translateY(-1px);box-shadow:0 3px 10px #c628284d}.eli-fb-btn-salvar:disabled{opacity:.5;cursor:not-allowed;transform:none;box-shadow:none}.eli-fb-btn-cancelar{background:#f5f5f5;color:#616161;border:1px solid #E0E0E0;border-radius:8px;padding:8px 14px;font-size:13px;font-weight:500;cursor:pointer;transition:background .15s}.eli-fb-btn-cancelar:hover{background:#eee}.eli-feedback-fab{position:fixed;bottom:24px;right:24px;z-index:99999;display:flex;flex-direction:column;align-items:flex-end;gap:8px;font-family:Inter,Segoe UI,system-ui,sans-serif}.eli-fb-botao-principal{width:34px;height:34px;border-radius:50%;border:none;background:linear-gradient(135deg,#c62828,#e53935);color:#fff;font-size:14px;cursor:pointer;box-shadow:0 2px 8px #c6282859,0 1px 3px #0000001f;transition:all .2s ease;display:flex;align-items:center;justify-content:center;position:relative}.eli-fb-botao-principal:hover{transform:scale(1.08);box-shadow:0 6px 20px #c6282873,0 2px 6px #00000026}.eli-fb-botao-principal:active{transform:scale(.95)}.eli-fb-badge{position:absolute;top:-5px;right:-5px;background:#1565c0;color:#fff;font-size:9px;font-weight:700;min-width:16px;height:16px;border-radius:8px;display:flex;align-items:center;justify-content:center;padding:0 3px;line-height:1;box-shadow:0 1px 4px #0003}.eli-fb-acoes{display:flex;flex-direction:column;align-items:flex-end;gap:6px;animation:eliFbSlideUp .2s ease}.eli-fb-botao-ico{width:34px;height:34px;border-radius:50%;border:none;font-size:14px;cursor:pointer;display:flex;align-items:center;justify-content:center;transition:all .15s ease;box-shadow:0 2px 8px #00000026}.eli-fb-botao-ico:hover{transform:scale(1.1);box-shadow:0 3px 12px #00000038}.eli-fb-botao-exportar{background:#1565c0;color:#fff}.eli-fb-botao-feedback{background:linear-gradient(135deg,#c62828,#e53935);color:#fff}.eli-fb-botao-copiar{background:#2e7d32;color:#fff}.eli-fb-botao-limpar{background:#424242;color:#fff}.eli-fb-tooltip-selecao{position:absolute;bottom:14px;right:64px;background:linear-gradient(135deg,#c62828,#b71c1c);color:#fff;padding:8px 14px;border-radius:10px;font-size:12px;font-weight:500;white-space:nowrap;display:flex;flex-direction:column;gap:2px;box-shadow:0 4px 16px #c6282859;animation:eliFbSlideUp .2s ease;pointer-events:none}.eli-fb-tooltip-selecao:after{content:"";position:absolute;right:-6px;top:50%;transform:translateY(-50%);border:6px solid transparent;border-left-color:#b71c1c;border-right:none}.eli-fb-tooltip-esc{font-size:10px;opacity:.7}.eli-fb-tooltip-esc kbd{background:#fff3;border-radius:3px;padding:1px 5px;font-size:10px;font-weight:700;font-family:inherit}@keyframes eliFbSlideUp{0%{opacity:0;transform:translateY(12px)}to{opacity:1;transform:translateY(0)}}@keyframes eliFbSlideDown{0%{opacity:0;transform:translateY(-100%)}to{opacity:1;transform:translateY(0)}}')),document.head.appendChild(e)}}catch(a){console.error("vite-plugin-css-injected-by-js",a)}})(); -import { defineComponent as Q, openBlock as _, createBlock as re, mergeProps as we, withCtx as ue, renderSlot as He, computed as j, resolveComponent as H, createVNode as M, createElementVNode as p, createTextVNode as ne, toDisplayString as V, createCommentVNode as X, ref as B, watch as _e, onMounted as rt, onBeforeUnmount as cn, createElementBlock as S, normalizeStyle as kt, createSlots as Um, inject as Tm, h as dr, resolveDynamicComponent as Re, normalizeProps as Pm, withModifiers as ve, Fragment as ke, renderList as ze, normalizeClass as Me, withDirectives as dn, withKeys as ua, vModelText as br, onUnmounted as Nm, Teleport as sa, TransitionGroup as yo, Transition as Am, vModelSelect as Cm, nextTick as ca } from "vue"; -import { VBtn as mr } from "vuetify/components/VBtn"; -import { VBadge as Zm } from "vuetify/components/VBadge"; -import { VCard as da, VCardTitle as ma, VCardText as fa, VCardActions as va } from "vuetify/components/VCard"; -import { VSwitch as Mm, VTextarea as Lm, VSelect as pa, VChip as Fm } from "vuetify/components"; -import { VSwitch as Rm } from "vuetify/components/VSwitch"; -import Ae from "leaflet"; -import { VIcon as ko } from "vuetify/components/VIcon"; -import { VTextField as St } from "vuetify/components/VTextField"; -import { VTextarea as Bm } from "vuetify/components/VTextarea"; -import { VSelect as ga } from "vuetify/components/VSelect"; -import { VChip as Vm } from "vuetify/components/VChip"; -import { VContainer as Jm } from "vuetify/components/VGrid"; -const qm = Q({ +(function(){"use strict";try{if(typeof document<"u"){var e=document.createElement("style");e.appendChild(document.createTextNode('@font-face{font-family:Google Sans;font-style:normal;font-weight:100 900;font-display:swap;src:url(https://paiol.idz.one/estaticos/GoogleSans/GoogleSans-VariableFont_GRAD,opsz,wght.ttf) format("truetype")}@font-face{font-family:Google Sans;font-style:italic;font-weight:100 900;font-display:swap;src:url(https://paiol.idz.one/estaticos/GoogleSans/GoogleSans-Italic-VariableFont_GRAD,opsz,wght.ttf) format("truetype")}:root{--eli-font-family: "Google Sans", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", "Liberation Sans", sans-serif;--v-font-family: var(--eli-font-family)}html,body{font-family:var(--eli-font-family)}:where([class^=eli-],[class*=" eli-"]){font-family:var(--eli-font-family);--v-font-family: var(--eli-font-family)}button,input,select,textarea{font-family:inherit}:root{--cor-eli-primaria-bg: #EEF3D0;--cor-eli-primaria-zebra: #F6F9E8;--cor-eli-primaria-suave: #BFC99C;--cor-eli-primaria-header: #ADCC44;--cor-eli-primaria-clara: #D4E290;--cor-eli-primaria-media: #ADCC44;--cor-eli-primaria-acao: #8AAF00;--cor-eli-primaria: #688C00;--cor-eli-primaria-escura: #4A6500;--cor-eli-primaria-texto: #2E3F00;--cor-eli-alerta-bg: #FAF3DF;--cor-eli-alerta-clara: #F5DC8A;--cor-eli-alerta: #DDB847;--cor-eli-alerta-forte: #8C6A00;--cor-eli-fundo: #F2F3EE;--cor-eli-borda: #D5D8CC;--cor-eli-borda-forte: #B5BAA8;--cor-eli-neutro: #5E6553;--cor-eli-neutro-escuro: #3E4436;--cor-eli-superficie: #FFFFFF;--cor-eli-sucesso: #2E7D32;--cor-eli-sucesso-bg: #E8F5E9;--cor-eli-erro: #C62828;--cor-eli-erro-bg: #FFEBEE;--cor-eli-info: #1565C0;--cor-eli-info-bg: #E3F2FD}.eli-badge .v-badge__badge,.eli-badge .v-badge__content{border-radius:var(--eli-badge-radius)!important}.eli-cartao{border-radius:12px}.eli-cartao__titulo{display:flex;align-items:center;justify-content:space-between;gap:12px}.eli-cartao__titulo-texto{min-width:0}.eli-cartao__conteudo{padding-top:8px}.eli-cartao__acoes{padding-top:0}.eli-cartao--cancelado{opacity:.85}.leaflet-pane,.leaflet-tile,.leaflet-marker-icon,.leaflet-marker-shadow,.leaflet-tile-container,.leaflet-pane>svg,.leaflet-pane>canvas,.leaflet-zoom-box,.leaflet-image-layer,.leaflet-layer{position:absolute;left:0;top:0}.leaflet-container{overflow:hidden}.leaflet-tile,.leaflet-marker-icon,.leaflet-marker-shadow{-webkit-user-select:none;-moz-user-select:none;user-select:none;-webkit-user-drag:none}.leaflet-tile::selection{background:transparent}.leaflet-safari .leaflet-tile{image-rendering:-webkit-optimize-contrast}.leaflet-safari .leaflet-tile-container{width:1600px;height:1600px;-webkit-transform-origin:0 0}.leaflet-marker-icon,.leaflet-marker-shadow{display:block}.leaflet-container .leaflet-overlay-pane svg{max-width:none!important;max-height:none!important}.leaflet-container .leaflet-marker-pane img,.leaflet-container .leaflet-shadow-pane img,.leaflet-container .leaflet-tile-pane img,.leaflet-container img.leaflet-image-layer,.leaflet-container .leaflet-tile{max-width:none!important;max-height:none!important;width:auto;padding:0}.leaflet-container img.leaflet-tile{mix-blend-mode:plus-lighter}.leaflet-container.leaflet-touch-zoom{-ms-touch-action:pan-x pan-y;touch-action:pan-x pan-y}.leaflet-container.leaflet-touch-drag{-ms-touch-action:pinch-zoom;touch-action:none;touch-action:pinch-zoom}.leaflet-container.leaflet-touch-drag.leaflet-touch-zoom{-ms-touch-action:none;touch-action:none}.leaflet-container{-webkit-tap-highlight-color:transparent}.leaflet-container a{-webkit-tap-highlight-color:rgba(51,181,229,.4)}.leaflet-tile{filter:inherit;visibility:hidden}.leaflet-tile-loaded{visibility:inherit}.leaflet-zoom-box{width:0;height:0;-moz-box-sizing:border-box;box-sizing:border-box;z-index:800}.leaflet-overlay-pane svg{-moz-user-select:none}.leaflet-pane{z-index:400}.leaflet-tile-pane{z-index:200}.leaflet-overlay-pane{z-index:400}.leaflet-shadow-pane{z-index:500}.leaflet-marker-pane{z-index:600}.leaflet-tooltip-pane{z-index:650}.leaflet-popup-pane{z-index:700}.leaflet-map-pane canvas{z-index:100}.leaflet-map-pane svg{z-index:200}.leaflet-vml-shape{width:1px;height:1px}.lvml{behavior:url(#default#VML);display:inline-block;position:absolute}.leaflet-control{position:relative;z-index:800;pointer-events:visiblePainted;pointer-events:auto}.leaflet-top,.leaflet-bottom{position:absolute;z-index:1000;pointer-events:none}.leaflet-top{top:0}.leaflet-right{right:0}.leaflet-bottom{bottom:0}.leaflet-left{left:0}.leaflet-control{float:left;clear:both}.leaflet-right .leaflet-control{float:right}.leaflet-top .leaflet-control{margin-top:10px}.leaflet-bottom .leaflet-control{margin-bottom:10px}.leaflet-left .leaflet-control{margin-left:10px}.leaflet-right .leaflet-control{margin-right:10px}.leaflet-fade-anim .leaflet-popup{opacity:0;-webkit-transition:opacity .2s linear;-moz-transition:opacity .2s linear;transition:opacity .2s linear}.leaflet-fade-anim .leaflet-map-pane .leaflet-popup{opacity:1}.leaflet-zoom-animated{-webkit-transform-origin:0 0;-ms-transform-origin:0 0;transform-origin:0 0}svg.leaflet-zoom-animated{will-change:transform}.leaflet-zoom-anim .leaflet-zoom-animated{-webkit-transition:-webkit-transform .25s cubic-bezier(0,0,.25,1);-moz-transition:-moz-transform .25s cubic-bezier(0,0,.25,1);transition:transform .25s cubic-bezier(0,0,.25,1)}.leaflet-zoom-anim .leaflet-tile,.leaflet-pan-anim .leaflet-tile{-webkit-transition:none;-moz-transition:none;transition:none}.leaflet-zoom-anim .leaflet-zoom-hide{visibility:hidden}.leaflet-interactive{cursor:pointer}.leaflet-grab{cursor:-webkit-grab;cursor:-moz-grab;cursor:grab}.leaflet-crosshair,.leaflet-crosshair .leaflet-interactive{cursor:crosshair}.leaflet-popup-pane,.leaflet-control{cursor:auto}.leaflet-dragging .leaflet-grab,.leaflet-dragging .leaflet-grab .leaflet-interactive,.leaflet-dragging .leaflet-marker-draggable{cursor:move;cursor:-webkit-grabbing;cursor:-moz-grabbing;cursor:grabbing}.leaflet-marker-icon,.leaflet-marker-shadow,.leaflet-image-layer,.leaflet-pane>svg path,.leaflet-tile-container{pointer-events:none}.leaflet-marker-icon.leaflet-interactive,.leaflet-image-layer.leaflet-interactive,.leaflet-pane>svg path.leaflet-interactive,svg.leaflet-image-layer.leaflet-interactive path{pointer-events:visiblePainted;pointer-events:auto}.leaflet-container{background:#ddd;outline-offset:1px}.leaflet-container a{color:#0078a8}.leaflet-zoom-box{border:2px dotted #38f;background:#ffffff80}.leaflet-container{font-family:Helvetica Neue,Arial,Helvetica,sans-serif;font-size:12px;font-size:.75rem;line-height:1.5}.leaflet-bar{box-shadow:0 1px 5px #000000a6;border-radius:4px}.leaflet-bar a{background-color:#fff;border-bottom:1px solid #ccc;width:26px;height:26px;line-height:26px;display:block;text-align:center;text-decoration:none;color:#000}.leaflet-bar a,.leaflet-control-layers-toggle{background-position:50% 50%;background-repeat:no-repeat;display:block}.leaflet-bar a:hover,.leaflet-bar a:focus{background-color:#f4f4f4}.leaflet-bar a:first-child{border-top-left-radius:4px;border-top-right-radius:4px}.leaflet-bar a:last-child{border-bottom-left-radius:4px;border-bottom-right-radius:4px;border-bottom:none}.leaflet-bar a.leaflet-disabled{cursor:default;background-color:#f4f4f4;color:#bbb}.leaflet-touch .leaflet-bar a{width:30px;height:30px;line-height:30px}.leaflet-touch .leaflet-bar a:first-child{border-top-left-radius:2px;border-top-right-radius:2px}.leaflet-touch .leaflet-bar a:last-child{border-bottom-left-radius:2px;border-bottom-right-radius:2px}.leaflet-control-zoom-in,.leaflet-control-zoom-out{font:700 18px Lucida Console,Monaco,monospace;text-indent:1px}.leaflet-touch .leaflet-control-zoom-in,.leaflet-touch .leaflet-control-zoom-out{font-size:22px}.leaflet-control-layers{box-shadow:0 1px 5px #0006;background:#fff;border-radius:5px}.leaflet-control-layers-toggle{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABoAAAAaCAQAAAADQ4RFAAACf0lEQVR4AY1UM3gkARTePdvdoTxXKc+qTl3aU5U6b2Kbkz3Gtq3Zw6ziLGNPzrYx7946Tr6/ee/XeCQ4D3ykPtL5tHno4n0d/h3+xfuWHGLX81cn7r0iTNzjr7LrlxCqPtkbTQEHeqOrTy4Yyt3VCi/IOB0v7rVC7q45Q3Gr5K6jt+3Gl5nCoDD4MtO+j96Wu8atmhGqcNGHObuf8OM/x3AMx38+4Z2sPqzCxRFK2aF2e5Jol56XTLyggAMTL56XOMoS1W4pOyjUcGGQdZxU6qRh7B9Zp+PfpOFlqt0zyDZckPi1ttmIp03jX8gyJ8a/PG2yutpS/Vol7peZIbZcKBAEEheEIAgFbDkz5H6Zrkm2hVWGiXKiF4Ycw0RWKdtC16Q7qe3X4iOMxruonzegJzWaXFrU9utOSsLUmrc0YjeWYjCW4PDMADElpJSSQ0vQvA1Tm6/JlKnqFs1EGyZiFCqnRZTEJJJiKRYzVYzJck2Rm6P4iH+cmSY0YzimYa8l0EtTODFWhcMIMVqdsI2uiTvKmTisIDHJ3od5GILVhBCarCfVRmo4uTjkhrhzkiBV7SsaqS+TzrzM1qpGGUFt28pIySQHR6h7F6KSwGWm97ay+Z+ZqMcEjEWebE7wxCSQwpkhJqoZA5ivCdZDjJepuJ9IQjGGUmuXJdBFUygxVqVsxFsLMbDe8ZbDYVCGKxs+W080max1hFCarCfV+C1KATwcnvE9gRRuMP2prdbWGowm1KB1y+zwMMENkM755cJ2yPDtqhTI6ED1M/82yIDtC/4j4BijjeObflpO9I9MwXTCsSX8jWAFeHr05WoLTJ5G8IQVS/7vwR6ohirYM7f6HzYpogfS3R2OAAAAAElFTkSuQmCC);width:36px;height:36px}.leaflet-retina .leaflet-control-layers-toggle{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADQAAAA0CAQAAABvcdNgAAAEsklEQVR4AWL4TydIhpZK1kpWOlg0w3ZXP6D2soBtG42jeI6ZmQTHzAxiTbSJsYLjO9HhP+WOmcuhciVnmHVQcJnp7DFvScowZorad/+V/fVzMdMT2g9Cv9guXGv/7pYOrXh2U+RRR3dSd9JRx6bIFc/ekqHI29JC6pJ5ZEh1yWkhkbcFeSjxgx3L2m1cb1C7bceyxA+CNjT/Ifff+/kDk2u/w/33/IeCMOSaWZ4glosqT3DNnNZQ7Cs58/3Ce5HL78iZH/vKVIaYlqzfdLu8Vi7dnvUbEza5Idt36tquZFldl6N5Z/POLof0XLK61mZCmJSWjVF9tEjUluu74IUXvgttuVIHE7YxSkaYhJZam7yiM9Pv82JYfl9nptxZaxMJE4YSPty+vF0+Y2up9d3wwijfjZbabqm/3bZ9ecKHsiGmRflnn1MW4pjHf9oLufyn2z3y1D6n8g8TZhxyzipLNPnAUpsOiuWimg52psrTZYnOWYNDTMuWBWa0tJb4rgq1UvmutpaYEbZlwU3CLJm/ayYjHW5/h7xWLn9Hh1vepDkyf7dE7MtT5LR4e7yYpHrkhOUpEfssBLq2pPhAqoSWKUkk7EDqkmK6RrCEzqDjhNDWNE+XSMvkJRDWlZTmCW0l0PHQGRZY5t1L83kT0Y3l2SItk5JAWHl2dCOBm+fPu3fo5/3v61RMCO9Jx2EEYYhb0rmNQMX/vm7gqOEJLcXTGw3CAuRNeyaPWwjR8PRqKQ1PDA/dpv+on9Shox52WFnx0KY8onHayrJzm87i5h9xGw/tfkev0jGsQizqezUKjk12hBMKJ4kbCqGPVNXudyyrShovGw5CgxsRICxF6aRmSjlBnHRzg7Gx8fKqEubI2rahQYdR1YgDIRQO7JvQyD52hoIQx0mxa0ODtW2Iozn1le2iIRdzwWewedyZzewidueOGqlsn1MvcnQpuVwLGG3/IR1hIKxCjelIDZ8ldqWz25jWAsnldEnK0Zxro19TGVb2ffIZEsIO89EIEDvKMPrzmBOQcKQ+rroye6NgRRxqR4U8EAkz0CL6uSGOm6KQCdWjvjRiSP1BPalCRS5iQYiEIvxuBMJEWgzSoHADcVMuN7IuqqTeyUPq22qFimFtxDyBBJEwNyt6TM88blFHao/6tWWhuuOM4SAK4EI4QmFHA+SEyWlp4EQoJ13cYGzMu7yszEIBOm2rVmHUNqwAIQabISNMRstmdhNWcFLsSm+0tjJH1MdRxO5Nx0WDMhCtgD6OKgZeljJqJKc9po8juskR9XN0Y1lZ3mWjLR9JCO1jRDMd0fpYC2VnvjBSEFg7wBENc0R9HFlb0xvF1+TBEpF68d+DHR6IOWVv2BECtxo46hOFUBd/APU57WIoEwJhIi2CdpyZX0m93BZicktMj1AS9dClteUFAUNUIEygRZCtik5zSxI9MubTBH1GOiHsiLJ3OCoSZkILa9PxiN0EbvhsAo8tdAf9Seepd36lGWHmtNANTv5Jd0z4QYyeo/UEJqxKRpg5LZx6btLPsOaEmdMyxYdlc8LMaJnikDlhclqmPiQnTEpLUIZEwkRagjYkEibQErwhkTAKCLQEbUgkzJQWc/0PstHHcfEdQ+UAAAAASUVORK5CYII=);background-size:26px 26px}.leaflet-touch .leaflet-control-layers-toggle{width:44px;height:44px}.leaflet-control-layers .leaflet-control-layers-list,.leaflet-control-layers-expanded .leaflet-control-layers-toggle{display:none}.leaflet-control-layers-expanded .leaflet-control-layers-list{display:block;position:relative}.leaflet-control-layers-expanded{padding:6px 10px 6px 6px;color:#333;background:#fff}.leaflet-control-layers-scrollbar{overflow-y:scroll;overflow-x:hidden;padding-right:5px}.leaflet-control-layers-selector{margin-top:2px;position:relative;top:1px}.leaflet-control-layers label{display:block;font-size:13px;font-size:1.08333em}.leaflet-control-layers-separator{height:0;border-top:1px solid #ddd;margin:5px -10px 5px -6px}.leaflet-default-icon-path{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABkAAAApCAYAAADAk4LOAAAFgUlEQVR4Aa1XA5BjWRTN2oW17d3YaZtr2962HUzbDNpjszW24mRt28p47v7zq/bXZtrp/lWnXr337j3nPCe85NcypgSFdugCpW5YoDAMRaIMqRi6aKq5E3YqDQO3qAwjVWrD8Ncq/RBpykd8oZUb/kaJutow8r1aP9II0WmLKLIsJyv1w/kqw9Ch2MYdB++12Onxee/QMwvf4/Dk/Lfp/i4nxTXtOoQ4pW5Aj7wpici1A9erdAN2OH64x8OSP9j3Ft3b7aWkTg/Fm91siTra0f9on5sQr9INejH6CUUUpavjFNq1B+Oadhxmnfa8RfEmN8VNAsQhPqF55xHkMzz3jSmChWU6f7/XZKNH+9+hBLOHYozuKQPxyMPUKkrX/K0uWnfFaJGS1QPRtZsOPtr3NsW0uyh6NNCOkU3Yz+bXbT3I8G3xE5EXLXtCXbbqwCO9zPQYPRTZ5vIDXD7U+w7rFDEoUUf7ibHIR4y6bLVPXrz8JVZEql13trxwue/uDivd3fkWRbS6/IA2bID4uk0UpF1N8qLlbBlXs4Ee7HLTfV1j54APvODnSfOWBqtKVvjgLKzF5YdEk5ewRkGlK0i33Eofffc7HT56jD7/6U+qH3Cx7SBLNntH5YIPvODnyfIXZYRVDPqgHtLs5ABHD3YzLuespb7t79FY34DjMwrVrcTuwlT55YMPvOBnRrJ4VXTdNnYug5ucHLBjEpt30701A3Ts+HEa73u6dT3FNWwflY86eMHPk+Yu+i6pzUpRrW7SNDg5JHR4KapmM5Wv2E8Tfcb1HoqqHMHU+uWDD7zg54mz5/2BSnizi9T1Dg4QQXLToGNCkb6tb1NU+QAlGr1++eADrzhn/u8Q2YZhQVlZ5+CAOtqfbhmaUCS1ezNFVm2imDbPmPng5wmz+gwh+oHDce0eUtQ6OGDIyR0uUhUsoO3vfDmmgOezH0mZN59x7MBi++WDL1g/eEiU3avlidO671bkLfwbw5XV2P8Pzo0ydy4t2/0eu33xYSOMOD8hTf4CrBtGMSoXfPLchX+J0ruSePw3LZeK0juPJbYzrhkH0io7B3k164hiGvawhOKMLkrQLyVpZg8rHFW7E2uHOL888IBPlNZ1FPzstSJM694fWr6RwpvcJK60+0HCILTBzZLFNdtAzJaohze60T8qBzyh5ZuOg5e7uwQppofEmf2++DYvmySqGBuKaicF1blQjhuHdvCIMvp8whTTfZzI7RldpwtSzL+F1+wkdZ2TBOW2gIF88PBTzD/gpeREAMEbxnJcaJHNHrpzji0gQCS6hdkEeYt9DF/2qPcEC8RM28Hwmr3sdNyht00byAut2k3gufWNtgtOEOFGUwcXWNDbdNbpgBGxEvKkOQsxivJx33iow0Vw5S6SVTrpVq11ysA2Rp7gTfPfktc6zhtXBBC+adRLshf6sG2RfHPZ5EAc4sVZ83yCN00Fk/4kggu40ZTvIEm5g24qtU4KjBrx/BTTH8ifVASAG7gKrnWxJDcU7x8X6Ecczhm3o6YicvsLXWfh3Ch1W0k8x0nXF+0fFxgt4phz8QvypiwCCFKMqXCnqXExjq10beH+UUA7+nG6mdG/Pu0f3LgFcGrl2s0kNNjpmoJ9o4B29CMO8dMT4Q5ox8uitF6fqsrJOr8qnwNbRzv6hSnG5wP+64C7h9lp30hKNtKdWjtdkbuPA19nJ7Tz3zR/ibgARbhb4AlhavcBebmTHcFl2fvYEnW0ox9xMxKBS8btJ+KiEbq9zA4RthQXDhPa0T9TEe69gWupwc6uBUphquXgf+/FrIjweHQS4/pduMe5ERUMHUd9xv8ZR98CxkS4F2n3EUrUZ10EYNw7BWm9x1GiPssi3GgiGRDKWRYZfXlON+dfNbM+GgIwYdwAAAAASUVORK5CYII=)}.leaflet-container .leaflet-control-attribution{background:#fff;background:#fffc;margin:0}.leaflet-control-attribution,.leaflet-control-scale-line{padding:0 5px;color:#333;line-height:1.4}.leaflet-control-attribution a{text-decoration:none}.leaflet-control-attribution a:hover,.leaflet-control-attribution a:focus{text-decoration:underline}.leaflet-attribution-flag{display:inline!important;vertical-align:baseline!important;width:1em;height:.6669em}.leaflet-left .leaflet-control-scale{margin-left:5px}.leaflet-bottom .leaflet-control-scale{margin-bottom:5px}.leaflet-control-scale-line{border:2px solid #777;border-top:none;line-height:1.1;padding:2px 5px 1px;white-space:nowrap;-moz-box-sizing:border-box;box-sizing:border-box;background:#fffc;text-shadow:1px 1px #fff}.leaflet-control-scale-line:not(:first-child){border-top:2px solid #777;border-bottom:none;margin-top:-2px}.leaflet-control-scale-line:not(:first-child):not(:last-child){border-bottom:2px solid #777}.leaflet-touch .leaflet-control-attribution,.leaflet-touch .leaflet-control-layers,.leaflet-touch .leaflet-bar{box-shadow:none}.leaflet-touch .leaflet-control-layers,.leaflet-touch .leaflet-bar{border:2px solid rgba(0,0,0,.2);background-clip:padding-box}.leaflet-popup{position:absolute;text-align:center;margin-bottom:20px}.leaflet-popup-content-wrapper{padding:1px;text-align:left;border-radius:12px}.leaflet-popup-content{margin:13px 24px 13px 20px;line-height:1.3;font-size:13px;font-size:1.08333em;min-height:1px}.leaflet-popup-content p{margin:1.3em 0}.leaflet-popup-tip-container{width:40px;height:20px;position:absolute;left:50%;margin-top:-1px;margin-left:-20px;overflow:hidden;pointer-events:none}.leaflet-popup-tip{width:17px;height:17px;padding:1px;margin:-10px auto 0;pointer-events:auto;-webkit-transform:rotate(45deg);-moz-transform:rotate(45deg);-ms-transform:rotate(45deg);transform:rotate(45deg)}.leaflet-popup-content-wrapper,.leaflet-popup-tip{background:#fff;color:#333;box-shadow:0 3px 14px #0006}.leaflet-container a.leaflet-popup-close-button{position:absolute;top:0;right:0;border:none;text-align:center;width:24px;height:24px;font:16px/24px Tahoma,Verdana,sans-serif;color:#757575;text-decoration:none;background:transparent}.leaflet-container a.leaflet-popup-close-button:hover,.leaflet-container a.leaflet-popup-close-button:focus{color:#585858}.leaflet-popup-scrolled{overflow:auto}.leaflet-oldie .leaflet-popup-content-wrapper{-ms-zoom:1}.leaflet-oldie .leaflet-popup-tip{width:24px;margin:0 auto;-ms-filter:"progid:DXImageTransform.Microsoft.Matrix(M11=0.70710678, M12=0.70710678, M21=-0.70710678, M22=0.70710678)";filter:progid:DXImageTransform.Microsoft.Matrix(M11=.70710678,M12=.70710678,M21=-.70710678,M22=.70710678)}.leaflet-oldie .leaflet-control-zoom,.leaflet-oldie .leaflet-control-layers,.leaflet-oldie .leaflet-popup-content-wrapper,.leaflet-oldie .leaflet-popup-tip{border:1px solid #999}.leaflet-div-icon{background:#fff;border:1px solid #666}.leaflet-tooltip{position:absolute;padding:6px;background-color:#fff;border:1px solid #fff;border-radius:3px;color:#222;white-space:nowrap;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;pointer-events:none;box-shadow:0 1px 3px #0006}.leaflet-tooltip.leaflet-interactive{cursor:pointer;pointer-events:auto}.leaflet-tooltip-top:before,.leaflet-tooltip-bottom:before,.leaflet-tooltip-left:before,.leaflet-tooltip-right:before{position:absolute;pointer-events:none;border:6px solid transparent;background:transparent;content:""}.leaflet-tooltip-bottom{margin-top:6px}.leaflet-tooltip-top{margin-top:-6px}.leaflet-tooltip-bottom:before,.leaflet-tooltip-top:before{left:50%;margin-left:-6px}.leaflet-tooltip-top:before{bottom:0;margin-bottom:-12px;border-top-color:#fff}.leaflet-tooltip-bottom:before{top:0;margin-top:-12px;margin-left:-6px;border-bottom-color:#fff}.leaflet-tooltip-left{margin-left:-6px}.leaflet-tooltip-right{margin-left:6px}.leaflet-tooltip-left:before,.leaflet-tooltip-right:before{top:50%;margin-top:-6px}.leaflet-tooltip-left:before{right:0;margin-right:-12px;border-left-color:#fff}.leaflet-tooltip-right:before{left:0;margin-left:-12px;border-right-color:#fff}@media print{.leaflet-control{-webkit-print-color-adjust:exact;print-color-adjust:exact}}.eli-coordenadas{width:100%;display:flex;flex-direction:column;gap:8px}.eli-coordenadas__mapa-container{width:100%;border-radius:8px;overflow:hidden;border:1px solid rgba(var(--v-border-color),var(--v-border-opacity));position:relative}.eli-coordenadas__mapa-container .leaflet-container{width:100%;height:100%;z-index:0}.eli-coordenadas__campos{display:flex;gap:12px;align-items:center}.eli-coordenadas__campo{flex:1}.eli-dh{position:relative;width:100%;font-family:var(--eli-font-family, "Google Sans", system-ui, sans-serif)}.eli-dh__campo{display:flex;align-items:center;gap:8px;padding:0 14px;height:56px;border:1.5px solid var(--cor-eli-borda, #D5D8CC);border-radius:8px;background:var(--cor-eli-superficie, #fff);cursor:pointer;transition:border-color .18s,box-shadow .18s;-webkit-user-select:none;user-select:none;position:relative}.eli-dh__campo:hover:not(.eli-dh__campo--desabilitado){border-color:var(--cor-eli-primaria-media, #ADCC44)}.eli-dh__campo--focado{border-color:var(--cor-eli-primaria, #688C00);box-shadow:0 0 0 3px color-mix(in srgb,var(--cor-eli-primaria, #688C00) 14%,transparent);outline:none}.eli-dh__campo--erro{border-color:var(--cor-eli-erro, #C62828);box-shadow:0 0 0 3px color-mix(in srgb,var(--cor-eli-erro, #C62828) 12%,transparent)}.eli-dh__campo--desabilitado{background:var(--cor-eli-fundo, #F2F3EE);cursor:not-allowed;opacity:.6}.eli-dh__icone{flex-shrink:0;width:20px;height:20px;color:var(--cor-eli-neutro, #5E6553);transition:color .18s}.eli-dh__campo--focado .eli-dh__icone{color:var(--cor-eli-primaria, #688C00)}.eli-dh__conteudo{flex:1;display:flex;flex-direction:column;min-width:0;gap:1px}.eli-dh__rotulo{font-size:11px;font-weight:600;color:var(--cor-eli-neutro, #5E6553);line-height:1.2;letter-spacing:.02em;text-transform:uppercase;transition:color .18s}.eli-dh__campo--focado .eli-dh__rotulo{color:var(--cor-eli-primaria, #688C00)}.eli-dh__campo--erro .eli-dh__rotulo{color:var(--cor-eli-erro, #C62828)}.eli-dh__valor{font-size:15px;font-weight:500;color:var(--cor-eli-neutro-escuro, #3E4436);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.eli-dh__valor--vazio{color:var(--cor-eli-borda-forte, #B5BAA8);font-weight:400}.eli-dh__limpar{flex-shrink:0;display:flex;align-items:center;justify-content:center;width:24px;height:24px;border:none;background:none;border-radius:50%;cursor:pointer;color:var(--cor-eli-borda-forte, #B5BAA8);transition:color .15s,background .15s;padding:0}.eli-dh__limpar:hover{color:var(--cor-eli-erro, #C62828);background:var(--cor-eli-erro-bg, #FFEBEE)}.eli-dh__mensagem{margin-top:4px;padding:0 14px;font-size:12px;line-height:1.4}.eli-dh__mensagem--erro{color:var(--cor-eli-erro, #C62828)}.eli-dh__mensagem--dica{color:var(--cor-eli-neutro, #5E6553)}.eli-dh__popover{position:absolute;top:calc(100% + 6px);left:0;z-index:2000;background:var(--cor-eli-superficie, #fff);border:1.5px solid var(--cor-eli-borda, #D5D8CC);border-radius:14px;box-shadow:0 4px 6px -1px #0000000f,0 10px 30px -4px #0000001f;overflow:hidden;min-width:300px;transform-origin:top left}.eli-dh-pop-enter-active,.eli-dh-pop-leave-active{transition:opacity .16s ease,transform .16s ease}.eli-dh-pop-enter-from,.eli-dh-pop-leave-to{opacity:0;transform:translateY(-6px) scale(.97)}.eli-dh__cal-header{display:flex;align-items:center;justify-content:space-between;padding:14px 16px 10px;background:linear-gradient(135deg,var(--cor-eli-primaria, #688C00) 0%,var(--cor-eli-primaria-acao, #8AAF00) 100%)}.eli-dh__cal-nav{display:flex;align-items:center;justify-content:center;width:32px;height:32px;border:none;background:#ffffff2e;border-radius:8px;cursor:pointer;color:#fff;transition:background .15s;padding:0}.eli-dh__cal-nav:hover{background:#ffffff4d}.eli-dh__cal-nav svg{width:18px;height:18px}.eli-dh__cal-titulo{display:flex;flex-direction:column;align-items:center;gap:2px}.eli-dh__seletores{display:flex;align-items:center;gap:6px}.eli-dh__select{border:none;background:#ffffff24;color:#fff;font-family:inherit;font-size:14px;font-weight:700;padding:4px 8px;border-radius:6px;cursor:pointer;outline:none;transition:background .15s;-moz-appearance:none;appearance:none;-webkit-appearance:none}.eli-dh__select:hover{background:#ffffff42}.eli-dh__select option{background:var(--cor-eli-superficie, #fff);color:var(--cor-eli-neutro-escuro, #3E4436);font-weight:600}.eli-dh__cal-body{padding:12px 14px 14px}.eli-dh__cal-semana{display:grid;grid-template-columns:repeat(7,1fr);gap:2px;margin-bottom:6px}.eli-dh__cal-dia-sem{display:flex;align-items:center;justify-content:center;font-size:11px;font-weight:700;color:var(--cor-eli-neutro, #5E6553);text-transform:uppercase;letter-spacing:.04em;height:28px}.eli-dh__cal-grade{display:grid;grid-template-columns:repeat(7,1fr);gap:2px}.eli-dh__cal-dia{display:flex;align-items:center;justify-content:center;height:36px;border:none;border-radius:8px;background:none;font-size:13px;font-weight:500;color:var(--cor-eli-neutro-escuro, #3E4436);cursor:pointer;transition:background .12s,color .12s;padding:0;font-family:inherit}.eli-dh__cal-dia:hover:not(:disabled):not(.eli-dh__cal-dia--fora):not(.eli-dh__cal-dia--selecionado){background:var(--cor-eli-primaria-bg, #EEF3D0);color:var(--cor-eli-primaria, #688C00)}.eli-dh__cal-dia--fora{color:var(--cor-eli-borda-forte, #B5BAA8);cursor:default}.eli-dh__cal-dia--hoje{color:var(--cor-eli-primaria, #688C00);font-weight:700;position:relative}.eli-dh__cal-dia--hoje:after{content:"";position:absolute;bottom:4px;left:50%;transform:translate(-50%);width:4px;height:4px;border-radius:50%;background:var(--cor-eli-primaria, #688C00)}.eli-dh__cal-dia--selecionado{background:var(--cor-eli-primaria, #688C00);color:#fff;font-weight:700}.eli-dh__cal-dia--selecionado.eli-dh__cal-dia--hoje:after{background:#fff}.eli-dh__cal-dia--desabilitado{opacity:.32;cursor:not-allowed}.eli-dh__hora-secao{border-top:1px solid var(--cor-eli-borda, #D5D8CC);padding:12px 16px 14px;display:flex;align-items:center;gap:10px}.eli-dh__hora-icone{width:16px;height:16px;color:var(--cor-eli-neutro, #5E6553);flex-shrink:0}.eli-dh__hora-campos{display:flex;align-items:center;gap:6px;flex:1}.eli-dh__hora-input{width:52px;padding:6px 8px;border:1.5px solid var(--cor-eli-borda, #D5D8CC);border-radius:6px;background:var(--cor-eli-superficie, #fff);text-align:center;font-size:16px;font-weight:600;font-family:inherit;color:var(--cor-eli-neutro-escuro, #3E4436);transition:border-color .15s;outline:none;-moz-appearance:textfield}.eli-dh__hora-input::-webkit-inner-spin-button,.eli-dh__hora-input::-webkit-outer-spin-button{-webkit-appearance:none}.eli-dh__hora-input:focus{border-color:var(--cor-eli-primaria, #688C00);box-shadow:0 0 0 2px color-mix(in srgb,var(--cor-eli-primaria, #688C00) 14%,transparent)}.eli-dh__hora-sep{font-size:20px;font-weight:700;color:var(--cor-eli-neutro, #5E6553);line-height:1;margin-bottom:2px}.eli-dh__rodape{padding:10px 14px 12px;display:flex;justify-content:flex-end;gap:8px;border-top:1px solid var(--cor-eli-borda, #D5D8CC)}.eli-dh__btn{display:inline-flex;align-items:center;gap:5px;padding:7px 16px;border:none;border-radius:8px;font-size:13px;font-weight:600;font-family:inherit;cursor:pointer;transition:background .14s,opacity .14s}.eli-dh__btn--cancelar{background:var(--cor-eli-fundo, #F2F3EE);color:var(--cor-eli-neutro, #5E6553)}.eli-dh__btn--cancelar:hover{background:var(--cor-eli-borda, #D5D8CC)}.eli-dh__btn--confirmar{background:var(--cor-eli-primaria, #688C00);color:#fff}.eli-dh__btn--confirmar:hover{background:var(--cor-eli-primaria-escura, #4A6500)}.eli-entrada__prefixo,.eli-entrada__sufixo{opacity:.75;font-size:.9em;white-space:nowrap}.eli-entrada__prefixo{margin-right:6px}.eli-entrada__sufixo{margin-left:6px}.eli-tabela__acoes-cabecalho{display:inline-flex;gap:8px;flex-wrap:wrap}.eli-tabela__acoes-cabecalho-botao{display:inline-flex;align-items:center;gap:6px;height:var(--eli-tabela-cabecalho-controle-altura);padding:0 14px;border-radius:var(--eli-tabela-cabecalho-controle-radius);border:none;background:var(--cor-eli-primaria-bg);color:var(--cor-eli-primaria-escura);font-size:.875rem;font-weight:500;line-height:1;cursor:pointer;transition:background-color .2s ease,color .2s ease}.eli-tabela__acoes-cabecalho-botao:hover,.eli-tabela__acoes-cabecalho-botao:focus-visible{background:var(--cor-eli-primaria-clara)}.eli-tabela__acoes-cabecalho-botao:focus-visible{outline:2px solid var(--cor-eli-primaria-clara);outline-offset:2px}.eli-tabela__acoes-cabecalho-icone{display:inline-block}.eli-tabela__acoes-cabecalho-rotulo{line-height:1}.eli-tabela__acoes-toggle{display:inline-flex;align-items:center;justify-content:center;width:32px;height:32px;border-radius:9999px;border:none;background:transparent;color:#0f172ab8;cursor:pointer;transition:background-color .2s ease,color .2s ease}.eli-tabela__acoes-toggle-icone{display:block}.eli-tabela__acoes-toggle:hover,.eli-tabela__acoes-toggle:focus-visible{background-color:#0f172a14;color:#0f172af2}.eli-tabela__acoes-toggle:focus-visible{outline:2px solid var(--cor-eli-primaria-clara);outline-offset:2px}.eli-tabela__acoes-toggle:disabled{cursor:default;color:#94a3b8cc;background:transparent}.eli-tabela__acoes-menu{min-width:180px;padding:6px 0;margin:0;list-style:none;background:var(--cor-eli-superficie);border:1px solid rgba(15,23,42,.08);border-radius:10px;box-shadow:0 12px 30px #0f172a2e;z-index:1000}.eli-tabela__acoes-item{margin:0}.eli-tabela__acoes-item-botao{display:flex;align-items:center;gap:8px;width:100%;padding:8px 12px;border:none;background:transparent;font-size:.9rem;cursor:pointer;transition:background-color .2s ease}.eli-tabela__acoes-item-botao:hover,.eli-tabela__acoes-item-botao:focus-visible{background-color:#0f172a0f}.eli-tabela__acoes-item-botao:focus-visible{outline:2px solid currentColor;outline-offset:-2px}.eli-tabela__acoes-item-icone{flex-shrink:0}.eli-tabela__acoes-item-texto{flex:1;text-align:left}.eli-tabela__th--expander,.eli-tabela__td--expander{width:42px;padding:6px 8px;text-align:center;vertical-align:middle}.eli-tabela__expander-botao{display:inline-flex;align-items:center;justify-content:center;width:28px;height:28px;border-radius:9999px;border:none;background:transparent;color:#0f172ab8;cursor:pointer;transition:background-color .2s ease,color .2s ease}.eli-tabela__expander-botao:hover,.eli-tabela__expander-botao:focus-visible{background-color:#0f172a14;color:#0f172af2}.eli-tabela__expander-botao:focus-visible{outline:2px solid var(--cor-eli-primaria-clara);outline-offset:2px}.eli-tabela__expander-botao--ativo{background-color:#0f172a0f;color:#0f172af2}.eli-tabela__td--detalhes{padding:12px}.eli-tabela__tr--detalhes .eli-tabela__td{border-bottom:1px solid rgba(0,0,0,.08)}.eli-tabela__detalhes{display:grid;gap:10px;padding-left:4px}.eli-tabela__detalhe{display:grid;grid-template-columns:180px 1fr;gap:10px;align-items:start}.eli-tabela__detalhe-rotulo{font-weight:600;color:#0f172ad9}.eli-tabela__detalhe-valor{min-width:0}@media(max-width:720px){.eli-tabela__detalhe{grid-template-columns:1fr}}.eli-tabela__th--selecao,.eli-tabela__td--selecao{width:48px;min-width:48px;max-width:48px;text-align:center;padding:0 8px;vertical-align:middle}.eli-tabela__checkbox{-moz-appearance:none;appearance:none;-webkit-appearance:none;width:15px;height:15px;cursor:pointer;border:2px solid rgba(0,0,0,.54);border-radius:2px;margin:0;vertical-align:middle;position:relative;transition:all .2s ease-in-out;background-color:transparent;outline:none}.eli-tabela__checkbox:hover{border-color:#000000de}.eli-tabela__checkbox:checked,.eli-tabela__checkbox:indeterminate{background-color:var(--cor-eli-primaria);border-color:var(--cor-eli-primaria)}.eli-tabela__checkbox:checked:after{content:"";position:absolute;top:0;left:4px;width:4px;height:9px;border:solid white;border-width:0 2px 2px 0;transform:rotate(45deg)}.eli-tabela__checkbox:indeterminate:after{content:"";position:absolute;top:5px;left:2px;width:8px;height:2px;background-color:#fff;border-radius:1px}.eli-tabela__checkbox:focus-visible{box-shadow:0 0 0 2px var(--cor-eli-primaria-clara)}.eli-tabela{width:100%}.eli-tabela__table-wrapper{width:100%;overflow-x:auto}.eli-tabela__td--estados{padding:0}.eli-tabela__estados-inline{border:none;border-radius:0}.eli-tabela__table{width:100%;border-collapse:separate;border-spacing:0;border:1px solid rgba(0,0,0,.12);border-radius:12px;overflow:visible}.eli-tabela__table thead tr:first-child th:first-child{border-top-left-radius:11px}.eli-tabela__table thead tr:first-child th:last-child{border-top-right-radius:11px}.eli-tabela__table tbody tr:last-child td:first-child{border-bottom-left-radius:11px}.eli-tabela__table tbody tr:last-child td:last-child{border-bottom-right-radius:11px}.eli-tabela__tbody{overflow:visible}.eli-tabela__tbody .eli-tabela__tr .eli-tabela__td{background:var(--cor-eli-superficie, #ffffff)}.eli-tabela__tbody .eli-tabela__tr--zebra .eli-tabela__td{background:var(--cor-eli-primaria-zebra, #F6F9E8)}.eli-tabela__th,.eli-tabela__td{padding:10px 12px;border-bottom:1px solid var(--cor-eli-borda);vertical-align:top}.eli-tabela__th{text-align:left;font-weight:600;font-size:.82rem;letter-spacing:.02em;text-transform:uppercase;color:var(--cor-eli-neutro-escuro, #3E4436);background:var(--cor-eli-primaria-suave, #BFC99C);border-bottom:2px solid var(--cor-eli-primaria-bg, #EEF3D0)}.eli-tabela__th--ordenavel{padding:0}.eli-tabela__th--ordenavel .eli-tabela__th-botao{padding:10px 12px}.eli-tabela__th-botao{display:inline-flex;align-items:center;justify-content:flex-start;gap:8px;width:100%;background:transparent;border:none;font:inherit;color:inherit;cursor:pointer;text-align:left;transition:color .2s ease}.eli-tabela__th-botao:hover,.eli-tabela__th-botao:focus-visible{color:var(--cor-eli-primaria-texto, #2E3F00)}.eli-tabela__th-botao:focus-visible{outline:2px solid var(--cor-eli-primaria, #688C00);outline-offset:2px}.eli-tabela__th-botao--ativo{color:var(--cor-eli-primaria-texto, #2E3F00)}.eli-tabela__th-texto{flex:1;min-width:0;white-space:nowrap}.eli-tabela__th-icone{flex-shrink:0}.eli-tabela__th-icone--oculto{opacity:0}.eli-tabela__tr:last-child .eli-tabela__td{border-bottom:none}.eli-tabela__td--clicavel{cursor:pointer}.eli-tabela__td--clicavel:hover{background:#00000008}.eli-tabela--erro{display:flex;align-items:flex-start;gap:10px;border:1px solid rgba(220,53,69,.35);border-radius:12px;padding:12px}.eli-tabela--carregando{display:flex;align-items:center;gap:10px;border:1px dashed rgba(0,0,0,.25);border-radius:12px;padding:12px;opacity:.8}.eli-tabela__erro-titulo{font-weight:700;margin-bottom:4px}.eli-tabela__erro-mensagem{opacity:.9}.eli-tabela--vazio{display:flex;align-items:center;gap:10px;border:1px dashed rgba(0,0,0,.25);border-radius:12px;padding:12px;opacity:.8}.eli-tabela__estado-icone{flex-shrink:0;color:#0f172a73}.eli-tabela__estado-icone--erro{color:var(--cor-eli-erro)}.eli-tabela__estado-icone--spin{animation:eli-tabela-spin 1s linear infinite}@keyframes eli-tabela-spin{0%{transform:rotate(0)}to{transform:rotate(360deg)}}.eli-tabela__th--acoes{text-align:right;white-space:nowrap}.eli-tabela__td--acoes{white-space:nowrap;overflow:visible}.eli-tabela__acoes-container{display:flex;justify-content:flex-end;position:relative;z-index:1}.eli-tabela__acoes-container--aberto{z-index:200}.eli-tabela__rodape{display:flex;align-items:center;justify-content:flex-end;gap:12px;margin-top:12px;flex-wrap:wrap}.eli-tabela__paginacao{display:flex;align-items:center;justify-content:flex-end;gap:12px;margin-top:0;flex-wrap:wrap}.eli-tabela__acoes-inferiores{display:inline-flex;gap:8px;align-items:center;flex-wrap:wrap}.eli-tabela__cabecalho{width:100%;box-sizing:border-box;display:flex;align-items:center;justify-content:flex-end;gap:12px;margin-bottom:12px;flex-wrap:wrap;--eli-tabela-cabecalho-controle-altura: 34px;--eli-tabela-cabecalho-controle-radius: 8px}.eli-tabela__celula-tags{display:flex;flex-wrap:wrap;gap:6px;align-items:center}.eli-tabela__celula-tag{cursor:default}.eli-tabela__celula-tag-icone{margin-right:6px}.eli-tabela__texto-truncado{display:inline-block;max-width:260px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;vertical-align:top}.eli-tabela__celula-link{all:unset;display:inline;color:#2563eb;cursor:pointer;text-decoration:underline;text-decoration-color:var(--cor-eli-primaria-clara);text-underline-offset:2px}.eli-tabela__celula-link:hover{color:#1d4ed8;text-decoration-color:#1d4ed8bf}.eli-tabela__celula-link:focus-visible{outline:2px solid var(--cor-eli-primaria-clara);outline-offset:2px;border-radius:4px}.eli-tabela__busca{display:flex;align-items:center;justify-content:flex-end;gap:8px;flex-wrap:wrap}.eli-tabela__busca-input-wrapper{display:inline-flex;align-items:stretch;border-radius:var(--eli-tabela-cabecalho-controle-radius, 8px);border:1px solid rgba(15,23,42,.15);overflow:hidden;background:var(--cor-eli-superficie);height:var(--eli-tabela-cabecalho-controle-altura, 34px)}.eli-tabela__busca-input{height:100%;padding:0 12px;border:none;outline:none;font-size:.875rem;color:#0f172ad9}.eli-tabela__busca-input::-webkit-search-cancel-button,.eli-tabela__busca-input::-webkit-search-decoration{-webkit-appearance:none}.eli-tabela__busca-input::placeholder{color:var(--cor-eli-neutro)}.eli-tabela__busca-botao{display:inline-flex;align-items:center;justify-content:center;border:none;background:var(--cor-eli-primaria-bg);color:var(--cor-eli-primaria-escura);height:100%;padding:0 12px;cursor:pointer;transition:background-color .2s ease,color .2s ease}.eli-tabela__busca-botao-icone{display:block}.eli-tabela__busca-botao:hover,.eli-tabela__busca-botao:focus-visible{background:var(--cor-eli-primaria-clara);color:var(--cor-eli-primaria-escura)}.eli-tabela__busca-botao:focus-visible{outline:2px solid var(--cor-eli-primaria-clara);outline-offset:2px}.eli-tabela__busca-grupo{display:inline-flex;align-items:center;gap:8px;flex-wrap:wrap}.eli-tabela__filtro-icone-container{position:relative;display:inline-flex;align-items:center}.eli-tabela__filtro-badge{position:absolute;top:-7px;right:-9px;min-width:16px;height:16px;padding:0 4px;border-radius:9999px;background:var(--cor-eli-erro, #dc3545);color:#fff;font-size:.65rem;font-weight:700;line-height:16px;text-align:center;pointer-events:none;box-shadow:0 1px 3px #0003}.eli-tabela-modal-colunas__item{display:flex;align-items:center;gap:8px;padding:9px 10px;border-radius:8px;border:1px solid var(--cor-eli-borda);background:var(--cor-eli-superficie);cursor:grab;-webkit-user-select:none;user-select:none;transition:box-shadow .15s ease,opacity .15s ease,border-color .15s ease}.eli-tabela-modal-colunas__item+.eli-tabela-modal-colunas__item{margin-top:6px}.eli-tabela-modal-colunas__item:hover{border-color:var(--cor-eli-borda-forte);box-shadow:0 2px 8px #0f172a14}.eli-tabela-modal-colunas__item:active{cursor:grabbing}.eli-tabela-modal-colunas__item--invisivel{opacity:.72}.eli-tabela-modal-colunas__item--arrastando{opacity:.15;border-style:dashed;border-color:var(--cor-eli-primaria-media)}.eli-tabela-modal-colunas__item-handle{color:var(--cor-eli-borda-forte);flex-shrink:0;transition:color .15s ease}.eli-tabela-modal-colunas__item:hover .eli-tabela-modal-colunas__item-handle{color:var(--cor-eli-neutro)}.eli-tabela-modal-colunas__item-texto{flex:1;min-width:0;font-size:.875rem;color:var(--cor-eli-neutro-escuro);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.eli-tabela-modal-colunas__item-badge-icone{flex-shrink:0}.eli-tabela-modal-colunas__item-badge-icone--visivel{color:var(--cor-eli-primaria-acao)}.eli-tabela-modal-colunas__item-badge-icone--invisivel{color:var(--cor-eli-borda-forte)}.eli-tabela-modal-colunas__vazio{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;padding:24px 12px;text-align:center;font-size:.8rem;color:var(--cor-eli-neutro);line-height:1.5}.eli-tabela-modal-colunas__vazio-icone{color:var(--cor-eli-borda-forte)}.eli-tabela-modal-colunas__vazio-icone--ok{color:var(--cor-eli-primaria-acao)}.list-move,.list-enter-active,.list-leave-active{transition:all .25s cubic-bezier(.4,0,.2,1)}.list-enter-from,.list-leave-to{opacity:0;transform:scale(.95)}.list-leave-active{position:absolute;width:calc(100% - 16px)}.eli-tabela-modal-colunas__footer{display:flex;justify-content:flex-end;gap:8px;padding:12px 16px;border-top:1px solid var(--cor-eli-borda);background:var(--cor-eli-fundo)}.eli-tabela-modal-colunas__botao{display:inline-flex;align-items:center;gap:6px;height:34px;padding:0 16px;border-radius:8px;border:1px solid var(--cor-eli-borda);background:var(--cor-eli-superficie);cursor:pointer;font-size:.875rem;font-weight:500;transition:background .2s ease,border-color .2s ease,color .2s ease}.eli-tabela-modal-colunas__botao--sec{color:var(--cor-eli-neutro-escuro)}.eli-tabela-modal-colunas__botao--sec:hover,.eli-tabela-modal-colunas__botao--sec:focus-visible{background:var(--cor-eli-fundo);border-color:var(--cor-eli-borda-forte)}.eli-tabela-modal-colunas__botao--sec:focus-visible{outline:2px solid var(--cor-eli-primaria-clara);outline-offset:2px}.eli-tabela-modal-colunas__botao--prim{border:none;background:var(--cor-eli-primaria);color:#fff}.eli-tabela-modal-colunas__botao--prim:hover,.eli-tabela-modal-colunas__botao--prim:focus-visible{background:var(--cor-eli-primaria-escura)}.eli-tabela-modal-colunas__botao--prim:focus-visible{outline:2px solid var(--cor-eli-primaria-clara);outline-offset:2px}@media(max-width:720px){.eli-tabela-modal-colunas__conteudo{grid-template-columns:1fr}.eli-tabela-modal-colunas__coluna+.eli-tabela-modal-colunas__coluna{border-left:none;border-top:1px solid var(--cor-eli-borda)}}.eli-tabela-modal-colunas__overlay{position:fixed;top:0;right:0;bottom:0;left:0;background:#0f172a73;-webkit-backdrop-filter:blur(2px);backdrop-filter:blur(2px);z-index:4000;display:flex;align-items:center;justify-content:center;padding:16px}.eli-tabela-modal-colunas__modal{width:min(820px,100%);background:var(--cor-eli-superficie);border-radius:16px;border:1px solid var(--cor-eli-borda);box-shadow:0 24px 64px #0f172a38;overflow:hidden;display:flex;flex-direction:column}.eli-tabela-modal-colunas__header{display:flex;align-items:center;justify-content:space-between;padding:14px 16px;border-bottom:1px solid var(--cor-eli-borda);background:var(--cor-eli-primaria-header, #ADCC44)}.eli-tabela-modal-colunas__header-info{display:flex;align-items:center;gap:8px}.eli-tabela-modal-colunas__header-icone{color:var(--cor-eli-primaria-escura);flex-shrink:0}.eli-tabela-modal-colunas__titulo{font-size:.95rem;font-weight:600;color:var(--cor-eli-primaria-texto);margin:0}.eli-tabela-modal-colunas__fechar{display:inline-flex;align-items:center;justify-content:center;width:30px;height:30px;border-radius:8px;border:none;background:transparent;cursor:pointer;color:var(--cor-eli-primaria-escura);transition:background .2s ease}.eli-tabela-modal-colunas__fechar:hover,.eli-tabela-modal-colunas__fechar:focus-visible{background:#0f172a1a}.eli-tabela-modal-colunas__fechar:focus-visible{outline:2px solid var(--cor-eli-primaria);outline-offset:2px}.eli-tabela-modal-colunas__instrucao{display:flex;align-items:center;gap:6px;padding:8px 16px;background:var(--cor-eli-fundo);border-bottom:1px solid var(--cor-eli-borda);font-size:.78rem;color:var(--cor-eli-neutro);line-height:1.4}.eli-tabela-modal-colunas__instrucao-icone{flex-shrink:0;color:var(--cor-eli-borda-forte)}.eli-tabela-modal-colunas__conteudo{display:grid;grid-template-columns:1fr 1fr;gap:0;flex:1}.eli-tabela-modal-colunas__coluna{display:flex;flex-direction:column;padding:12px}.eli-tabela-modal-colunas__coluna+.eli-tabela-modal-colunas__coluna{border-left:1px solid var(--cor-eli-borda)}.eli-tabela-modal-colunas__coluna-cabecalho{display:flex;align-items:center;gap:6px;font-size:.75rem;font-weight:700;letter-spacing:.06em;text-transform:uppercase;padding:6px 10px;border-radius:8px;margin-bottom:8px}.eli-tabela-modal-colunas__coluna-cabecalho--visiveis{color:var(--cor-eli-primaria-escura);background:var(--cor-eli-primaria-bg)}.eli-tabela-modal-colunas__coluna-cabecalho--invisiveis{color:var(--cor-eli-neutro-escuro);background:var(--cor-eli-fundo)}.eli-tabela-modal-colunas__coluna-contador{margin-left:auto;font-size:.72rem;font-weight:700;padding:1px 7px;border-radius:9999px;background:#0f172a14;color:inherit}.eli-tabela-modal-colunas__lista{flex:1;min-height:220px;border:1.5px dashed var(--cor-eli-borda);border-radius:10px;padding:8px;position:relative;overflow:hidden;transition:border-color .2s ease,background .2s ease}.eli-tabela-modal-colunas__lista--visiveis{background:#688c0005}.eli-tabela-modal-colunas__lista--invisiveis{background:var(--cor-eli-fundo)}.eli-tabela-modal-filtro__formula-container{display:flex;flex-direction:row;align-items:center;gap:8px;margin-left:auto}.eli-tabela-modal-filtro__formula-label{font-size:.82rem;font-weight:500;color:#0f172a8c;white-space:nowrap;flex-shrink:0}.eli-tabela-modal-filtro__formula-ajuda{position:relative;display:inline-flex;align-items:center;color:#0f172a59;cursor:help;transition:color .15s}.eli-tabela-modal-filtro__formula-ajuda:hover,.eli-tabela-modal-filtro__formula-ajuda:focus-visible{color:var(--cor-eli-primaria);outline:none}.eli-tabela-modal-filtro__formula-ajuda:hover .eli-tabela-modal-filtro__formula-tooltip,.eli-tabela-modal-filtro__formula-ajuda:focus-visible .eli-tabela-modal-filtro__formula-tooltip{opacity:1;pointer-events:auto;transform:translateY(0)}.eli-tabela-modal-filtro__formula-tooltip{position:absolute;bottom:calc(100% + 10px);right:0;width:280px;background:#0f172a;color:#e2e8f0;border-radius:10px;padding:14px 16px;font-size:.8rem;line-height:1.55;z-index:100;opacity:0;pointer-events:none;transform:translateY(4px);transition:opacity .18s ease,transform .18s ease;box-shadow:0 8px 30px #00000059}.eli-tabela-modal-filtro__formula-tooltip:after{content:"";position:absolute;top:100%;right:6px;border:6px solid transparent;border-top-color:#0f172a}.eli-tabela-modal-filtro__formula-tooltip strong{font-size:.82rem;color:var(--cor-eli-fundo);display:block;margin-bottom:6px}.eli-tabela-modal-filtro__formula-tooltip p{margin:6px 0 4px;color:#94a3b8}.eli-tabela-modal-filtro__formula-tooltip ul{margin:4px 0 8px 14px;padding:0}.eli-tabela-modal-filtro__formula-tooltip li{margin-bottom:3px;color:#cbd5e1}.eli-tabela-modal-filtro__formula-tooltip code{font-family:SFMono-Regular,Consolas,Liberation Mono,Menlo,monospace;color:#7dd3fc;font-size:.78rem;background:#ffffff12;border-radius:4px;padding:1px 4px}.eli-tabela-modal-filtro__formula-input{width:220px;height:36px;border-radius:10px;border:1px solid rgba(15,23,42,.12);padding:0 10px;font-family:SFMono-Regular,Consolas,Liberation Mono,Menlo,monospace;font-size:.85rem;background:var(--cor-eli-fundo);transition:border-color .15s,background .15s;box-sizing:border-box}.eli-tabela-modal-filtro__formula-input:focus{outline:none;border-color:var(--cor-eli-primaria);background:#fff}.eli-tabela-modal-filtro__formula-tooltip-nota{margin-top:8px;opacity:.75}.eli-tabela-modal-filtro__footer{display:flex;align-items:center;gap:8px;padding:14px 20px;border-top:1px solid rgba(15,23,42,.08)}.eli-tabela-modal-filtro__footer-spacer{flex:1}.eli-tabela-modal-filtro__botao{display:inline-flex;align-items:center;gap:5px;height:36px;padding:0 16px;border-radius:10px;border:1px solid rgba(15,23,42,.12);background:#fff;cursor:pointer;font-size:.875rem;font-weight:500;transition:background .15s,color .15s,border-color .15s}.eli-tabela-modal-filtro__botao:disabled{opacity:.45;cursor:not-allowed}.eli-tabela-modal-filtro__botao--sec:hover:not(:disabled),.eli-tabela-modal-filtro__botao--sec:focus-visible{background:#0f172a0d}.eli-tabela-modal-filtro__botao--prim{border:none;background:var(--cor-eli-primaria);color:#fff}.eli-tabela-modal-filtro__botao--prim:hover:not(:disabled),.eli-tabela-modal-filtro__botao--prim:focus-visible{background:var(--cor-eli-primaria-escura)}.eli-tabela-modal-filtro__botao--perigo{color:#dc2626d9;border-color:#dc26262e;background:#fff}.eli-tabela-modal-filtro__botao--perigo:hover:not(:disabled),.eli-tabela-modal-filtro__botao--perigo:focus-visible{background:#ef44440f;border-color:#dc26264d;color:#dc2626}@media(max-width:600px){.eli-tabela-modal-filtro__lista{grid-template-columns:1fr}.eli-tabela-modal-filtro__rodape-filtros{flex-direction:column;align-items:stretch}.eli-tabela-modal-filtro__acoes{flex-wrap:wrap}}.eli-tabela-modal-filtro-enter-active,.eli-tabela-modal-filtro-leave-active{transition:opacity .2s ease}.eli-tabela-modal-filtro-enter-active .eli-tabela-modal-filtro__modal,.eli-tabela-modal-filtro-leave-active .eli-tabela-modal-filtro__modal{transition:transform .2s ease,opacity .2s ease}.eli-tabela-modal-filtro-enter-from,.eli-tabela-modal-filtro-leave-to{opacity:0}.eli-tabela-modal-filtro-enter-from .eli-tabela-modal-filtro__modal,.eli-tabela-modal-filtro-leave-to .eli-tabela-modal-filtro__modal{transform:scale(.96);opacity:0}.eli-tabela-modal-filtro__overlay{position:fixed;top:0;right:0;bottom:0;left:0;background:#0f172a59;z-index:4000;display:flex;align-items:center;justify-content:center;padding:16px}.eli-tabela-modal-filtro__modal{width:min(980px,100%);background:#fff;border-radius:14px;border:1px solid rgba(15,23,42,.1);box-shadow:0 18px 60px #0f172a40;overflow:hidden}.eli-tabela-modal-filtro__header{display:flex;align-items:center;justify-content:space-between;padding:14px 20px;border-bottom:1px solid rgba(15,23,42,.08)}.eli-tabela-modal-filtro__header-titulo{display:flex;align-items:center;gap:10px}.eli-tabela-modal-filtro__titulo{font-size:1rem;font-weight:600;margin:0;color:#0f172ae6}.eli-tabela-modal-filtro__header-icone{color:var(--cor-eli-primaria);flex-shrink:0}.eli-tabela-modal-filtro__contador{font-size:.75rem;font-weight:500;color:var(--cor-eli-primaria);background:var(--cor-eli-primaria-bg);padding:2px 8px;border-radius:10px;letter-spacing:.01em}.eli-tabela-modal-filtro__fechar{display:inline-flex;align-items:center;justify-content:center;width:34px;height:34px;border-radius:10px;border:none;background:transparent;cursor:pointer;color:#0f172a8c;transition:background .15s,color .15s}.eli-tabela-modal-filtro__fechar:hover,.eli-tabela-modal-filtro__fechar:focus-visible{background:#0f172a0f;color:#0f172ae6}.eli-tabela-modal-filtro__conteudo{padding:20px}.eli-tabela-modal-filtro__vazio{opacity:.65;font-size:.85rem;padding:12px 0 4px}.eli-tabela-modal-filtro__estado-vazio{display:flex;flex-direction:column;align-items:center;gap:10px;padding:28px 16px;color:#0f172a59;border:1px dashed rgba(15,23,42,.12);border-radius:10px;background:#0f172a04}.eli-tabela-modal-filtro__estado-vazio span{font-size:.85rem;font-weight:500}.eli-tabela-modal-filtro__lista{display:grid;grid-template-columns:repeat(2,1fr);gap:8px}.eli-tabela-modal-filtro__linha{display:flex;flex-direction:column;gap:4px;padding:10px 12px;border:1px solid rgba(15,23,42,.08);border-radius:10px;background:#0f172a04;transition:border-color .15s}.eli-tabela-modal-filtro__linha:hover{border-color:var(--cor-eli-primaria-clara)}.eli-tabela-modal-filtro__linha-header{display:flex;align-items:center;gap:8px}.eli-tabela-modal-filtro__rotulo-filtro{font-size:.82rem;font-weight:500;color:#0f172aa6;flex:1;min-width:0}.eli-tabela-modal-filtro__id-badge{display:inline-flex;align-items:center;justify-content:center;width:32px;height:24px;border-radius:6px;background:var(--cor-eli-primaria-bg);color:var(--cor-eli-primaria);font-family:SFMono-Regular,Consolas,Liberation Mono,Menlo,monospace;font-size:.72rem;font-weight:600;letter-spacing:.01em;cursor:default;-webkit-user-select:none;user-select:none;flex-shrink:0}.eli-tabela-modal-filtro__entrada{min-width:0}.eli-tabela-modal-filtro__remover{display:inline-flex;align-items:center;justify-content:center;width:26px;height:26px;border-radius:8px;border:none;background:transparent;cursor:pointer;color:#0f172a59;transition:background .15s,color .15s;margin-left:auto;flex-shrink:0}.eli-tabela-modal-filtro__remover:hover,.eli-tabela-modal-filtro__remover:focus-visible{background:#ef444414;color:#dc2626e6;border-color:#ef444433}.eli-tabela-modal-filtro__rodape-filtros{margin-top:14px;padding-top:14px;border-top:1px solid rgba(15,23,42,.07);display:flex;gap:12px;align-items:flex-end}.eli-tabela-modal-filtro__acoes{display:flex;gap:8px;align-items:center;flex-shrink:0}.eli-tabela-modal-filtro__select{height:36px;border-radius:10px;border:1px solid rgba(15,23,42,.12);padding:0 10px;background:#fff;font-size:.875rem;color:#0f172ad9;transition:border-color .15s}.eli-tabela-modal-filtro__select:focus{outline:none;border-color:var(--cor-eli-primaria)}.eli-tabela__paginacao{display:flex;align-items:center;justify-content:flex-end;gap:12px;margin-top:12px;flex-wrap:wrap}.eli-tabela__pagina-botao{display:inline-flex;align-items:center;justify-content:center;gap:6px;padding:6px 14px;border-radius:9999px;border:1px solid rgba(15,23,42,.12);background:var(--cor-eli-superficie);font-size:.875rem;font-weight:500;color:#0f172ad1;cursor:pointer;transition:background-color .2s ease,border-color .2s ease,color .2s ease}.eli-tabela__pagina-botao:hover,.eli-tabela__pagina-botao:focus-visible{background-color:var(--cor-eli-primaria-bg);border-color:var(--cor-eli-primaria-clara);color:var(--cor-eli-primaria-escura)}.eli-tabela__pagina-botao:focus-visible{outline:2px solid var(--cor-eli-primaria-clara);outline-offset:2px}.eli-tabela__pagina-botao:disabled{cursor:default;opacity:.5;background:#94a3b814;border-color:#94a3b82e;color:#475569bf}.eli-tabela__pagina-botao--ativo{background:var(--cor-eli-primaria-bg);border-color:var(--cor-eli-primaria);color:var(--cor-eli-primaria-escura)}.eli-tabela__pagina-ellipsis{display:inline-flex;align-items:center;justify-content:center;width:32px;color:var(--cor-eli-neutro);font-size:.9rem}.eli-tabela__acao-inferior{display:inline-flex;align-items:center;gap:6px;height:34px;padding:0 14px;border-radius:8px;border:1px solid var(--cor-eli-primaria);background:var(--cor-eli-superficie);color:var(--cor-eli-primaria);font-size:.875rem;font-weight:500;line-height:1;cursor:pointer;transition:background-color .2s ease,color .2s ease}.eli-tabela__acao-inferior:hover,.eli-tabela__acao-inferior:focus-visible{background-color:var(--cor-eli-primaria-bg)}.eli-tabela__acao-inferior:focus-visible{outline:2px solid var(--cor-eli-primaria);outline-offset:2px}.eli-fb-painel{position:fixed;bottom:68px;right:24px;z-index:99999;width:360px;background:#fff;border-radius:14px;box-shadow:0 12px 40px #00000026,0 2px 8px #00000014;overflow:hidden;animation:eliFbSlideUp .25s ease;font-family:Inter,Segoe UI,system-ui,sans-serif}.eli-fb-painel-header{background:linear-gradient(135deg,#c62828,#e53935);color:#fff;padding:14px 18px;display:flex;align-items:center;justify-content:space-between}.eli-fb-painel-header h3{margin:0;font-size:14px;font-weight:700;letter-spacing:.02em}.eli-fb-painel-fechar{background:#ffffff26;border:none;color:#fff;width:28px;height:28px;border-radius:50%;cursor:pointer;display:flex;align-items:center;justify-content:center;font-size:14px;transition:background .15s}.eli-fb-painel-fechar:hover{background:#ffffff4d}.eli-fb-painel-corpo{padding:16px 18px}.eli-fb-el-info{background:#f5f5f5;border-radius:8px;padding:10px 12px;margin-bottom:14px;font-size:11px;color:#616161;line-height:1.6}.eli-fb-el-info code{background:#e0e0e0;padding:1px 5px;border-radius:3px;font-size:10.5px;font-family:SFMono-Regular,Consolas,monospace;color:#333}.eli-fb-el-info strong{color:#424242}.eli-fb-textarea{width:100%;min-height:80px;max-height:160px;border:1.5px solid #E0E0E0;border-radius:8px;padding:10px 12px;font-size:13px;font-family:Inter,Segoe UI,system-ui,sans-serif;resize:vertical;outline:none;transition:border-color .15s;color:#333;box-sizing:border-box}.eli-fb-textarea:focus{border-color:#c62828;box-shadow:0 0 0 3px #c6282814}.eli-fb-textarea::placeholder{color:#bdbdbd}.eli-fb-painel-acoes{display:flex;gap:8px;margin-top:12px;justify-content:flex-end}.eli-fb-btn-salvar{background:linear-gradient(135deg,#c62828,#e53935);color:#fff;border:none;border-radius:8px;padding:8px 18px;font-size:13px;font-weight:600;cursor:pointer;transition:all .15s}.eli-fb-btn-salvar:hover{transform:translateY(-1px);box-shadow:0 3px 10px #c628284d}.eli-fb-btn-salvar:disabled{opacity:.5;cursor:not-allowed;transform:none;box-shadow:none}.eli-fb-btn-cancelar{background:#f5f5f5;color:#616161;border:1px solid #E0E0E0;border-radius:8px;padding:8px 14px;font-size:13px;font-weight:500;cursor:pointer;transition:background .15s}.eli-fb-btn-cancelar:hover{background:#eee}.eli-feedback-fab{position:fixed;bottom:24px;right:24px;z-index:99999;display:flex;flex-direction:column;align-items:flex-end;gap:8px;font-family:Inter,Segoe UI,system-ui,sans-serif}.eli-fb-botao-principal{width:34px;height:34px;border-radius:50%;border:none;background:linear-gradient(135deg,#c62828,#e53935);color:#fff;font-size:14px;cursor:pointer;box-shadow:0 2px 8px #c6282859,0 1px 3px #0000001f;transition:all .2s ease;display:flex;align-items:center;justify-content:center;position:relative}.eli-fb-botao-principal:hover{transform:scale(1.08);box-shadow:0 6px 20px #c6282873,0 2px 6px #00000026}.eli-fb-botao-principal:active{transform:scale(.95)}.eli-fb-badge{position:absolute;top:-5px;right:-5px;background:#1565c0;color:#fff;font-size:9px;font-weight:700;min-width:16px;height:16px;border-radius:8px;display:flex;align-items:center;justify-content:center;padding:0 3px;line-height:1;box-shadow:0 1px 4px #0003}.eli-fb-acoes{display:flex;flex-direction:column;align-items:flex-end;gap:6px;animation:eliFbSlideUp .2s ease}.eli-fb-botao-ico{width:34px;height:34px;border-radius:50%;border:none;font-size:14px;cursor:pointer;display:flex;align-items:center;justify-content:center;transition:all .15s ease;box-shadow:0 2px 8px #00000026}.eli-fb-botao-ico:hover{transform:scale(1.1);box-shadow:0 3px 12px #00000038}.eli-fb-botao-exportar{background:#1565c0;color:#fff}.eli-fb-botao-feedback{background:linear-gradient(135deg,#c62828,#e53935);color:#fff}.eli-fb-botao-copiar{background:#2e7d32;color:#fff}.eli-fb-botao-limpar{background:#424242;color:#fff}.eli-fb-tooltip-selecao{position:absolute;bottom:14px;right:64px;background:linear-gradient(135deg,#c62828,#b71c1c);color:#fff;padding:8px 14px;border-radius:10px;font-size:12px;font-weight:500;white-space:nowrap;display:flex;flex-direction:column;gap:2px;box-shadow:0 4px 16px #c6282859;animation:eliFbSlideUp .2s ease;pointer-events:none}.eli-fb-tooltip-selecao:after{content:"";position:absolute;right:-6px;top:50%;transform:translateY(-50%);border:6px solid transparent;border-left-color:#b71c1c;border-right:none}.eli-fb-tooltip-esc{font-size:10px;opacity:.7}.eli-fb-tooltip-esc kbd{background:#fff3;border-radius:3px;padding:1px 5px;font-size:10px;font-weight:700;font-family:inherit}@keyframes eliFbSlideUp{0%{opacity:0;transform:translateY(12px)}to{opacity:1;transform:translateY(0)}}@keyframes eliFbSlideDown{0%{opacity:0;transform:translateY(-100%)}to{opacity:1;transform:translateY(0)}}')),document.head.appendChild(e)}}catch(a){console.error("vite-plugin-css-injected-by-js",a)}})(); +import { defineComponent as Q, openBlock as $, createBlock as re, mergeProps as je, withCtx as ue, renderSlot as Qe, computed as z, resolveComponent as Y, createVNode as M, createElementVNode as p, createTextVNode as ne, toDisplayString as R, createCommentVNode as K, ref as B, watch as be, onMounted as We, onBeforeUnmount as wt, createElementBlock as S, normalizeStyle as st, nextTick as _r, Teleport as yr, Transition as da, withModifiers as ce, withKeys as ut, Fragment as ge, renderList as $e, normalizeClass as Ue, createStaticVNode as Nm, createSlots as Pm, inject as Am, h as mr, resolveDynamicComponent as Re, normalizeProps as Cm, withDirectives as dn, vModelText as kr, onUnmounted as Zm, TransitionGroup as wo, vModelSelect as Mm } from "vue"; +import { VBtn as fr } from "vuetify/components/VBtn"; +import { VBadge as Lm } from "vuetify/components/VBadge"; +import { VCard as ma, VCardTitle as fa, VCardText as pa, VCardActions as va } from "vuetify/components/VCard"; +import { VSwitch as Fm, VTextarea as Rm, VSelect as ga, VChip as Bm } from "vuetify/components"; +import { VSwitch as Vm } from "vuetify/components/VSwitch"; +import Ze from "leaflet"; +import { VIcon as Io } from "vuetify/components/VIcon"; +import { VTextField as mn } from "vuetify/components/VTextField"; +import { VTextarea as Jm } from "vuetify/components/VTextarea"; +import { VSelect as ha } from "vuetify/components/VSelect"; +import { VChip as qm } from "vuetify/components/VChip"; +import { VContainer as Gm } from "vuetify/components/VGrid"; +const Km = Q({ name: "EliBotao", inheritAttrs: !1, props: { @@ -43,8 +43,8 @@ const qm = Q({ r[o] = t; return r; }; -function Gm(e, n, r, o, t, i) { - return _(), re(mr, we({ +function Wm(e, n, r, o, t, i) { + return $(), re(fr, je({ color: e.color, variant: e.variant, size: e.size, @@ -52,15 +52,15 @@ function Gm(e, n, r, o, t, i) { loading: e.loading }, e.$attrs, { class: "eli-botao text-none pt-1" }), { default: ue(() => [ - He(e.$slots, "default") + Qe(e.$slots, "default") ]), _: 3 }, 16, ["color", "variant", "size", "disabled", "loading"]); } -const ha = /* @__PURE__ */ ee(qm, [["render", Gm]]), So = { +const ba = /* @__PURE__ */ ee(Km, [["render", Wm]]), zo = { suave: "4px", pill: "10px" -}, Wm = Q({ +}, Xm = Q({ name: "EliBadge", inheritAttrs: !1, props: { @@ -99,14 +99,14 @@ const ha = /* @__PURE__ */ ee(qm, [["render", Gm]]), So = { } }, setup(e) { - const n = j(() => e.radius in So ? So[e.radius] : e.radius), r = j(() => e.dot || e.badge !== void 0 ? e.visible : !1), o = j(() => ({ + const n = z(() => e.radius in zo ? zo[e.radius] : e.radius), r = z(() => e.dot || e.badge !== void 0 ? e.visible : !1), o = z(() => ({ "--eli-badge-radius": n.value })); return { showBadge: r, badgeStyle: o }; } }); -function Km(e, n, r, o, t, i) { - return e.showBadge ? (_(), re(Zm, we({ +function Hm(e, n, r, o, t, i) { + return e.showBadge ? ($(), re(Lm, je({ key: 0, color: e.color }, e.$attrs, { @@ -119,14 +119,14 @@ function Km(e, n, r, o, t, i) { class: "eli-badge" }), { default: ue(() => [ - He(e.$slots, "default") + Qe(e.$slots, "default") ]), _: 3 - }, 16, ["color", "location", "offset-x", "offset-y", "dot", "content", "style"])) : He(e.$slots, "default", { key: 1 }); + }, 16, ["color", "location", "offset-x", "offset-y", "dot", "content", "style"])) : Qe(e.$slots, "default", { key: 1 }); } -const _r = /* @__PURE__ */ ee(Wm, [["render", Km]]), Xm = Q({ +const Sr = /* @__PURE__ */ ee(Xm, [["render", Hm]]), Ym = Q({ name: "EliCartao", - components: { EliBadge: _r }, + components: { EliBadge: Sr }, inheritAttrs: !1, props: { /** Título de fallback caso o slot `titulo` não seja usado. */ @@ -153,7 +153,7 @@ const _r = /* @__PURE__ */ ee(Wm, [["render", Km]]), Xm = Q({ clicar: (e) => !0 }, setup(e, { emit: n }) { - const r = j(() => e.status), o = j(() => { + const r = z(() => e.status), o = z(() => { switch (e.status) { case "novo": return "primary"; @@ -164,7 +164,7 @@ const _r = /* @__PURE__ */ ee(Wm, [["render", Km]]), Xm = Q({ case "cancelado": return "error"; } - }), t = j(() => `eli-cartao--${e.status}`); + }), t = z(() => `eli-cartao--${e.status}`); function i() { n("clicar", e.status); } @@ -175,22 +175,22 @@ const _r = /* @__PURE__ */ ee(Wm, [["render", Km]]), Xm = Q({ onClick: i }; } -}), Ym = { class: "eli-cartao__titulo-texto" }, Hm = { class: "eli-cartao__status" }; -function Qm(e, n, r, o, t, i) { - const a = H("EliBadge"); - return _(), re(da, we({ +}), Qm = { class: "eli-cartao__titulo-texto" }, ef = { class: "eli-cartao__status" }; +function tf(e, n, r, o, t, i) { + const a = Y("EliBadge"); + return $(), re(ma, je({ class: ["eli-cartao", e.classeStatus], variant: e.variant }, e.$attrs), { default: ue(() => [ - M(ma, { class: "eli-cartao__titulo" }, { + M(fa, { class: "eli-cartao__titulo" }, { default: ue(() => [ - p("div", Ym, [ - He(e.$slots, "titulo", {}, () => [ - ne(V(e.titulo), 1) + p("div", Qm, [ + Qe(e.$slots, "titulo", {}, () => [ + ne(R(e.titulo), 1) ]) ]), - p("div", Hm, [ + p("div", ef, [ M(a, { badge: e.rotuloStatus, radius: "pill", @@ -205,28 +205,28 @@ function Qm(e, n, r, o, t, i) { ]), _: 3 }), - M(fa, { class: "eli-cartao__conteudo" }, { + M(pa, { class: "eli-cartao__conteudo" }, { default: ue(() => [ - He(e.$slots, "default") + Qe(e.$slots, "default") ]), _: 3 }), - e.$slots.acoes ? (_(), re(va, { + e.$slots.acoes ? ($(), re(va, { key: 0, class: "eli-cartao__acoes" }, { default: ue(() => [ - He(e.$slots, "acoes") + Qe(e.$slots, "acoes") ]), _: 3 - })) : X("", !0) + })) : K("", !0) ]), _: 3 }, 16, ["variant", "class"]); } -const ef = /* @__PURE__ */ ee(Xm, [["render", Qm]]), tf = Q({ +const nf = /* @__PURE__ */ ee(Ym, [["render", tf]]), rf = Q({ name: "EliEntradaConfirmacao", - components: { VSwitch: Mm }, + components: { VSwitch: Fm }, inheritAttrs: !1, props: { value: { @@ -246,21 +246,21 @@ const ef = /* @__PURE__ */ ee(Xm, [["render", Qm]]), tf = Q({ blur: () => !0 }, setup(e, { attrs: n, emit: r }) { - const o = j({ + const o = z({ get: () => e.value, set: (i) => { r("update:value", i), r("input", i), r("change", i); } - }), t = j(() => { + }), t = z(() => { var i, a, l; return o.value && ((i = e.opcoes) != null && i.rotuloAtivo) ? e.opcoes.rotuloAtivo : !o.value && ((a = e.opcoes) != null && a.rotuloInativo) ? e.opcoes.rotuloInativo : ((l = e.opcoes) == null ? void 0 : l.rotulo) ?? ""; }); return { attrs: n, emit: r, localValue: o, rotuloExibido: t }; } }); -function nf(e, n, r, o, t, i) { +function of(e, n, r, o, t, i) { var a, l, s, u; - return _(), re(Rm, we({ + return $(), re(Vm, je({ modelValue: e.localValue, "onUpdate:modelValue": n[0] || (n[0] = (d) => e.localValue = d), label: e.rotuloExibido, @@ -273,20 +273,20 @@ function nf(e, n, r, o, t, i) { onBlur: n[2] || (n[2] = () => e.emit("blur")) }), null, 16, ["modelValue", "label", "color", "disabled", "density"]); } -const rf = /* @__PURE__ */ ee(tf, [["render", nf]]), $a = "https://paiol.idz.one/geo", of = 7, af = 10, lf = 13, Io = /* @__PURE__ */ new Map(); -async function ba(e) { - const n = Io.get(e); +const af = /* @__PURE__ */ ee(rf, [["render", of]]), $a = "https://paiol.idz.one/geo", lf = 7, uf = 10, sf = 13, Do = /* @__PURE__ */ new Map(); +async function _a(e) { + const n = Do.get(e); if (n) return n; try { const r = await fetch(e); if (!r.ok) return null; const o = await r.json(); - return Io.set(e, o), o; + return Do.set(e, o), o; } catch { return null; } } -function uf() { +function cf() { return { color: "#1565C0", weight: 1.5, @@ -295,7 +295,7 @@ function uf() { dashArray: "4 4" }; } -function sf() { +function df() { return { color: "#78909C", weight: 0.8, @@ -303,17 +303,17 @@ function sf() { fillOpacity: 0.03 }; } -function cf(e) { - return e >= lf ? "municipios_uhd" : e >= af ? "municipios_hd" : "municipios"; +function mf(e) { + return e >= sf ? "municipios_uhd" : e >= uf ? "municipios_hd" : "municipios"; } -function df(e, n) { - !n.estados && !n.municipios || mf(e, n); +function ff(e, n) { + !n.estados && !n.municipios || pf(e, n); } -async function mf(e, n) { - const r = await ba(`${$a}/estados.geojson`); +async function pf(e, n) { + const r = await _a(`${$a}/estados.geojson`); if (!r) return; - const o = [], t = Ae.geoJSON(r, { - style: uf, + const o = [], t = Ze.geoJSON(r, { + style: cf, onEachFeature: (i, a) => { var s; const l = String(((s = i.properties) == null ? void 0 : s.codarea) ?? ""); @@ -323,13 +323,13 @@ async function mf(e, n) { }); } }); - n.estados && t.addTo(e), n.municipios && ff(e, o); + n.estados && t.addTo(e), n.municipios && vf(e, o); } -function ff(e, n) { +function vf(e, n) { const r = { - municipios: Ae.layerGroup(), - municipios_hd: Ae.layerGroup(), - municipios_uhd: Ae.layerGroup() + municipios: Ze.layerGroup(), + municipios_hd: Ze.layerGroup(), + municipios_uhd: Ze.layerGroup() }, o = { municipios: /* @__PURE__ */ new Set(), municipios_hd: /* @__PURE__ */ new Set(), @@ -338,45 +338,45 @@ function ff(e, n) { let t = null; const i = () => { const a = e.getZoom(); - if (a < of) { + if (a < lf) { t && e.hasLayer(r[t]) && e.removeLayer(r[t]), t = null; return; } - const l = cf(a); + const l = mf(a); l !== t && (t && e.hasLayer(r[t]) && e.removeLayer(r[t]), r[l].addTo(e), t = l); const s = e.getBounds(); for (const u of n) - o[l].has(u.codigo) || s.intersects(u.bounds) && (o[l].add(u.codigo), vf(l, u.codigo, r[l])); + o[l].has(u.codigo) || s.intersects(u.bounds) && (o[l].add(u.codigo), gf(l, u.codigo, r[l])); }; e.on("moveend", i), e.on("zoomend", i), i(); } -async function vf(e, n, r) { - const o = await ba(`${$a}/${e}/${n}.geojson`); - o && r.addLayer(Ae.geoJSON(o, { style: sf })); +async function gf(e, n, r) { + const o = await _a(`${$a}/${e}/${n}.geojson`); + o && r.addLayer(Ze.geoJSON(o, { style: df })); } -const nn = { +const rn = { latitude: -15.7801, longitude: -47.9292 -}, pf = 4, gf = 300; -function hf(e, n) { +}, hf = 4, bf = 300; +function $f(e, n) { return e >= -90 && e <= 90 && n >= -180 && n <= 180; } -function wo(e) { +function jo(e) { return e.toFixed(6).replace(".", ","); } -function zo(e) { +function Oo(e) { if (typeof e == "number") return Number.isNaN(e) ? null : e; const n = e.replace(",", "."), r = Number.parseFloat(n); return Number.isNaN(r) ? null : r; } -async function Do() { +async function Eo() { try { - return await $f(); + return await _f(); } catch { - return await bf(); + return await yf(); } } -function $f() { +function _f() { return new Promise((e, n) => { if (!navigator.geolocation) return n(new Error("Geolocation indisponível")); navigator.geolocation.getCurrentPosition( @@ -386,126 +386,126 @@ function $f() { ); }); } -async function bf() { +async function yf() { const e = await fetch("https://ipapi.co/json/"); if (!e.ok) throw new Error(`GeoIP falhou: ${e.status}`); const n = await e.json(); return { latitude: n.latitude, longitude: n.longitude }; } -function _f({ value: e, opcoes: n, emit: r, mapaRef: o }) { +function kf({ value: e, opcoes: n, emit: r, mapaRef: o }) { const t = B(!1); let i = null, a = null; - const l = j(() => { + const l = z(() => { var h; - return ((h = n()) == null ? void 0 : h.alturaMapa) ?? gf; - }), s = j(() => { + return ((h = n()) == null ? void 0 : h.alturaMapa) ?? bf; + }), s = z(() => { var h; - return ((h = n()) == null ? void 0 : h.zoom) ?? pf; - }), u = j(() => { + return ((h = n()) == null ? void 0 : h.zoom) ?? hf; + }), u = z(() => { var h; return !!((h = n()) != null && h.apenasLeitura); - }), d = j(() => e() != null), c = j(() => { + }), d = z(() => e() != null), c = z(() => { const h = e(); - return h ? wo(h.latitude) : ""; - }), m = j(() => { + return h ? jo(h.latitude) : ""; + }), m = z(() => { const h = e(); - return h ? wo(h.longitude) : ""; + return h ? jo(h.longitude) : ""; }); - function f(h, $) { - if (!hf(h, $)) return; + function f(h, b) { + if (!$f(h, b)) return; const I = { formato: "decimal", datum: "EPSG:4326", latitude: Number.parseFloat(h.toFixed(6)), - longitude: Number.parseFloat($.toFixed(6)) + longitude: Number.parseFloat(b.toFixed(6)) }; r("update:value", I), r("input", I), r("change", I); } function g() { - r("update:value", null), r("input", null), r("change", null), b(); + r("update:value", null), r("input", null), r("change", null), y(); } - function b() { + function y() { a && i && (i.removeLayer(a), a = null); } - function E(h, $) { - i && (a = Ae.marker([h, $], { draggable: !u.value }).addTo(i), a.on("dragend", () => { + function N(h, b) { + i && (a = Ze.marker([h, b], { draggable: !u.value }).addTo(i), a.on("dragend", () => { if (!a) return; const I = a.getLatLng(); f(I.lat, I.lng); - }), i.setView([h, $], i.getZoom())); + }), i.setView([h, b], i.getZoom())); } - function w(h) { + function x(h) { var I; - const $ = zo(h); - $ !== null && f($, ((I = e()) == null ? void 0 : I.longitude) ?? nn.longitude); + const b = Oo(h); + b !== null && f(b, ((I = e()) == null ? void 0 : I.longitude) ?? rn.longitude); } - function z(h) { + function D(h) { var I; - const $ = zo(h); - $ !== null && f(((I = e()) == null ? void 0 : I.latitude) ?? nn.latitude, $); + const b = Oo(h); + b !== null && f(((I = e()) == null ? void 0 : I.latitude) ?? rn.latitude, b); } - function L(h, $) { + function L(h, b) { if (!i) return; if (!a) { - E(h, $); + N(h, b); return; } const I = a.getLatLng(); - I.lat === h && I.lng === $ || (a.setLatLng([h, $]), i.setView([h, $], i.getZoom())); + I.lat === h && I.lng === b || (a.setLatLng([h, b]), i.setView([h, b], i.getZoom())); } async function A() { t.value = !0; try { - const h = await Do(); + const h = await Eo(); f(h.latitude, h.longitude); } finally { t.value = !1; } } async function C() { - var O; + var E; if (!o.value) return; - const h = e(), $ = h != null; - let I, q, D = s.value; - if ($) - I = h.latitude, q = h.longitude, D = Math.max(D, 13); + const h = e(), b = h != null; + let I, G, j = s.value; + if (b) + I = h.latitude, G = h.longitude, j = Math.max(j, 13); else try { - const x = await Do(); - I = x.latitude, q = x.longitude, D = 13; + const O = await Eo(); + I = O.latitude, G = O.longitude, j = 13; } catch { - I = nn.latitude, q = nn.longitude; + I = rn.latitude, G = rn.longitude; } - i = Ae.map(o.value).setView([I, q], D); - const Z = Ae.tileLayer("https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png", { + i = Ze.map(o.value).setView([I, G], j); + const Z = Ze.tileLayer("https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png", { attribution: "© OpenStreetMap", maxZoom: 19 - }), ge = Ae.tileLayer( + }), pe = Ze.tileLayer( "https://server.arcgisonline.com/ArcGIS/rest/services/World_Imagery/MapServer/tile/{z}/{y}/{x}", { attribution: "© Esri", maxZoom: 19 } ); - Z.addTo(i), Ae.control.layers({ Mapa: Z, Satélite: ge }).addTo(i), $ && E(h.latitude, h.longitude), i.on("click", (x) => { - u.value || f(x.latlng.lat, x.latlng.lng); + Z.addTo(i), Ze.control.layers({ Mapa: Z, Satélite: pe }).addTo(i), b && N(h.latitude, h.longitude), i.on("click", (O) => { + u.value || f(O.latlng.lat, O.latlng.lng); }); - const Pe = (O = n()) == null ? void 0 : O.camadas; - Pe && df(i, Pe); + const Ie = (E = n()) == null ? void 0 : E.camadas; + Ie && ff(i, Ie); } - return _e( + return be( e, (h) => { if (!h) { - b(); + y(); return; } L(h.latitude, h.longitude); }, { deep: !0 } - ), rt(() => { + ), We(() => { if (C(), o.value) { const h = new ResizeObserver(() => i == null ? void 0 : i.invalidateSize()); - h.observe(o.value), cn(() => h.disconnect()); + h.observe(o.value), wt(() => h.disconnect()); } - }), cn(() => { + }), wt(() => { i && (i.remove(), i = null, a = null); }), { alturaEfetiva: l, @@ -513,13 +513,13 @@ function _f({ value: e, opcoes: n, emit: r, mapaRef: o }) { possuiValor: d, latDisplay: c, lngDisplay: m, - onLatChange: w, - onLngChange: z, + onLatChange: x, + onLngChange: D, usarMinhaLocalizacao: A, limpar: g }; } -const yf = Q({ +const Sf = Q({ name: "EliEntradaCoordenadas", inheritAttrs: !1, props: { @@ -540,7 +540,7 @@ const yf = Q({ blur: () => !0 }, setup(e, { attrs: n, emit: r }) { - const o = B(null), t = _f({ + const o = B(null), t = kf({ value: () => e.value, opcoes: () => e.opcoes, emit: r, @@ -548,26 +548,26 @@ const yf = Q({ }); return { attrs: n, mapaRef: o, ...t }; } -}), kf = { class: "eli-coordenadas" }, Sf = { +}), wf = { class: "eli-coordenadas" }, If = { key: 0, class: "v-label", style: { "margin-bottom": "4px" } -}, If = { +}, zf = { ref: "mapaRef", style: { width: "100%", height: "100%" } -}, wf = { class: "eli-coordenadas__campos" }; -function zf(e, n, r, o, t, i) { +}, Df = { class: "eli-coordenadas__campos" }; +function jf(e, n, r, o, t, i) { var a, l, s, u, d; - return _(), S("div", kf, [ - (a = e.opcoes) != null && a.rotulo ? (_(), S("div", Sf, V(e.opcoes.rotulo), 1)) : X("", !0), + return $(), S("div", wf, [ + (a = e.opcoes) != null && a.rotulo ? ($(), S("div", If, R(e.opcoes.rotulo), 1)) : K("", !0), p("div", { class: "eli-coordenadas__mapa-container", - style: kt({ height: `${e.alturaEfetiva}px` }) + style: st({ height: `${e.alturaEfetiva}px` }) }, [ - p("div", If, null, 512) + p("div", zf, null, 512) ], 4), - p("div", wf, [ - M(St, we({ + p("div", Df, [ + M(mn, je({ "model-value": e.latDisplay, label: "Latitude", type: "text", @@ -578,7 +578,7 @@ function zf(e, n, r, o, t, i) { class: "eli-coordenadas__campo", "hide-details": "" }, e.attrs, { "onUpdate:modelValue": e.onLatChange }), null, 16, ["model-value", "readonly", "onUpdate:modelValue"]), - M(St, we({ + M(mn, je({ "model-value": e.lngDisplay, label: "Longitude", type: "text", @@ -589,7 +589,7 @@ function zf(e, n, r, o, t, i) { class: "eli-coordenadas__campo", "hide-details": "" }, e.attrs, { "onUpdate:modelValue": e.onLngChange }), null, 16, ["model-value", "readonly", "onUpdate:modelValue"]), - M(mr, { + M(fr, { icon: "", variant: "tonal", color: "primary", @@ -600,7 +600,7 @@ function zf(e, n, r, o, t, i) { onClick: e.usarMinhaLocalizacao }, { default: ue(() => [ - M(ko, null, { + M(Io, null, { default: ue(() => [...n[0] || (n[0] = [ ne("mdi-crosshairs-gps", -1) ])]), @@ -609,7 +609,7 @@ function zf(e, n, r, o, t, i) { ]), _: 1 }, 8, ["loading", "disabled", "onClick"]), - e.possuiValor && !((d = e.opcoes) != null && d.apenasLeitura) ? (_(), re(mr, { + e.possuiValor && !((d = e.opcoes) != null && d.apenasLeitura) ? ($(), re(fr, { key: 0, icon: "", variant: "tonal", @@ -619,7 +619,7 @@ function zf(e, n, r, o, t, i) { onClick: e.limpar }, { default: ue(() => [ - M(ko, null, { + M(Io, null, { default: ue(() => [...n[1] || (n[1] = [ ne("mdi-close", -1) ])]), @@ -627,119 +627,119 @@ function zf(e, n, r, o, t, i) { }) ]), _: 1 - }, 8, ["onClick"])) : X("", !0) + }, 8, ["onClick"])) : K("", !0) ]) ]); } -const Df = /* @__PURE__ */ ee(yf, [["render", zf]]); -function _a(e) { +const Of = /* @__PURE__ */ ee(Sf, [["render", jf]]); +function ya(e) { return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e; } -var ln = { exports: {} }, jf = ln.exports, jo; -function ya() { - return jo || (jo = 1, (function(e, n) { +var un = { exports: {} }, Ef = un.exports, xo; +function ka() { + return xo || (xo = 1, (function(e, n) { (function(r, o) { e.exports = o(); - })(jf, (function() { - var r = 1e3, o = 6e4, t = 36e5, i = "millisecond", a = "second", l = "minute", s = "hour", u = "day", d = "week", c = "month", m = "quarter", f = "year", g = "date", b = "Invalid Date", E = /^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/, w = /\[([^\]]+)]|YYYY|YY|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g, z = { name: "en", weekdays: "Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"), months: "January_February_March_April_May_June_July_August_September_October_November_December".split("_"), ordinal: function(O) { - var x = ["th", "st", "nd", "rd"], U = O % 100; - return "[" + O + (x[(U - 20) % 10] || x[U] || x[0]) + "]"; - } }, L = function(O, x, U) { - var N = String(O); - return !N || N.length >= x ? O : "" + Array(x + 1 - N.length).join(U) + O; - }, A = { s: L, z: function(O) { - var x = -O.utcOffset(), U = Math.abs(x), N = Math.floor(U / 60), P = U % 60; - return (x <= 0 ? "+" : "-") + L(N, 2, "0") + ":" + L(P, 2, "0"); - }, m: function O(x, U) { - if (x.date() < U.date()) return -O(U, x); - var N = 12 * (U.year() - x.year()) + (U.month() - x.month()), P = x.clone().add(N, c), J = U - P < 0, G = x.clone().add(N + (J ? -1 : 1), c); - return +(-(N + (U - P) / (J ? P - G : G - P)) || 0); - }, a: function(O) { - return O < 0 ? Math.ceil(O) || 0 : Math.floor(O); - }, p: function(O) { - return { M: c, y: f, w: d, d: u, D: g, h: s, m: l, s: a, ms: i, Q: m }[O] || String(O || "").toLowerCase().replace(/s$/, ""); - }, u: function(O) { - return O === void 0; + })(Ef, (function() { + var r = 1e3, o = 6e4, t = 36e5, i = "millisecond", a = "second", l = "minute", s = "hour", u = "day", d = "week", c = "month", m = "quarter", f = "year", g = "date", y = "Invalid Date", N = /^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/, x = /\[([^\]]+)]|YYYY|YY|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g, D = { name: "en", weekdays: "Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"), months: "January_February_March_April_May_June_July_August_September_October_November_December".split("_"), ordinal: function(E) { + var O = ["th", "st", "nd", "rd"], k = E % 100; + return "[" + E + (O[(k - 20) % 10] || O[k] || O[0]) + "]"; + } }, L = function(E, O, k) { + var U = String(E); + return !U || U.length >= O ? E : "" + Array(O + 1 - U.length).join(k) + E; + }, A = { s: L, z: function(E) { + var O = -E.utcOffset(), k = Math.abs(O), U = Math.floor(k / 60), T = k % 60; + return (O <= 0 ? "+" : "-") + L(U, 2, "0") + ":" + L(T, 2, "0"); + }, m: function E(O, k) { + if (O.date() < k.date()) return -E(k, O); + var U = 12 * (k.year() - O.year()) + (k.month() - O.month()), T = O.clone().add(U, c), F = k - T < 0, q = O.clone().add(U + (F ? -1 : 1), c); + return +(-(U + (k - T) / (F ? T - q : q - T)) || 0); + }, a: function(E) { + return E < 0 ? Math.ceil(E) || 0 : Math.floor(E); + }, p: function(E) { + return { M: c, y: f, w: d, d: u, D: g, h: s, m: l, s: a, ms: i, Q: m }[E] || String(E || "").toLowerCase().replace(/s$/, ""); + }, u: function(E) { + return E === void 0; } }, C = "en", h = {}; - h[C] = z; - var $ = "$isDayjsObject", I = function(O) { - return O instanceof ge || !(!O || !O[$]); - }, q = function O(x, U, N) { - var P; - if (!x) return C; - if (typeof x == "string") { - var J = x.toLowerCase(); - h[J] && (P = J), U && (h[J] = U, P = J); - var G = x.split("-"); - if (!P && G.length > 1) return O(G[0]); + h[C] = D; + var b = "$isDayjsObject", I = function(E) { + return E instanceof pe || !(!E || !E[b]); + }, G = function E(O, k, U) { + var T; + if (!O) return C; + if (typeof O == "string") { + var F = O.toLowerCase(); + h[F] && (T = F), k && (h[F] = k, T = F); + var q = O.split("-"); + if (!T && q.length > 1) return E(q[0]); } else { - var te = x.name; - h[te] = x, P = te; + var te = O.name; + h[te] = O, T = te; } - return !N && P && (C = P), P || !N && C; - }, D = function(O, x) { - if (I(O)) return O.clone(); - var U = typeof x == "object" ? x : {}; - return U.date = O, U.args = arguments, new ge(U); + return !U && T && (C = T), T || !U && C; + }, j = function(E, O) { + if (I(E)) return E.clone(); + var k = typeof O == "object" ? O : {}; + return k.date = E, k.args = arguments, new pe(k); }, Z = A; - Z.l = q, Z.i = I, Z.w = function(O, x) { - return D(O, { locale: x.$L, utc: x.$u, x: x.$x, $offset: x.$offset }); + Z.l = G, Z.i = I, Z.w = function(E, O) { + return j(E, { locale: O.$L, utc: O.$u, x: O.$x, $offset: O.$offset }); }; - var ge = (function() { - function O(U) { - this.$L = q(U.locale, null, !0), this.parse(U), this.$x = this.$x || U.x || {}, this[$] = !0; + var pe = (function() { + function E(k) { + this.$L = G(k.locale, null, !0), this.parse(k), this.$x = this.$x || k.x || {}, this[b] = !0; } - var x = O.prototype; - return x.parse = function(U) { - this.$d = (function(N) { - var P = N.date, J = N.utc; - if (P === null) return /* @__PURE__ */ new Date(NaN); - if (Z.u(P)) return /* @__PURE__ */ new Date(); - if (P instanceof Date) return new Date(P); - if (typeof P == "string" && !/Z$/i.test(P)) { - var G = P.match(E); - if (G) { - var te = G[2] - 1 || 0, le = (G[7] || "0").substring(0, 3); - return J ? new Date(Date.UTC(G[1], te, G[3] || 1, G[4] || 0, G[5] || 0, G[6] || 0, le)) : new Date(G[1], te, G[3] || 1, G[4] || 0, G[5] || 0, G[6] || 0, le); + var O = E.prototype; + return O.parse = function(k) { + this.$d = (function(U) { + var T = U.date, F = U.utc; + if (T === null) return /* @__PURE__ */ new Date(NaN); + if (Z.u(T)) return /* @__PURE__ */ new Date(); + if (T instanceof Date) return new Date(T); + if (typeof T == "string" && !/Z$/i.test(T)) { + var q = T.match(N); + if (q) { + var te = q[2] - 1 || 0, le = (q[7] || "0").substring(0, 3); + return F ? new Date(Date.UTC(q[1], te, q[3] || 1, q[4] || 0, q[5] || 0, q[6] || 0, le)) : new Date(q[1], te, q[3] || 1, q[4] || 0, q[5] || 0, q[6] || 0, le); } } - return new Date(P); - })(U), this.init(); - }, x.init = function() { - var U = this.$d; - this.$y = U.getFullYear(), this.$M = U.getMonth(), this.$D = U.getDate(), this.$W = U.getDay(), this.$H = U.getHours(), this.$m = U.getMinutes(), this.$s = U.getSeconds(), this.$ms = U.getMilliseconds(); - }, x.$utils = function() { + return new Date(T); + })(k), this.init(); + }, O.init = function() { + var k = this.$d; + this.$y = k.getFullYear(), this.$M = k.getMonth(), this.$D = k.getDate(), this.$W = k.getDay(), this.$H = k.getHours(), this.$m = k.getMinutes(), this.$s = k.getSeconds(), this.$ms = k.getMilliseconds(); + }, O.$utils = function() { return Z; - }, x.isValid = function() { - return this.$d.toString() !== b; - }, x.isSame = function(U, N) { - var P = D(U); - return this.startOf(N) <= P && P <= this.endOf(N); - }, x.isAfter = function(U, N) { - return D(U) < this.startOf(N); - }, x.isBefore = function(U, N) { - return this.endOf(N) < D(U); - }, x.$g = function(U, N, P) { - return Z.u(U) ? this[N] : this.set(P, U); - }, x.unix = function() { + }, O.isValid = function() { + return this.$d.toString() !== y; + }, O.isSame = function(k, U) { + var T = j(k); + return this.startOf(U) <= T && T <= this.endOf(U); + }, O.isAfter = function(k, U) { + return j(k) < this.startOf(U); + }, O.isBefore = function(k, U) { + return this.endOf(U) < j(k); + }, O.$g = function(k, U, T) { + return Z.u(k) ? this[U] : this.set(T, k); + }, O.unix = function() { return Math.floor(this.valueOf() / 1e3); - }, x.valueOf = function() { + }, O.valueOf = function() { return this.$d.getTime(); - }, x.startOf = function(U, N) { - var P = this, J = !!Z.u(N) || N, G = Z.p(U), te = function(Xe, Se) { - var Je = Z.w(P.$u ? Date.UTC(P.$y, Se, Xe) : new Date(P.$y, Se, Xe), P); - return J ? Je : Je.endOf(u); - }, le = function(Xe, Se) { - return Z.w(P.toDate()[Xe].apply(P.toDate("s"), (J ? [0, 0, 0, 0] : [23, 59, 59, 999]).slice(Se)), P); - }, ce = this.$W, fe = this.$M, he = this.$D, Ve = "set" + (this.$u ? "UTC" : ""); - switch (G) { + }, O.startOf = function(k, U) { + var T = this, F = !!Z.u(U) || U, q = Z.p(k), te = function(He, ze) { + var Je = Z.w(T.$u ? Date.UTC(T.$y, ze, He) : new Date(T.$y, ze, He), T); + return F ? Je : Je.endOf(u); + }, le = function(He, ze) { + return Z.w(T.toDate()[He].apply(T.toDate("s"), (F ? [0, 0, 0, 0] : [23, 59, 59, 999]).slice(ze)), T); + }, de = this.$W, ve = this.$M, ye = this.$D, Ve = "set" + (this.$u ? "UTC" : ""); + switch (q) { case f: - return J ? te(1, 0) : te(31, 11); + return F ? te(1, 0) : te(31, 11); case c: - return J ? te(1, fe) : te(0, fe + 1); + return F ? te(1, ve) : te(0, ve + 1); case d: - var $e = this.$locale().weekStart || 0, Ne = (ce < $e ? ce + 7 : ce) - $e; - return te(J ? he - Ne : he + (6 - Ne), fe); + var ke = this.$locale().weekStart || 0, Ce = (de < ke ? de + 7 : de) - ke; + return te(F ? ye - Ce : ye + (6 - Ce), ve); case u: case g: return le(Ve + "Hours", 0); @@ -752,224 +752,235 @@ function ya() { default: return this.clone(); } - }, x.endOf = function(U) { - return this.startOf(U, !1); - }, x.$set = function(U, N) { - var P, J = Z.p(U), G = "set" + (this.$u ? "UTC" : ""), te = (P = {}, P[u] = G + "Date", P[g] = G + "Date", P[c] = G + "Month", P[f] = G + "FullYear", P[s] = G + "Hours", P[l] = G + "Minutes", P[a] = G + "Seconds", P[i] = G + "Milliseconds", P)[J], le = J === u ? this.$D + (N - this.$W) : N; - if (J === c || J === f) { - var ce = this.clone().set(g, 1); - ce.$d[te](le), ce.init(), this.$d = ce.set(g, Math.min(this.$D, ce.daysInMonth())).$d; + }, O.endOf = function(k) { + return this.startOf(k, !1); + }, O.$set = function(k, U) { + var T, F = Z.p(k), q = "set" + (this.$u ? "UTC" : ""), te = (T = {}, T[u] = q + "Date", T[g] = q + "Date", T[c] = q + "Month", T[f] = q + "FullYear", T[s] = q + "Hours", T[l] = q + "Minutes", T[a] = q + "Seconds", T[i] = q + "Milliseconds", T)[F], le = F === u ? this.$D + (U - this.$W) : U; + if (F === c || F === f) { + var de = this.clone().set(g, 1); + de.$d[te](le), de.init(), this.$d = de.set(g, Math.min(this.$D, de.daysInMonth())).$d; } else te && this.$d[te](le); return this.init(), this; - }, x.set = function(U, N) { - return this.clone().$set(U, N); - }, x.get = function(U) { - return this[Z.p(U)](); - }, x.add = function(U, N) { - var P, J = this; - U = Number(U); - var G = Z.p(N), te = function(fe) { - var he = D(J); - return Z.w(he.date(he.date() + Math.round(fe * U)), J); + }, O.set = function(k, U) { + return this.clone().$set(k, U); + }, O.get = function(k) { + return this[Z.p(k)](); + }, O.add = function(k, U) { + var T, F = this; + k = Number(k); + var q = Z.p(U), te = function(ve) { + var ye = j(F); + return Z.w(ye.date(ye.date() + Math.round(ve * k)), F); }; - if (G === c) return this.set(c, this.$M + U); - if (G === f) return this.set(f, this.$y + U); - if (G === u) return te(1); - if (G === d) return te(7); - var le = (P = {}, P[l] = o, P[s] = t, P[a] = r, P)[G] || 1, ce = this.$d.getTime() + U * le; - return Z.w(ce, this); - }, x.subtract = function(U, N) { - return this.add(-1 * U, N); - }, x.format = function(U) { - var N = this, P = this.$locale(); - if (!this.isValid()) return P.invalidDate || b; - var J = U || "YYYY-MM-DDTHH:mm:ssZ", G = Z.z(this), te = this.$H, le = this.$m, ce = this.$M, fe = P.weekdays, he = P.months, Ve = P.meridiem, $e = function(Se, Je, bt, tn) { - return Se && (Se[Je] || Se(N, J)) || bt[Je].slice(0, tn); - }, Ne = function(Se) { - return Z.s(te % 12 || 12, Se, "0"); - }, Xe = Ve || function(Se, Je, bt) { - var tn = Se < 12 ? "AM" : "PM"; - return bt ? tn.toLowerCase() : tn; + if (q === c) return this.set(c, this.$M + k); + if (q === f) return this.set(f, this.$y + k); + if (q === u) return te(1); + if (q === d) return te(7); + var le = (T = {}, T[l] = o, T[s] = t, T[a] = r, T)[q] || 1, de = this.$d.getTime() + k * le; + return Z.w(de, this); + }, O.subtract = function(k, U) { + return this.add(-1 * k, U); + }, O.format = function(k) { + var U = this, T = this.$locale(); + if (!this.isValid()) return T.invalidDate || y; + var F = k || "YYYY-MM-DDTHH:mm:ssZ", q = Z.z(this), te = this.$H, le = this.$m, de = this.$M, ve = T.weekdays, ye = T.months, Ve = T.meridiem, ke = function(ze, Je, yt, nn) { + return ze && (ze[Je] || ze(U, F)) || yt[Je].slice(0, nn); + }, Ce = function(ze) { + return Z.s(te % 12 || 12, ze, "0"); + }, He = Ve || function(ze, Je, yt) { + var nn = ze < 12 ? "AM" : "PM"; + return yt ? nn.toLowerCase() : nn; }; - return J.replace(w, (function(Se, Je) { - return Je || (function(bt) { - switch (bt) { + return F.replace(x, (function(ze, Je) { + return Je || (function(yt) { + switch (yt) { case "YY": - return String(N.$y).slice(-2); + return String(U.$y).slice(-2); case "YYYY": - return Z.s(N.$y, 4, "0"); + return Z.s(U.$y, 4, "0"); case "M": - return ce + 1; + return de + 1; case "MM": - return Z.s(ce + 1, 2, "0"); + return Z.s(de + 1, 2, "0"); case "MMM": - return $e(P.monthsShort, ce, he, 3); + return ke(T.monthsShort, de, ye, 3); case "MMMM": - return $e(he, ce); + return ke(ye, de); case "D": - return N.$D; + return U.$D; case "DD": - return Z.s(N.$D, 2, "0"); + return Z.s(U.$D, 2, "0"); case "d": - return String(N.$W); + return String(U.$W); case "dd": - return $e(P.weekdaysMin, N.$W, fe, 2); + return ke(T.weekdaysMin, U.$W, ve, 2); case "ddd": - return $e(P.weekdaysShort, N.$W, fe, 3); + return ke(T.weekdaysShort, U.$W, ve, 3); case "dddd": - return fe[N.$W]; + return ve[U.$W]; case "H": return String(te); case "HH": return Z.s(te, 2, "0"); case "h": - return Ne(1); + return Ce(1); case "hh": - return Ne(2); + return Ce(2); case "a": - return Xe(te, le, !0); + return He(te, le, !0); case "A": - return Xe(te, le, !1); + return He(te, le, !1); case "m": return String(le); case "mm": return Z.s(le, 2, "0"); case "s": - return String(N.$s); + return String(U.$s); case "ss": - return Z.s(N.$s, 2, "0"); + return Z.s(U.$s, 2, "0"); case "SSS": - return Z.s(N.$ms, 3, "0"); + return Z.s(U.$ms, 3, "0"); case "Z": - return G; + return q; } return null; - })(Se) || G.replace(":", ""); + })(ze) || q.replace(":", ""); })); - }, x.utcOffset = function() { + }, O.utcOffset = function() { return 15 * -Math.round(this.$d.getTimezoneOffset() / 15); - }, x.diff = function(U, N, P) { - var J, G = this, te = Z.p(N), le = D(U), ce = (le.utcOffset() - this.utcOffset()) * o, fe = this - le, he = function() { - return Z.m(G, le); + }, O.diff = function(k, U, T) { + var F, q = this, te = Z.p(U), le = j(k), de = (le.utcOffset() - this.utcOffset()) * o, ve = this - le, ye = function() { + return Z.m(q, le); }; switch (te) { case f: - J = he() / 12; + F = ye() / 12; break; case c: - J = he(); + F = ye(); break; case m: - J = he() / 3; + F = ye() / 3; break; case d: - J = (fe - ce) / 6048e5; + F = (ve - de) / 6048e5; break; case u: - J = (fe - ce) / 864e5; + F = (ve - de) / 864e5; break; case s: - J = fe / t; + F = ve / t; break; case l: - J = fe / o; + F = ve / o; break; case a: - J = fe / r; + F = ve / r; break; default: - J = fe; + F = ve; } - return P ? J : Z.a(J); - }, x.daysInMonth = function() { + return T ? F : Z.a(F); + }, O.daysInMonth = function() { return this.endOf(c).$D; - }, x.$locale = function() { + }, O.$locale = function() { return h[this.$L]; - }, x.locale = function(U, N) { - if (!U) return this.$L; - var P = this.clone(), J = q(U, N, !0); - return J && (P.$L = J), P; - }, x.clone = function() { + }, O.locale = function(k, U) { + if (!k) return this.$L; + var T = this.clone(), F = G(k, U, !0); + return F && (T.$L = F), T; + }, O.clone = function() { return Z.w(this.$d, this); - }, x.toDate = function() { + }, O.toDate = function() { return new Date(this.valueOf()); - }, x.toJSON = function() { + }, O.toJSON = function() { return this.isValid() ? this.toISOString() : null; - }, x.toISOString = function() { + }, O.toISOString = function() { return this.$d.toISOString(); - }, x.toString = function() { + }, O.toString = function() { return this.$d.toUTCString(); - }, O; - })(), Pe = ge.prototype; - return D.prototype = Pe, [["$ms", i], ["$s", a], ["$m", l], ["$H", s], ["$W", u], ["$M", c], ["$y", f], ["$D", g]].forEach((function(O) { - Pe[O[1]] = function(x) { - return this.$g(x, O[0], O[1]); + }, E; + })(), Ie = pe.prototype; + return j.prototype = Ie, [["$ms", i], ["$s", a], ["$m", l], ["$H", s], ["$W", u], ["$M", c], ["$y", f], ["$D", g]].forEach((function(E) { + Ie[E[1]] = function(O) { + return this.$g(O, E[0], E[1]); }; - })), D.extend = function(O, x) { - return O.$i || (O(x, ge, D), O.$i = !0), D; - }, D.locale = q, D.isDayjs = I, D.unix = function(O) { - return D(1e3 * O); - }, D.en = h[C], D.Ls = h, D.p = {}, D; + })), j.extend = function(E, O) { + return E.$i || (E(O, pe, j), E.$i = !0), j; + }, j.locale = G, j.isDayjs = I, j.unix = function(E) { + return j(1e3 * E); + }, j.en = h[C], j.Ls = h, j.p = {}, j; })); - })(ln)), ln.exports; + })(un)), un.exports; } -var Of = ya(); -const Le = /* @__PURE__ */ _a(Of), xf = Q({ - name: "EliEntradaDataHora", - inheritAttrs: !1, - props: { - // --- Novo padrão EliEntrada --- - value: { - type: String, - default: void 0 - }, - opcoes: { - type: Object, - required: !1, - default: void 0 - }, - // --- Compatibilidade com componente antigo EliDataHora --- - modelValue: { - type: String, - default: null - }, - modo: { - type: String, - default: void 0 - }, - rotulo: { type: String, default: void 0 }, - placeholder: { type: String, default: void 0 }, - desabilitado: { type: Boolean, default: void 0 }, - limpavel: { type: Boolean, default: void 0 }, - erro: { type: Boolean, default: void 0 }, - mensagensErro: { - type: [String, Array], - default: void 0 - }, - dica: { type: String, default: void 0 }, - dicaPersistente: { type: Boolean, default: void 0 }, - densidade: { type: String, default: void 0 }, - variante: { type: String, default: void 0 }, - min: { type: String, default: void 0 }, - max: { type: String, default: void 0 } - }, - emits: { - // Novo padrão - "update:value": (e) => !0, - input: (e) => !0, - // compat Vue2 - change: (e) => !0, - // Compat antigo - "update:modelValue": (e) => !0, - alterar: (e) => !0, - foco: () => !0, - desfoco: () => !0, - focus: () => !0, - blur: () => !0 - }, - setup(e, { emit: n, attrs: r }) { - const o = j(() => e.opcoes ? e.opcoes : { - rotulo: e.rotulo ?? "Data e hora", +var xf = ka(); +const he = /* @__PURE__ */ ya(xf); +var sn = { exports: {} }, Uf = sn.exports, Uo; +function Tf() { + return Uo || (Uo = 1, (function(e, n) { + (function(r, o) { + e.exports = o(ka()); + })(Uf, (function(r) { + function o(a) { + return a && typeof a == "object" && "default" in a ? a : { default: a }; + } + var t = o(r), i = { name: "pt-br", weekdays: "domingo_segunda-feira_terça-feira_quarta-feira_quinta-feira_sexta-feira_sábado".split("_"), weekdaysShort: "dom_seg_ter_qua_qui_sex_sáb".split("_"), weekdaysMin: "Do_2ª_3ª_4ª_5ª_6ª_Sá".split("_"), months: "janeiro_fevereiro_março_abril_maio_junho_julho_agosto_setembro_outubro_novembro_dezembro".split("_"), monthsShort: "jan_fev_mar_abr_mai_jun_jul_ago_set_out_nov_dez".split("_"), ordinal: function(a) { + return a + "º"; + }, formats: { LT: "HH:mm", LTS: "HH:mm:ss", L: "DD/MM/YYYY", LL: "D [de] MMMM [de] YYYY", LLL: "D [de] MMMM [de] YYYY [às] HH:mm", LLLL: "dddd, D [de] MMMM [de] YYYY [às] HH:mm" }, relativeTime: { future: "em %s", past: "há %s", s: "poucos segundos", m: "um minuto", mm: "%d minutos", h: "uma hora", hh: "%d horas", d: "um dia", dd: "%d dias", M: "um mês", MM: "%d meses", y: "um ano", yy: "%d anos" } }; + return t.default.locale(i, null, !0), i; + })); + })(sn)), sn.exports; +} +Tf(); +function Nf(e, n, r, o) { + const t = e.startOf("month"), i = e.endOf("month"), a = he(), l = r ? he(r).startOf("day") : null, s = o ? he(o).startOf("day") : null, u = []; + for (let c = t.day() - 1; c >= 0; c--) { + const m = t.subtract(c + 1, "day"); + u.push({ + dia: m.date(), + data: m, + atual: !1, + hoje: !1, + selecionado: !1, + desabilitado: !0 + }); + } + for (let c = t; c.isBefore(i) || c.isSame(i, "day"); c = c.add(1, "day")) + u.push({ + dia: c.date(), + data: c, + atual: !0, + hoje: c.isSame(a, "day"), + selecionado: n !== null && c.isSame(n, "day"), + desabilitado: l !== null && c.isBefore(l) || s !== null && c.isAfter(s) + }); + let d = 1; + for (; u.length < 42; ) { + const c = i.add(d++, "day"); + u.push({ + dia: c.date(), + data: c, + atual: !1, + hoje: !1, + selecionado: !1, + desabilitado: !0 + }); + } + return u; +} +function Pf(e, n) { + return e ? n === "data" ? he(e).format("DD/MM/YYYY") : he(e).format("DD/MM/YYYY HH:mm") : ""; +} +he.locale("pt-br"); +const Sa = Array.from({ length: 12 }, (e, n) => { + const r = he().month(n).format("MMMM"); + return r.charAt(0).toUpperCase() + r.slice(1); +}), Af = ["Dom", "Seg", "Ter", "Qua", "Qui", "Sex", "Sáb"]; +let Cf = 0; +function Zf(e, n) { + const r = ++Cf, o = B(!1), t = B({}), i = B(he()), a = B(null), l = B("00"), s = B("00"), u = z( + () => e.opcoes ?? { + rotulo: e.rotulo ?? "Data", placeholder: e.placeholder ?? "", modo: e.modo ?? "dataHora", limpavel: e.limpavel, @@ -981,82 +992,522 @@ const Le = /* @__PURE__ */ _a(Of), xf = Q({ variante: e.variante, min: e.min, max: e.max - }), t = j(() => o.value.modo ?? "dataHora"), i = j(() => !!e.desabilitado), a = j( - () => t.value === "data" ? "date" : "datetime-local" - ); - function l(b) { - return t.value === "data" ? Le(b).format("YYYY-MM-DD") : Le(b).format("YYYY-MM-DDTHH:mm"); } - function s(b) { - return t.value === "data" ? Le(`${b}T00:00`).format() : Le(b).format(); - } - const u = j(() => e.value !== void 0 ? e.value ?? null : e.modelValue), d = j({ - get: () => u.value ? l(u.value) : "", - set: (b) => { - const E = b && b.length > 0 ? b : null; - if (!E) { - n("update:value", null), n("input", null), n("change", null), n("update:modelValue", null), n("alterar", null); - return; - } - const w = s(E); - n("update:value", w), n("input", w), n("change", w), n("update:modelValue", w), n("alterar", w); - } - }), c = j(() => { - const b = o.value.min; - if (b) - return l(b); - }), m = j(() => { - const b = o.value.max; - if (b) - return l(b); + ), d = z(() => u.value.modo ?? "dataHora"), c = z(() => !!e.desabilitado), m = z( + () => e.value !== void 0 ? e.value ?? null : e.modelValue ?? null + ), f = z(() => m.value), g = z(() => { + const k = u.value.erro ? u.value.mensagensErro : null; + return k ? Array.isArray(k) ? k : [k] : []; + }), y = z(() => Pf(f.value, d.value)), N = z(() => Sa[i.value.month()]), x = z(() => i.value.year()), D = z(() => i.value.month()), L = z(() => { + const k = i.value.year(), U = u.value.min ? he(u.value.min).year() : he().year() - 80, T = u.value.max ? he(u.value.max).year() : he().year() + 20, F = []; + for (let q = Math.min(U, k); q <= Math.max(T, k); q++) F.push(q); + return F; + }), A = z( + () => Nf( + i.value, + a.value, + u.value.min, + u.value.max + ) + ); + be( + m, + (k) => { + if (k) { + const U = he(k); + a.value = U.startOf("day"), i.value = U.startOf("month"), l.value = U.format("HH"), s.value = U.format("mm"); + } else + a.value = null, l.value = "00", s.value = "00"; + }, + { immediate: !0 } + ); + function C() { + const k = document.getElementById(`eli-dh-campo-${r}`); + if (!k) return; + const U = k.getBoundingClientRect(), T = U.bottom + window.scrollY + 6; + let F = U.left + window.scrollX; + F + 316 > window.innerWidth + window.scrollX - 8 && (F = U.right + window.scrollX - 316), t.value = { position: "absolute", top: `${T}px`, left: `${F}px` }; + } + function h() { + c.value || (o.value = !o.value, o.value && (n("foco"), n("focus"), _r(C))); + } + function b() { + o.value && (o.value = !1, n("desfoco"), n("blur")); + } + function I(k) { + i.value = i.value.add(k, "month"); + } + function G(k) { + i.value = i.value.month(k); + } + function j(k) { + i.value = i.value.year(k); + } + function Z(k) { + k.desabilitado || (a.value = k.data.startOf("day"), d.value === "data" && Ie()); + } + function pe(k) { + ["update:value", "input", "change", "update:modelValue", "alterar"].forEach((U) => { + n(U, k); }); - function f() { - n("foco"), n("focus"); + } + function Ie() { + if (!a.value) return; + const k = Number.parseInt(l.value, 10) || 0, U = Number.parseInt(s.value, 10) || 0, T = d.value === "data" ? a.value.startOf("day") : a.value.hour(k).minute(U).second(0); + pe(T.format()), b(); + } + function E() { + pe(null); + } + function O(k) { + var T, F; + if (!o.value) return; + const U = k.target; + !((T = document.getElementById(`eli-dh-campo-${r}`)) != null && T.contains(U)) && !((F = document.getElementById(`eli-dh-popover-${r}`)) != null && F.contains(U)) && b(); + } + return We(() => document.addEventListener("click", O, !0)), wt(() => document.removeEventListener("click", O, !0)), { + uid: r, + aberto: o, + estiloPopover: t, + referencia: i, + diaSelecionado: a, + horaTemp: l, + minutoTemp: s, + opcoesEfetivas: u, + modoEfetivo: d, + desabilitadoEfetivo: c, + valor: f, + valorFormatado: y, + mensagensVisiveis: g, + nomeMesAtual: N, + anoAtual: x, + mesAtual: D, + listaAnos: L, + mudarMes: G, + mudarAno: j, + celulas: A, + abrirSeHabilitado: h, + fechar: b, + navegarMes: I, + selecionarDia: Z, + confirmar: Ie, + limpar: E + }; +} +const Mf = Q({ + name: "EliDhCalendario", + props: { + uid: { type: Number, required: !0 }, + aberto: { type: Boolean, required: !0 }, + estiloPopover: { type: Object, required: !0 }, + rotulo: { type: String, required: !0 }, + modo: { type: String, required: !0 }, + nomeMesAtual: { type: String, required: !0 }, + anoAtual: { type: Number, required: !0 }, + mesAtual: { type: Number, required: !0 }, + listaAnos: { type: Array, required: !0 }, + celulas: { type: Array, required: !0 }, + diaSelecionado: { type: Object, default: null }, + horaTemp: { type: String, required: !0 }, + minutoTemp: { type: String, required: !0 } + }, + emits: { + fechar: () => !0, + confirmar: () => !0, + navegarMes: (e) => !0, + selecionarDia: (e) => !0, + mudarMes: (e) => !0, + mudarAno: (e) => !0, + "update:horaTemp": (e) => !0, + "update:minutoTemp": (e) => !0 + }, + setup(e, { emit: n }) { + function r(d) { + const c = Number.parseInt(d.target.value, 10); + n("mudarMes", c); } - function g() { - n("desfoco"), n("blur"); + function o(d) { + const c = Number.parseInt(d.target.value, 10); + n("mudarAno", c); + } + function t(d) { + const c = d.target.value.replace(/\D/g, "").slice(0, 2); + n("update:horaTemp", c); + } + function i() { + const d = Number.parseInt(e.horaTemp, 10); + n( + "update:horaTemp", + Number.isNaN(d) ? "00" : String(Math.min(23, Math.max(0, d))).padStart(2, "0") + ); + } + function a(d) { + d.key === "ArrowUp" ? (d.preventDefault(), n( + "update:horaTemp", + String(((Number.parseInt(e.horaTemp, 10) || 0) + 1) % 24).padStart(2, "0") + )) : d.key === "ArrowDown" && (d.preventDefault(), n( + "update:horaTemp", + String(((Number.parseInt(e.horaTemp, 10) || 0) - 1 + 24) % 24).padStart(2, "0") + )); + } + function l(d) { + const c = d.target.value.replace(/\D/g, "").slice(0, 2); + n("update:minutoTemp", c); + } + function s() { + const d = Number.parseInt(e.minutoTemp, 10); + n( + "update:minutoTemp", + Number.isNaN(d) ? "00" : String(Math.min(59, Math.max(0, d))).padStart(2, "0") + ); + } + function u(d) { + d.key === "ArrowUp" ? (d.preventDefault(), n( + "update:minutoTemp", + String(((Number.parseInt(e.minutoTemp, 10) || 0) + 1) % 60).padStart(2, "0") + )) : d.key === "ArrowDown" && (d.preventDefault(), n( + "update:minutoTemp", + String(((Number.parseInt(e.minutoTemp, 10) || 0) - 1 + 60) % 60).padStart(2, "0") + )); } return { - attrs: r, - valor: d, - tipoInput: a, - minLocal: c, - maxLocal: m, - opcoesEfetivas: o, - desabilitadoEfetivo: i, - emitCompatFocus: f, - emitCompatBlur: g + diasSemana: Af, + MESES: Sa, + onMesSelectChange: r, + onAnoSelectChange: o, + onHoraInput: t, + onHoraBlur: i, + onHoraKeydown: a, + onMinutoInput: l, + onMinutoBlur: s, + onMinutoKeydown: u }; } -}), Ef = { class: "eli-data-hora" }; -function Uf(e, n, r, o, t, i) { - return _(), S("div", Ef, [ - M(St, we({ - modelValue: e.valor, - "onUpdate:modelValue": n[0] || (n[0] = (a) => e.valor = a), - lang: "pt-BR", - type: e.tipoInput, - label: e.opcoesEfetivas.rotulo, - placeholder: e.opcoesEfetivas.placeholder, - disabled: e.desabilitadoEfetivo, - clearable: !!e.opcoesEfetivas.limpavel, - error: !!e.opcoesEfetivas.erro, - "error-messages": e.opcoesEfetivas.mensagensErro, - hint: e.opcoesEfetivas.dica, - "persistent-hint": !!e.opcoesEfetivas.dicaPersistente, - density: e.opcoesEfetivas.densidade ?? "comfortable", - variant: e.opcoesEfetivas.variante ?? "outlined", - min: e.minLocal, - max: e.maxLocal, - readonly: !!e.opcoesEfetivas.apenasLeitura - }, e.attrs, { - onFocus: e.emitCompatFocus, - onBlur: e.emitCompatBlur - }), null, 16, ["modelValue", "type", "label", "placeholder", "disabled", "clearable", "error", "error-messages", "hint", "persistent-hint", "density", "variant", "min", "max", "readonly", "onFocus", "onBlur"]) +}), Lf = ["id", "aria-label"], Ff = { class: "eli-dh__cal-header" }, Rf = { class: "eli-dh__cal-titulo" }, Bf = { class: "eli-dh__seletores" }, Vf = ["value"], Jf = ["value"], qf = ["value"], Gf = ["value"], Kf = { class: "eli-dh__cal-body" }, Wf = { + class: "eli-dh__cal-semana", + role: "row" +}, Xf = { + class: "eli-dh__cal-grade", + role: "grid" +}, Hf = ["disabled", "tabindex", "aria-selected", "aria-label", "onClick"], Yf = { + key: 0, + class: "eli-dh__hora-secao" +}, Qf = { class: "eli-dh__hora-campos" }, ep = ["id", "value", "aria-label"], tp = ["id", "value", "aria-label"], np = { class: "eli-dh__rodape" }, rp = ["disabled"]; +function ip(e, n, r, o, t, i) { + return $(), re(yr, { to: "body" }, [ + M(da, { name: "eli-dh-pop" }, { + default: ue(() => [ + e.aberto ? ($(), S("div", { + key: 0, + id: `eli-dh-popover-${e.uid}`, + class: "eli-dh__popover", + style: st(e.estiloPopover), + role: "dialog", + "aria-label": `Selecionar ${e.rotulo}`, + onKeydown: n[12] || (n[12] = ut((a) => e.$emit("fechar"), ["escape"])), + onMousedown: n[13] || (n[13] = ce(() => { + }, ["stop"])) + }, [ + p("div", Ff, [ + p("button", { + class: "eli-dh__cal-nav", + type: "button", + title: "Mês anterior", + "aria-label": "Mês anterior", + onClick: n[0] || (n[0] = (a) => e.$emit("navegarMes", -1)) + }, [...n[14] || (n[14] = [ + p("svg", { + viewBox: "0 0 24 24", + fill: "none", + stroke: "currentColor", + "stroke-width": "2.5", + "stroke-linecap": "round", + "stroke-linejoin": "round", + "aria-hidden": "true" + }, [ + p("polyline", { points: "15 18 9 12 15 6" }) + ], -1) + ])]), + p("div", Rf, [ + p("div", Bf, [ + p("select", { + value: e.mesAtual, + class: "eli-dh__select", + "aria-label": "Selecionar mês", + onChange: n[1] || (n[1] = (...a) => e.onMesSelectChange && e.onMesSelectChange(...a)) + }, [ + ($(!0), S(ge, null, $e(e.MESES, (a, l) => ($(), S("option", { + key: l, + value: l + }, R(a), 9, Jf))), 128)) + ], 40, Vf), + p("select", { + value: e.anoAtual, + class: "eli-dh__select", + "aria-label": "Selecionar ano", + onChange: n[2] || (n[2] = (...a) => e.onAnoSelectChange && e.onAnoSelectChange(...a)) + }, [ + ($(!0), S(ge, null, $e(e.listaAnos, (a) => ($(), S("option", { + key: a, + value: a + }, R(a), 9, Gf))), 128)) + ], 40, qf) + ]) + ]), + p("button", { + class: "eli-dh__cal-nav", + type: "button", + title: "Próximo mês", + "aria-label": "Próximo mês", + onClick: n[3] || (n[3] = (a) => e.$emit("navegarMes", 1)) + }, [...n[15] || (n[15] = [ + p("svg", { + viewBox: "0 0 24 24", + fill: "none", + stroke: "currentColor", + "stroke-width": "2.5", + "stroke-linecap": "round", + "stroke-linejoin": "round", + "aria-hidden": "true" + }, [ + p("polyline", { points: "9 18 15 12 9 6" }) + ], -1) + ])]) + ]), + p("div", Kf, [ + p("div", Wf, [ + ($(!0), S(ge, null, $e(e.diasSemana, (a) => ($(), S("div", { + key: a, + class: "eli-dh__cal-dia-sem", + role: "columnheader" + }, R(a), 1))), 128)) + ]), + p("div", Xf, [ + ($(!0), S(ge, null, $e(e.celulas, (a, l) => ($(), S("button", { + key: l, + class: Ue(["eli-dh__cal-dia", { + "eli-dh__cal-dia--fora": !a.atual, + "eli-dh__cal-dia--hoje": a.hoje, + "eli-dh__cal-dia--selecionado": a.selecionado, + "eli-dh__cal-dia--desabilitado": a.desabilitado + }]), + type: "button", + disabled: a.desabilitado, + tabindex: a.selecionado ? 0 : -1, + "aria-selected": a.selecionado, + "aria-label": `${a.dia} de ${e.nomeMesAtual} de ${e.anoAtual}`, + onClick: (s) => e.$emit("selecionarDia", a) + }, R(a.dia), 11, Hf))), 128)) + ]) + ]), + e.modo === "dataHora" ? ($(), S("div", Yf, [ + n[17] || (n[17] = p("svg", { + class: "eli-dh__hora-icone", + viewBox: "0 0 24 24", + fill: "none", + stroke: "currentColor", + "stroke-width": "2", + "stroke-linecap": "round", + "stroke-linejoin": "round", + "aria-hidden": "true" + }, [ + p("circle", { + cx: "12", + cy: "12", + r: "10" + }), + p("polyline", { points: "12 6 12 12 16 14" }) + ], -1)), + p("div", Qf, [ + p("input", { + id: `eli-dh-hora-${e.uid}`, + value: e.horaTemp, + class: "eli-dh__hora-input", + type: "text", + inputmode: "numeric", + maxlength: "2", + placeholder: "HH", + "aria-label": `Hora de ${e.rotulo}`, + onInput: n[4] || (n[4] = (...a) => e.onHoraInput && e.onHoraInput(...a)), + onBlur: n[5] || (n[5] = (...a) => e.onHoraBlur && e.onHoraBlur(...a)), + onKeydown: n[6] || (n[6] = (...a) => e.onHoraKeydown && e.onHoraKeydown(...a)) + }, null, 40, ep), + n[16] || (n[16] = p("span", { + class: "eli-dh__hora-sep", + "aria-hidden": "true" + }, ":", -1)), + p("input", { + id: `eli-dh-min-${e.uid}`, + value: e.minutoTemp, + class: "eli-dh__hora-input", + type: "text", + inputmode: "numeric", + maxlength: "2", + placeholder: "MM", + "aria-label": `Minuto de ${e.rotulo}`, + onInput: n[7] || (n[7] = (...a) => e.onMinutoInput && e.onMinutoInput(...a)), + onBlur: n[8] || (n[8] = (...a) => e.onMinutoBlur && e.onMinutoBlur(...a)), + onKeydown: n[9] || (n[9] = (...a) => e.onMinutoKeydown && e.onMinutoKeydown(...a)) + }, null, 40, tp) + ]) + ])) : K("", !0), + p("div", np, [ + p("button", { + class: "eli-dh__btn eli-dh__btn--cancelar", + type: "button", + onClick: n[10] || (n[10] = (a) => e.$emit("fechar")) + }, "Cancelar"), + p("button", { + class: "eli-dh__btn eli-dh__btn--confirmar", + type: "button", + disabled: !e.diaSelecionado, + onClick: n[11] || (n[11] = (a) => e.$emit("confirmar")) + }, "✓ Confirmar", 8, rp) + ]) + ], 44, Lf)) : K("", !0) + ]), + _: 1 + }) ]); } -const ka = /* @__PURE__ */ ee(xf, [["render", Uf]]); -function Tf(e) { +const op = /* @__PURE__ */ ee(Mf, [["render", ip]]), ap = Q({ + name: "EliEntradaDataHora", + components: { Calendario: op }, + inheritAttrs: !1, + props: { + value: { type: String, default: void 0 }, + opcoes: { + type: Object, + required: !1, + default: void 0 + }, + modelValue: { type: String, default: null }, + modo: { type: String, default: void 0 }, + rotulo: { type: String, default: void 0 }, + placeholder: { type: String, default: void 0 }, + desabilitado: { type: Boolean, default: void 0 }, + limpavel: { type: Boolean, default: void 0 }, + erro: { type: Boolean, default: void 0 }, + mensagensErro: { type: [String, Array], default: void 0 }, + dica: { type: String, default: void 0 }, + dicaPersistente: { type: Boolean, default: void 0 }, + densidade: { type: String, default: void 0 }, + variante: { type: String, default: void 0 }, + min: { type: String, default: void 0 }, + max: { type: String, default: void 0 } + }, + emits: { + "update:value": (e) => !0, + input: (e) => !0, + change: (e) => !0, + "update:modelValue": (e) => !0, + alterar: (e) => !0, + foco: () => !0, + desfoco: () => !0, + focus: () => !0, + blur: () => !0 + }, + setup(e, { emit: n }) { + return Zf(e, (o, t) => n(o, t)); + } +}), lp = { class: "eli-dh" }, up = ["id", "tabindex", "aria-expanded", "aria-label"], sp = { class: "eli-dh__conteudo" }, cp = { class: "eli-dh__rotulo" }, dp = ["aria-label"], mp = { + key: 0, + class: "eli-dh__mensagem eli-dh__mensagem--erro", + role: "alert" +}, fp = { + key: 1, + class: "eli-dh__mensagem eli-dh__mensagem--dica" +}; +function pp(e, n, r, o, t, i) { + const a = Y("Calendario"); + return $(), S("div", lp, [ + p("div", { + id: `eli-dh-campo-${e.uid}`, + class: Ue(["eli-dh__campo", { + "eli-dh__campo--focado": e.aberto, + "eli-dh__campo--erro": !!e.opcoesEfetivas.erro, + "eli-dh__campo--desabilitado": e.desabilitadoEfetivo + }]), + role: "button", + tabindex: e.desabilitadoEfetivo ? -1 : 0, + "aria-haspopup": !0, + "aria-expanded": e.aberto, + "aria-label": e.opcoesEfetivas.rotulo, + onClick: n[1] || (n[1] = (...l) => e.abrirSeHabilitado && e.abrirSeHabilitado(...l)), + onKeydown: [ + n[2] || (n[2] = ut(ce((...l) => e.abrirSeHabilitado && e.abrirSeHabilitado(...l), ["prevent"]), ["enter"])), + n[3] || (n[3] = ut(ce((...l) => e.abrirSeHabilitado && e.abrirSeHabilitado(...l), ["prevent"]), ["space"])), + n[4] || (n[4] = ut((...l) => e.fechar && e.fechar(...l), ["escape"])) + ] + }, [ + n[8] || (n[8] = Nm('', 1)), + p("div", sp, [ + p("span", cp, R(e.opcoesEfetivas.rotulo), 1), + p("span", { + class: Ue(["eli-dh__valor", { "eli-dh__valor--vazio": !e.valorFormatado }]) + }, R(e.valorFormatado || e.opcoesEfetivas.placeholder || "Selecione..."), 3) + ]), + e.opcoesEfetivas.limpavel && e.valor && !e.desabilitadoEfetivo ? ($(), S("button", { + key: 0, + class: "eli-dh__limpar", + type: "button", + title: "Limpar", + "aria-label": `Limpar ${e.opcoesEfetivas.rotulo}`, + onClick: n[0] || (n[0] = ce((...l) => e.limpar && e.limpar(...l), ["stop"])) + }, [...n[7] || (n[7] = [ + p("svg", { + viewBox: "0 0 24 24", + fill: "none", + stroke: "currentColor", + "stroke-width": "2.5", + "stroke-linecap": "round", + width: "14", + height: "14", + "aria-hidden": "true" + }, [ + p("line", { + x1: "18", + y1: "6", + x2: "6", + y2: "18" + }), + p("line", { + x1: "6", + y1: "6", + x2: "18", + y2: "18" + }) + ], -1) + ])], 8, dp)) : K("", !0) + ], 42, up), + e.mensagensVisiveis.length ? ($(), S("div", mp, R(e.mensagensVisiveis[0]), 1)) : e.opcoesEfetivas.dica && (e.opcoesEfetivas.dicaPersistente || e.aberto) ? ($(), S("div", fp, R(e.opcoesEfetivas.dica), 1)) : K("", !0), + M(a, { + uid: e.uid, + aberto: e.aberto, + "estilo-popover": e.estiloPopover, + rotulo: e.opcoesEfetivas.rotulo, + modo: e.modoEfetivo, + "nome-mes-atual": e.nomeMesAtual, + "ano-atual": e.anoAtual, + "mes-atual": e.mesAtual, + "lista-anos": e.listaAnos, + celulas: e.celulas, + "dia-selecionado": e.diaSelecionado, + "hora-temp": e.horaTemp, + "minuto-temp": e.minutoTemp, + onFechar: e.fechar, + onConfirmar: e.confirmar, + onNavegarMes: e.navegarMes, + onSelecionarDia: e.selecionarDia, + onMudarMes: e.mudarMes, + onMudarAno: e.mudarAno, + "onUpdate:horaTemp": n[5] || (n[5] = (l) => e.horaTemp = l), + "onUpdate:minutoTemp": n[6] || (n[6] = (l) => e.minutoTemp = l) + }, null, 8, ["uid", "aberto", "estilo-popover", "rotulo", "modo", "nome-mes-atual", "ano-atual", "mes-atual", "lista-anos", "celulas", "dia-selecionado", "hora-temp", "minuto-temp", "onFechar", "onConfirmar", "onNavegarMes", "onSelecionarDia", "onMudarMes", "onMudarAno"]) + ]); +} +const wa = /* @__PURE__ */ ee(ap, [["render", pp]]); +function vp(e) { if (!Number.isFinite(e) || e <= 0 || e >= 1) return 0; const n = e.toString(); if (n.includes("e-")) { @@ -1066,25 +1517,25 @@ function Tf(e) { const r = n.indexOf("."); return r === -1 ? 0 : n.slice(r + 1).replace(/0+$/, "").length; } -function Pf(e) { +function gp(e) { const n = (e ?? "").trim().replace(/,/g, "."); if (!n) return null; const r = Number(n); return Number.isNaN(r) ? null : r; } -function sr(e, n) { +function cr(e, n) { return e == null ? "" : n === null ? String(e).replace(/\./g, ",") : Number(e).toFixed(Math.max(0, n)).replace(/\./g, ","); } -function Oo(e) { +function To(e) { return (e ?? "").replace(/\D+/g, ""); } -function Nf(e) { +function hp(e) { const n = (e ?? "").replace(/[^0-9.,]+/g, ""), r = n.match(/[.,]/); if (!r) return n; const o = r[0], t = n.indexOf(o), i = n.slice(0, t).replace(/[.,]/g, ""), a = n.slice(t + 1).replace(/[.,]/g, ""); return `${i.length ? i : "0"}${o}${a}`; } -function Af(e, n) { +function bp(e, n) { if (n === null) return e; if (n <= 0) return e.replace(/[.,]/g, ""); const r = e.match(/[.,]/); @@ -1092,13 +1543,13 @@ function Af(e, n) { const o = r[0], t = e.indexOf(o), i = e.slice(0, t), a = e.slice(t + 1); return `${i}${o}${a.slice(0, n)}`; } -function Cf(e) { +function $p(e) { const n = e.match(/^(\d+)[.,]$/); if (!n) return null; const r = Number(n[1]); return Number.isNaN(r) ? null : r; } -const Zf = Q({ +const _p = Q({ name: "EliEntradaNumero", inheritAttrs: !1, props: { @@ -1121,41 +1572,41 @@ const Zf = Q({ blur: () => !0 }, setup(e, { attrs: n, emit: r }) { - const o = j(() => { + const o = z(() => { var d; const u = (d = e.opcoes) == null ? void 0 : d.precisao; - return u == null ? null : Tf(u); - }), t = j(() => o.value === 0), i = j(() => { + return u == null ? null : vp(u); + }), t = z(() => o.value === 0), i = z(() => { const u = o.value; return u !== null && u > 0; }), a = B(""), l = B(void 0); - _e( + be( () => e.value, (u) => { - u !== l.value && (a.value = sr(u, o.value), l.value = u); + u !== l.value && (a.value = cr(u, o.value), l.value = u); }, { immediate: !0 } ); function s(u) { if (i.value) { - const f = o.value ?? 0, g = Oo(u), b = g ? Number(g) : 0, E = 10 ** f, w = g ? b / E : null, z = w === null ? null : w; - l.value = z, r("update:value", z), r("input", z), r("change", z), a.value = sr(z, f); + const f = o.value ?? 0, g = To(u), y = g ? Number(g) : 0, N = 10 ** f, x = g ? y / N : null, D = x === null ? null : x; + l.value = D, r("update:value", D), r("input", D), r("change", D), a.value = cr(D, f); return; } - const d = t.value ? Oo(u) : Nf(u), c = t.value ? d : Af(d, o.value); + const d = t.value ? To(u) : hp(u), c = t.value ? d : bp(d, o.value); let m = null; if (c) { - const g = (t.value ? null : Cf(c)) ?? Pf(c); + const g = (t.value ? null : $p(c)) ?? gp(c); m = g === null ? null : g; } - l.value = m, r("update:value", m), r("input", m), r("change", m), o.value === null && c ? a.value = c.replace(/\./g, ",") : a.value = sr(m, o.value); + l.value = m, r("update:value", m), r("input", m), r("change", m), o.value === null && c ? a.value = c.replace(/\./g, ",") : a.value = cr(m, o.value); } return { attrs: n, emit: r, displayValue: a, isInteiro: t, onUpdateModelValue: s }; } -}), Mf = { class: "eli-entrada__prefixo" }, Lf = { class: "eli-entrada__sufixo" }; -function Ff(e, n, r, o, t, i) { +}), yp = { class: "eli-entrada__prefixo" }, kp = { class: "eli-entrada__sufixo" }; +function Sp(e, n, r, o, t, i) { var a, l, s, u, d; - return _(), re(St, we({ + return $(), re(mn, je({ "model-value": e.displayValue, label: (a = e.opcoes) == null ? void 0 : a.rotulo, placeholder: (l = e.opcoes) == null ? void 0 : l.placeholder, @@ -1167,26 +1618,26 @@ function Ff(e, n, r, o, t, i) { "onUpdate:modelValue": e.onUpdateModelValue, onFocus: n[0] || (n[0] = () => e.emit("focus")), onBlur: n[1] || (n[1] = () => e.emit("blur")) - }), Um({ _: 2 }, [ + }), Pm({ _: 2 }, [ (u = e.opcoes) != null && u.prefixo ? { name: "prepend-inner", fn: ue(() => [ - p("span", Mf, V(e.opcoes.prefixo), 1) + p("span", yp, R(e.opcoes.prefixo), 1) ]), key: "0" } : void 0, (d = e.opcoes) != null && d.sufixo ? { name: "append-inner", fn: ue(() => [ - p("span", Lf, V(e.opcoes.sufixo), 1) + p("span", kp, R(e.opcoes.sufixo), 1) ]), key: "1" } : void 0 ]), 1040, ["model-value", "label", "placeholder", "type", "inputmode", "pattern", "readonly", "onUpdate:modelValue"]); } -const Sa = /* @__PURE__ */ ee(Zf, [["render", Ff]]), Rf = Q({ +const Ia = /* @__PURE__ */ ee(_p, [["render", Sp]]), wp = Q({ name: "EliEntradaParagrafo", - components: { VTextarea: Lm }, + components: { VTextarea: Rm }, inheritAttrs: !1, props: { value: { @@ -1206,7 +1657,7 @@ const Sa = /* @__PURE__ */ ee(Zf, [["render", Ff]]), Rf = Q({ blur: () => !0 }, setup(e, { attrs: n, emit: r }) { - const o = j({ + const o = z({ get: () => e.value, set: (t) => { r("update:value", t), r("input", t), r("change", t); @@ -1215,9 +1666,9 @@ const Sa = /* @__PURE__ */ ee(Zf, [["render", Ff]]), Rf = Q({ return { attrs: n, emit: r, localValue: o }; } }); -function Bf(e, n, r, o, t, i) { - var a, l, s, u, d, c, m, f, g, b, E, w, z; - return _(), re(Bm, we({ +function Ip(e, n, r, o, t, i) { + var a, l, s, u, d, c, m, f, g, y, N, x, D; + return $(), re(Jm, je({ modelValue: e.localValue, "onUpdate:modelValue": n[0] || (n[0] = (L) => e.localValue = L), label: (a = e.opcoes) == null ? void 0 : a.rotulo, @@ -1229,19 +1680,19 @@ function Bf(e, n, r, o, t, i) { error: !!((m = e.opcoes) != null && m.erro), "error-messages": (f = e.opcoes) == null ? void 0 : f.mensagensErro, hint: (g = e.opcoes) == null ? void 0 : g.dica, - "persistent-hint": !!((b = e.opcoes) != null && b.dicaPersistente), - density: ((E = e.opcoes) == null ? void 0 : E.densidade) ?? "comfortable", - variant: ((w = e.opcoes) == null ? void 0 : w.variante) ?? "outlined", - readonly: !!((z = e.opcoes) != null && z.apenasLeitura), + "persistent-hint": !!((y = e.opcoes) != null && y.dicaPersistente), + density: ((N = e.opcoes) == null ? void 0 : N.densidade) ?? "comfortable", + variant: ((x = e.opcoes) == null ? void 0 : x.variante) ?? "outlined", + readonly: !!((D = e.opcoes) != null && D.apenasLeitura), "auto-grow": "" }, e.attrs, { onFocus: n[1] || (n[1] = () => e.emit("focus")), onBlur: n[2] || (n[2] = () => e.emit("blur")) }), null, 16, ["modelValue", "label", "placeholder", "rows", "counter", "maxlength", "clearable", "error", "error-messages", "hint", "persistent-hint", "density", "variant", "readonly"]); } -const Ia = /* @__PURE__ */ ee(Rf, [["render", Bf]]), Vf = Q({ +const za = /* @__PURE__ */ ee(wp, [["render", Ip]]), zp = Q({ name: "EliEntradaSelecao", - components: { VSelect: pa }, + components: { VSelect: ga }, inheritAttrs: !1, props: { value: { @@ -1261,7 +1712,7 @@ const Ia = /* @__PURE__ */ ee(Rf, [["render", Bf]]), Vf = Q({ blur: () => !0 }, setup(e, { attrs: n, emit: r }) { - const o = B([]), t = B(!1), i = j({ + const o = B([]), t = B(!1), i = z({ get: () => e.value, set: (s) => { r("update:value", s), r("input", s), r("change", s); @@ -1276,21 +1727,21 @@ const Ia = /* @__PURE__ */ ee(Rf, [["render", Bf]]), Vf = Q({ t.value = !1; } } - _e( + be( () => e.opcoes.itens, () => { a(); } - ), rt(() => { + ), We(() => { a(); - }), _e( + }), be( o, (s) => { console.debug("[EliEntradaSelecao] itens:", s); }, { deep: !0 } ); - const l = j(() => { + const l = z(() => { var u; const s = (u = e.opcoes) == null ? void 0 : u.desativado; if (!(!s || s.length === 0)) @@ -1299,11 +1750,11 @@ const Ia = /* @__PURE__ */ ee(Rf, [["render", Bf]]), Vf = Q({ return { attrs: n, emit: r, localValue: i, itens: o, carregando: t, itemProps: l }; } }); -function Jf(e, n, r, o, t, i) { - var a, l, s, u, d, c, m, f, g, b; - return _(), re(ga, we({ +function Dp(e, n, r, o, t, i) { + var a, l, s, u, d, c, m, f, g, y; + return $(), re(ha, je({ modelValue: e.localValue, - "onUpdate:modelValue": n[0] || (n[0] = (E) => e.localValue = E), + "onUpdate:modelValue": n[0] || (n[0] = (N) => e.localValue = N), label: (a = e.opcoes) == null ? void 0 : a.rotulo, placeholder: (l = e.opcoes) == null ? void 0 : l.placeholder, items: e.itens, @@ -1320,15 +1771,15 @@ function Jf(e, n, r, o, t, i) { "persistent-hint": !!((m = e.opcoes) != null && m.dicaPersistente), density: ((f = e.opcoes) == null ? void 0 : f.densidade) ?? "comfortable", variant: ((g = e.opcoes) == null ? void 0 : g.variante) ?? "outlined", - readonly: !!((b = e.opcoes) != null && b.apenasLeitura) + readonly: !!((y = e.opcoes) != null && y.apenasLeitura) }, e.attrs, { onFocus: n[1] || (n[1] = () => e.emit("focus")), onBlur: n[2] || (n[2] = () => e.emit("blur")) }), null, 16, ["modelValue", "label", "placeholder", "items", "item-props", "loading", "disabled", "clearable", "error", "error-messages", "hint", "persistent-hint", "density", "variant", "readonly"]); } -const wa = /* @__PURE__ */ ee(Vf, [["render", Jf]]), qf = Q({ +const Da = /* @__PURE__ */ ee(zp, [["render", Dp]]), jp = Q({ name: "EliEntradaSelecaoMultipla", - components: { VSelect: pa }, + components: { VSelect: ga }, inheritAttrs: !1, props: { value: { @@ -1348,7 +1799,7 @@ const wa = /* @__PURE__ */ ee(Vf, [["render", Jf]]), qf = Q({ blur: () => !0 }, setup(e, { attrs: n, emit: r }) { - const o = B([]), t = B(!1), i = j({ + const o = B([]), t = B(!1), i = z({ get: () => e.value ?? [], set: (s) => { const u = Array.isArray(s) ? s : []; @@ -1364,15 +1815,15 @@ const wa = /* @__PURE__ */ ee(Vf, [["render", Jf]]), qf = Q({ t.value = !1; } } - _e( + be( () => e.opcoes.itens, () => { a(); } - ), rt(() => { + ), We(() => { a(); }); - const l = j(() => { + const l = z(() => { var u; const s = (u = e.opcoes) == null ? void 0 : u.desativado; if (!(!s || s.length === 0)) @@ -1381,11 +1832,11 @@ const wa = /* @__PURE__ */ ee(Vf, [["render", Jf]]), qf = Q({ return { attrs: n, emit: r, localValue: i, itens: o, carregando: t, itemProps: l }; } }); -function Gf(e, n, r, o, t, i) { - var a, l, s, u, d, c, m, f, g, b; - return _(), re(ga, we({ +function Op(e, n, r, o, t, i) { + var a, l, s, u, d, c, m, f, g, y; + return $(), re(ha, je({ modelValue: e.localValue, - "onUpdate:modelValue": n[0] || (n[0] = (E) => e.localValue = E), + "onUpdate:modelValue": n[0] || (n[0] = (N) => e.localValue = N), label: (a = e.opcoes) == null ? void 0 : a.rotulo, placeholder: (l = e.opcoes) == null ? void 0 : l.placeholder, items: e.itens, @@ -1405,35 +1856,35 @@ function Gf(e, n, r, o, t, i) { multiple: "", chips: "", "closable-chips": "", - readonly: !!((b = e.opcoes) != null && b.apenasLeitura) + readonly: !!((y = e.opcoes) != null && y.apenasLeitura) }, e.attrs, { onFocus: n[1] || (n[1] = () => e.emit("focus")), onBlur: n[2] || (n[2] = () => e.emit("blur")) }), null, 16, ["modelValue", "label", "placeholder", "items", "item-props", "loading", "disabled", "clearable", "error", "error-messages", "hint", "persistent-hint", "density", "variant", "readonly"]); } -const za = /* @__PURE__ */ ee(qf, [["render", Gf]]); -function Wf(e) { +const ja = /* @__PURE__ */ ee(jp, [["render", Op]]); +function Ep(e) { return e.replace(/\D+/g, ""); } -function Kf(e) { - const n = Wf(e); +function xp(e) { + const n = Ep(e); return n ? n.replace(/^(\d{5})(\d)/, "$1-$2").slice(0, 9) : ""; } -function Xf(e) { +function Up(e) { return e.replace(/\D+/g, ""); } -function Yf(e) { - const n = Xf(e); +function Tp(e) { + const n = Up(e); return n.length <= 11 ? n.replace(/(\d{3})(\d)/, "$1.$2").replace(/(\d{3})(\d)/, "$1.$2").replace(/(\d{3})(\d{1,2})$/, "$1-$2").slice(0, 14) : n.replace(/^(\d{2})(\d)/, "$1.$2").replace(/^(\d{2})\.(\d{3})(\d)/, "$1.$2.$3").replace(/\.(\d{3})(\d)/, ".$1/$2").replace(/(\d{4})(\d)/, "$1-$2").slice(0, 18); } -function Hf(e) { +function Np(e) { return e.replace(/\D+/g, ""); } -function Qf(e) { - const n = Hf(e); +function Pp(e) { + const n = Np(e); return n ? n.length <= 10 ? n.replace(/^(\d{2})(\d)/, "($1) $2").replace(/(\d{4})(\d)/, "$1-$2").slice(0, 14) : n.replace(/^(\d{2})(\d)/, "($1) $2").replace(/(\d{5})(\d)/, "$1-$2").slice(0, 15) : ""; } -const ev = Q({ +const Ap = Q({ name: "EliEntradaTexto", inheritAttrs: !1, props: { @@ -1456,26 +1907,26 @@ const ev = Q({ blur: () => !0 }, setup(e, { attrs: n, emit: r }) { - const o = j(() => { + const o = z(() => { var u; return ((u = e.opcoes) == null ? void 0 : u.formato) ?? "texto"; - }), t = j({ + }), t = z({ get: () => e.value, set: (u) => { r("update:value", u), r("input", u), r("change", u); } - }), i = j(() => o.value === "email" ? "email" : o.value === "url" ? "url" : "text"), a = j(() => { + }), i = z(() => o.value === "email" ? "email" : o.value === "url" ? "url" : "text"), a = z(() => { if (o.value === "telefone") return "tel"; if (o.value === "cpfCnpj" || o.value === "cep") return "numeric"; }); function l(u) { switch (o.value) { case "telefone": - return Qf(u); + return Pp(u); case "cpfCnpj": - return Yf(u); + return Tp(u); case "cep": - return Kf(u); + return xp(u); default: return u; } @@ -1487,9 +1938,9 @@ const ev = Q({ return { attrs: n, emit: r, localValue: t, inputHtmlType: i, inputMode: a, onInput: s }; } }); -function tv(e, n, r, o, t, i) { +function Cp(e, n, r, o, t, i) { var a, l, s, u, d; - return _(), re(St, we({ + return $(), re(mn, je({ modelValue: e.localValue, "onUpdate:modelValue": n[0] || (n[0] = (c) => e.localValue = c), type: e.inputHtmlType, @@ -1505,35 +1956,35 @@ function tv(e, n, r, o, t, i) { onInput: e.onInput }), null, 16, ["modelValue", "type", "inputmode", "label", "placeholder", "counter", "maxlength", "readonly", "onInput"]); } -const yr = /* @__PURE__ */ ee(ev, [["render", tv]]); +const wr = /* @__PURE__ */ ee(Ap, [["render", Cp]]); /** * @license @lucide/vue v1.17.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */ -const xo = (e) => e === ""; +const No = (e) => e === ""; /** * @license @lucide/vue v1.17.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */ -const nv = (...e) => e.filter((n, r, o) => !!n && n.trim() !== "" && o.indexOf(n) === r).join(" ").trim(); +const Zp = (...e) => e.filter((n, r, o) => !!n && n.trim() !== "" && o.indexOf(n) === r).join(" ").trim(); /** * @license @lucide/vue v1.17.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */ -const Eo = (e) => e.replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase(); +const Po = (e) => e.replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase(); /** * @license @lucide/vue v1.17.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */ -const rv = (e) => e.replace( +const Mp = (e) => e.replace( /^([A-Z])|[\s-_]+(\w)/g, (n, r, o) => o ? o.toUpperCase() : r.toLowerCase() ); @@ -1543,8 +1994,8 @@ const rv = (e) => e.replace( * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */ -const iv = (e) => { - const n = rv(e); +const Lp = (e) => { + const n = Mp(e); return n.charAt(0).toUpperCase() + n.slice(1); }; /** @@ -1570,9 +2021,9 @@ var at = { * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */ -const ov = Symbol("lucide-icons"); -function av() { - return Tm(ov, {}); +const Fp = Symbol("lucide-icons"); +function Rp() { + return Am(Fp, {}); } /** * @license @lucide/vue v1.17.0 - ISC @@ -1580,7 +2031,7 @@ function av() { * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */ -const lv = ({ +const Bp = ({ name: e, iconNode: n, absoluteStrokeWidth: r, @@ -1597,11 +2048,11 @@ const lv = ({ strokeWidth: m = 2, absoluteStrokeWidth: f = !1, class: g = "" - } = av(), b = j(() => { - const E = xo(r) || xo(o) || r === !0 || o === !0 || f === !0, w = t || i || m || at["stroke-width"]; - return E ? Number(w) * 24 / Number(a ?? d ?? at.width) : w; + } = Rp(), y = z(() => { + const N = No(r) || No(o) || r === !0 || o === !0 || f === !0, x = t || i || m || at["stroke-width"]; + return N ? Number(x) * 24 / Number(a ?? d ?? at.width) : x; }); - return dr( + return mr( "svg", { ...at, @@ -1609,14 +2060,14 @@ const lv = ({ width: a ?? d ?? at.width, height: a ?? d ?? at.height, stroke: l ?? c ?? at.stroke, - "stroke-width": b.value, - class: nv( + "stroke-width": y.value, + class: Zp( "lucide", g, - ...e ? [`lucide-${Eo(iv(e))}-icon`, `lucide-${Eo(e)}`] : ["lucide-icon"] + ...e ? [`lucide-${Po(Lp(e))}-icon`, `lucide-${Po(e)}`] : ["lucide-icon"] ) }, - [...n.map((E) => dr(...E)), ...u.default ? [u.default()] : []] + [...n.map((N) => mr(...N)), ...u.default ? [u.default()] : []] ); }; /** @@ -1625,8 +2076,8 @@ const lv = ({ * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */ -const me = (e, n) => (r, { slots: o, attrs: t }) => dr( - lv, +const fe = (e, n) => (r, { slots: o, attrs: t }) => mr( + Bp, { ...t, ...r, @@ -1641,102 +2092,102 @@ const me = (e, n) => (r, { slots: o, attrs: t }) => dr( * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */ -const uv = [ +const Vp = [ ["path", { d: "M12 5v14", key: "s699le" }], ["path", { d: "m19 12-7 7-7-7", key: "1idqje" }] -], Uo = me("arrow-down", uv); +], Ao = fe("arrow-down", Vp); /** * @license @lucide/vue v1.17.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */ -const sv = [ +const Jp = [ ["path", { d: "m5 12 7-7 7 7", key: "hav0vg" }], ["path", { d: "M12 19V5", key: "x0mq9r" }] -], To = me("arrow-up", sv); +], Co = fe("arrow-up", Jp); /** * @license @lucide/vue v1.17.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */ -const cv = [["path", { d: "M20 6 9 17l-5-5", key: "1gmf2c" }]], dv = me("check", cv); +const qp = [["path", { d: "M20 6 9 17l-5-5", key: "1gmf2c" }]], Gp = fe("check", qp); /** * @license @lucide/vue v1.17.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */ -const mv = [["path", { d: "m6 9 6 6 6-6", key: "qrunsl" }]], Po = me("chevron-down", mv); +const Kp = [["path", { d: "m6 9 6 6 6-6", key: "qrunsl" }]], Zo = fe("chevron-down", Kp); /** * @license @lucide/vue v1.17.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */ -const fv = [["path", { d: "m9 18 6-6-6-6", key: "mthhwq" }]], No = me("chevron-right", fv); +const Wp = [["path", { d: "m9 18 6-6-6-6", key: "mthhwq" }]], Mo = fe("chevron-right", Wp); /** * @license @lucide/vue v1.17.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */ -const vv = [ +const Xp = [ ["circle", { cx: "12", cy: "12", r: "10", key: "1mglay" }], ["line", { x1: "12", x2: "12", y1: "8", y2: "12", key: "1pkeuh" }], ["line", { x1: "12", x2: "12.01", y1: "16", y2: "16", key: "4dfq90" }] -], pv = me("circle-alert", vv); +], Hp = fe("circle-alert", Xp); /** * @license @lucide/vue v1.17.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */ -const gv = [ +const Yp = [ ["circle", { cx: "12", cy: "12", r: "10", key: "1mglay" }], ["path", { d: "M9.09 9a3 3 0 0 1 5.83 1c0 2-3 3-3 3", key: "1u773s" }], ["path", { d: "M12 17h.01", key: "p32p05" }] -], hv = me("circle-question-mark", gv); +], Qp = fe("circle-question-mark", Yp); /** * @license @lucide/vue v1.17.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */ -const $v = [ +const ev = [ ["rect", { width: "18", height: "18", x: "3", y: "3", rx: "2", key: "afitv7" }], ["path", { d: "M12 3v18", key: "108xh3" }] -], bv = me("columns-2", $v); +], tv = fe("columns-2", ev); /** * @license @lucide/vue v1.17.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */ -const _v = [ +const nv = [ ["rect", { width: "18", height: "18", x: "3", y: "3", rx: "2", key: "afitv7" }], ["path", { d: "M9 3v18", key: "fh3hqa" }], ["path", { d: "M15 3v18", key: "14nvp0" }] -], yv = me("columns-3", _v); +], rv = fe("columns-3", nv); /** * @license @lucide/vue v1.17.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */ -const kv = [ +const iv = [ ["circle", { cx: "12", cy: "12", r: "1", key: "41hilf" }], ["circle", { cx: "12", cy: "5", r: "1", key: "gxeob9" }], ["circle", { cx: "12", cy: "19", r: "1", key: "lyex9k" }] -], Sv = me("ellipsis-vertical", kv); +], ov = fe("ellipsis-vertical", iv); /** * @license @lucide/vue v1.17.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */ -const Iv = [ +const av = [ [ "path", { @@ -1753,14 +2204,14 @@ const Iv = [ } ], ["path", { d: "m2 2 20 20", key: "1ooewy" }] -], wv = me("eye-off", Iv); +], lv = fe("eye-off", av); /** * @license @lucide/vue v1.17.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */ -const zv = [ +const uv = [ [ "path", { @@ -1769,14 +2220,14 @@ const zv = [ } ], ["circle", { cx: "12", cy: "12", r: "3", key: "1v7zrd" }] -], Dv = me("eye", zv); +], sv = fe("eye", uv); /** * @license @lucide/vue v1.17.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */ -const jv = [ +const cv = [ [ "path", { @@ -1784,28 +2235,28 @@ const jv = [ key: "sc7q7i" } ] -], Da = me("funnel", jv); +], Oa = fe("funnel", cv); /** * @license @lucide/vue v1.17.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */ -const Ov = [ +const dv = [ ["circle", { cx: "9", cy: "12", r: "1", key: "1vctgf" }], ["circle", { cx: "9", cy: "5", r: "1", key: "hp0tcf" }], ["circle", { cx: "9", cy: "19", r: "1", key: "fkjjf6" }], ["circle", { cx: "15", cy: "12", r: "1", key: "1tmaij" }], ["circle", { cx: "15", cy: "5", r: "1", key: "19l28e" }], ["circle", { cx: "15", cy: "19", r: "1", key: "f4zoj3" }] -], xv = me("grip-vertical", Ov); +], mv = fe("grip-vertical", dv); /** * @license @lucide/vue v1.17.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */ -const Ev = [ +const fv = [ ["polyline", { points: "22 12 16 12 14 15 10 15 8 12 2 12", key: "o97t9d" }], [ "path", @@ -1814,57 +2265,57 @@ const Ev = [ key: "oot6mr" } ] -], Uv = me("inbox", Ev); +], pv = fe("inbox", fv); /** * @license @lucide/vue v1.17.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */ -const Tv = [["path", { d: "M21 12a9 9 0 1 1-6.219-8.56", key: "13zald" }]], Pv = me("loader-circle", Tv); +const vv = [["path", { d: "M21 12a9 9 0 1 1-6.219-8.56", key: "13zald" }]], gv = fe("loader-circle", vv); /** * @license @lucide/vue v1.17.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */ -const Nv = [ +const hv = [ ["path", { d: "M5 12h14", key: "1ays0h" }], ["path", { d: "M12 5v14", key: "s699le" }] -], Av = me("plus", Nv); +], bv = fe("plus", hv); /** * @license @lucide/vue v1.17.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */ -const Cv = [ +const $v = [ ["path", { d: "m21 21-4.34-4.34", key: "14j7rj" }], ["circle", { cx: "11", cy: "11", r: "8", key: "4ej97u" }] -], Zv = me("search", Cv); +], _v = fe("search", $v); /** * @license @lucide/vue v1.17.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */ -const Mv = [ +const yv = [ ["path", { d: "M10 11v6", key: "nco0om" }], ["path", { d: "M14 11v6", key: "outv1u" }], ["path", { d: "M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6", key: "miytrc" }], ["path", { d: "M3 6h18", key: "d0wm0j" }], ["path", { d: "M8 6V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2", key: "e791ji" }] -], Lv = me("trash-2", Mv); +], kv = fe("trash-2", yv); /** * @license @lucide/vue v1.17.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */ -const Fv = [ +const Sv = [ ["path", { d: "M18 6 6 18", key: "1bl5f8" }], ["path", { d: "m6 6 12 12", key: "d8bk6v" }] -], ja = me("x", Fv), Rv = Q({ +], Ea = fe("x", Sv), wv = Q({ name: "EliTabelaCelulaComponente", props: { dados: { @@ -1873,7 +2324,7 @@ const Fv = [ }, setup(e) { const n = B(void 0); - return rt(async () => { + return We(async () => { var o; if (!((o = e.dados) != null && o.props)) return; const r = e.dados.props(); @@ -1881,17 +2332,17 @@ const Fv = [ }), { propsResolvidas: n }; } }); -function Bv(e, n, r, o, t, i) { +function Iv(e, n, r, o, t, i) { var a; - return e.propsResolvidas ? (_(), re(Re((a = e.dados) == null ? void 0 : a.componente), Pm(we({ key: 0 }, e.propsResolvidas)), null, 16)) : X("", !0); + return e.propsResolvidas ? ($(), re(Re((a = e.dados) == null ? void 0 : a.componente), Cm(je({ key: 0 }, e.propsResolvidas)), null, 16)) : K("", !0); } -const Vv = /* @__PURE__ */ ee(Rv, [["render", Bv]]); -var un = { exports: {} }, Jv = un.exports, Ao; -function qv() { - return Ao || (Ao = 1, (function(e, n) { +const zv = /* @__PURE__ */ ee(wv, [["render", Iv]]); +var cn = { exports: {} }, Dv = cn.exports, Lo; +function jv() { + return Lo || (Lo = 1, (function(e, n) { (function(r, o) { e.exports = o(); - })(Jv, (function() { + })(Dv, (function() { return function(r, o, t) { r = r || {}; var i = o.prototype, a = { future: "in %s", past: "%s ago", s: "a few seconds", m: "a minute", mm: "%d minutes", h: "an hour", hh: "%d hours", d: "a day", dd: "%d days", M: "a month", MM: "%d months", y: "a year", yy: "%d years" }; @@ -1899,20 +2350,20 @@ function qv() { return i.fromToBase(u, d, c, m); } t.en.relativeTime = a, i.fromToBase = function(u, d, c, m, f) { - for (var g, b, E, w = c.$locale().relativeTime || a, z = r.thresholds || [{ l: "s", r: 44, d: "second" }, { l: "m", r: 89 }, { l: "mm", r: 44, d: "minute" }, { l: "h", r: 89 }, { l: "hh", r: 21, d: "hour" }, { l: "d", r: 35 }, { l: "dd", r: 25, d: "day" }, { l: "M", r: 45 }, { l: "MM", r: 10, d: "month" }, { l: "y", r: 17 }, { l: "yy", d: "year" }], L = z.length, A = 0; A < L; A += 1) { - var C = z[A]; + for (var g, y, N, x = c.$locale().relativeTime || a, D = r.thresholds || [{ l: "s", r: 44, d: "second" }, { l: "m", r: 89 }, { l: "mm", r: 44, d: "minute" }, { l: "h", r: 89 }, { l: "hh", r: 21, d: "hour" }, { l: "d", r: 35 }, { l: "dd", r: 25, d: "day" }, { l: "M", r: 45 }, { l: "MM", r: 10, d: "month" }, { l: "y", r: 17 }, { l: "yy", d: "year" }], L = D.length, A = 0; A < L; A += 1) { + var C = D[A]; C.d && (g = m ? t(u).diff(c, C.d, !0) : c.diff(u, C.d, !0)); var h = (r.rounding || Math.round)(Math.abs(g)); - if (E = g > 0, h <= C.r || !C.r) { - h <= 1 && A > 0 && (C = z[A - 1]); - var $ = w[C.l]; - f && (h = f("" + h)), b = typeof $ == "string" ? $.replace("%d", h) : $(h, d, C.l, E); + if (N = g > 0, h <= C.r || !C.r) { + h <= 1 && A > 0 && (C = D[A - 1]); + var b = x[C.l]; + f && (h = f("" + h)), y = typeof b == "string" ? b.replace("%d", h) : b(h, d, C.l, N); break; } } - if (d) return b; - var I = E ? w.future : w.past; - return typeof I == "function" ? I(b) : I.replace("%s", b); + if (d) return y; + var I = N ? x.future : x.past; + return typeof I == "function" ? I(y) : I.replace("%s", y); }, i.to = function(u, d) { return l(u, d, this, !0); }, i.from = function(u, d) { @@ -1928,30 +2379,13 @@ function qv() { }; }; })); - })(un)), un.exports; + })(cn)), cn.exports; } -var Gv = qv(); -const Wv = /* @__PURE__ */ _a(Gv); -var sn = { exports: {} }, Kv = sn.exports, Co; -function Xv() { - return Co || (Co = 1, (function(e, n) { - (function(r, o) { - e.exports = o(ya()); - })(Kv, (function(r) { - function o(a) { - return a && typeof a == "object" && "default" in a ? a : { default: a }; - } - var t = o(r), i = { name: "pt-br", weekdays: "domingo_segunda-feira_terça-feira_quarta-feira_quinta-feira_sexta-feira_sábado".split("_"), weekdaysShort: "dom_seg_ter_qua_qui_sex_sáb".split("_"), weekdaysMin: "Do_2ª_3ª_4ª_5ª_6ª_Sá".split("_"), months: "janeiro_fevereiro_março_abril_maio_junho_julho_agosto_setembro_outubro_novembro_dezembro".split("_"), monthsShort: "jan_fev_mar_abr_mai_jun_jul_ago_set_out_nov_dez".split("_"), ordinal: function(a) { - return a + "º"; - }, formats: { LT: "HH:mm", LTS: "HH:mm:ss", L: "DD/MM/YYYY", LL: "D [de] MMMM [de] YYYY", LLL: "D [de] MMMM [de] YYYY [às] HH:mm", LLLL: "dddd, D [de] MMMM [de] YYYY [às] HH:mm" }, relativeTime: { future: "em %s", past: "há %s", s: "poucos segundos", m: "um minuto", mm: "%d minutos", h: "uma hora", hh: "%d horas", d: "um dia", dd: "%d dias", M: "um mês", MM: "%d meses", y: "um ano", yy: "%d anos" } }; - return t.default.locale(i, null, !0), i; - })); - })(sn)), sn.exports; -} -Xv(); -Le.extend(Wv); -Le.locale("pt-br"); -const Yv = Q({ +var Ov = jv(); +const Ev = /* @__PURE__ */ ya(Ov); +he.extend(Ev); +he.locale("pt-br"); +const xv = Q({ name: "EliTabelaCelulaData", props: { dados: { @@ -1960,25 +2394,25 @@ const Yv = Q({ } }, setup(e) { - return { textoData: j(() => { + return { textoData: z(() => { var t, i; const r = (t = e.dados) == null ? void 0 : t.valor; if (!r) return ""; const o = ((i = e.dados) == null ? void 0 : i.formato) ?? "data"; - return o === "relativo" ? Le(r).fromNow() : o === "data_hora" ? Le(r).format("DD/MM/YYYY HH:mm") : Le(r).format("DD/MM/YYYY"); + return o === "relativo" ? he(r).fromNow() : o === "data_hora" ? he(r).format("DD/MM/YYYY HH:mm") : he(r).format("DD/MM/YYYY"); }) }; } -}), Hv = { key: 1 }; -function Qv(e, n, r, o, t, i) { +}), Uv = { key: 1 }; +function Tv(e, n, r, o, t, i) { var a; - return (a = e.dados) != null && a.acao ? (_(), S("button", { + return (a = e.dados) != null && a.acao ? ($(), S("button", { key: 0, type: "button", class: "eli-tabela__celula-link", - onClick: n[0] || (n[0] = ve((l) => e.dados.acao(), ["stop", "prevent"])) - }, V(e.textoData), 1)) : (_(), S("span", Hv, V(e.textoData), 1)); + onClick: n[0] || (n[0] = ce((l) => e.dados.acao(), ["stop", "prevent"])) + }, R(e.textoData), 1)) : ($(), S("span", Uv, R(e.textoData), 1)); } -const ep = /* @__PURE__ */ ee(Yv, [["render", Qv]]), tp = Q({ +const Nv = /* @__PURE__ */ ee(xv, [["render", Tv]]), Pv = Q({ name: "EliTabelaCelulaNumero", components: {}, props: { @@ -1987,60 +2421,60 @@ const ep = /* @__PURE__ */ ee(Yv, [["render", Qv]]), tp = Q({ } }, setup(e) { - return { textoNumero: j(() => { + return { textoNumero: z(() => { var l, s, u, d, c; const r = String((l = e.dados) == null ? void 0 : l.numero).replace(".", ","), o = (u = (s = e.dados) == null ? void 0 : s.prefixo) == null ? void 0 : u.trim(), t = (c = (d = e.dados) == null ? void 0 : d.sufixo) == null ? void 0 : c.trim(), i = o ? `${o} ` : "", a = t ? ` ${t}` : ""; return `${i}${r}${a}`; }) }; } -}), np = { key: 1 }; -function rp(e, n, r, o, t, i) { +}), Av = { key: 1 }; +function Cv(e, n, r, o, t, i) { var a; - return (a = e.dados) != null && a.acao ? (_(), S("button", { + return (a = e.dados) != null && a.acao ? ($(), S("button", { key: 0, type: "button", class: "eli-tabela__celula-link", - onClick: n[0] || (n[0] = ve((l) => e.dados.acao(), ["stop", "prevent"])) - }, V(e.textoNumero), 1)) : (_(), S("span", np, V(e.textoNumero), 1)); + onClick: n[0] || (n[0] = ce((l) => e.dados.acao(), ["stop", "prevent"])) + }, R(e.textoNumero), 1)) : ($(), S("span", Av, R(e.textoNumero), 1)); } -const ip = /* @__PURE__ */ ee(tp, [["render", rp]]), op = Q({ +const Zv = /* @__PURE__ */ ee(Pv, [["render", Cv]]), Mv = Q({ name: "EliTabelaCelulaTags", - components: { VChip: Fm }, + components: { VChip: Bm }, props: { dados: { type: Object, required: !1 } } -}), ap = { class: "eli-tabela__celula-tags" }; -function lp(e, n, r, o, t, i) { +}), Lv = { class: "eli-tabela__celula-tags" }; +function Fv(e, n, r, o, t, i) { var a; - return _(), S("div", ap, [ - (_(!0), S(ke, null, ze(((a = e.dados) == null ? void 0 : a.opcoes) ?? [], (l, s) => (_(), re(Vm, { + return $(), S("div", Lv, [ + ($(!0), S(ge, null, $e(((a = e.dados) == null ? void 0 : a.opcoes) ?? [], (l, s) => ($(), re(qm, { key: s, class: "eli-tabela__celula-tag", size: "small", variant: "tonal", color: l.cor, clickable: !!l.acao, - onClick: ve((u) => { + onClick: ce((u) => { var d; return (d = l.acao) == null ? void 0 : d.call(l); }, ["stop", "prevent"]) }, { default: ue(() => [ - l.icone ? (_(), re(Re(l.icone), { + l.icone ? ($(), re(Re(l.icone), { key: 0, class: "eli-tabela__celula-tag-icone", size: 14 - })) : X("", !0), - p("span", null, V(l.rotulo), 1) + })) : K("", !0), + p("span", null, R(l.rotulo), 1) ]), _: 2 }, 1032, ["color", "clickable", "onClick"]))), 128)) ]); } -const up = /* @__PURE__ */ ee(op, [["render", lp]]), sp = Q({ +const Rv = /* @__PURE__ */ ee(Mv, [["render", Fv]]), Bv = Q({ name: "EliTabelaCelulaTextoSimples", components: {}, props: { @@ -2052,49 +2486,49 @@ const up = /* @__PURE__ */ ee(op, [["render", lp]]), sp = Q({ return {}; }, methods: {} -}), cp = { key: 1 }; -function dp(e, n, r, o, t, i) { +}), Vv = { key: 1 }; +function Jv(e, n, r, o, t, i) { var a, l, s; - return (a = e.dados) != null && a.acao ? (_(), S("button", { + return (a = e.dados) != null && a.acao ? ($(), S("button", { key: 0, type: "button", class: "eli-tabela__celula-link", - onClick: n[0] || (n[0] = ve((u) => e.dados.acao(), ["stop", "prevent"])) - }, V((l = e.dados) == null ? void 0 : l.texto), 1)) : (_(), S("span", cp, V((s = e.dados) == null ? void 0 : s.texto), 1)); + onClick: n[0] || (n[0] = ce((u) => e.dados.acao(), ["stop", "prevent"])) + }, R((l = e.dados) == null ? void 0 : l.texto), 1)) : ($(), S("span", Vv, R((s = e.dados) == null ? void 0 : s.texto), 1)); } -const mp = /* @__PURE__ */ ee(sp, [["render", dp]]), fp = Q({ +const qv = /* @__PURE__ */ ee(Bv, [["render", Jv]]), Gv = Q({ name: "EliTabelaCelulaTextoTruncado", props: { dados: { type: Object } } -}), vp = ["title"], pp = ["title"]; -function gp(e, n, r, o, t, i) { +}), Kv = ["title"], Wv = ["title"]; +function Xv(e, n, r, o, t, i) { var a, l, s, u, d; - return (a = e.dados) != null && a.acao ? (_(), S("button", { + return (a = e.dados) != null && a.acao ? ($(), S("button", { key: 0, type: "button", class: "eli-tabela__texto-truncado eli-tabela__celula-link", title: (l = e.dados) == null ? void 0 : l.texto, - onClick: n[0] || (n[0] = ve((c) => { + onClick: n[0] || (n[0] = ce((c) => { var m, f; return (f = (m = e.dados) == null ? void 0 : m.acao) == null ? void 0 : f.call(m); }, ["stop", "prevent"])) - }, V((s = e.dados) == null ? void 0 : s.texto), 9, vp)) : (_(), S("span", { + }, R((s = e.dados) == null ? void 0 : s.texto), 9, Kv)) : ($(), S("span", { key: 1, class: "eli-tabela__texto-truncado", title: (u = e.dados) == null ? void 0 : u.texto - }, V((d = e.dados) == null ? void 0 : d.texto), 9, pp)); + }, R((d = e.dados) == null ? void 0 : d.texto), 9, Wv)); } -const hp = /* @__PURE__ */ ee(fp, [["render", gp]]), $p = { - textoSimples: mp, - textoTruncado: hp, - numero: ip, - tags: up, - data: ep, - componente: Vv -}, bp = Q({ +const Hv = /* @__PURE__ */ ee(Gv, [["render", Xv]]), Yv = { + textoSimples: qv, + textoTruncado: Hv, + numero: Zv, + tags: Rv, + data: Nv, + componente: zv +}, Qv = Q({ name: "EliTabelaCelula", props: { celula: { @@ -2104,16 +2538,16 @@ const hp = /* @__PURE__ */ ee(fp, [["render", gp]]), $p = { } }, setup(e) { - const n = j(() => e.celula[0]), r = j(() => e.celula[1]), o = j(() => $p[n.value]), t = j(() => r.value); + const n = z(() => e.celula[0]), r = z(() => e.celula[1]), o = z(() => Yv[n.value]), t = z(() => r.value); return { Componente: o, dadosParaComponente: t }; } }); -function _p(e, n, r, o, t, i) { - return _(), re(Re(e.Componente), { dados: e.dadosParaComponente }, null, 8, ["dados"]); +function eg(e, n, r, o, t, i) { + return $(), re(Re(e.Componente), { dados: e.dadosParaComponente }, null, 8, ["dados"]); } -const Oa = /* @__PURE__ */ ee(bp, [["render", _p]]), yp = Q({ +const xa = /* @__PURE__ */ ee(Qv, [["render", eg]]), tg = Q({ name: "EliTabelaDetalhesLinha", - components: { EliTabelaCelula: Oa }, + components: { EliTabelaCelula: xa }, props: { linha: { type: [Object, String, Number, Array], @@ -2125,16 +2559,16 @@ const Oa = /* @__PURE__ */ ee(bp, [["render", _p]]), yp = Q({ required: !0 } } -}), kp = { class: "eli-tabela__detalhes" }, Sp = { class: "eli-tabela__detalhe-rotulo" }, Ip = { class: "eli-tabela__detalhe-valor" }; -function wp(e, n, r, o, t, i) { - const a = H("EliTabelaCelula"); - return _(), S("div", kp, [ - (_(!0), S(ke, null, ze(e.colunasInvisiveis, (l, s) => (_(), S("div", { +}), ng = { class: "eli-tabela__detalhes" }, rg = { class: "eli-tabela__detalhe-rotulo" }, ig = { class: "eli-tabela__detalhe-valor" }; +function og(e, n, r, o, t, i) { + const a = Y("EliTabelaCelula"); + return $(), S("div", ng, [ + ($(!0), S(ge, null, $e(e.colunasInvisiveis, (l, s) => ($(), S("div", { key: `det-${s}-${l.rotulo}`, class: "eli-tabela__detalhe" }, [ - p("div", Sp, V(l.rotulo), 1), - p("div", Ip, [ + p("div", rg, R(l.rotulo), 1), + p("div", ig, [ M(a, { celula: l.celula(e.linha) }, null, 8, ["celula"]) @@ -2142,14 +2576,14 @@ function wp(e, n, r, o, t, i) { ]))), 128)) ]); } -const zp = /* @__PURE__ */ ee(yp, [["render", wp]]), Dp = Q({ +const ag = /* @__PURE__ */ ee(tg, [["render", og]]), lg = Q({ name: "EliTabelaBody", components: { - EliTabelaCelula: Oa, - EliTabelaDetalhesLinha: zp, - MoreVertical: Sv, - ChevronRight: No, - ChevronDown: Po + EliTabelaCelula: xa, + EliTabelaDetalhesLinha: ag, + MoreVertical: ov, + ChevronRight: Mo, + ChevronDown: Zo }, props: { colunas: { @@ -2209,43 +2643,43 @@ const zp = /* @__PURE__ */ ee(yp, [["render", wp]]), Dp = Q({ }, setup() { return { - ChevronRight: No, - ChevronDown: Po + ChevronRight: Mo, + ChevronDown: Zo }; } -}), jp = { class: "eli-tabela__tbody" }, Op = ["aria-expanded", "aria-label", "title", "onClick"], xp = ["checked", "onChange"], Ep = ["id", "disabled", "aria-expanded", "aria-controls", "aria-label", "title", "onClick"], Up = ["colspan"]; -function Tp(e, n, r, o, t, i) { - const a = H("EliTabelaCelula"), l = H("MoreVertical"), s = H("EliTabelaDetalhesLinha"); - return _(), S("tbody", jp, [ - (_(!0), S(ke, null, ze(e.linhas, (u, d) => { - var c, m, f, g, b, E; - return _(), S(ke, { +}), ug = { class: "eli-tabela__tbody" }, sg = ["aria-expanded", "aria-label", "title", "onClick"], cg = ["checked", "onChange"], dg = ["id", "disabled", "aria-expanded", "aria-controls", "aria-label", "title", "onClick"], mg = ["colspan"]; +function fg(e, n, r, o, t, i) { + const a = Y("EliTabelaCelula"), l = Y("MoreVertical"), s = Y("EliTabelaDetalhesLinha"); + return $(), S("tbody", ug, [ + ($(!0), S(ge, null, $e(e.linhas, (u, d) => { + var c, m, f, g, y, N; + return $(), S(ge, { key: `grp-${d}` }, [ p("tr", { - class: Me(["eli-tabela__tr", [d % 2 === 1 ? "eli-tabela__tr--zebra" : void 0]]) + class: Ue(["eli-tabela__tr", [d % 2 === 1 ? "eli-tabela__tr--zebra" : void 0]]) }, [ - e.temColunasInvisiveis ? (_(), S("td", { + e.temColunasInvisiveis ? ($(), S("td", { class: "eli-tabela__td eli-tabela__td--expander", key: `td-${d}-exp` }, [ p("button", { type: "button", - class: Me(["eli-tabela__expander-botao", [(c = e.linhasExpandidas) != null && c[d] ? "eli-tabela__expander-botao--ativo" : void 0]]), + class: Ue(["eli-tabela__expander-botao", [(c = e.linhasExpandidas) != null && c[d] ? "eli-tabela__expander-botao--ativo" : void 0]]), "aria-expanded": (m = e.linhasExpandidas) != null && m[d] ? "true" : "false", "aria-label": (f = e.linhasExpandidas) != null && f[d] ? "Ocultar colunas ocultas" : "Mostrar colunas ocultas", title: (g = e.linhasExpandidas) != null && g[d] ? "Ocultar detalhes" : "Mostrar detalhes", - onClick: ve((w) => e.alternarLinhaExpandida(d), ["stop"]) + onClick: ce((x) => e.alternarLinhaExpandida(d), ["stop"]) }, [ - (_(), re(Re((b = e.linhasExpandidas) != null && b[d] ? e.ChevronDown : e.ChevronRight), { + ($(), re(Re((y = e.linhasExpandidas) != null && y[d] ? e.ChevronDown : e.ChevronRight), { class: "eli-tabela__expander-icone", size: 16, "stroke-width": 2, "aria-hidden": "true" })) - ], 10, Op) - ])) : X("", !0), - e.mostrarSelecao ? (_(), S("td", { + ], 10, sg) + ])) : K("", !0), + e.mostrarSelecao ? ($(), S("td", { class: "eli-tabela__td eli-tabela__td--selecao", key: `td-${d}-selecao` }, [ @@ -2253,26 +2687,26 @@ function Tp(e, n, r, o, t, i) { type: "checkbox", class: "eli-tabela__checkbox", checked: e.isSelecionado(u), - onChange: (w) => e.alternarSelecao(u), - onClick: n[0] || (n[0] = ve(() => { + onChange: (x) => e.alternarSelecao(u), + onClick: n[0] || (n[0] = ce(() => { }, ["stop"])), "aria-label": "Selecionar linha" - }, null, 40, xp) - ])) : X("", !0), - (_(!0), S(ke, null, ze(e.colunas, (w, z) => (_(), S("td", { - key: `td-${d}-${z}`, + }, null, 40, cg) + ])) : K("", !0), + ($(!0), S(ge, null, $e(e.colunas, (x, D) => ($(), S("td", { + key: `td-${d}-${D}`, class: "eli-tabela__td" }, [ M(a, { - celula: w.celula(u) + celula: x.celula(u) }, null, 8, ["celula"]) ]))), 128)), - e.temAcoes ? (_(), S("td", { + e.temAcoes ? ($(), S("td", { class: "eli-tabela__td eli-tabela__td--acoes", key: `td-${d}-acoes` }, [ p("div", { - class: Me(["eli-tabela__acoes-container", [e.menuAberto === d ? "eli-tabela__acoes-container--aberto" : void 0]]) + class: Ue(["eli-tabela__acoes-container", [e.menuAberto === d ? "eli-tabela__acoes-container--aberto" : void 0]]) }, [ p("button", { class: "eli-tabela__acoes-toggle", @@ -2284,20 +2718,20 @@ function Tp(e, n, r, o, t, i) { "aria-controls": e.possuiAcoes(d) ? `eli-tabela-acoes-menu-${d}` : void 0, "aria-label": e.possuiAcoes(d) ? "Ações da linha" : "Nenhuma ação disponível", title: e.possuiAcoes(d) ? "Ações" : "Nenhuma ação disponível", - onClick: ve((w) => e.toggleMenu(d, w), ["stop"]) + onClick: ce((x) => e.toggleMenu(d, x), ["stop"]) }, [ M(l, { class: "eli-tabela__acoes-toggle-icone", size: 18, "stroke-width": 2 }) - ], 8, Ep) + ], 8, dg) ], 2) - ])) : X("", !0) + ])) : K("", !0) ], 2), - e.temColunasInvisiveis && ((E = e.linhasExpandidas) != null && E[d]) ? (_(), S("tr", { + e.temColunasInvisiveis && ((N = e.linhasExpandidas) != null && N[d]) ? ($(), S("tr", { key: 0, - class: Me(["eli-tabela__tr eli-tabela__tr--detalhes", [d % 2 === 1 ? "eli-tabela__tr--zebra" : void 0]]) + class: Ue(["eli-tabela__tr eli-tabela__tr--detalhes", [d % 2 === 1 ? "eli-tabela__tr--zebra" : void 0]]) }, [ p("td", { class: "eli-tabela__td eli-tabela__td--detalhes", @@ -2307,15 +2741,15 @@ function Tp(e, n, r, o, t, i) { linha: u, colunasInvisiveis: e.colunasInvisiveis }, null, 8, ["linha", "colunasInvisiveis"]) - ], 8, Up) - ], 2)) : X("", !0) + ], 8, mg) + ], 2)) : K("", !0) ], 64); }), 128)) ]); } -const Pp = /* @__PURE__ */ ee(Dp, [["render", Tp]]), Np = Q({ +const pg = /* @__PURE__ */ ee(lg, [["render", fg]]), vg = Q({ name: "EliTabelaCaixaDeBusca", - components: { Search: Zv }, + components: { Search: _v }, props: { modelo: { type: String, @@ -2330,7 +2764,7 @@ const Pp = /* @__PURE__ */ ee(Dp, [["render", Tp]]), Np = Q({ }, setup(e, { emit: n }) { const r = B(e.modelo ?? ""); - _e( + be( () => e.modelo, (t) => { t !== void 0 && t !== r.value && (r.value = t); @@ -2341,20 +2775,20 @@ const Pp = /* @__PURE__ */ ee(Dp, [["render", Tp]]), Np = Q({ } return { texto: r, emitirBusca: o }; } -}), Ap = { class: "eli-tabela__busca" }, Cp = { class: "eli-tabela__busca-input-wrapper" }; -function Zp(e, n, r, o, t, i) { - const a = H("Search"); - return _(), S("div", Ap, [ - p("div", Cp, [ +}), gg = { class: "eli-tabela__busca" }, hg = { class: "eli-tabela__busca-input-wrapper" }; +function bg(e, n, r, o, t, i) { + const a = Y("Search"); + return $(), S("div", gg, [ + p("div", hg, [ dn(p("input", { id: "eli-tabela-busca", "onUpdate:modelValue": n[0] || (n[0] = (l) => e.texto = l), type: "search", class: "eli-tabela__busca-input", placeholder: "Digite termos para filtrar", - onKeyup: n[1] || (n[1] = ua((...l) => e.emitirBusca && e.emitirBusca(...l), ["enter"])) + onKeyup: n[1] || (n[1] = ut((...l) => e.emitirBusca && e.emitirBusca(...l), ["enter"])) }, null, 544), [ - [br, e.texto] + [kr, e.texto] ]), p("button", { type: "button", @@ -2373,9 +2807,9 @@ function Zp(e, n, r, o, t, i) { ]) ]); } -const Mp = /* @__PURE__ */ ee(Np, [["render", Zp]]), Lp = Q({ +const $g = /* @__PURE__ */ ee(vg, [["render", bg]]), _g = Q({ name: "EliTabelaCabecalho", - components: { Columns3: yv, EliTabelaCaixaDeBusca: Mp, Filter: Da }, + components: { Columns3: rv, EliTabelaCaixaDeBusca: $g, Filter: Oa }, props: { exibirBusca: { type: Boolean, @@ -2422,7 +2856,7 @@ const Mp = /* @__PURE__ */ ee(Np, [["render", Zp]]), Lp = Q({ } }, setup(e, { emit: n }) { - const r = j(() => e.acoesCabecalho.length > 0), o = j(() => { + const r = z(() => e.acoesCabecalho.length > 0), o = z(() => { const { quantidade: l, rotulos: s } = e.filtrosAtivosResumo; return l === 0 ? "Filtro avançado" : `Filtros ativos (${l}): ${s.map((u) => `• ${u}`).join(` @@ -2439,21 +2873,21 @@ ${s.map((u) => `• ${u}`).join(` } return { temAcoesCabecalho: r, tooltipFiltro: o, emitBuscar: t, emitColunas: i, emitFiltroAvancado: a }; } -}), Fp = { class: "eli-tabela__cabecalho" }, Rp = { +}), yg = { class: "eli-tabela__cabecalho" }, kg = { key: 0, class: "eli-tabela__busca-grupo" -}, Bp = ["title"], Vp = { class: "eli-tabela__filtro-icone-container" }, Jp = { +}, Sg = ["title"], wg = { class: "eli-tabela__filtro-icone-container" }, Ig = { key: 0, class: "eli-tabela__filtro-badge" -}, qp = { +}, zg = { key: 1, class: "eli-tabela__acoes-cabecalho" -}, Gp = ["onClick"], Wp = { class: "eli-tabela__acoes-cabecalho-rotulo" }; -function Kp(e, n, r, o, t, i) { - const a = H("Columns3"), l = H("Filter"), s = H("EliTabelaCaixaDeBusca"); - return _(), S("div", Fp, [ - e.exibirBusca ? (_(), S("div", Rp, [ - e.exibirBotaoColunas ? (_(), S("button", { +}, Dg = ["onClick"], jg = { class: "eli-tabela__acoes-cabecalho-rotulo" }; +function Og(e, n, r, o, t, i) { + const a = Y("Columns3"), l = Y("Filter"), s = Y("EliTabelaCaixaDeBusca"); + return $(), S("div", yg, [ + e.exibirBusca ? ($(), S("div", kg, [ + e.exibirBotaoColunas ? ($(), S("button", { key: 0, type: "button", class: "eli-tabela__acoes-cabecalho-botao eli-tabela__acoes-cabecalho-botao--colunas", @@ -2464,48 +2898,48 @@ function Kp(e, n, r, o, t, i) { "stroke-width": 2 }), n[2] || (n[2] = ne(" Colunas ", -1)) - ])) : X("", !0), - e.exibirBotaoFiltroAvancado ? (_(), S("button", { + ])) : K("", !0), + e.exibirBotaoFiltroAvancado ? ($(), S("button", { key: 1, type: "button", class: "eli-tabela__acoes-cabecalho-botao eli-tabela__acoes-cabecalho-botao--filtro", title: e.tooltipFiltro, onClick: n[1] || (n[1] = (...u) => e.emitFiltroAvancado && e.emitFiltroAvancado(...u)) }, [ - p("span", Vp, [ + p("span", wg, [ M(l, { size: 15, "stroke-width": 2 }), - e.filtrosAtivosResumo.quantidade > 0 ? (_(), S("span", Jp, V(e.filtrosAtivosResumo.quantidade), 1)) : X("", !0) + e.filtrosAtivosResumo.quantidade > 0 ? ($(), S("span", Ig, R(e.filtrosAtivosResumo.quantidade), 1)) : K("", !0) ]), n[3] || (n[3] = ne(" Filtro ", -1)) - ], 8, Bp)) : X("", !0), + ], 8, Sg)) : K("", !0), M(s, { modelo: e.valorBusca, onBuscar: e.emitBuscar }, null, 8, ["modelo", "onBuscar"]) - ])) : X("", !0), - e.temAcoesCabecalho ? (_(), S("div", qp, [ - (_(!0), S(ke, null, ze(e.acoesCabecalho, (u, d) => (_(), S("button", { + ])) : K("", !0), + e.temAcoesCabecalho ? ($(), S("div", zg, [ + ($(!0), S(ge, null, $e(e.acoesCabecalho, (u, d) => ($(), S("button", { key: `${u.rotulo}-${d}`, type: "button", class: "eli-tabela__acoes-cabecalho-botao", - style: kt(u.cor ? { backgroundColor: u.cor, color: "#fff" } : void 0), + style: st(u.cor ? { backgroundColor: u.cor, color: "#fff" } : void 0), onClick: (c) => u.acao(e.parametrosConsulta) }, [ - u.icone ? (_(), re(Re(u.icone), { + u.icone ? ($(), re(Re(u.icone), { key: 0, class: "eli-tabela__acoes-cabecalho-icone", size: 16, "stroke-width": 2 - })) : X("", !0), - p("span", Wp, V(u.rotulo), 1) - ], 12, Gp))), 128)) - ])) : X("", !0) + })) : K("", !0), + p("span", jg, R(u.rotulo), 1) + ], 12, Dg))), 128)) + ])) : K("", !0) ]); } -const Xp = /* @__PURE__ */ ee(Lp, [["render", Kp]]), Yp = Q({ +const Eg = /* @__PURE__ */ ee(_g, [["render", Og]]), xg = Q({ name: "EliTabelaDebug", props: { isDev: { @@ -2538,36 +2972,36 @@ const Xp = /* @__PURE__ */ ee(Lp, [["render", Kp]]), Yp = Q({ } `, document.head.appendChild(r)) : r && r.remove(); }; - _e(() => e.isDev, n), rt(n), Nm(() => { + be(() => e.isDev, n), We(n), Zm(() => { const r = document.getElementById("eli-tabela-debug-style"); r && r.remove(); }); } -}), Hp = { +}), Ug = { key: 0, style: { position: "fixed", right: "0", top: "0", bottom: "0", width: "360px", "z-index": "999999", background: "rgba(20, 20, 20, 0.95)", color: "#32CD32", padding: "20px 16px", "font-family": "'Courier New', Courier, monospace", "font-size": "12px", "overflow-y": "auto", "border-left": "1px solid #333", display: "flex", "flex-direction": "column", gap: "6px" } -}, Qp = { style: { color: "#bbb" } }, eg = { style: { color: "#fff" } }, tg = { style: { color: "#bbb" } }, ng = { style: { color: "#fff" } }, rg = { style: { color: "#fff" } }, ig = { style: { "margin-top": "8px", "white-space": "pre-wrap", "word-break": "break-all" } }; -function og(e, n, r, o, t, i) { - return e.isDev ? (_(), S("div", Hp, [ +}, Tg = { style: { color: "#bbb" } }, Ng = { style: { color: "#fff" } }, Pg = { style: { color: "#bbb" } }, Ag = { style: { color: "#fff" } }, Cg = { style: { color: "#fff" } }, Zg = { style: { "margin-top": "8px", "white-space": "pre-wrap", "word-break": "break-all" } }; +function Mg(e, n, r, o, t, i) { + return e.isDev ? ($(), S("div", Ug, [ n[3] || (n[3] = p("div", { style: { "font-weight": "bold", color: "#fff", "margin-bottom": "8px", "text-transform": "uppercase", "letter-spacing": "1px", "border-bottom": "1px solid #333", "padding-bottom": "8px" } }, " EliTabela // Log Terminal ", -1)), - p("div", Qp, [ + p("div", Tg, [ n[0] || (n[0] = ne("menuAberto: ", -1)), - p("span", eg, V(e.menuAberto), 1) + p("span", Ng, R(e.menuAberto), 1) ]), - p("div", tg, [ + p("div", Pg, [ n[1] || (n[1] = ne("menuPos: top=", -1)), - p("span", ng, V(e.menuPopupPos.top), 1), + p("span", Ag, R(e.menuPopupPos.top), 1), n[2] || (n[2] = ne(", left=", -1)), - p("span", rg, V(e.menuPopupPos.left), 1) + p("span", Cg, R(e.menuPopupPos.left), 1) ]), - p("div", ig, [ - He(e.$slots, "default") + p("div", Zg, [ + Qe(e.$slots, "default") ]) - ])) : X("", !0); + ])) : K("", !0); } -const ag = /* @__PURE__ */ ee(Yp, [["render", og]]), lg = Q({ +const Lg = /* @__PURE__ */ ee(xg, [["render", Mg]]), Fg = Q({ name: "EliTabelaEstados", - components: { AlertCircle: pv, Inbox: Uv, LoaderCircle: Pv }, + components: { AlertCircle: Hp, Inbox: pv, LoaderCircle: gv }, props: { carregando: { type: Boolean, @@ -2583,28 +3017,28 @@ const ag = /* @__PURE__ */ ee(Yp, [["render", og]]), lg = Q({ default: void 0 } } -}), ug = { +}), Rg = { key: 0, class: "eli-tabela eli-tabela--carregando", "aria-busy": "true" -}, sg = { +}, Bg = { key: 1, class: "eli-tabela eli-tabela--erro", role: "alert" -}, cg = { class: "eli-tabela__erro-mensagem" }, dg = { +}, Vg = { class: "eli-tabela__erro-mensagem" }, Jg = { key: 2, class: "eli-tabela eli-tabela--vazio" }; -function mg(e, n, r, o, t, i) { - const a = H("LoaderCircle"), l = H("AlertCircle"), s = H("Inbox"); - return e.carregando ? (_(), S("div", ug, [ +function qg(e, n, r, o, t, i) { + const a = Y("LoaderCircle"), l = Y("AlertCircle"), s = Y("Inbox"); + return e.carregando ? ($(), S("div", Rg, [ M(a, { class: "eli-tabela__estado-icone eli-tabela__estado-icone--spin", size: 22, "stroke-width": 2 }), n[0] || (n[0] = p("span", null, "Carregando…", -1)) - ])) : e.erro ? (_(), S("div", sg, [ + ])) : e.erro ? ($(), S("div", Bg, [ M(l, { class: "eli-tabela__estado-icone eli-tabela__estado-icone--erro", size: 18, @@ -2612,20 +3046,20 @@ function mg(e, n, r, o, t, i) { }), p("div", null, [ n[1] || (n[1] = p("div", { class: "eli-tabela__erro-titulo" }, "Erro", -1)), - p("div", cg, V(e.erro), 1) + p("div", Vg, R(e.erro), 1) ]) - ])) : (_(), S("div", dg, [ + ])) : ($(), S("div", Jg, [ M(s, { class: "eli-tabela__estado-icone", size: 22, "stroke-width": 1.5 }), - p("span", null, V(e.mensagemVazio ?? "Nenhum registro encontrado."), 1) + p("span", null, R(e.mensagemVazio ?? "Nenhum registro encontrado."), 1) ])); } -const fg = /* @__PURE__ */ ee(lg, [["render", mg]]), vg = Q({ +const Gg = /* @__PURE__ */ ee(Fg, [["render", qg]]), Kg = Q({ name: "EliTabelaHead", - components: { ArrowUp: To, ArrowDown: Uo }, + components: { ArrowUp: Co, ArrowDown: Ao }, props: { colunas: { // biome-ignore lint/suspicious/noExplicitAny: dynamic column @@ -2675,34 +3109,34 @@ const fg = /* @__PURE__ */ ee(lg, [["render", mg]]), vg = Q({ n("alternarOrdenacao", t); } return { - ArrowUp: To, - ArrowDown: Uo, + ArrowUp: Co, + ArrowDown: Ao, isOrdenavel: r, emitAlternarOrdenacao: o }; } -}), pg = { class: "eli-tabela__thead" }, gg = { class: "eli-tabela__tr eli-tabela__tr--header" }, hg = { +}), Wg = { class: "eli-tabela__thead" }, Xg = { class: "eli-tabela__tr eli-tabela__tr--header" }, Hg = { key: 0, class: "eli-tabela__th eli-tabela__th--expander", scope: "col" -}, $g = { +}, Yg = { key: 1, class: "eli-tabela__th eli-tabela__th--selecao", scope: "col" -}, bg = ["checked", "indeterminate"], _g = ["onClick"], yg = { class: "eli-tabela__th-texto" }, kg = { +}, Qg = ["checked", "indeterminate"], eh = ["onClick"], th = { class: "eli-tabela__th-texto" }, nh = { key: 1, class: "eli-tabela__th-label" -}, Sg = { +}, rh = { key: 2, class: "eli-tabela__th eli-tabela__th--acoes", scope: "col" }; -function Ig(e, n, r, o, t, i) { - const a = H("ArrowUp"); - return _(), S("thead", pg, [ - p("tr", gg, [ - e.temColunasInvisiveis ? (_(), S("th", hg)) : X("", !0), - e.mostrarSelecao ? (_(), S("th", $g, [ +function ih(e, n, r, o, t, i) { + const a = Y("ArrowUp"); + return $(), S("thead", Wg, [ + p("tr", Xg, [ + e.temColunasInvisiveis ? ($(), S("th", Hg)) : K("", !0), + e.mostrarSelecao ? ($(), S("th", Yg, [ p("input", { type: "checkbox", class: "eli-tabela__checkbox", @@ -2710,42 +3144,42 @@ function Ig(e, n, r, o, t, i) { indeterminate: e.algunsSelecionados, onChange: n[0] || (n[0] = (l) => e.$emit("alternar-selecao-todos")), "aria-label": "Selecionar todos os itens da página" - }, null, 40, bg) - ])) : X("", !0), - (_(!0), S(ke, null, ze(e.colunas, (l, s) => (_(), S("th", { + }, null, 40, Qg) + ])) : K("", !0), + ($(!0), S(ge, null, $e(e.colunas, (l, s) => ($(), S("th", { key: `th-${s}`, - class: Me(["eli-tabela__th", [e.isOrdenavel(l) ? "eli-tabela__th--ordenavel" : void 0]]), + class: Ue(["eli-tabela__th", [e.isOrdenavel(l) ? "eli-tabela__th--ordenavel" : void 0]]), scope: "col" }, [ - e.isOrdenavel(l) ? (_(), S("button", { + e.isOrdenavel(l) ? ($(), S("button", { key: 0, type: "button", - class: Me(["eli-tabela__th-botao", [ + class: Ue(["eli-tabela__th-botao", [ e.colunaOrdenacao === String(l.coluna_ordem) ? "eli-tabela__th-botao--ativo" : void 0 ]]), onClick: (u) => e.emitAlternarOrdenacao(String(l.coluna_ordem)) }, [ - p("span", yg, V(l.rotulo), 1), - e.colunaOrdenacao === String(l.coluna_ordem) ? (_(), re(Re(e.direcaoOrdenacao === "asc" ? e.ArrowUp : e.ArrowDown), { + p("span", th, R(l.rotulo), 1), + e.colunaOrdenacao === String(l.coluna_ordem) ? ($(), re(Re(e.direcaoOrdenacao === "asc" ? e.ArrowUp : e.ArrowDown), { key: 0, class: "eli-tabela__th-icone", size: 16, "stroke-width": 2, "aria-hidden": "true" - })) : (_(), re(a, { + })) : ($(), re(a, { key: 1, class: "eli-tabela__th-icone eli-tabela__th-icone--oculto", size: 16, "stroke-width": 2, "aria-hidden": "true" })) - ], 10, _g)) : (_(), S("span", kg, V(l.rotulo), 1)) + ], 10, eh)) : ($(), S("span", nh, R(l.rotulo), 1)) ], 2))), 128)), - e.temAcoes ? (_(), S("th", Sg, " Ações ")) : X("", !0) + e.temAcoes ? ($(), S("th", rh, " Ações ")) : K("", !0) ]) ]); } -const wg = /* @__PURE__ */ ee(vg, [["render", Ig]]), zg = Q({ +const oh = /* @__PURE__ */ ee(Kg, [["render", ih]]), ah = Q({ name: "EliTabelaMenuAcoes", props: { menuAberto: { @@ -2774,31 +3208,31 @@ const wg = /* @__PURE__ */ ee(vg, [["render", Ig]]), zg = Q({ } }, setup(e, { emit: n }) { - const r = B(null), o = j(() => e.acoes.length > 0); + const r = B(null), o = z(() => e.acoes.length > 0); function t(i) { e.linha && n("executar", { acao: i.acao, linha: e.linha }); } return { menuEl: r, possuiAcoes: o, emitExecutar: t }; } -}), Dg = { class: "eli-teleport-container" }, jg = ["id", "aria-labelledby"], Og = ["aria-label", "title", "onClick"], xg = { class: "eli-tabela__acoes-item-texto" }; -function Eg(e, n, r, o, t, i) { - return _(), S("div", Dg, [ - (_(), re(sa, { to: "body" }, [ - e.menuAberto !== null && e.possuiAcoes ? (_(), S("ul", { +}), lh = { class: "eli-teleport-container" }, uh = ["id", "aria-labelledby"], sh = ["aria-label", "title", "onClick"], ch = { class: "eli-tabela__acoes-item-texto" }; +function dh(e, n, r, o, t, i) { + return $(), S("div", lh, [ + ($(), re(yr, { to: "body" }, [ + e.menuAberto !== null && e.possuiAcoes ? ($(), S("ul", { key: 0, id: `eli-tabela-acoes-menu-${e.menuAberto}`, ref: "menuEl", class: "eli-tabela__acoes-menu", role: "menu", "aria-labelledby": `eli-tabela-acoes-toggle-${e.menuAberto}`, - style: kt({ + style: st({ position: "fixed", top: `${e.posicao.top}px`, left: `${e.posicao.left}px`, zIndex: 999999 }) }, [ - (_(!0), S(ke, null, ze(e.acoes, (a) => (_(), S("li", { + ($(!0), S(ge, null, $e(e.acoes, (a) => ($(), S("li", { key: `acao-${e.menuAberto}-${a.indice}`, class: "eli-tabela__acoes-item", role: "none" @@ -2806,26 +3240,26 @@ function Eg(e, n, r, o, t, i) { p("button", { type: "button", class: "eli-tabela__acoes-item-botao", - style: kt({ color: a.acao.cor }), + style: st({ color: a.acao.cor }), role: "menuitem", "aria-label": a.acao.rotulo, title: a.acao.rotulo, - onClick: ve((l) => e.emitExecutar(a), ["stop"]) + onClick: ce((l) => e.emitExecutar(a), ["stop"]) }, [ - (_(), re(Re(a.acao.icone), { + ($(), re(Re(a.acao.icone), { class: "eli-tabela__acoes-item-icone", size: 16, "stroke-width": 2 })), - p("span", xg, V(a.acao.rotulo), 1) - ], 12, Og) + p("span", ch, R(a.acao.rotulo), 1) + ], 12, sh) ]))), 128)) - ], 12, jg)) : X("", !0) + ], 12, uh)) : K("", !0) ])) ]); } -const Ug = /* @__PURE__ */ ee(zg, [["render", Eg]]); -function Tg({ +const mh = /* @__PURE__ */ ee(ah, [["render", dh]]); +function fh({ aberto: e, rotulosColunas: n, configInicial: r, @@ -2836,14 +3270,14 @@ function Tg({ var A, C; const m = n.value, f = (((A = r.value.visiveis) == null ? void 0 : A.length) ?? 0) > 0 || (((C = r.value.invisiveis) == null ? void 0 : C.length) ?? 0) > 0, g = new Set( o.value.filter((h) => h.visivel === !1).map((h) => h.rotulo) - ), b = f ? new Set(r.value.invisiveis ?? []) : g, E = m.filter((h) => !b.has(h)), w = r.value.visiveis ?? [], z = new Set(E), L = []; - for (const h of w) - z.has(h) && L.push(h); - for (const h of E) + ), y = f ? new Set(r.value.invisiveis ?? []) : g, N = m.filter((h) => !y.has(h)), x = r.value.visiveis ?? [], D = new Set(N), L = []; + for (const h of x) + D.has(h) && L.push(h); + for (const h of N) L.includes(h) || L.push(h); - t.value = L, i.value = m.filter((h) => b.has(h)); + t.value = L, i.value = m.filter((h) => y.has(h)); } - _e( + be( () => [e.value, n.value, r.value, o.value], () => { e.value && l(); @@ -2859,18 +3293,18 @@ function Tg({ function d(m, f) { const g = a.value; if (!g || g === m) return; - const b = t.value.indexOf(g), E = i.value.indexOf(g), w = b >= 0 ? "visiveis" : E >= 0 ? "invisiveis" : null; - if (!w) return; - const z = w === "visiveis" ? t.value : i.value, L = f === "visiveis" ? t.value : i.value, A = z.indexOf(g), C = L.indexOf(m); - z.splice(A, 1), L.splice(C, 0, g); + const y = t.value.indexOf(g), N = i.value.indexOf(g), x = y >= 0 ? "visiveis" : N >= 0 ? "invisiveis" : null; + if (!x) return; + const D = x === "visiveis" ? t.value : i.value, L = f === "visiveis" ? t.value : i.value, A = D.indexOf(g), C = L.indexOf(m); + D.splice(A, 1), L.splice(C, 0, g); } function c(m) { const f = a.value; if (!f) return; const g = m === "visiveis" ? t.value : i.value; if (g[g.length - 1] === f) return; - const b = t.value.indexOf(f), E = i.value.indexOf(f); - b >= 0 && t.value.splice(b, 1), E >= 0 && i.value.splice(E, 1), g.push(f); + const y = t.value.indexOf(f), N = i.value.indexOf(f); + y >= 0 && t.value.splice(y, 1), N >= 0 && i.value.splice(N, 1), g.push(f); } return { visiveisLocal: t, @@ -2882,9 +3316,9 @@ function Tg({ onDragOverLista: c }; } -const Pg = Q({ +const ph = Q({ name: "EliTabelaModalColunas", - components: { Columns2: bv, Eye: Dv, EyeOff: wv, GripVertical: xv, X: ja, Check: dv }, + components: { Columns2: tv, Eye: sv, EyeOff: lv, GripVertical: mv, X: Ea, Check: Gp }, props: { aberto: { type: Boolean, required: !0 }, rotulosColunas: { type: Array, required: !0 }, @@ -2904,11 +3338,11 @@ const Pg = Q({ } }, setup(e, { emit: n }) { - const r = Tg({ - aberto: j(() => e.aberto), - rotulosColunas: j(() => e.rotulosColunas), - configInicial: j(() => e.configInicial), - colunas: j(() => e.colunas) + const r = fh({ + aberto: z(() => e.aberto), + rotulosColunas: z(() => e.rotulosColunas), + configInicial: z(() => e.configInicial), + colunas: z(() => e.colunas) }); function o() { n("fechar"); @@ -2925,30 +3359,30 @@ const Pg = Q({ emitSalvar: t }; } -}), Ng = { +}), vh = { class: "eli-tabela-modal-colunas__modal", role: "dialog", "aria-modal": "true", "aria-labelledby": "eli-modal-colunas-titulo" -}, Ag = { class: "eli-tabela-modal-colunas__header" }, Cg = { class: "eli-tabela-modal-colunas__header-info" }, Zg = { class: "eli-tabela-modal-colunas__instrucao" }, Mg = { class: "eli-tabela-modal-colunas__conteudo" }, Lg = { class: "eli-tabela-modal-colunas__coluna" }, Fg = { class: "eli-tabela-modal-colunas__coluna-cabecalho eli-tabela-modal-colunas__coluna-cabecalho--visiveis" }, Rg = { class: "eli-tabela-modal-colunas__coluna-contador" }, Bg = ["title", "onDragstart", "onDragover"], Vg = { class: "eli-tabela-modal-colunas__item-texto" }, Jg = { +}, gh = { class: "eli-tabela-modal-colunas__header" }, hh = { class: "eli-tabela-modal-colunas__header-info" }, bh = { class: "eli-tabela-modal-colunas__instrucao" }, $h = { class: "eli-tabela-modal-colunas__conteudo" }, _h = { class: "eli-tabela-modal-colunas__coluna" }, yh = { class: "eli-tabela-modal-colunas__coluna-cabecalho eli-tabela-modal-colunas__coluna-cabecalho--visiveis" }, kh = { class: "eli-tabela-modal-colunas__coluna-contador" }, Sh = ["title", "onDragstart", "onDragover"], wh = { class: "eli-tabela-modal-colunas__item-texto" }, Ih = { key: "vazio-visiveis", class: "eli-tabela-modal-colunas__vazio" -}, qg = { class: "eli-tabela-modal-colunas__coluna" }, Gg = { class: "eli-tabela-modal-colunas__coluna-cabecalho eli-tabela-modal-colunas__coluna-cabecalho--invisiveis" }, Wg = { class: "eli-tabela-modal-colunas__coluna-contador" }, Kg = ["title", "onDragstart", "onDragover"], Xg = { class: "eli-tabela-modal-colunas__item-texto" }, Yg = { +}, zh = { class: "eli-tabela-modal-colunas__coluna" }, Dh = { class: "eli-tabela-modal-colunas__coluna-cabecalho eli-tabela-modal-colunas__coluna-cabecalho--invisiveis" }, jh = { class: "eli-tabela-modal-colunas__coluna-contador" }, Oh = ["title", "onDragstart", "onDragover"], Eh = { class: "eli-tabela-modal-colunas__item-texto" }, xh = { key: "vazio-invisiveis", class: "eli-tabela-modal-colunas__vazio" -}, Hg = { class: "eli-tabela-modal-colunas__footer" }; -function Qg(e, n, r, o, t, i) { - const a = H("Columns2"), l = H("X"), s = H("GripVertical"), u = H("Eye"), d = H("EyeOff"), c = H("Check"); - return _(), re(sa, { to: "body" }, [ - e.aberto ? (_(), S("div", { +}, Uh = { class: "eli-tabela-modal-colunas__footer" }; +function Th(e, n, r, o, t, i) { + const a = Y("Columns2"), l = Y("X"), s = Y("GripVertical"), u = Y("Eye"), d = Y("EyeOff"), c = Y("Check"); + return $(), re(yr, { to: "body" }, [ + e.aberto ? ($(), S("div", { key: 0, class: "eli-tabela-modal-colunas__overlay", role: "presentation", - onClick: n[9] || (n[9] = ve((...m) => e.emitFechar && e.emitFechar(...m), ["self"])) + onClick: n[9] || (n[9] = ce((...m) => e.emitFechar && e.emitFechar(...m), ["self"])) }, [ - p("div", Ng, [ - p("header", Ag, [ - p("div", Cg, [ + p("div", vh, [ + p("header", gh, [ + p("div", hh, [ M(a, { size: 18, "stroke-width": 2, @@ -2971,7 +3405,7 @@ function Qg(e, n, r, o, t, i) { }) ]) ]), - p("div", Zg, [ + p("div", bh, [ M(s, { size: 14, "stroke-width": 2, @@ -2979,35 +3413,35 @@ function Qg(e, n, r, o, t, i) { }), n[11] || (n[11] = ne(" Arraste para reordenar ou mover entre as listas ", -1)) ]), - p("div", Mg, [ - p("div", Lg, [ - p("div", Fg, [ + p("div", $h, [ + p("div", _h, [ + p("div", yh, [ M(u, { size: 14, "stroke-width": 2 }), n[12] || (n[12] = p("span", null, "Visíveis", -1)), - p("span", Rg, V(e.visiveisLocal.length), 1) + p("span", kh, R(e.visiveisLocal.length), 1) ]), - M(yo, { + M(wo, { name: "list", tag: "div", class: "eli-tabela-modal-colunas__lista eli-tabela-modal-colunas__lista--visiveis", - onDragover: n[3] || (n[3] = ve((m) => e.onDragOverLista("visiveis"), ["prevent"])), + onDragover: n[3] || (n[3] = ce((m) => e.onDragOverLista("visiveis"), ["prevent"])), onDrop: e.onDragEnd }, { default: ue(() => [ - (_(!0), S(ke, null, ze(e.visiveisLocal, (m) => (_(), S("div", { + ($(!0), S(ge, null, $e(e.visiveisLocal, (m) => ($(), S("div", { key: `vis-${m}`, - class: Me(["eli-tabela-modal-colunas__item eli-tabela-modal-colunas__item--visivel", { + class: Ue(["eli-tabela-modal-colunas__item eli-tabela-modal-colunas__item--visivel", { "eli-tabela-modal-colunas__item--arrastando": e.itemSendoArrastado === m }]), draggable: "true", title: `Arraste para mover '${m}'`, onDragstart: (f) => e.onDragStart(f, m), onDragend: n[1] || (n[1] = (...f) => e.onDragEnd && e.onDragEnd(...f)), - onDragover: ve((f) => e.onDragOverItem(m, "visiveis"), ["stop", "prevent"]), - onDrop: n[2] || (n[2] = ve((...f) => e.onDragEnd && e.onDragEnd(...f), ["stop", "prevent"])) + onDragover: ce((f) => e.onDragOverItem(m, "visiveis"), ["stop", "prevent"]), + onDrop: n[2] || (n[2] = ce((...f) => e.onDragEnd && e.onDragEnd(...f), ["stop", "prevent"])) }, [ M(s, { size: 15, @@ -3015,15 +3449,15 @@ function Qg(e, n, r, o, t, i) { class: "eli-tabela-modal-colunas__item-handle", "aria-hidden": "true" }), - p("span", Vg, V(m), 1), + p("span", wh, R(m), 1), M(u, { size: 13, "stroke-width": 2, class: "eli-tabela-modal-colunas__item-badge-icone eli-tabela-modal-colunas__item-badge-icone--visivel", "aria-hidden": "true" }) - ], 42, Bg))), 128)), - e.visiveisLocal.length === 0 ? (_(), S("div", Jg, [ + ], 42, Sh))), 128)), + e.visiveisLocal.length === 0 ? ($(), S("div", Ih, [ M(d, { size: 28, "stroke-width": 1.5, @@ -3034,39 +3468,39 @@ function Qg(e, n, r, o, t, i) { p("br"), ne("Arraste itens da lista ao lado.") ], -1)) - ])) : X("", !0) + ])) : K("", !0) ]), _: 1 }, 8, ["onDrop"]) ]), - p("div", qg, [ - p("div", Gg, [ + p("div", zh, [ + p("div", Dh, [ M(d, { size: 14, "stroke-width": 2 }), n[14] || (n[14] = p("span", null, "Ocultas", -1)), - p("span", Wg, V(e.invisiveisLocal.length), 1) + p("span", jh, R(e.invisiveisLocal.length), 1) ]), - M(yo, { + M(wo, { name: "list", tag: "div", class: "eli-tabela-modal-colunas__lista eli-tabela-modal-colunas__lista--invisiveis", - onDragover: n[6] || (n[6] = ve((m) => e.onDragOverLista("invisiveis"), ["prevent"])), + onDragover: n[6] || (n[6] = ce((m) => e.onDragOverLista("invisiveis"), ["prevent"])), onDrop: e.onDragEnd }, { default: ue(() => [ - (_(!0), S(ke, null, ze(e.invisiveisLocal, (m) => (_(), S("div", { + ($(!0), S(ge, null, $e(e.invisiveisLocal, (m) => ($(), S("div", { key: `inv-${m}`, - class: Me(["eli-tabela-modal-colunas__item eli-tabela-modal-colunas__item--invisivel", { + class: Ue(["eli-tabela-modal-colunas__item eli-tabela-modal-colunas__item--invisivel", { "eli-tabela-modal-colunas__item--arrastando": e.itemSendoArrastado === m }]), draggable: "true", title: `Arraste para mover '${m}'`, onDragstart: (f) => e.onDragStart(f, m), onDragend: n[4] || (n[4] = (...f) => e.onDragEnd && e.onDragEnd(...f)), - onDragover: ve((f) => e.onDragOverItem(m, "invisiveis"), ["stop", "prevent"]), - onDrop: n[5] || (n[5] = ve((...f) => e.onDragEnd && e.onDragEnd(...f), ["stop", "prevent"])) + onDragover: ce((f) => e.onDragOverItem(m, "invisiveis"), ["stop", "prevent"]), + onDrop: n[5] || (n[5] = ce((...f) => e.onDragEnd && e.onDragEnd(...f), ["stop", "prevent"])) }, [ M(s, { size: 15, @@ -3074,28 +3508,28 @@ function Qg(e, n, r, o, t, i) { class: "eli-tabela-modal-colunas__item-handle", "aria-hidden": "true" }), - p("span", Xg, V(m), 1), + p("span", Eh, R(m), 1), M(d, { size: 13, "stroke-width": 2, class: "eli-tabela-modal-colunas__item-badge-icone eli-tabela-modal-colunas__item-badge-icone--invisivel", "aria-hidden": "true" }) - ], 42, Kg))), 128)), - e.invisiveisLocal.length === 0 ? (_(), S("div", Yg, [ + ], 42, Oh))), 128)), + e.invisiveisLocal.length === 0 ? ($(), S("div", xh, [ M(u, { size: 28, "stroke-width": 1.5, class: "eli-tabela-modal-colunas__vazio-icone eli-tabela-modal-colunas__vazio-icone--ok" }), n[15] || (n[15] = p("span", null, "Todas as colunas estão visíveis.", -1)) - ])) : X("", !0) + ])) : K("", !0) ]), _: 1 }, 8, ["onDrop"]) ]) ]), - p("footer", Hg, [ + p("footer", Uh, [ p("button", { type: "button", class: "eli-tabela-modal-colunas__botao eli-tabela-modal-colunas__botao--sec", @@ -3120,80 +3554,80 @@ function Qg(e, n, r, o, t, i) { ]) ]) ]) - ])) : X("", !0) + ])) : K("", !0) ]); } -const eh = /* @__PURE__ */ ee(Pg, [["render", Qg]]); -function Zo(e) { +const Nh = /* @__PURE__ */ ee(ph, [["render", Th]]); +function Fo(e) { return e.rotulo; } -function th({ +function Ph({ aberto: e, filtrosBase: n, modelo: r, modeloFormula: o, emit: t }) { - const i = B([]), a = B(""), l = B(""), s = j(() => i.value.map(($, I) => `{c${I + 1}}`).join(" E ")); - function u($) { - let I = $; - return i.value.forEach((q, D) => { - I = I.replace(new RegExp(`\\{${q.chave}\\}`, "g"), `{c${D + 1}}`); + const i = B([]), a = B(""), l = B(""), s = z(() => i.value.map((b, I) => `{c${I + 1}}`).join(" E ")); + function u(b) { + let I = b; + return i.value.forEach((G, j) => { + I = I.replace(new RegExp(`\\{${G.chave}\\}`, "g"), `{c${j + 1}}`); }), I; } - function d($) { - var q; - let I = $; - for (let D = i.value.length; D >= 1; D--) { - const Z = (q = i.value[D - 1]) == null ? void 0 : q.chave; - Z && (I = I.replace(new RegExp(`\\{c${D}\\}`, "g"), `{${Z}}`)); + function d(b) { + var G; + let I = b; + for (let j = i.value.length; j >= 1; j--) { + const Z = (G = i.value[j - 1]) == null ? void 0 : G.chave; + Z && (I = I.replace(new RegExp(`\\{c${j}\\}`, "g"), `{${Z}}`)); } return I; } - const c = j(() => (n.value ?? []).map(($) => String($.chave))), m = j(() => { - const $ = new Set(i.value.map((I) => String(I.chave))); - return (n.value ?? []).filter((I) => !$.has(String(I.chave))); + const c = z(() => (n.value ?? []).map((b) => String(b.chave))), m = z(() => { + const b = new Set(i.value.map((I) => String(I.chave))); + return (n.value ?? []).filter((I) => !b.has(String(I.chave))); }); - function f($) { - const I = $ == null ? void 0 : $[0]; - return I === "numero" ? Sa : I === "dataHora" ? ka : I === "selecao" ? wa : I === "selecaoMultipla" ? za : I === "paragrafo" ? Ia : I === "confirmacao" ? rf : yr; + function f(b) { + const I = b == null ? void 0 : b[0]; + return I === "numero" ? Ia : I === "dataHora" ? wa : I === "selecao" ? Da : I === "selecaoMultipla" ? ja : I === "paragrafo" ? za : I === "confirmacao" ? af : wr; } - function g($) { - return { ...typeof ($ == null ? void 0 : $[1]) == "object" && $[1] !== null ? { ...$[1] } : {}, rotulo: "" }; + function g(b) { + return { ...typeof (b == null ? void 0 : b[1]) == "object" && b[1] !== null ? { ...b[1] } : {}, rotulo: "" }; } - function b($) { - return ($ == null ? void 0 : $[0]) === "numero" || ($ == null ? void 0 : $[0]) === "dataHora" || ($ == null ? void 0 : $[0]) === "selecao" ? null : ($ == null ? void 0 : $[0]) === "selecaoMultipla" ? [] : ($ == null ? void 0 : $[0]) === "confirmacao" ? !1 : ""; + function y(b) { + return (b == null ? void 0 : b[0]) === "numero" || (b == null ? void 0 : b[0]) === "dataHora" || (b == null ? void 0 : b[0]) === "selecao" ? null : (b == null ? void 0 : b[0]) === "selecaoMultipla" ? [] : (b == null ? void 0 : b[0]) === "confirmacao" ? !1 : ""; } - function E() { - const $ = n.value ?? [], I = Array.isArray(r.value) ? r.value : []; - i.value = I.map((q) => { - if (!q || typeof q != "object") return null; - const D = q, Z = $.find((x) => String(x.chave) === String(D.chave)) ?? $[0]; + function N() { + const b = n.value ?? [], I = Array.isArray(r.value) ? r.value : []; + i.value = I.map((G) => { + if (!G || typeof G != "object") return null; + const j = G, Z = b.find((O) => String(O.chave) === String(j.chave)) ?? b[0]; if (!Z) return null; - const ge = Z.entrada ?? D.entrada, Pe = String(Z.chave ?? D.chave), O = D.valor ?? b(ge); - return { chave: Pe, entrada: ge, valor: O }; - }).filter(Boolean), i.value = i.value.filter((q) => c.value.includes(String(q.chave))), o.value ? l.value = u(o.value) : l.value = s.value; + const pe = Z.entrada ?? j.entrada, Ie = String(Z.chave ?? j.chave), E = j.valor ?? y(pe); + return { chave: Ie, entrada: pe, valor: E }; + }).filter(Boolean), i.value = i.value.filter((G) => c.value.includes(String(G.chave))), o.value ? l.value = u(o.value) : l.value = s.value; } - _e( + be( () => [e.value, n.value, r.value], () => { - e.value && E(); + e.value && N(); }, { deep: !0, immediate: !0 } ); - function w() { + function x() { if (!a.value) return; - const $ = (n.value ?? []).find( + const b = (n.value ?? []).find( (I) => String(I.chave) === String(a.value) ); - $ && (i.value.some((I) => String(I.chave) === String($.chave)) || (i.value.push({ - chave: String($.chave), - entrada: $.entrada, - valor: b($.entrada) + b && (i.value.some((I) => String(I.chave) === String(b.chave)) || (i.value.push({ + chave: String(b.chave), + entrada: b.entrada, + valor: y(b.entrada) }), l.value = s.value, a.value = "")); } - function z($) { - i.value.splice($, 1), l.value = s.value; + function D(b) { + i.value.splice(b, 1), l.value = s.value; } function L() { t("fechar"); @@ -3202,16 +3636,16 @@ function th({ t("limpar"); } function C() { - const $ = d(l.value); + const b = d(l.value); t( "salvar", i.value.map((I) => ({ chave: I.chave, valor: I.valor })), - $ + b ); } - function h($) { - const I = (n.value ?? []).find((q) => String(q.chave) === $); - return I ? Zo(I) : $; + function h(b) { + const I = (n.value ?? []).find((G) => String(G.chave) === b); + return I ? Fo(I) : b; } return { linhas: i, @@ -3221,18 +3655,18 @@ function th({ formulaGerada: s, componenteEntrada: f, opcoesEntrada: g, - adicionar: w, - remover: z, + adicionar: x, + remover: D, emitFechar: L, emitSalvar: C, emitLimpar: A, - rotuloDoFiltro: Zo, + rotuloDoFiltro: Fo, rotuloDoFiltroAtivo: h }; } -const nh = Q({ +const Ah = Q({ name: "EliTabelaModalFiltroAvancado", - components: { CircleHelp: hv, Filter: Da, Plus: Av, Trash2: Lv, X: ja }, + components: { CircleHelp: Qp, Filter: Oa, Plus: bv, Trash2: kv, X: Ea }, props: { aberto: { type: Boolean, required: !0 }, filtrosBase: { type: Array, required: !0 }, @@ -3250,59 +3684,59 @@ const nh = Q({ salvar: (e, n) => !0 }, setup(e, { emit: n }) { - return th({ - aberto: j(() => e.aberto), - filtrosBase: j(() => e.filtrosBase), - modelo: j(() => e.modelo), - modeloFormula: j(() => e.modeloFormula), + return Ph({ + aberto: z(() => e.aberto), + filtrosBase: z(() => e.filtrosBase), + modelo: z(() => e.modelo), + modeloFormula: z(() => e.modeloFormula), emit: n }); } -}), rh = { +}), Ch = { class: "eli-tabela-modal-filtro__modal", role: "dialog", "aria-modal": "true", "aria-label": "Filtro avançado" -}, ih = { class: "eli-tabela-modal-filtro__header" }, oh = { class: "eli-tabela-modal-filtro__header-titulo" }, ah = { +}, Zh = { class: "eli-tabela-modal-filtro__header" }, Mh = { class: "eli-tabela-modal-filtro__header-titulo" }, Lh = { key: 0, class: "eli-tabela-modal-filtro__contador" -}, lh = { class: "eli-tabela-modal-filtro__conteudo" }, uh = { +}, Fh = { class: "eli-tabela-modal-filtro__conteudo" }, Rh = { key: 0, class: "eli-tabela-modal-filtro__vazio" -}, sh = { key: 1 }, ch = { +}, Bh = { key: 1 }, Vh = { key: 0, class: "eli-tabela-modal-filtro__lista" -}, dh = { class: "eli-tabela-modal-filtro__linha-header" }, mh = ["title"], fh = { class: "eli-tabela-modal-filtro__rotulo-filtro" }, vh = ["onClick"], ph = { class: "eli-tabela-modal-filtro__entrada" }, gh = { +}, Jh = { class: "eli-tabela-modal-filtro__linha-header" }, qh = ["title"], Gh = { class: "eli-tabela-modal-filtro__rotulo-filtro" }, Kh = ["onClick"], Wh = { class: "eli-tabela-modal-filtro__entrada" }, Xh = { key: 1, class: "eli-tabela-modal-filtro__estado-vazio" -}, hh = { class: "eli-tabela-modal-filtro__rodape-filtros" }, $h = { class: "eli-tabela-modal-filtro__acoes" }, bh = ["disabled"], _h = ["value"], yh = ["disabled"], kh = { +}, Hh = { class: "eli-tabela-modal-filtro__rodape-filtros" }, Yh = { class: "eli-tabela-modal-filtro__acoes" }, Qh = ["disabled"], eb = ["value"], tb = ["disabled"], nb = { key: 0, class: "eli-tabela-modal-filtro__formula-container" -}, Sh = ["placeholder"], Ih = { +}, rb = ["placeholder"], ib = { class: "eli-tabela-modal-filtro__formula-ajuda", tabindex: "0", "aria-label": "Ajuda sobre fórmulas" -}, wh = { class: "eli-tabela-modal-filtro__footer" }, zh = ["disabled"]; -function Dh(e, n, r, o, t, i) { - const a = H("Filter"), l = H("X"), s = H("Trash2"), u = H("Plus"), d = H("CircleHelp"); - return _(), re(Am, { name: "eli-tabela-modal-filtro" }, { +}, ob = { class: "eli-tabela-modal-filtro__footer" }, ab = ["disabled"]; +function lb(e, n, r, o, t, i) { + const a = Y("Filter"), l = Y("X"), s = Y("Trash2"), u = Y("Plus"), d = Y("CircleHelp"); + return $(), re(da, { name: "eli-tabela-modal-filtro" }, { default: ue(() => [ - e.aberto ? (_(), S("div", { + e.aberto ? ($(), S("div", { key: 0, class: "eli-tabela-modal-filtro__overlay", role: "presentation", - onClick: n[7] || (n[7] = ve((...c) => e.emitFechar && e.emitFechar(...c), ["self"])) + onClick: n[7] || (n[7] = ce((...c) => e.emitFechar && e.emitFechar(...c), ["self"])) }, [ - p("div", rh, [ - p("header", ih, [ - p("div", oh, [ + p("div", Ch, [ + p("header", Zh, [ + p("div", Mh, [ M(a, { class: "eli-tabela-modal-filtro__header-icone", size: 18, "stroke-width": 2 }), n[8] || (n[8] = p("h3", { class: "eli-tabela-modal-filtro__titulo" }, "Filtro avançado", -1)), - e.linhas.length ? (_(), S("span", ah, V(e.linhas.length) + " " + V(e.linhas.length === 1 ? "filtro" : "filtros"), 1)) : X("", !0) + e.linhas.length ? ($(), S("span", Lh, R(e.linhas.length) + " " + R(e.linhas.length === 1 ? "filtro" : "filtros"), 1)) : K("", !0) ]), p("button", { type: "button", @@ -3316,19 +3750,19 @@ function Dh(e, n, r, o, t, i) { }) ]) ]), - p("div", lh, [ - e.filtrosBase.length ? (_(), S("div", sh, [ - e.linhas.length ? (_(), S("div", ch, [ - (_(!0), S(ke, null, ze(e.linhas, (c, m) => (_(), S("div", { + p("div", Fh, [ + e.filtrosBase.length ? ($(), S("div", Bh, [ + e.linhas.length ? ($(), S("div", Vh, [ + ($(!0), S(ge, null, $e(e.linhas, (c, m) => ($(), S("div", { key: String(c.chave), class: "eli-tabela-modal-filtro__linha" }, [ - p("div", dh, [ + p("div", Jh, [ p("span", { class: "eli-tabela-modal-filtro__id-badge", title: `Identificador na fórmula: {c${m + 1}}` - }, " c" + V(m + 1), 9, mh), - p("span", fh, V(e.rotuloDoFiltroAtivo(c.chave)), 1), + }, " c" + R(m + 1), 9, qh), + p("span", Gh, R(e.rotuloDoFiltroAtivo(c.chave)), 1), p("button", { type: "button", class: "eli-tabela-modal-filtro__remover", @@ -3340,24 +3774,24 @@ function Dh(e, n, r, o, t, i) { size: 14, "stroke-width": 2 }) - ], 8, vh) + ], 8, Kh) ]), - p("div", ph, [ - (_(), re(Re(e.componenteEntrada(c.entrada)), we({ ref_for: !0 }, { value: c.valor, opcoes: e.opcoesEntrada(c.entrada), density: "compact" }, { + p("div", Wh, [ + ($(), re(Re(e.componenteEntrada(c.entrada)), je({ ref_for: !0 }, { value: c.valor, opcoes: e.opcoesEntrada(c.entrada), density: "compact" }, { "onUpdate:value": (f) => c.valor = f, onInput: (f) => c.valor = f }), null, 16, ["onUpdate:value", "onInput"])) ]) ]))), 128)) - ])) : (_(), S("div", gh, [ + ])) : ($(), S("div", Xh, [ M(a, { size: 32, "stroke-width": 1.5 }), n[9] || (n[9] = p("span", null, "Selecione um filtro abaixo para começar", -1)) ])), - p("div", hh, [ - p("div", $h, [ + p("div", Hh, [ + p("div", Yh, [ dn(p("select", { "onUpdate:modelValue": n[1] || (n[1] = (c) => e.chaveParaAdicionar = c), class: "eli-tabela-modal-filtro__select", @@ -3367,12 +3801,12 @@ function Dh(e, n, r, o, t, i) { disabled: "", value: "" }, "Selecione um filtro…", -1)), - (_(!0), S(ke, null, ze(e.opcoesParaAdicionar, (c) => (_(), S("option", { + ($(!0), S(ge, null, $e(e.opcoesParaAdicionar, (c) => ($(), S("option", { key: String(c.chave), value: String(c.chave) - }, V(e.rotuloDoFiltro(c)), 9, _h))), 128)) - ], 8, bh), [ - [Cm, e.chaveParaAdicionar] + }, R(e.rotuloDoFiltro(c)), 9, eb))), 128)) + ], 8, Qh), [ + [Mm, e.chaveParaAdicionar] ]), p("button", { type: "button", @@ -3385,19 +3819,19 @@ function Dh(e, n, r, o, t, i) { "stroke-width": 2.5 }), n[11] || (n[11] = ne(" Adicionar ", -1)) - ], 8, yh) + ], 8, tb) ]), - e.linhas.length >= 2 ? (_(), S("div", kh, [ + e.linhas.length >= 2 ? ($(), S("div", nb, [ n[13] || (n[13] = p("label", { class: "eli-tabela-modal-filtro__formula-label" }, "Fórmula", -1)), dn(p("input", { "onUpdate:modelValue": n[3] || (n[3] = (c) => e.formulaCustomizada = c), type: "text", class: "eli-tabela-modal-filtro__formula-input", placeholder: "Ex: " + e.formulaGerada - }, null, 8, Sh), [ - [br, e.formulaCustomizada] + }, null, 8, rb), [ + [kr, e.formulaCustomizada] ]), - p("span", Ih, [ + p("span", ib, [ M(d, { size: 15, "stroke-width": 2 @@ -3441,17 +3875,17 @@ function Dh(e, n, r, o, t, i) { p("p", { class: "eli-tabela-modal-filtro__formula-tooltip-nota" }, "Deixe em branco para combinar todos com E.") ], -1)) ]) - ])) : X("", !0) + ])) : K("", !0) ]) - ])) : (_(), S("div", uh, " Nenhum filtro configurado na tabela. ")) + ])) : ($(), S("div", Rh, " Nenhum filtro configurado na tabela. ")) ]), - p("footer", wh, [ + p("footer", ob, [ p("button", { type: "button", class: "eli-tabela-modal-filtro__botao eli-tabela-modal-filtro__botao--perigo", disabled: !e.linhas.length, onClick: n[4] || (n[4] = (...c) => e.emitLimpar && e.emitLimpar(...c)) - }, " Limpar ", 8, zh), + }, " Limpar ", 8, ab), n[14] || (n[14] = p("div", { class: "eli-tabela-modal-filtro__footer-spacer" }, null, -1)), p("button", { type: "button", @@ -3465,12 +3899,12 @@ function Dh(e, n, r, o, t, i) { }, " Aplicar ") ]) ]) - ])) : X("", !0) + ])) : K("", !0) ]), _: 1 }); } -const jh = /* @__PURE__ */ ee(nh, [["render", Dh]]), Oh = Q({ +const ub = /* @__PURE__ */ ee(Ah, [["render", lb]]), sb = Q({ name: "EliTabelaPaginacao", props: { pagina: { @@ -3502,30 +3936,30 @@ const jh = /* @__PURE__ */ ee(nh, [["render", Dh]]), Oh = Q({ } }, setup(e, { emit: n }) { - const r = j(() => { + const r = z(() => { const u = e.maximoBotoes; return typeof u == "number" && u >= 5 ? Math.floor(u) : 7; - }), o = j(() => { - const u = e.totalPaginas, d = e.pagina, c = r.value, m = [], f = (z) => { + }), o = z(() => { + const u = e.totalPaginas, d = e.pagina, c = r.value, m = [], f = (D) => { m.push({ - label: String(z), - pagina: z, - ativo: z === d + label: String(D), + pagina: D, + ativo: D === d }); }, g = () => { m.push({ label: "…", ehEllipsis: !0 }); }; if (u <= c) { - for (let z = 1; z <= u; z += 1) - f(z); + for (let D = 1; D <= u; D += 1) + f(D); return m; } - const b = Math.max(3, c - 2); - let E = Math.max(2, d - Math.floor(b / 2)), w = E + b - 1; - w >= u && (w = u - 1, E = w - b + 1), f(1), E > 2 && g(); - for (let z = E; z <= w; z += 1) - f(z); - return w < u - 1 && g(), f(u), m; + const y = Math.max(3, c - 2); + let N = Math.max(2, d - Math.floor(y / 2)), x = N + y - 1; + x >= u && (x = u - 1, N = x - y + 1), f(1), N > 2 && g(); + for (let D = N; D <= x; D += 1) + f(D); + return x < u - 1 && g(), f(u), m; }); function t(u) { if (!u) @@ -3533,7 +3967,7 @@ const jh = /* @__PURE__ */ ee(nh, [["render", Dh]]), Oh = Q({ const d = Math.min(Math.max(1, u), e.totalPaginas); d !== e.pagina && n("alterar", d); } - const i = j(() => e.pagina <= 1), a = j(() => e.pagina >= e.totalPaginas), l = j(() => e.pagina), s = j(() => e.totalPaginas); + const i = z(() => e.pagina <= 1), a = z(() => e.pagina >= e.totalPaginas), l = z(() => e.pagina), s = z(() => e.totalPaginas); return { botoes: o, irParaPagina: t, @@ -3543,59 +3977,59 @@ const jh = /* @__PURE__ */ ee(nh, [["render", Dh]]), Oh = Q({ totalPaginasExibidas: s }; } -}), xh = { class: "eli-tabela__rodape" }, Eh = { +}), cb = { class: "eli-tabela__rodape" }, db = { key: 0, class: "eli-tabela__acoes-inferiores", style: { "margin-right": "auto" } -}, Uh = ["onClick"], Th = { class: "eli-tabela__acoes-cabecalho-rotulo" }, Ph = { +}, mb = ["onClick"], fb = { class: "eli-tabela__acoes-cabecalho-rotulo" }, pb = { key: 1, class: "eli-tabela__paginacao", role: "navigation", "aria-label": "Paginação de resultados" -}, Nh = ["disabled"], Ah = { +}, vb = ["disabled"], gb = { key: 0, class: "eli-tabela__pagina-ellipsis", "aria-hidden": "true" -}, Ch = ["disabled", "aria-current", "aria-label", "onClick"], Zh = ["disabled"]; -function Mh(e, n, r, o, t, i) { - return _(), S("div", xh, [ - e.acoes.length > 0 ? (_(), S("div", Eh, [ - (_(!0), S(ke, null, ze(e.acoes, (a, l) => (_(), S("button", { +}, hb = ["disabled", "aria-current", "aria-label", "onClick"], bb = ["disabled"]; +function $b(e, n, r, o, t, i) { + return $(), S("div", cb, [ + e.acoes.length > 0 ? ($(), S("div", db, [ + ($(!0), S(ge, null, $e(e.acoes, (a, l) => ($(), S("button", { key: `${a.rotulo}-${l}`, type: "button", class: "eli-tabela__acao-inferior", - style: kt(a.cor ? { borderColor: a.cor, color: a.cor } : void 0), + style: st(a.cor ? { borderColor: a.cor, color: a.cor } : void 0), onClick: (s) => a.acao(e.parametrosConsulta) }, [ - a.icone ? (_(), re(Re(a.icone), { + a.icone ? ($(), re(Re(a.icone), { key: 0, class: "eli-tabela__acoes-cabecalho-icone", size: 16, "stroke-width": 2 - })) : X("", !0), - p("span", Th, V(a.rotulo), 1) - ], 12, Uh))), 128)) - ])) : X("", !0), - e.totalPaginasExibidas > 1 ? (_(), S("nav", Ph, [ + })) : K("", !0), + p("span", fb, R(a.rotulo), 1) + ], 12, mb))), 128)) + ])) : K("", !0), + e.totalPaginasExibidas > 1 ? ($(), S("nav", pb, [ p("button", { type: "button", class: "eli-tabela__pagina-botao", disabled: e.anteriorDesabilitado, "aria-label": "Página anterior", onClick: n[0] || (n[0] = (a) => e.irParaPagina(e.paginaAtual - 1)) - }, " << ", 8, Nh), - (_(!0), S(ke, null, ze(e.botoes, (a, l) => (_(), S(ke, { + }, " << ", 8, vb), + ($(!0), S(ge, null, $e(e.botoes, (a, l) => ($(), S(ge, { key: `${a.label}-${l}` }, [ - a.ehEllipsis ? (_(), S("span", Ah, V(a.label), 1)) : (_(), S("button", { + a.ehEllipsis ? ($(), S("span", gb, R(a.label), 1)) : ($(), S("button", { key: 1, type: "button", - class: Me(["eli-tabela__pagina-botao", a.ativo ? "eli-tabela__pagina-botao--ativo" : void 0]), + class: Ue(["eli-tabela__pagina-botao", a.ativo ? "eli-tabela__pagina-botao--ativo" : void 0]), disabled: a.ativo, "aria-current": a.ativo ? "page" : void 0, "aria-label": `Ir para página ${a.label}`, onClick: (s) => e.irParaPagina(a.pagina) - }, V(a.label), 11, Ch)) + }, R(a.label), 11, hb)) ], 64))), 128)), p("button", { type: "button", @@ -3603,44 +4037,44 @@ function Mh(e, n, r, o, t, i) { disabled: e.proximaDesabilitada, "aria-label": "Próxima página", onClick: n[1] || (n[1] = (a) => e.irParaPagina(e.paginaAtual + 1)) - }, " >> ", 8, Zh) - ])) : X("", !0) + }, " >> ", 8, bb) + ])) : K("", !0) ]); } -const Lh = /* @__PURE__ */ ee(Oh, [["render", Mh]]), Fh = "eli:tabela"; -function xa(e) { - return `${Fh}:${e}:colunas`; +const _b = /* @__PURE__ */ ee(sb, [["render", $b]]), yb = "eli:tabela"; +function Ua(e) { + return `${yb}:${e}:colunas`; } -function Ea(e) { +function Ta(e) { if (!e || typeof e != "object") return { visiveis: [], invisiveis: [] }; const n = e, r = Array.isArray(n.visiveis) ? n.visiveis.filter((t) => typeof t == "string") : [], o = Array.isArray(n.invisiveis) ? n.invisiveis.filter((t) => typeof t == "string") : []; return { visiveis: r, invisiveis: o }; } -function Ua(e) { +function Na(e) { try { - const n = window.localStorage.getItem(xa(e)); - return n ? Ea(JSON.parse(n)) : { visiveis: [], invisiveis: [] }; + const n = window.localStorage.getItem(Ua(e)); + return n ? Ta(JSON.parse(n)) : { visiveis: [], invisiveis: [] }; } catch { return { visiveis: [], invisiveis: [] }; } } -function Rh(e, n) { +function kb(e, n) { try { window.localStorage.setItem( - xa(e), - JSON.stringify(Ea(n)) + Ua(e), + JSON.stringify(Ta(n)) ); } catch { } } -function kr(e) { +function Ir(e) { return `eli_tabela:${e}:filtro_avancado`; } -function Ta(e) { +function Pa(e) { const n = { linhas: [], formula: "" }; try { - const r = localStorage.getItem(kr(e)); + const r = localStorage.getItem(Ir(e)); if (!r) return n; const o = JSON.parse(r); return Array.isArray(o) ? { linhas: o, formula: "" } : o && typeof o == "object" ? { @@ -3651,47 +4085,47 @@ function Ta(e) { return n; } } -function Bh(e, n) { +function Sb(e, n) { try { - localStorage.setItem(kr(e), JSON.stringify(n ?? { linhas: [] })); + localStorage.setItem(Ir(e), JSON.stringify(n ?? { linhas: [] })); } catch { } } -function Vh(e) { +function wb(e) { try { - localStorage.removeItem(kr(e)); + localStorage.removeItem(Ir(e)); } catch { } } -function Jh(e, n) { - const r = B(!1), o = B(Ua(e.tabela.nome)), t = B({}), i = j(() => e.tabela.colunas.map((g) => g.rotulo)), a = j(() => { +function Ib(e, n) { + const r = B(!1), o = B(Na(e.tabela.nome)), t = B({}), i = z(() => e.tabela.colunas.map((g) => g.rotulo)), a = z(() => { var C, h; - const g = e.tabela.colunas, E = (((C = o.value.visiveis) == null ? void 0 : C.length) ?? 0) > 0 || (((h = o.value.invisiveis) == null ? void 0 : h.length) ?? 0) > 0 ? o.value.invisiveis ?? [] : g.filter(($) => $.visivel === !1).map(($) => $.rotulo), w = new Set(E), z = g.filter(($) => w.has($.rotulo)), L = /* @__PURE__ */ new Map(); - for (const $ of z) - L.has($.rotulo) || L.set($.rotulo, $); + const g = e.tabela.colunas, N = (((C = o.value.visiveis) == null ? void 0 : C.length) ?? 0) > 0 || (((h = o.value.invisiveis) == null ? void 0 : h.length) ?? 0) > 0 ? o.value.invisiveis ?? [] : g.filter((b) => b.visivel === !1).map((b) => b.rotulo), x = new Set(N), D = g.filter((b) => x.has(b.rotulo)), L = /* @__PURE__ */ new Map(); + for (const b of D) + L.has(b.rotulo) || L.set(b.rotulo, b); const A = []; - for (const $ of E) { - const I = L.get($); + for (const b of N) { + const I = L.get(b); I && A.push(I); } - for (const $ of z) - A.includes($) || A.push($); + for (const b of D) + A.includes(b) || A.push(b); return A; - }), l = j(() => a.value.length > 0), s = j(() => { - var I, q; - const g = e.tabela.colunas, b = i.value, E = (((I = o.value.visiveis) == null ? void 0 : I.length) ?? 0) > 0 || (((q = o.value.invisiveis) == null ? void 0 : q.length) ?? 0) > 0, w = E ? o.value.invisiveis ?? [] : ( + }), l = z(() => a.value.length > 0), s = z(() => { + var I, G; + const g = e.tabela.colunas, y = i.value, N = (((I = o.value.visiveis) == null ? void 0 : I.length) ?? 0) > 0 || (((G = o.value.invisiveis) == null ? void 0 : G.length) ?? 0) > 0, x = N ? o.value.invisiveis ?? [] : ( // biome-ignore lint/suspicious/noExplicitAny: dynamic column - e.tabela.colunas.filter((D) => D.visivel === !1).map((D) => D.rotulo) - ), z = new Set(w), L = b.filter((D) => !z.has(D)), A = new Set(L), C = E ? o.value.visiveis ?? [] : [], h = []; - for (const D of C) - A.has(D) && h.push(D); - for (const D of L) - h.includes(D) || h.push(D); - const $ = /* @__PURE__ */ new Map(); - for (const D of g) - $.has(D.rotulo) || $.set(D.rotulo, D); - return h.map((D) => $.get(D)).filter(Boolean); - }), u = j( + e.tabela.colunas.filter((j) => j.visivel === !1).map((j) => j.rotulo) + ), D = new Set(x), L = y.filter((j) => !D.has(j)), A = new Set(L), C = N ? o.value.visiveis ?? [] : [], h = []; + for (const j of C) + A.has(j) && h.push(j); + for (const j of L) + h.includes(j) || h.push(j); + const b = /* @__PURE__ */ new Map(); + for (const j of g) + b.has(j.rotulo) || b.set(j.rotulo, j); + return h.map((j) => b.get(j)).filter(Boolean); + }), u = z( () => s.value.length + (n.value ? 1 : 0) + (l.value ? 1 : 0) ); function d() { @@ -3701,11 +4135,11 @@ function Jh(e, n) { r.value = !1; } function m(g) { - o.value = g, Rh(e.tabela.nome, g), r.value = !1, t.value = {}; + o.value = g, kb(e.tabela.nome, g), r.value = !1, t.value = {}; } function f(g) { - const b = !!t.value[g]; - t.value = { ...t.value, [g]: !b }; + const y = !!t.value[g]; + t.value = { ...t.value, [g]: !y }; } return { modalColunasAberto: r, @@ -3722,80 +4156,80 @@ function Jh(e, n) { alternarLinhaExpandida: f }; } -var Pa = ((e) => (e[e.sucesso = 200] = "sucesso", e[e.erroConhecido = 400] = "erroConhecido", e[e.erroPermissao = 401] = "erroPermissao", e[e.erroNaoEncontrado = 404] = "erroNaoEncontrado", e[e.erroDesconhecido = 500] = "erroDesconhecido", e[e.tempoEsgotado = 504] = "tempoEsgotado", e))(Pa || {}); -function qh(e, n, r, o, t) { - const a = B(!1), l = B(null), s = B([]), u = B(0), d = B([]), c = B(null), m = B("asc"), f = j(() => e.tabela), g = j(() => { - const O = e.tabela.registros_por_consulta; - return typeof O == "number" && O > 0 ? Math.floor(O) : 10; - }), b = j(() => { - const O = g.value; - if (!O || O <= 0) return 1; - const x = u.value ?? 0; - return x ? Math.max(1, Math.ceil(x / O)) : 1; - }), E = j(() => s.value ?? []), w = j(() => u.value ?? 0), z = j(() => (e.tabela.acoesLinha ?? []).length > 0), L = j(() => !!e.tabela.mostrarCaixaDeBusca), A = j( - () => (e.tabela.acoesTabela ?? []).filter((O) => O.posicao === "superior") - ), C = j( - () => (e.tabela.acoesTabela ?? []).filter((O) => O.posicao === "inferior") - ), h = j(() => A.value.length > 0), $ = j(() => C.value.length > 0), I = j(() => { - const O = Math.max(1, g.value), U = { offSet: (r.value - 1) * O, limit: O }, N = (o.value ?? "").trim(); - if (N) - U.texto_busca = N; +var Aa = ((e) => (e[e.sucesso = 200] = "sucesso", e[e.erroConhecido = 400] = "erroConhecido", e[e.erroPermissao = 401] = "erroPermissao", e[e.erroNaoEncontrado = 404] = "erroNaoEncontrado", e[e.erroDesconhecido = 500] = "erroDesconhecido", e[e.tempoEsgotado = 504] = "tempoEsgotado", e))(Aa || {}); +function zb(e, n, r, o, t) { + const a = B(!1), l = B(null), s = B([]), u = B(0), d = B([]), c = B(null), m = B("asc"), f = z(() => e.tabela), g = z(() => { + const E = e.tabela.registros_por_consulta; + return typeof E == "number" && E > 0 ? Math.floor(E) : 10; + }), y = z(() => { + const E = g.value; + if (!E || E <= 0) return 1; + const O = u.value ?? 0; + return O ? Math.max(1, Math.ceil(O / E)) : 1; + }), N = z(() => s.value ?? []), x = z(() => u.value ?? 0), D = z(() => (e.tabela.acoesLinha ?? []).length > 0), L = z(() => !!e.tabela.mostrarCaixaDeBusca), A = z( + () => (e.tabela.acoesTabela ?? []).filter((E) => E.posicao === "superior") + ), C = z( + () => (e.tabela.acoesTabela ?? []).filter((E) => E.posicao === "inferior") + ), h = z(() => A.value.length > 0), b = z(() => C.value.length > 0), I = z(() => { + const E = Math.max(1, g.value), k = { offSet: (r.value - 1) * E, limit: E }, U = (o.value ?? "").trim(); + if (U) + k.texto_busca = U; else { - const P = n.value; - P.length && (U.filtros = P); + const T = n.value; + T.length && (k.filtros = T); } - return c.value && (U.coluna_ordem = c.value, U.direcao_ordem = m.value), { - ...U, + return c.value && (k.coluna_ordem = c.value, k.direcao_ordem = m.value), { + ...k, atualizarConsulta: async () => { - await D(); + await j(); }, // biome-ignore lint/suspicious/noExplicitAny: dynamic list update - editarLista: async (P) => (s.value = P, P) + editarLista: async (T) => (s.value = T, T) }; }); - let q = 0; - async function D() { - var x, U; - const O = ++q; + let G = 0; + async function j() { + var O, k; + const E = ++G; a.value = !0, l.value = null; try { d.value = [], t.value = {}; - const N = Math.max(1, g.value), J = { offSet: (r.value - 1) * N, limit: N }, G = (o.value ?? "").trim(); - if (G) - J.texto_busca = G; + const U = Math.max(1, g.value), F = { offSet: (r.value - 1) * U, limit: U }, q = (o.value ?? "").trim(); + if (q) + F.texto_busca = q; else { - const $e = n.value; - $e.length && (J.filtros = $e); + const ke = n.value; + ke.length && (F.filtros = ke); } - c.value && (J.coluna_ordem = c.value, J.direcao_ordem = m.value); - const te = await e.tabela.consulta(J); - if (O !== q) return; - if (te.cod !== Pa.sucesso) { + c.value && (F.coluna_ordem = c.value, F.direcao_ordem = m.value); + const te = await e.tabela.consulta(F); + if (E !== G) return; + if (te.cod !== Aa.sucesso) { s.value = [], u.value = 0, l.value = te.mensagem; return; } - const le = ((x = te.valor) == null ? void 0 : x.valores) ?? [], ce = ((U = te.valor) == null ? void 0 : U.quantidade) ?? le.length; - s.value = le, u.value = Number(ce) || 0; - const fe = Math.max(1, Math.ceil((u.value || 0) / N)); - r.value > fe && (r.value = fe); - const he = e.tabela.acoesLinha ?? []; - if (!he.length) { + const le = ((O = te.valor) == null ? void 0 : O.valores) ?? [], de = ((k = te.valor) == null ? void 0 : k.quantidade) ?? le.length; + s.value = le, u.value = Number(de) || 0; + const ve = Math.max(1, Math.ceil((u.value || 0) / U)); + r.value > ve && (r.value = ve); + const ye = e.tabela.acoesLinha ?? []; + if (!ye.length) { d.value = []; return; } d.value = le.map( - () => he.map( - ($e) => $e.exibir === void 0 ? !0 : typeof $e.exibir == "boolean" ? $e.exibir : !1 + () => ye.map( + (ke) => ke.exibir === void 0 ? !0 : typeof ke.exibir == "boolean" ? ke.exibir : !1 ) ); const Ve = await Promise.all( le.map( - ($e) => Promise.all( - he.map(async (Ne) => { - if (Ne.exibir === void 0) return !0; - if (typeof Ne.exibir == "boolean") return Ne.exibir; + (ke) => Promise.all( + ye.map(async (Ce) => { + if (Ce.exibir === void 0) return !0; + if (typeof Ce.exibir == "boolean") return Ce.exibir; try { - return !!await Promise.resolve(Ne.exibir($e)); + return !!await Promise.resolve(Ce.exibir(ke)); } catch { return !1; } @@ -3803,43 +4237,43 @@ function qh(e, n, r, o, t) { ) ) ); - O === q && (d.value = Ve); - } catch (N) { - if (console.error("[EliTabela] Erro capturado em carregar():", N), O !== q) return; - s.value = [], u.value = 0, l.value = N instanceof Error ? N.message : "Erro ao carregar dados."; + E === G && (d.value = Ve); + } catch (U) { + if (console.error("[EliTabela] Erro capturado em carregar():", U), E !== G) return; + s.value = [], u.value = 0, l.value = U instanceof Error ? U.message : "Erro ao carregar dados."; } finally { - O === q && (a.value = !1); + E === G && (a.value = !1); } } - function Z(O) { - if (O) { - if (c.value === O) { - m.value = m.value === "asc" ? "desc" : "asc", D(); + function Z(E) { + if (E) { + if (c.value === E) { + m.value = m.value === "asc" ? "desc" : "asc", j(); return; } - c.value = O, m.value = "asc", r.value !== 1 ? r.value = 1 : D(); + c.value = E, m.value = "asc", r.value !== 1 ? r.value = 1 : j(); } } - function ge(O) { - o.value !== O && (o.value = O, r.value !== 1 ? r.value = 1 : D()); + function pe(E) { + o.value !== E && (o.value = E, r.value !== 1 ? r.value = 1 : j()); } - function Pe(O) { - const x = Math.min(Math.max(1, O), b.value); - x !== r.value && (r.value = x); + function Ie(E) { + const O = Math.min(Math.max(1, E), y.value); + O !== r.value && (r.value = O); } - return _e(r, (O, x) => { - O !== x && D(); - }), _e(s, () => { + return be(r, (E, O) => { + E !== O && j(); + }), be(s, () => { t.value = {}; - }), _e( + }), be( () => e.tabela.mostrarCaixaDeBusca, - (O) => { - !O && o.value && (o.value = "", r.value !== 1 ? r.value = 1 : D()); + (E) => { + !E && o.value && (o.value = "", r.value !== 1 ? r.value = 1 : j()); } - ), _e( + ), be( () => e.tabela.registros_por_consulta, () => { - r.value !== 1 ? r.value = 1 : D(); + r.value !== 1 ? r.value = 1 : j(); } ), { isDev: !1, @@ -3847,52 +4281,52 @@ function qh(e, n, r, o, t) { carregando: a, erro: l, linhas: s, - linhasPaginadas: E, + linhasPaginadas: N, quantidade: u, - quantidadeFiltrada: w, + quantidadeFiltrada: x, acoesVisiveis: d, colunaOrdenacao: c, direcaoOrdenacao: m, registrosPorConsulta: g, - totalPaginas: b, - temAcoes: z, + totalPaginas: y, + temAcoes: D, exibirBusca: L, acoesSuperiores: A, acoesInferiores: C, temAcoesSuperiores: h, - temAcoesInferiores: $, + temAcoesInferiores: b, parametrosConsultaAtuais: I, - carregar: D, + carregar: j, alternarOrdenacao: Z, - atualizarBusca: ge, - irParaPagina: Pe + atualizarBusca: pe, + irParaPagina: Ie }; } -function Gh(e, n, r, o) { - const t = Ta(e.tabela.nome), i = B(t.linhas), a = B(t.formula ?? ""), l = B(!1), s = j(() => (e.tabela.filtroAvancado ?? []).length > 0), u = j(() => { - const w = e.tabela.filtroAvancado ?? [], z = (i.value ?? []).filter((h) => h && h.chave !== void 0); - if (z.length === 0) return []; - const L = z.map((h) => { - const $ = w.find((q) => String(q.chave) === String(h.chave)); - if (!$) return null; - const I = $.filtro(h.valor); +function Db(e, n, r, o) { + const t = Pa(e.tabela.nome), i = B(t.linhas), a = B(t.formula ?? ""), l = B(!1), s = z(() => (e.tabela.filtroAvancado ?? []).length > 0), u = z(() => { + const x = e.tabela.filtroAvancado ?? [], D = (i.value ?? []).filter((h) => h && h.chave !== void 0); + if (D.length === 0) return []; + const L = D.map((h) => { + const b = x.find((G) => String(G.chave) === String(h.chave)); + if (!b) return null; + const I = b.filtro(h.valor); return I ? { chave: h.chave, condicao: I } : null; }).filter((h) => h !== null); if (L.length === 0) return []; if (a.value && L.length > 1) { const h = []; - let $ = a.value; - return L.forEach(({ chave: I }, q) => { - $ = $.replace(new RegExp(`\\{${I}\\}`, "g"), `{c${q + 1}}`); - }), L.forEach(({ condicao: I }, q) => { - const D = `{c${q + 1}}`; - h.push({ ...I, id: D }); - }), [{ condicoes: h, formula: $ }]; + let b = a.value; + return L.forEach(({ chave: I }, G) => { + b = b.replace(new RegExp(`\\{${I}\\}`, "g"), `{c${G + 1}}`); + }), L.forEach(({ condicao: I }, G) => { + const j = `{c${G + 1}}`; + h.push({ ...I, id: j }); + }), [{ condicoes: h, formula: b }]; } const A = L.map( - ({ condicao: h }, $) => ({ + ({ condicao: h }, b) => ({ ...h, - id: `{c${$ + 1}}` + id: `{c${b + 1}}` }) ), C = A.map((h) => h.id).join(" E "); return [{ condicoes: A, formula: C }]; @@ -3904,10 +4338,10 @@ function Gh(e, n, r, o) { l.value = !1; } function m() { - i.value = [], a.value = "", Vh(e.tabela.nome), l.value = !1, r.value = "", n.value !== 1 ? n.value = 1 : o(); + i.value = [], a.value = "", wb(e.tabela.nome), l.value = !1, r.value = "", n.value !== 1 ? n.value = 1 : o(); } - function f(w, z) { - i.value = w ?? [], a.value = z ?? "", Bh(e.tabela.nome, { + function f(x, D) { + i.value = x ?? [], a.value = D ?? "", Sb(e.tabela.nome, { linhas: i.value, formula: a.value }), l.value = !1, r.value = "", n.value !== 1 ? n.value = 1 : o(); @@ -3923,37 +4357,37 @@ function Gh(e, n, r, o) { in: "em", "∩": "possui" }; - function b(w, z) { - const [L, A] = Array.isArray(w) ? w : [w, {}]; + function y(x, D) { + const [L, A] = Array.isArray(x) ? x : [x, {}]; if (L === "confirmacao") { const C = A || {}; - return z === !0 ? C.rotuloAtivo || "Sim" : z === !1 ? C.rotuloInativo || "Não" : String(z); + return D === !0 ? C.rotuloAtivo || "Sim" : D === !1 ? C.rotuloInativo || "Não" : String(D); } if ((L === "selecao" || L === "selecaoMultipla") && typeof (A == null ? void 0 : A.itens) == "function") try { const C = A.itens(); if (Array.isArray(C)) { - const h = ($) => { + const h = (b) => { const I = C.find( - (q) => String(q.chave) === String($) + (G) => String(G.chave) === String(b) ); - return I ? I.rotulo : $; + return I ? I.rotulo : b; }; - return Array.isArray(z) ? z.map(($) => h(String($))).join(", ") : h(String(z)); + return Array.isArray(D) ? D.map((b) => h(String(b))).join(", ") : h(String(D)); } } catch { } - return Array.isArray(z) ? z.map(String).join(", ") : String(z); + return Array.isArray(D) ? D.map(String).join(", ") : String(D); } - const E = j(() => { - const w = e.tabela.filtroAvancado ?? [], z = (i.value ?? []).filter((A) => A && A.chave !== void 0), L = []; - for (const A of z) { - const C = w.find((h) => String(h.chave) === String(A.chave)); + const N = z(() => { + const x = e.tabela.filtroAvancado ?? [], D = (i.value ?? []).filter((A) => A && A.chave !== void 0), L = []; + for (const A of D) { + const C = x.find((h) => String(h.chave) === String(A.chave)); if (C) { const h = C.filtro(A.valor); if (h) { - const $ = g[h.operador] || h.operador, I = b(C.entrada, h.valor); - L.push(`${C.rotulo} ${$} "${I}"`); + const b = g[h.operador] || h.operador, I = y(C.entrada, h.valor); + L.push(`${C.rotulo} ${b} "${I}"`); } } } @@ -3965,23 +4399,23 @@ function Gh(e, n, r, o) { modalFiltroAberto: l, exibirFiltroAvancado: s, filtrosAvancadosAtivos: u, - filtrosAtivosResumo: E, + filtrosAtivosResumo: N, abrirModalFiltro: d, fecharModalFiltro: c, limparFiltrosAvancados: m, salvarFiltrosAvancados: f }; } -function Wh(e, n) { +function jb(e, n) { const r = B(null), o = B(null), t = B({ top: 0, left: 0 }); function i(d) { - var w, z, L, A; - const c = d.getBoundingClientRect(), m = 8, f = ((z = (w = o.value) == null ? void 0 : w.menuEl) == null ? void 0 : z.offsetHeight) ?? 0, g = ((A = (L = o.value) == null ? void 0 : L.menuEl) == null ? void 0 : A.offsetWidth) ?? 180; - let b = c.bottom + m; - const E = c.right - g; - f && b + f > window.innerHeight - m && (b = c.top - m - f), t.value = { - top: Math.max(m, Math.round(b)), - left: Math.max(m, Math.round(E)) + var x, D, L, A; + const c = d.getBoundingClientRect(), m = 8, f = ((D = (x = o.value) == null ? void 0 : x.menuEl) == null ? void 0 : D.offsetHeight) ?? 0, g = ((A = (L = o.value) == null ? void 0 : L.menuEl) == null ? void 0 : A.offsetWidth) ?? 180; + let y = c.bottom + m; + const N = c.right - g; + f && y + f > window.innerHeight - m && (y = c.top - m - f), t.value = { + top: Math.max(m, Math.round(y)), + left: Math.max(m, Math.round(N)) }; } function a(d) { @@ -3993,8 +4427,8 @@ function Wh(e, n) { function l(d) { const c = e.tabela.acoesLinha ?? [], m = n.value[d] ?? []; return c.map((f, g) => { - const b = f.exibir === void 0 ? !0 : typeof f.exibir == "boolean" ? f.exibir : !1; - return { acao: f, indice: g, visivel: m[g] ?? b }; + const y = f.exibir === void 0 ? !0 : typeof f.exibir == "boolean" ? f.exibir : !1; + return { acao: f, indice: g, visivel: m[g] ?? y }; }).filter((f) => f.visivel); } function s(d) { @@ -4008,14 +4442,14 @@ function Wh(e, n) { } r.value = d; const m = (c == null ? void 0 : c.currentTarget) ?? null; - m && (i(m), ca(() => { + m && (i(m), _r(() => { r.value !== null && i(m); })); } - return rt(() => document.addEventListener("click", a)), cn(() => document.removeEventListener("click", a)), { menuAberto: r, menuPopup: o, menuPopupPos: t, possuiAcoes: s, toggleMenu: u, acoesDisponiveisPorLinha: l }; + return We(() => document.addEventListener("click", a)), wt(() => document.removeEventListener("click", a)), { menuAberto: r, menuPopup: o, menuPopupPos: t, possuiAcoes: s, toggleMenu: u, acoesDisponiveisPorLinha: l }; } -function Kh(e, n, r) { - const o = j(() => !!e.tabela.mostrar_selecao), t = j(() => e.tabela.chave_selecao); +function Ob(e, n, r) { + const o = z(() => !!e.tabela.mostrar_selecao), t = z(() => e.tabela.chave_selecao); function i(c) { return t.value && c && typeof c == "object" ? c[t.value] : c; } @@ -4026,9 +4460,9 @@ function Kh(e, n, r) { function l(c) { const m = [...e.selecionados], f = i(c); let g = -1; - t.value ? g = m.findIndex((b) => i(b) === f) : g = m.indexOf(c), g === -1 ? m.push(c) : m.splice(g, 1), n("update:selecionados", m); + t.value ? g = m.findIndex((y) => i(y) === f) : g = m.indexOf(c), g === -1 ? m.push(c) : m.splice(g, 1), n("update:selecionados", m); } - const s = j(() => r.value.length === 0 ? !1 : r.value.every((c) => a(c))), u = j(() => r.value.length === 0 ? !1 : r.value.some((c) => a(c)) && !s.value); + const s = z(() => r.value.length === 0 ? !1 : r.value.every((c) => a(c))), u = z(() => r.value.length === 0 ? !1 : r.value.some((c) => a(c)) && !s.value); function d(c) { const m = c ?? !s.value; let f = [...e.selecionados]; @@ -4037,7 +4471,7 @@ function Kh(e, n, r) { a(g) || f.push(g); else { const g = r.value.map(i); - t.value ? f = f.filter((b) => !g.includes(i(b))) : f = f.filter((b) => !g.includes(b)); + t.value ? f = f.filter((y) => !g.includes(i(y))) : f = f.filter((y) => !g.includes(y)); } n("update:selecionados", f); } @@ -4050,29 +4484,29 @@ function Kh(e, n, r) { alternarSelecaoTodos: d }; } -function Xh(e, n) { +function Eb(e, n) { const r = B(1), o = B(""); let t = async () => { }; - const a = Gh(e, r, o, () => t()), l = B(!1), s = Jh(e, l), u = qh( + const a = Db(e, r, o, () => t()), l = B(!1), s = Ib(e, l), u = zb( e, a.filtrosAvancadosAtivos, r, o, s.linhasExpandidas ); - t = u.carregar, l.value = u.temAcoes.value, _e(u.temAcoes, (m) => { + t = u.carregar, l.value = u.temAcoes.value, be(u.temAcoes, (m) => { l.value = m; }); - const d = Kh(e, n, u.linhasPaginadas), c = Wh(e, u.acoesVisiveis); - return _e( + const d = Ob(e, n, u.linhasPaginadas), c = jb(e, u.acoesVisiveis); + return be( () => e.tabela, () => { - c.menuAberto.value = null, u.colunaOrdenacao.value = null, u.direcaoOrdenacao.value = "asc", o.value = "", s.modalColunasAberto.value = !1, a.modalFiltroAberto.value = !1, s.configColunas.value = Ua(e.tabela.nome); - const m = Ta(e.tabela.nome); + c.menuAberto.value = null, u.colunaOrdenacao.value = null, u.direcaoOrdenacao.value = "asc", o.value = "", s.modalColunasAberto.value = !1, a.modalFiltroAberto.value = !1, s.configColunas.value = Na(e.tabela.nome); + const m = Pa(e.tabela.nome); a.filtrosUi.value = m.linhas, s.linhasExpandidas.value = {}, r.value !== 1 ? r.value = 1 : u.carregar(); } - ), rt(() => void u.carregar()), { + ), We(() => void u.carregar()), { ...u, ...a, ...d, @@ -4087,19 +4521,19 @@ function Xh(e, n) { valorBusca: o }; } -const Yh = Q({ +const xb = Q({ name: "EliTabela", inheritAttrs: !1, components: { - EliTabelaCabecalho: Xp, - EliTabelaEstados: fg, - EliTabelaDebug: ag, - EliTabelaHead: wg, - EliTabelaBody: Pp, - EliTabelaMenuAcoes: Ug, - EliTabelaPaginacao: Lh, - EliTabelaModalColunas: eh, - EliTabelaModalFiltroAvancado: jh + EliTabelaCabecalho: Eg, + EliTabelaEstados: Gg, + EliTabelaDebug: Lg, + EliTabelaHead: oh, + EliTabelaBody: pg, + EliTabelaMenuAcoes: mh, + EliTabelaPaginacao: _b, + EliTabelaModalColunas: Nh, + EliTabelaModalFiltroAvancado: ub }, props: { /** Configuração principal da tabela (colunas, consulta e ações) */ @@ -4121,27 +4555,27 @@ const Yh = Q({ }, emits: ["update:selecionados"], setup(e, { emit: n }) { - return Xh(e, n); + return Eb(e, n); } -}), Hh = { class: "eli-tabela" }, Qh = { class: "eli-tabela__table-wrapper" }, e$ = { class: "eli-tabela__table" }, t$ = { key: 0 }, n$ = ["colspan"]; -function r$(e, n, r, o, t, i) { - const a = H("EliTabelaDebug"), l = H("EliTabelaCabecalho"), s = H("EliTabelaModalColunas"), u = H("EliTabelaModalFiltroAvancado"), d = H("EliTabelaHead"), c = H("EliTabelaEstados"), m = H("EliTabelaBody"), f = H("EliTabelaMenuAcoes"), g = H("EliTabelaPaginacao"); - return _(), S("div", Hh, [ +}), Ub = { class: "eli-tabela" }, Tb = { class: "eli-tabela__table-wrapper" }, Nb = { class: "eli-tabela__table" }, Pb = { key: 0 }, Ab = ["colspan"]; +function Cb(e, n, r, o, t, i) { + const a = Y("EliTabelaDebug"), l = Y("EliTabelaCabecalho"), s = Y("EliTabelaModalColunas"), u = Y("EliTabelaModalFiltroAvancado"), d = Y("EliTabelaHead"), c = Y("EliTabelaEstados"), m = Y("EliTabelaBody"), f = Y("EliTabelaMenuAcoes"), g = Y("EliTabelaPaginacao"); + return $(), S("div", Ub, [ M(a, { isDev: e.isDev, menuAberto: e.menuAberto, menuPopupPos: e.menuPopupPos }, { default: ue(() => [ - p("div", null, "paginaAtual: " + V(e.paginaAtual), 1), - p("div", null, "limit: " + V(e.registrosPorConsulta), 1), - p("div", null, "texto_busca: " + V((e.valorBusca || "").trim()), 1), - p("div", null, "filtrosAvancadosAtivos: " + V(JSON.stringify(e.filtrosAvancadosAtivos)), 1), - p("div", null, "quantidadeTotal: " + V(e.quantidade), 1) + p("div", null, "paginaAtual: " + R(e.paginaAtual), 1), + p("div", null, "limit: " + R(e.registrosPorConsulta), 1), + p("div", null, "texto_busca: " + R((e.valorBusca || "").trim()), 1), + p("div", null, "filtrosAvancadosAtivos: " + R(JSON.stringify(e.filtrosAvancadosAtivos)), 1), + p("div", null, "quantidadeTotal: " + R(e.quantidade), 1) ]), _: 1 }, 8, ["isDev", "menuAberto", "menuPopupPos"]), - e.exibirBusca || e.temAcoesSuperiores ? (_(), re(l, { + e.exibirBusca || e.temAcoesSuperiores ? ($(), re(l, { key: 0, exibirBusca: e.exibirBusca, exibirBotaoFiltroAvancado: e.exibirFiltroAvancado, @@ -4152,7 +4586,7 @@ function r$(e, n, r, o, t, i) { onBuscar: e.atualizarBusca, onColunas: e.abrirModalColunas, onFiltroAvancado: e.abrirModalFiltro - }, null, 8, ["exibirBusca", "exibirBotaoFiltroAvancado", "filtrosAtivosResumo", "valorBusca", "acoesCabecalho", "parametrosConsulta", "onBuscar", "onColunas", "onFiltroAvancado"])) : X("", !0), + }, null, 8, ["exibirBusca", "exibirBotaoFiltroAvancado", "filtrosAtivosResumo", "valorBusca", "acoesCabecalho", "parametrosConsulta", "onBuscar", "onColunas", "onFiltroAvancado"])) : K("", !0), M(s, { aberto: e.modalColunasAberto, rotulosColunas: e.rotulosColunas, @@ -4170,8 +4604,8 @@ function r$(e, n, r, o, t, i) { onLimpar: e.limparFiltrosAvancados, onSalvar: e.salvarFiltrosAvancados }, null, 8, ["aberto", "filtrosBase", "modelo", "modeloFormula", "onFechar", "onLimpar", "onSalvar"]), - p("div", Qh, [ - p("table", e$, [ + p("div", Tb, [ + p("table", Nb, [ M(d, { colunas: e.colunasEfetivas, temAcoes: e.temAcoes, @@ -4184,7 +4618,7 @@ function r$(e, n, r, o, t, i) { onAlternarOrdenacao: e.alternarOrdenacao, onAlternarSelecaoTodos: e.alternarSelecaoTodos }, null, 8, ["colunas", "temAcoes", "temColunasInvisiveis", "colunaOrdenacao", "direcaoOrdenacao", "mostrarSelecao", "todosSelecionados", "algunsSelecionados", "onAlternarOrdenacao", "onAlternarSelecaoTodos"]), - e.carregando || e.erro || !e.linhas.length ? (_(), S("tbody", t$, [ + e.carregando || e.erro || !e.linhas.length ? ($(), S("tbody", Pb, [ p("tr", null, [ p("td", { colspan: e.totalColunas, @@ -4196,9 +4630,9 @@ function r$(e, n, r, o, t, i) { mensagemVazio: e.tabela.mensagemVazio, class: "eli-tabela__estados-inline" }, null, 8, ["carregando", "erro", "mensagemVazio"]) - ], 8, n$) + ], 8, Ab) ]) - ])) : (_(), re(m, { + ])) : ($(), re(m, { key: 1, colunas: e.colunasEfetivas, colunasInvisiveis: e.colunasInvisiveisEfetivas, @@ -4222,11 +4656,11 @@ function r$(e, n, r, o, t, i) { posicao: e.menuPopupPos, acoes: e.menuAberto === null ? [] : e.acoesDisponiveisPorLinha(e.menuAberto), linha: e.menuAberto === null ? null : e.linhasPaginadas[e.menuAberto], - onExecutar: n[0] || (n[0] = ({ acao: b, linha: E }) => { - e.menuAberto = null, b.acao(E); + onExecutar: n[0] || (n[0] = ({ acao: y, linha: N }) => { + e.menuAberto = null, y.acao(N); }) }, null, 8, ["menuAberto", "posicao", "acoes", "linha"]), - e.totalPaginas > 1 && e.quantidadeFiltrada > 0 || e.temAcoesInferiores ? (_(), re(g, { + e.totalPaginas > 1 && e.quantidadeFiltrada > 0 || e.temAcoesInferiores ? ($(), re(g, { key: 1, pagina: e.paginaAtual, totalPaginas: e.totalPaginas, @@ -4234,11 +4668,11 @@ function r$(e, n, r, o, t, i) { acoes: e.acoesInferiores, parametrosConsulta: e.parametrosConsultaAtuais, onAlterar: e.irParaPagina - }, null, 8, ["pagina", "totalPaginas", "maximoBotoes", "acoes", "parametrosConsulta", "onAlterar"])) : X("", !0) + }, null, 8, ["pagina", "totalPaginas", "maximoBotoes", "acoes", "parametrosConsulta", "onAlterar"])) : K("", !0) ]); } -const i$ = /* @__PURE__ */ ee(Yh, [["render", r$]]), Gk = (e, n) => [e, n]; -function o$(e, n) { +const Zb = /* @__PURE__ */ ee(xb, [["render", Cb]]), DS = (e, n) => [e, n]; +function Mb(e, n) { const r = [ `## Elemento: ${e.seletor}`, "", @@ -4253,7 +4687,7 @@ function o$(e, n) { return e.textoVisivel && r.push(`- **Texto visível:** "${e.textoVisivel}"`), r.join(` `); } -function a$(e) { +function Lb(e) { const n = [ "# Relatório de Feedback de Interface", "", @@ -4275,7 +4709,7 @@ function a$(e) { return n.join(` `); } -function l$(e) { +function Fb(e) { const n = {}; for (const a of Array.from(e.attributes)) a.name.startsWith("data-") && (n[a.name] = a.value); @@ -4296,23 +4730,23 @@ function l$(e) { caminhoDom: o.join(" > ") }; } -const cr = "eli-feedback-items"; -function u$() { +const dr = "eli-feedback-items"; +function Rb() { return `fb-${Date.now().toString(36)}-${Math.random().toString(36).slice(2, 7)}`; } -function s$() { +function Bb() { const e = B("inativo"), n = B(null), r = B(""), o = B(null), t = B(!1), i = B(!1); function a() { try { - const D = localStorage.getItem(cr); - return D ? JSON.parse(D) : []; + const j = localStorage.getItem(dr); + return j ? JSON.parse(j) : []; } catch { return []; } } - const l = B(a()), s = j(() => l.value.length); + const l = B(a()), s = z(() => l.value.length); function u() { - localStorage.setItem(cr, JSON.stringify(l.value)); + localStorage.setItem(dr, JSON.stringify(l.value)); } let d = null; function c() { @@ -4330,9 +4764,9 @@ function s$() { function m() { d && (d.remove(), d = null); } - function f(D) { + function f(j) { if (!d) return; - const Z = D.getBoundingClientRect(); + const Z = j.getBoundingClientRect(); Object.assign(d.style, { display: "block", top: `${Z.top - 2}px`, @@ -4341,67 +4775,67 @@ function s$() { height: `${Z.height + 4}px` }); } - function g(D) { - const Z = D.target; + function g(j) { + const Z = j.target; Z.closest("#eli-feedback-widget") || Z.id === "eli-feedback-overlay" || (o.value = Z, f(Z)); } - function b() { - document.removeEventListener("mousemove", g, !0), document.removeEventListener("click", E, !0), document.removeEventListener("keydown", w, !0), document.body.style.cursor = "", d && (d.style.display = "none"); + function y() { + document.removeEventListener("mousemove", g, !0), document.removeEventListener("click", N, !0), document.removeEventListener("keydown", x, !0), document.body.style.cursor = "", d && (d.style.display = "none"); } - function E(D) { - D.preventDefault(), D.stopPropagation(), D.stopImmediatePropagation(); - const Z = D.target; + function N(j) { + j.preventDefault(), j.stopPropagation(), j.stopImmediatePropagation(); + const Z = j.target; if (Z.closest("#eli-feedback-widget") || Z.id === "eli-feedback-overlay") return; - const ge = l$(Z), Pe = e.value; - if (b(), Pe === "selecionando-copiar") { - const O = o$(ge, window.location.href); - navigator.clipboard.writeText(O).then(() => { + const pe = Fb(Z), Ie = e.value; + if (y(), Ie === "selecionando-copiar") { + const E = Mb(pe, window.location.href); + navigator.clipboard.writeText(E).then(() => { i.value = !0, setTimeout(() => { i.value = !1; }, 1500); }).catch(() => { }), e.value = "inativo", m(); } else - n.value = ge, e.value = "comentando"; + n.value = pe, e.value = "comentando"; } - function w(D) { - D.key === "Escape" && C(); + function x(j) { + j.key === "Escape" && C(); } - function z() { - n.value = null, r.value = "", t.value = !1, c(), document.body.style.cursor = "crosshair", document.addEventListener("mousemove", g, !0), document.addEventListener("click", E, !0), document.addEventListener("keydown", w, !0); + function D() { + n.value = null, r.value = "", t.value = !1, c(), document.body.style.cursor = "crosshair", document.addEventListener("mousemove", g, !0), document.addEventListener("click", N, !0), document.addEventListener("keydown", x, !0); } function L() { - e.value = "selecionando", z(); + e.value = "selecionando", D(); } function A() { - e.value = "selecionando-copiar", z(); + e.value = "selecionando-copiar", D(); } function C() { - e.value = "inativo", n.value = null, o.value = null, r.value = "", b(), m(); + e.value = "inativo", n.value = null, o.value = null, r.value = "", y(), m(); } function h() { if (!n.value || !r.value.trim()) return; - const D = { - id: u$(), + const j = { + id: Rb(), criadoEm: (/* @__PURE__ */ new Date()).toISOString(), elemento: n.value, comentario: r.value.trim(), urlPagina: window.location.href }; - l.value.unshift(D), u(), e.value = "inativo", n.value = null, r.value = "", m(); + l.value.unshift(j), u(), e.value = "inativo", n.value = null, r.value = "", m(); } - function $() { + function b() { if (!l.value.length) return; - const D = a$(l.value), Z = new Blob([D], { type: "text/markdown;charset=utf-8" }), ge = URL.createObjectURL(Z); - window.open(ge, "_blank"); + const j = Lb(l.value), Z = new Blob([j], { type: "text/markdown;charset=utf-8" }), pe = URL.createObjectURL(Z); + window.open(pe, "_blank"); } function I() { - l.value = [], localStorage.removeItem(cr); + l.value = [], localStorage.removeItem(dr); } - function q(D) { - l.value = l.value.filter((Z) => Z.id !== D), u(); + function G(j) { + l.value = l.value.filter((Z) => Z.id !== j), u(); } - return cn(() => { + return wt(() => { C(); }), { modo: e, @@ -4415,12 +4849,12 @@ function s$() { iniciarSelecaoParaCopiar: A, cancelarSelecao: C, salvarFeedback: h, - exportarMarkdown: $, + exportarMarkdown: b, limparTodos: I, - removerItem: q + removerItem: G }; } -const c$ = Q({ +const Vb = Q({ name: "EliFeedbackWidget", setup() { const e = B(null), n = B(!1), { @@ -4436,22 +4870,22 @@ const c$ = Q({ salvarFeedback: c, exportarMarkdown: m, limparTodos: f - } = s$(); + } = Bb(); function g() { r.value !== "inativo" ? (d(), n.value = !1) : n.value = !n.value; } - function b() { + function y() { n.value = !1, s(); } - function E() { + function N() { n.value = !1, u(); } - function w() { + function x() { f(), n.value = !1; } - return _e(r, async (z) => { + return be(r, async (D) => { var L; - z === "comentando" && (await ca(), (L = e.value) == null || L.focus()); + D === "comentando" && (await _r(), (L = e.value) == null || L.focus()); }), { textareaRef: e, expandido: n, @@ -4462,33 +4896,33 @@ const c$ = Q({ itens: a, totalItens: l, aoClicarFab: g, - aoIniciarFeedback: b, - aoIniciarCopia: E, + aoIniciarFeedback: y, + aoIniciarCopia: N, cancelarSelecao: d, salvarFeedback: c, exportarMarkdown: m, - confirmarLimpeza: w + confirmarLimpeza: x }; } -}), d$ = { +}), Jb = { id: "eli-feedback-widget", class: "eli-feedback-fab" -}, m$ = { +}, qb = { key: 0, class: "eli-fb-acoes" -}, f$ = ["title"], v$ = { key: 0 }, p$ = { key: 1 }, g$ = { +}, Gb = ["title"], Kb = { key: 0 }, Wb = { key: 1 }, Xb = { key: 2, class: "eli-fb-badge" -}, h$ = { +}, Hb = { key: 1, class: "eli-fb-tooltip-selecao" -}, $$ = { key: 0 }, b$ = { key: 1 }, _$ = { +}, Yb = { key: 0 }, Qb = { key: 1 }, e$ = { key: 2, class: "eli-fb-painel" -}, y$ = { class: "eli-fb-painel-header" }, k$ = { class: "eli-fb-painel-corpo" }, S$ = { class: "eli-fb-el-info" }, I$ = { key: 0 }, w$ = { key: 1 }, z$ = { key: 2 }, D$ = { class: "eli-fb-painel-acoes" }, j$ = ["disabled"]; -function O$(e, n, r, o, t, i) { - return _(), S("div", d$, [ - e.expandido && e.modo === "inativo" ? (_(), S("div", m$, [ +}, t$ = { class: "eli-fb-painel-header" }, n$ = { class: "eli-fb-painel-corpo" }, r$ = { class: "eli-fb-el-info" }, i$ = { key: 0 }, o$ = { key: 1 }, a$ = { key: 2 }, l$ = { class: "eli-fb-painel-acoes" }, u$ = ["disabled"]; +function s$(e, n, r, o, t, i) { + return $(), S("div", Jb, [ + e.expandido && e.modo === "inativo" ? ($(), S("div", qb, [ p("button", { class: "eli-fb-botao-ico eli-fb-botao-feedback", title: "Adicionar feedback com comentário", @@ -4498,84 +4932,84 @@ function O$(e, n, r, o, t, i) { class: "eli-fb-botao-ico eli-fb-botao-copiar", title: "Selecionar elemento e copiar dados", onClick: n[1] || (n[1] = (...a) => e.aoIniciarCopia && e.aoIniciarCopia(...a)) - }, V(e.copiouElemento ? "✅" : "📋"), 1), - e.totalItens > 0 ? (_(), S("button", { + }, R(e.copiouElemento ? "✅" : "📋"), 1), + e.totalItens > 0 ? ($(), S("button", { key: 0, class: "eli-fb-botao-ico eli-fb-botao-exportar", title: `Visualizar ${e.totalItens} feedback(s) em nova aba`, onClick: n[2] || (n[2] = (...a) => e.exportarMarkdown && e.exportarMarkdown(...a)) - }, " 📄 ", 8, f$)) : X("", !0), - e.totalItens > 0 ? (_(), S("button", { + }, " 📄 ", 8, Gb)) : K("", !0), + e.totalItens > 0 ? ($(), S("button", { key: 1, class: "eli-fb-botao-ico eli-fb-botao-limpar", title: "Limpar todos os feedbacks", onClick: n[3] || (n[3] = (...a) => e.confirmarLimpeza && e.confirmarLimpeza(...a)) - }, " 🗑️ ")) : X("", !0) - ])) : X("", !0), + }, " 🗑️ ")) : K("", !0) + ])) : K("", !0), p("button", { class: "eli-fb-botao-principal", title: "Ferramentas de feedback", onClick: n[4] || (n[4] = (...a) => e.aoClicarFab && e.aoClicarFab(...a)) }, [ - e.modo === "inativo" && !e.expandido ? (_(), S("span", v$, "🐛")) : (_(), S("span", p$, "✕")), - e.totalItens > 0 && e.modo === "inativo" && !e.expandido ? (_(), S("span", g$, V(e.totalItens), 1)) : X("", !0) + e.modo === "inativo" && !e.expandido ? ($(), S("span", Kb, "🐛")) : ($(), S("span", Wb, "✕")), + e.totalItens > 0 && e.modo === "inativo" && !e.expandido ? ($(), S("span", Xb, R(e.totalItens), 1)) : K("", !0) ]), - e.modo === "selecionando" || e.modo === "selecionando-copiar" ? (_(), S("div", h$, [ - e.modo === "selecionando" ? (_(), S("span", $$, "🎯 Clique no elemento")) : (_(), S("span", b$, "📋 Clique para copiar")), + e.modo === "selecionando" || e.modo === "selecionando-copiar" ? ($(), S("div", Hb, [ + e.modo === "selecionando" ? ($(), S("span", Yb, "🎯 Clique no elemento")) : ($(), S("span", Qb, "📋 Clique para copiar")), n[10] || (n[10] = p("span", { class: "eli-fb-tooltip-esc" }, [ p("kbd", null, "ESC"), ne(" cancela") ], -1)) - ])) : X("", !0), - e.modo === "comentando" && e.elementoSelecionado ? (_(), S("div", _$, [ - p("div", y$, [ + ])) : K("", !0), + e.modo === "comentando" && e.elementoSelecionado ? ($(), S("div", e$, [ + p("div", t$, [ n[11] || (n[11] = p("h3", null, "💬 Adicionar Feedback", -1)), p("button", { class: "eli-fb-painel-fechar", onClick: n[5] || (n[5] = (...a) => e.cancelarSelecao && e.cancelarSelecao(...a)) }, "✕") ]), - p("div", k$, [ - p("div", S$, [ + p("div", n$, [ + p("div", r$, [ p("div", null, [ n[12] || (n[12] = p("strong", null, "Seletor:", -1)), n[13] || (n[13] = ne()), - p("code", null, V(e.elementoSelecionado.seletor), 1) + p("code", null, R(e.elementoSelecionado.seletor), 1) ]), p("div", null, [ n[14] || (n[14] = p("strong", null, "Tag:", -1)), n[15] || (n[15] = ne()), - p("code", null, "<" + V(e.elementoSelecionado.tag) + ">", 1) + p("code", null, "<" + R(e.elementoSelecionado.tag) + ">", 1) ]), - e.elementoSelecionado.id ? (_(), S("div", I$, [ + e.elementoSelecionado.id ? ($(), S("div", i$, [ n[16] || (n[16] = p("strong", null, "ID:", -1)), n[17] || (n[17] = ne()), - p("code", null, V(e.elementoSelecionado.id), 1) - ])) : X("", !0), - e.elementoSelecionado.classes.length ? (_(), S("div", w$, [ + p("code", null, R(e.elementoSelecionado.id), 1) + ])) : K("", !0), + e.elementoSelecionado.classes.length ? ($(), S("div", o$, [ n[18] || (n[18] = p("strong", null, "Classes:", -1)), - p("code", null, V(e.elementoSelecionado.classes.join(", ")), 1) - ])) : X("", !0), + p("code", null, R(e.elementoSelecionado.classes.join(", ")), 1) + ])) : K("", !0), p("div", null, [ n[19] || (n[19] = p("strong", null, "Caminho:", -1)), n[20] || (n[20] = ne()), - p("code", null, V(e.elementoSelecionado.caminhoDom), 1) + p("code", null, R(e.elementoSelecionado.caminhoDom), 1) ]), - e.elementoSelecionado.textoVisivel ? (_(), S("div", z$, [ + e.elementoSelecionado.textoVisivel ? ($(), S("div", a$, [ n[21] || (n[21] = p("strong", null, "Texto:", -1)), - ne(' "' + V(e.elementoSelecionado.textoVisivel) + '" ', 1) - ])) : X("", !0) + ne(' "' + R(e.elementoSelecionado.textoVisivel) + '" ', 1) + ])) : K("", !0) ]), dn(p("textarea", { ref: "textareaRef", "onUpdate:modelValue": n[6] || (n[6] = (a) => e.comentario = a), class: "eli-fb-textarea", placeholder: "Descreva o problema, sugestão ou observação...", - onKeydown: n[7] || (n[7] = ua(ve((...a) => e.salvarFeedback && e.salvarFeedback(...a), ["ctrl"]), ["enter"])) + onKeydown: n[7] || (n[7] = ut(ce((...a) => e.salvarFeedback && e.salvarFeedback(...a), ["ctrl"]), ["enter"])) }, null, 544), [ - [br, e.comentario] + [kr, e.comentario] ]), - p("div", D$, [ + p("div", l$, [ p("button", { class: "eli-fb-btn-cancelar", onClick: n[8] || (n[8] = (...a) => e.cancelarSelecao && e.cancelarSelecao(...a)) @@ -4584,18 +5018,18 @@ function O$(e, n, r, o, t, i) { class: "eli-fb-btn-salvar", disabled: !e.comentario.trim(), onClick: n[9] || (n[9] = (...a) => e.salvarFeedback && e.salvarFeedback(...a)) - }, " Salvar ✓ ", 8, j$) + }, " Salvar ✓ ", 8, u$) ]) ]) - ])) : X("", !0) + ])) : K("", !0) ]); } -const x$ = /* @__PURE__ */ ee(c$, [["render", O$]]), E$ = Q({ +const c$ = /* @__PURE__ */ ee(Vb, [["render", s$]]), d$ = Q({ name: "EliOlaMundo", components: { - EliBotao: ha, - EliBadge: _r, - EliEntradaTexto: yr + EliBotao: ba, + EliBadge: Sr, + EliEntradaTexto: wr }, setup() { const e = B(""), n = B(""), r = B(""), o = B(""), t = B(""); @@ -4607,17 +5041,17 @@ const x$ = /* @__PURE__ */ ee(c$, [["render", O$]]), E$ = Q({ cep: n }; } -}), U$ = { class: "grid-example" }; -function T$(e, n, r, o, t, i) { - const a = H("EliBadge"), l = H("EliEntradaTexto"), s = H("EliBotao"); - return _(), re(Jm, null, { +}), m$ = { class: "grid-example" }; +function f$(e, n, r, o, t, i) { + const a = Y("EliBadge"), l = Y("EliEntradaTexto"), s = Y("EliBotao"); + return $(), re(Gm, null, { default: ue(() => [ - M(da, { + M(ma, { class: "mx-auto", max_width: "400" }, { default: ue(() => [ - M(ma, null, { + M(fa, null, { default: ue(() => [ M(a, { badge: "Novo", @@ -4632,10 +5066,10 @@ function T$(e, n, r, o, t, i) { ]), _: 1 }), - M(fa, null, { + M(pa, null, { default: ue(() => [ n[6] || (n[6] = ne(" Este é um componente de exemplo integrado com Vuetify. ", -1)), - p("div", U$, [ + p("div", m$, [ M(l, { value: e.nome, "onUpdate:value": n[0] || (n[0] = (u) => e.nome = u), @@ -4688,9 +5122,9 @@ function T$(e, n, r, o, t, i) { _: 1 }); } -const P$ = /* @__PURE__ */ ee(E$, [["render", T$]]); -var Mo; -const Na = /* @__PURE__ */ Object.freeze({ +const p$ = /* @__PURE__ */ ee(d$, [["render", f$]]); +var Ro; +const Ca = /* @__PURE__ */ Object.freeze({ status: "aborted" }); function v(e, n, r) { @@ -4730,43 +5164,43 @@ function v(e, n, r) { } }), Object.defineProperty(a, "name", { value: e }), a; } -const Aa = Symbol("zod_brand"); -class Qe extends Error { +const Za = Symbol("zod_brand"); +class et extends Error { constructor() { super("Encountered Promise during synchronous parse. Use .parseAsync() instead."); } } -class bn extends Error { +class _n extends Error { constructor(n) { super(`Encountered unidirectional transform during encode: ${n}`), this.name = "ZodEncodeError"; } } -(Mo = globalThis).__zod_globalConfig ?? (Mo.__zod_globalConfig = {}); +(Ro = globalThis).__zod_globalConfig ?? (Ro.__zod_globalConfig = {}); const It = globalThis.__zod_globalConfig; -function pe(e) { +function _e(e) { return e && Object.assign(It, e), It; } -function N$(e) { +function v$(e) { return e; } -function A$(e) { +function g$(e) { return e; } -function C$(e) { +function h$(e) { } -function Z$(e) { +function b$(e) { throw new Error("Unexpected value in exhaustive check"); } -function M$(e) { +function $$(e) { } -function Sr(e) { +function zr(e) { const n = Object.values(e).filter((o) => typeof o == "number"); return Object.entries(e).filter(([o, t]) => n.indexOf(+o) === -1).map(([o, t]) => t); } -function k(e, n = "|") { - return e.map((r) => F(r)).join(n); +function w(e, n = "|") { + return e.map((r) => V(r)).join(n); } -function mn(e, n) { +function fn(e, n) { return typeof n == "bigint" ? n.toString() : n; } function xt(e) { @@ -4782,21 +5216,21 @@ function xt(e) { function it(e) { return e == null; } -function _n(e) { +function yn(e) { const n = e.startsWith("^") ? 1 : 0, r = e.endsWith("$") ? e.length - 1 : e.length; return e.slice(n, r); } -function Ca(e, n) { +function Ma(e, n) { const r = e / n, o = Math.round(r), t = Number.EPSILON * Math.max(Math.abs(r), 1); return Math.abs(r - o) < t ? 0 : r - o; } -const Lo = /* @__PURE__ */ Symbol("evaluating"); -function Y(e, n, r) { +const Bo = /* @__PURE__ */ Symbol("evaluating"); +function H(e, n, r) { let o; Object.defineProperty(e, n, { get() { - if (o !== Lo) - return o === void 0 && (o = Lo, o = r()), o; + if (o !== Bo) + return o === void 0 && (o = Bo, o = r()), o; }, set(t) { Object.defineProperty(e, n, { @@ -4807,10 +5241,10 @@ function Y(e, n, r) { configurable: !0 }); } -function L$(e) { +function _$(e) { return Object.create(Object.getPrototypeOf(e), Object.getOwnPropertyDescriptors(e)); } -function Ke(e, n, r) { +function Xe(e, n, r) { Object.defineProperty(e, n, { value: r, writable: !0, @@ -4818,7 +5252,7 @@ function Ke(e, n, r) { configurable: !0 }); } -function Ze(...e) { +function Le(...e) { const n = {}; for (const r of e) { const o = Object.getOwnPropertyDescriptors(r); @@ -4826,13 +5260,13 @@ function Ze(...e) { } return Object.defineProperties({}, n); } -function F$(e) { - return Ze(e._zod.def); +function y$(e) { + return Le(e._zod.def); } -function R$(e, n) { +function k$(e, n) { return n ? n.reduce((r, o) => r == null ? void 0 : r[o], e) : e; } -function B$(e) { +function S$(e) { const n = Object.keys(e), r = n.map((o) => e[o]); return Promise.all(r).then((o) => { const t = {}; @@ -4841,25 +5275,25 @@ function B$(e) { return t; }); } -function V$(e = 10) { +function w$(e = 10) { const n = "abcdefghijklmnopqrstuvwxyz"; let r = ""; for (let o = 0; o < e; o++) r += n[Math.floor(Math.random() * n.length)]; return r; } -function fr(e) { +function pr(e) { return JSON.stringify(e); } -function Za(e) { +function La(e) { return e.toLowerCase().trim().replace(/[^\w\s-]/g, "").replace(/[\s_-]+/g, "-").replace(/^-+|-+$/g, ""); } -const Ir = "captureStackTrace" in Error ? Error.captureStackTrace : (...e) => { +const Dr = "captureStackTrace" in Error ? Error.captureStackTrace : (...e) => { }; -function ut(e) { +function ct(e) { return typeof e == "object" && e !== null && !Array.isArray(e); } -const Ma = /* @__PURE__ */ xt(() => { +const Fa = /* @__PURE__ */ xt(() => { var e; if (It.jitless || typeof navigator < "u" && ((e = navigator == null ? void 0 : navigator.userAgent) != null && e.includes("Cloudflare"))) return !1; @@ -4870,25 +5304,25 @@ const Ma = /* @__PURE__ */ xt(() => { return !1; } }); -function et(e) { - if (ut(e) === !1) +function tt(e) { + if (ct(e) === !1) return !1; const n = e.constructor; if (n === void 0 || typeof n != "function") return !0; const r = n.prototype; - return !(ut(r) === !1 || Object.prototype.hasOwnProperty.call(r, "isPrototypeOf") === !1); + return !(ct(r) === !1 || Object.prototype.hasOwnProperty.call(r, "isPrototypeOf") === !1); } -function yn(e) { - return et(e) ? { ...e } : Array.isArray(e) ? [...e] : e instanceof Map ? new Map(e) : e instanceof Set ? new Set(e) : e; +function kn(e) { + return tt(e) ? { ...e } : Array.isArray(e) ? [...e] : e instanceof Map ? new Map(e) : e instanceof Set ? new Set(e) : e; } -function J$(e) { +function I$(e) { let n = 0; for (const r in e) Object.prototype.hasOwnProperty.call(e, r) && n++; return n; } -const q$ = (e) => { +const z$ = (e) => { const n = typeof e; switch (n) { case "undefined": @@ -4910,7 +5344,7 @@ const q$ = (e) => { default: throw new Error(`Unknown data type: ${n}`); } -}, fn = /* @__PURE__ */ new Set(["string", "number", "symbol"]), La = /* @__PURE__ */ new Set([ +}, pn = /* @__PURE__ */ new Set(["string", "number", "symbol"]), Ra = /* @__PURE__ */ new Set([ "string", "number", "bigint", @@ -4921,11 +5355,11 @@ const q$ = (e) => { function Fe(e) { return e.replace(/[.*+?^${}()|[\]\\]/g, "\\$&"); } -function Te(e, n, r) { +function Ae(e, n, r) { const o = new e._zod.constr(n ?? e._zod.def); return (!n || r != null && r.parent) && (o._zod.parent = e), o; } -function y(e) { +function _(e) { const n = e; if (!n) return {}; @@ -4938,7 +5372,7 @@ function y(e) { } return delete n.message, typeof n.error == "string" ? { ...n, error: () => n.error } : n; } -function G$(e) { +function D$(e) { let n; return new Proxy({}, { get(r, o, t) { @@ -4964,27 +5398,27 @@ function G$(e) { } }); } -function F(e) { +function V(e) { return typeof e == "bigint" ? e.toString() + "n" : typeof e == "string" ? `"${e}"` : `${e}`; } -function Fa(e) { +function Ba(e) { return Object.keys(e).filter((n) => e[n]._zod.optin === "optional" && e[n]._zod.optout === "optional"); } -const Ra = { +const Va = { safeint: [Number.MIN_SAFE_INTEGER, Number.MAX_SAFE_INTEGER], int32: [-2147483648, 2147483647], uint32: [0, 4294967295], float32: [-34028234663852886e22, 34028234663852886e22], float64: [-Number.MAX_VALUE, Number.MAX_VALUE] -}, Ba = { +}, Ja = { int64: [/* @__PURE__ */ BigInt("-9223372036854775808"), /* @__PURE__ */ BigInt("9223372036854775807")], uint64: [/* @__PURE__ */ BigInt(0), /* @__PURE__ */ BigInt("18446744073709551615")] }; -function Va(e, n) { +function qa(e, n) { const r = e._zod.def, o = r.checks; if (o && o.length > 0) throw new Error(".pick() cannot be used on object schemas containing refinements"); - const i = Ze(e._zod.def, { + const i = Le(e._zod.def, { get shape() { const a = {}; for (const l in n) { @@ -4992,17 +5426,17 @@ function Va(e, n) { throw new Error(`Unrecognized key: "${l}"`); n[l] && (a[l] = r.shape[l]); } - return Ke(this, "shape", a), a; + return Xe(this, "shape", a), a; }, checks: [] }); - return Te(e, i); + return Ae(e, i); } -function Ja(e, n) { +function Ga(e, n) { const r = e._zod.def, o = r.checks; if (o && o.length > 0) throw new Error(".omit() cannot be used on object schemas containing refinements"); - const i = Ze(e._zod.def, { + const i = Le(e._zod.def, { get shape() { const a = { ...e._zod.def.shape }; for (const l in n) { @@ -5010,14 +5444,14 @@ function Ja(e, n) { throw new Error(`Unrecognized key: "${l}"`); n[l] && delete a[l]; } - return Ke(this, "shape", a), a; + return Xe(this, "shape", a), a; }, checks: [] }); - return Te(e, i); + return Ae(e, i); } -function qa(e, n) { - if (!et(n)) +function Ka(e, n) { + if (!tt(n)) throw new Error("Invalid input to extend: expected a plain object"); const r = e._zod.def.checks; if (r && r.length > 0) { @@ -5026,46 +5460,46 @@ function qa(e, n) { if (Object.getOwnPropertyDescriptor(i, a) !== void 0) throw new Error("Cannot overwrite keys on object schemas containing refinements. Use `.safeExtend()` instead."); } - const t = Ze(e._zod.def, { + const t = Le(e._zod.def, { get shape() { const i = { ...e._zod.def.shape, ...n }; - return Ke(this, "shape", i), i; + return Xe(this, "shape", i), i; } }); - return Te(e, t); -} -function Ga(e, n) { - if (!et(n)) - throw new Error("Invalid input to safeExtend: expected a plain object"); - const r = Ze(e._zod.def, { - get shape() { - const o = { ...e._zod.def.shape, ...n }; - return Ke(this, "shape", o), o; - } - }); - return Te(e, r); + return Ae(e, t); } function Wa(e, n) { + if (!tt(n)) + throw new Error("Invalid input to safeExtend: expected a plain object"); + const r = Le(e._zod.def, { + get shape() { + const o = { ...e._zod.def.shape, ...n }; + return Xe(this, "shape", o), o; + } + }); + return Ae(e, r); +} +function Xa(e, n) { var o; if ((o = e._zod.def.checks) != null && o.length) throw new Error(".merge() cannot be used on object schemas containing refinements. Use .safeExtend() instead."); - const r = Ze(e._zod.def, { + const r = Le(e._zod.def, { get shape() { const t = { ...e._zod.def.shape, ...n._zod.def.shape }; - return Ke(this, "shape", t), t; + return Xe(this, "shape", t), t; }, get catchall() { return n._zod.def.catchall; }, checks: n._zod.def.checks ?? [] }); - return Te(e, r); + return Ae(e, r); } -function Ka(e, n, r) { +function Ha(e, n, r) { const t = n._zod.def.checks; if (t && t.length > 0) throw new Error(".partial() cannot be used on object schemas containing refinements"); - const a = Ze(n._zod.def, { + const a = Le(n._zod.def, { get shape() { const l = n._zod.def.shape, s = { ...l }; if (r) @@ -5083,14 +5517,14 @@ function Ka(e, n, r) { type: "optional", innerType: l[u] }) : l[u]; - return Ke(this, "shape", s), s; + return Xe(this, "shape", s), s; }, checks: [] }); - return Te(n, a); + return Ae(n, a); } -function Xa(e, n, r) { - const o = Ze(n._zod.def, { +function Ya(e, n, r) { + const o = Le(n._zod.def, { get shape() { const t = n._zod.def.shape, i = { ...t }; if (r) @@ -5108,10 +5542,10 @@ function Xa(e, n, r) { type: "nonoptional", innerType: t[a] }); - return Ke(this, "shape", i), i; + return Xe(this, "shape", i), i; } }); - return Te(n, o); + return Ae(n, o); } function Ye(e, n = 0) { var r; @@ -5122,7 +5556,7 @@ function Ye(e, n = 0) { return !0; return !1; } -function Ya(e, n = 0) { +function Qa(e, n = 0) { var r; if (e.aborted === !0) return !0; @@ -5131,27 +5565,27 @@ function Ya(e, n = 0) { return !0; return !1; } -function xe(e, n) { +function Te(e, n) { return n.map((r) => { var o; return (o = r).path ?? (o.path = []), r.path.unshift(e), r; }); } -function yt(e) { +function St(e) { return typeof e == "string" ? e : e == null ? void 0 : e.message; } -function De(e, n, r) { +function Oe(e, n, r) { var s, u, d, c, m, f; - const o = e.message ? e.message : yt((d = (u = (s = e.inst) == null ? void 0 : s._zod.def) == null ? void 0 : u.error) == null ? void 0 : d.call(u, e)) ?? yt((c = n == null ? void 0 : n.error) == null ? void 0 : c.call(n, e)) ?? yt((m = r.customError) == null ? void 0 : m.call(r, e)) ?? yt((f = r.localeError) == null ? void 0 : f.call(r, e)) ?? "Invalid input", { inst: t, continue: i, input: a, ...l } = e; + const o = e.message ? e.message : St((d = (u = (s = e.inst) == null ? void 0 : s._zod.def) == null ? void 0 : u.error) == null ? void 0 : d.call(u, e)) ?? St((c = n == null ? void 0 : n.error) == null ? void 0 : c.call(n, e)) ?? St((m = r.customError) == null ? void 0 : m.call(r, e)) ?? St((f = r.localeError) == null ? void 0 : f.call(r, e)) ?? "Invalid input", { inst: t, continue: i, input: a, ...l } = e; return l.path ?? (l.path = []), l.message = o, n != null && n.reportInput && (l.input = a), l; } -function kn(e) { +function Sn(e) { return e instanceof Set ? "set" : e instanceof Map ? "map" : e instanceof File ? "file" : "unknown"; } -function Sn(e) { +function wn(e) { return Array.isArray(e) ? "array" : typeof e == "string" ? "string" : "unknown"; } -function R(e) { +function J(e) { const n = typeof e; switch (n) { case "number": @@ -5168,7 +5602,7 @@ function R(e) { } return n; } -function st(...e) { +function dt(...e) { const [n, r, o] = e; return typeof n == "string" ? { message: n, @@ -5177,29 +5611,29 @@ function st(...e) { inst: o } : { ...n }; } -function W$(e) { +function j$(e) { return Object.entries(e).filter(([n, r]) => Number.isNaN(Number.parseInt(n, 10))).map((n) => n[1]); } -function Ha(e) { +function el(e) { const n = atob(e), r = new Uint8Array(n.length); for (let o = 0; o < n.length; o++) r[o] = n.charCodeAt(o); return r; } -function Qa(e) { +function tl(e) { let n = ""; for (let r = 0; r < e.length; r++) n += String.fromCharCode(e[r]); return btoa(n); } -function K$(e) { +function O$(e) { const n = e.replace(/-/g, "+").replace(/_/g, "/"), r = "=".repeat((4 - n.length % 4) % 4); - return Ha(n + r); + return el(n + r); } -function X$(e) { - return Qa(e).replace(/\+/g, "-").replace(/\//g, "_").replace(/=/g, ""); +function E$(e) { + return tl(e).replace(/\+/g, "-").replace(/\//g, "_").replace(/=/g, ""); } -function Y$(e) { +function x$(e) { const n = e.replace(/^0x/, ""); if (n.length % 2 !== 0) throw new Error("Invalid hex string length"); @@ -5208,97 +5642,97 @@ function Y$(e) { r[o / 2] = Number.parseInt(n.slice(o, o + 2), 16); return r; } -function H$(e) { +function U$(e) { return Array.from(e).map((n) => n.toString(16).padStart(2, "0")).join(""); } -class Q$ { +class T$ { constructor(...n) { } } -const el = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ +const nl = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ __proto__: null, - BIGINT_FORMAT_RANGES: Ba, - Class: Q$, - NUMBER_FORMAT_RANGES: Ra, + BIGINT_FORMAT_RANGES: Ja, + Class: T$, + NUMBER_FORMAT_RANGES: Va, aborted: Ye, - allowsEval: Ma, - assert: M$, - assertEqual: N$, - assertIs: C$, - assertNever: Z$, - assertNotEqual: A$, - assignProp: Ke, - base64ToUint8Array: Ha, - base64urlToUint8Array: K$, + allowsEval: Fa, + assert: $$, + assertEqual: v$, + assertIs: h$, + assertNever: b$, + assertNotEqual: g$, + assignProp: Xe, + base64ToUint8Array: el, + base64urlToUint8Array: O$, cached: xt, - captureStackTrace: Ir, - cleanEnum: W$, - cleanRegex: _n, - clone: Te, - cloneDef: F$, - createTransparentProxy: G$, - defineLazy: Y, - esc: fr, + captureStackTrace: Dr, + cleanEnum: j$, + cleanRegex: yn, + clone: Ae, + cloneDef: y$, + createTransparentProxy: D$, + defineLazy: H, + esc: pr, escapeRegex: Fe, - explicitlyAborted: Ya, - extend: qa, - finalizeIssue: De, - floatSafeRemainder: Ca, - getElementAtPath: R$, - getEnumValues: Sr, - getLengthableOrigin: Sn, - getParsedType: q$, - getSizableOrigin: kn, - hexToUint8Array: Y$, - isObject: ut, - isPlainObject: et, - issue: st, - joinValues: k, - jsonStringifyReplacer: mn, - merge: Wa, - mergeDefs: Ze, - normalizeParams: y, + explicitlyAborted: Qa, + extend: Ka, + finalizeIssue: Oe, + floatSafeRemainder: Ma, + getElementAtPath: k$, + getEnumValues: zr, + getLengthableOrigin: wn, + getParsedType: z$, + getSizableOrigin: Sn, + hexToUint8Array: x$, + isObject: ct, + isPlainObject: tt, + issue: dt, + joinValues: w, + jsonStringifyReplacer: fn, + merge: Xa, + mergeDefs: Le, + normalizeParams: _, nullish: it, - numKeys: J$, - objectClone: L$, - omit: Ja, - optionalKeys: Fa, - parsedType: R, - partial: Ka, - pick: Va, - prefixIssues: xe, - primitiveTypes: La, - promiseAllObject: B$, - propertyKeyTypes: fn, - randomString: V$, - required: Xa, - safeExtend: Ga, - shallowClone: yn, - slugify: Za, - stringifyPrimitive: F, - uint8ArrayToBase64: Qa, - uint8ArrayToBase64url: X$, - uint8ArrayToHex: H$, - unwrapMessage: yt -}, Symbol.toStringTag, { value: "Module" })), tl = (e, n) => { + numKeys: I$, + objectClone: _$, + omit: Ga, + optionalKeys: Ba, + parsedType: J, + partial: Ha, + pick: qa, + prefixIssues: Te, + primitiveTypes: Ra, + promiseAllObject: S$, + propertyKeyTypes: pn, + randomString: w$, + required: Ya, + safeExtend: Wa, + shallowClone: kn, + slugify: La, + stringifyPrimitive: V, + uint8ArrayToBase64: tl, + uint8ArrayToBase64url: E$, + uint8ArrayToHex: U$, + unwrapMessage: St +}, Symbol.toStringTag, { value: "Module" })), rl = (e, n) => { e.name = "$ZodError", Object.defineProperty(e, "_zod", { value: e._zod, enumerable: !1 }), Object.defineProperty(e, "issues", { value: n, enumerable: !1 - }), e.message = JSON.stringify(n, mn, 2), Object.defineProperty(e, "toString", { + }), e.message = JSON.stringify(n, fn, 2), Object.defineProperty(e, "toString", { value: () => e.message, enumerable: !1 }); -}, wr = v("$ZodError", tl), je = v("$ZodError", tl, { Parent: Error }); -function zr(e, n = (r) => r.message) { +}, jr = v("$ZodError", rl), Ee = v("$ZodError", rl, { Parent: Error }); +function Or(e, n = (r) => r.message) { const r = {}, o = []; for (const t of e.issues) t.path.length > 0 ? (r[t.path[0]] = r[t.path[0]] || [], r[t.path[0]].push(n(t))) : o.push(n(t)); return { formErrors: o, fieldErrors: r }; } -function Dr(e, n = (r) => r.message) { +function Er(e, n = (r) => r.message) { const r = { _errors: [] }, o = (t, i = []) => { for (const a of t.issues) if (a.code === "invalid_union" && a.errors.length) @@ -5322,7 +5756,7 @@ function Dr(e, n = (r) => r.message) { }; return o(e), r; } -function nl(e, n = (r) => r.message) { +function il(e, n = (r) => r.message) { const r = { errors: [] }, o = (t, i = []) => { var a, l; for (const s of t.issues) @@ -5347,166 +5781,166 @@ function nl(e, n = (r) => r.message) { }; return o(e), r; } -function rl(e) { +function ol(e) { const n = [], r = e.map((o) => typeof o == "object" ? o.key : o); for (const o of r) typeof o == "number" ? n.push(`[${o}]`) : typeof o == "symbol" ? n.push(`[${JSON.stringify(String(o))}]`) : /[^\w$]/.test(o) ? n.push(`[${JSON.stringify(o)}]`) : (n.length && n.push("."), n.push(o)); return n.join(""); } -function il(e) { +function al(e) { var o; const n = [], r = [...e.issues].sort((t, i) => (t.path ?? []).length - (i.path ?? []).length); for (const t of r) - n.push(`✖ ${t.message}`), (o = t.path) != null && o.length && n.push(` → at ${rl(t.path)}`); + n.push(`✖ ${t.message}`), (o = t.path) != null && o.length && n.push(` → at ${ol(t.path)}`); return n.join(` `); } -const Et = (e) => (n, r, o, t) => { +const Ut = (e) => (n, r, o, t) => { const i = o ? { ...o, async: !1 } : { async: !1 }, a = n._zod.run({ value: r, issues: [] }, i); if (a instanceof Promise) - throw new Qe(); + throw new et(); if (a.issues.length) { - const l = new ((t == null ? void 0 : t.Err) ?? e)(a.issues.map((s) => De(s, i, pe()))); - throw Ir(l, t == null ? void 0 : t.callee), l; + const l = new ((t == null ? void 0 : t.Err) ?? e)(a.issues.map((s) => Oe(s, i, _e()))); + throw Dr(l, t == null ? void 0 : t.callee), l; } return a.value; -}, vr = /* @__PURE__ */ Et(je), Ut = (e) => async (n, r, o, t) => { +}, vr = /* @__PURE__ */ Ut(Ee), Tt = (e) => async (n, r, o, t) => { const i = o ? { ...o, async: !0 } : { async: !0 }; let a = n._zod.run({ value: r, issues: [] }, i); if (a instanceof Promise && (a = await a), a.issues.length) { - const l = new ((t == null ? void 0 : t.Err) ?? e)(a.issues.map((s) => De(s, i, pe()))); - throw Ir(l, t == null ? void 0 : t.callee), l; + const l = new ((t == null ? void 0 : t.Err) ?? e)(a.issues.map((s) => Oe(s, i, _e()))); + throw Dr(l, t == null ? void 0 : t.callee), l; } return a.value; -}, pr = /* @__PURE__ */ Ut(je), Tt = (e) => (n, r, o) => { +}, gr = /* @__PURE__ */ Tt(Ee), Nt = (e) => (n, r, o) => { const t = o ? { ...o, async: !1 } : { async: !1 }, i = n._zod.run({ value: r, issues: [] }, t); if (i instanceof Promise) - throw new Qe(); + throw new et(); return i.issues.length ? { success: !1, - error: new (e ?? wr)(i.issues.map((a) => De(a, t, pe()))) + error: new (e ?? jr)(i.issues.map((a) => Oe(a, t, _e()))) } : { success: !0, data: i.value }; -}, ol = /* @__PURE__ */ Tt(je), Pt = (e) => async (n, r, o) => { +}, ll = /* @__PURE__ */ Nt(Ee), Pt = (e) => async (n, r, o) => { const t = o ? { ...o, async: !0 } : { async: !0 }; let i = n._zod.run({ value: r, issues: [] }, t); return i instanceof Promise && (i = await i), i.issues.length ? { success: !1, - error: new e(i.issues.map((a) => De(a, t, pe()))) + error: new e(i.issues.map((a) => Oe(a, t, _e()))) } : { success: !0, data: i.value }; -}, al = /* @__PURE__ */ Pt(je), jr = (e) => (n, r, o) => { - const t = o ? { ...o, direction: "backward" } : { direction: "backward" }; - return Et(e)(n, r, t); -}, eb = /* @__PURE__ */ jr(je), Or = (e) => (n, r, o) => Et(e)(n, r, o), tb = /* @__PURE__ */ Or(je), xr = (e) => async (n, r, o) => { +}, ul = /* @__PURE__ */ Pt(Ee), xr = (e) => (n, r, o) => { const t = o ? { ...o, direction: "backward" } : { direction: "backward" }; return Ut(e)(n, r, t); -}, nb = /* @__PURE__ */ xr(je), Er = (e) => async (n, r, o) => Ut(e)(n, r, o), rb = /* @__PURE__ */ Er(je), Ur = (e) => (n, r, o) => { +}, N$ = /* @__PURE__ */ xr(Ee), Ur = (e) => (n, r, o) => Ut(e)(n, r, o), P$ = /* @__PURE__ */ Ur(Ee), Tr = (e) => async (n, r, o) => { const t = o ? { ...o, direction: "backward" } : { direction: "backward" }; return Tt(e)(n, r, t); -}, ib = /* @__PURE__ */ Ur(je), Tr = (e) => (n, r, o) => Tt(e)(n, r, o), ob = /* @__PURE__ */ Tr(je), Pr = (e) => async (n, r, o) => { +}, A$ = /* @__PURE__ */ Tr(Ee), Nr = (e) => async (n, r, o) => Tt(e)(n, r, o), C$ = /* @__PURE__ */ Nr(Ee), Pr = (e) => (n, r, o) => { + const t = o ? { ...o, direction: "backward" } : { direction: "backward" }; + return Nt(e)(n, r, t); +}, Z$ = /* @__PURE__ */ Pr(Ee), Ar = (e) => (n, r, o) => Nt(e)(n, r, o), M$ = /* @__PURE__ */ Ar(Ee), Cr = (e) => async (n, r, o) => { const t = o ? { ...o, direction: "backward" } : { direction: "backward" }; return Pt(e)(n, r, t); -}, ab = /* @__PURE__ */ Pr(je), Nr = (e) => async (n, r, o) => Pt(e)(n, r, o), lb = /* @__PURE__ */ Nr(je), ll = /^[cC][0-9a-z]{6,}$/, ul = /^[0-9a-z]+$/, sl = /^[0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{26}$/, cl = /^[0-9a-vA-V]{20}$/, dl = /^[A-Za-z0-9]{27}$/, ml = /^[a-zA-Z0-9_-]{21}$/, fl = /^P(?:(\d+W)|(?!.*W)(?=\d|T\d)(\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+([.,]\d+)?S)?)?)$/, ub = /^[-+]?P(?!$)(?:(?:[-+]?\d+Y)|(?:[-+]?\d+[.,]\d+Y$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:(?:[-+]?\d+W)|(?:[-+]?\d+[.,]\d+W$))?(?:(?:[-+]?\d+D)|(?:[-+]?\d+[.,]\d+D$))?(?:T(?=[\d+-])(?:(?:[-+]?\d+H)|(?:[-+]?\d+[.,]\d+H$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:[-+]?\d+(?:[.,]\d+)?S)?)??$/, vl = /^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$/, ct = (e) => e ? new RegExp(`^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-${e}[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$`) : /^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$/, sb = /* @__PURE__ */ ct(4), cb = /* @__PURE__ */ ct(6), db = /* @__PURE__ */ ct(7), pl = /^(?!\.)(?!.*\.\.)([A-Za-z0-9_'+\-\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$/, mb = /^[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])?)*$/, fb = /^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/, gl = /^[^\s@"]{1,64}@[^\s@]{1,255}$/u, vb = gl, pb = /^[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])?)*$/, gb = "^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$"; -function hl() { - return new RegExp(gb, "u"); +}, L$ = /* @__PURE__ */ Cr(Ee), Zr = (e) => async (n, r, o) => Pt(e)(n, r, o), F$ = /* @__PURE__ */ Zr(Ee), sl = /^[cC][0-9a-z]{6,}$/, cl = /^[0-9a-z]+$/, dl = /^[0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{26}$/, ml = /^[0-9a-vA-V]{20}$/, fl = /^[A-Za-z0-9]{27}$/, pl = /^[a-zA-Z0-9_-]{21}$/, vl = /^P(?:(\d+W)|(?!.*W)(?=\d|T\d)(\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+([.,]\d+)?S)?)?)$/, R$ = /^[-+]?P(?!$)(?:(?:[-+]?\d+Y)|(?:[-+]?\d+[.,]\d+Y$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:(?:[-+]?\d+W)|(?:[-+]?\d+[.,]\d+W$))?(?:(?:[-+]?\d+D)|(?:[-+]?\d+[.,]\d+D$))?(?:T(?=[\d+-])(?:(?:[-+]?\d+H)|(?:[-+]?\d+[.,]\d+H$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:[-+]?\d+(?:[.,]\d+)?S)?)??$/, gl = /^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$/, mt = (e) => e ? new RegExp(`^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-${e}[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$`) : /^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$/, B$ = /* @__PURE__ */ mt(4), V$ = /* @__PURE__ */ mt(6), J$ = /* @__PURE__ */ mt(7), hl = /^(?!\.)(?!.*\.\.)([A-Za-z0-9_'+\-\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$/, q$ = /^[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])?)*$/, G$ = /^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/, bl = /^[^\s@"]{1,64}@[^\s@]{1,255}$/u, K$ = bl, W$ = /^[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])?)*$/, X$ = "^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$"; +function $l() { + return new RegExp(X$, "u"); } -const $l = /^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/, bl = /^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:))$/, _l = (e) => { +const _l = /^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/, yl = /^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:))$/, kl = (e) => { const n = Fe(e ?? ":"); return new RegExp(`^(?:[0-9A-F]{2}${n}){5}[0-9A-F]{2}$|^(?:[0-9a-f]{2}${n}){5}[0-9a-f]{2}$`); -}, yl = /^((25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\/([0-9]|[1-2][0-9]|3[0-2])$/, kl = /^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|::|([0-9a-fA-F]{1,4})?::([0-9a-fA-F]{1,4}:?){0,6})\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/, Sl = /^$|^(?:[0-9a-zA-Z+/]{4})*(?:(?:[0-9a-zA-Z+/]{2}==)|(?:[0-9a-zA-Z+/]{3}=))?$/, Ar = /^[A-Za-z0-9_-]*$/, Il = /^(?=.{1,253}\.?$)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[-0-9a-zA-Z]{0,61}[0-9a-zA-Z])?)*\.?$/, wl = /^([a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?\.)+[a-zA-Z]{2,}$/, Cr = /^https?$/, zl = /^\+[1-9]\d{6,14}$/, Dl = "(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))", jl = /* @__PURE__ */ new RegExp(`^${Dl}$`); -function Ol(e) { +}, Sl = /^((25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\/([0-9]|[1-2][0-9]|3[0-2])$/, wl = /^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|::|([0-9a-fA-F]{1,4})?::([0-9a-fA-F]{1,4}:?){0,6})\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/, Il = /^$|^(?:[0-9a-zA-Z+/]{4})*(?:(?:[0-9a-zA-Z+/]{2}==)|(?:[0-9a-zA-Z+/]{3}=))?$/, Mr = /^[A-Za-z0-9_-]*$/, zl = /^(?=.{1,253}\.?$)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[-0-9a-zA-Z]{0,61}[0-9a-zA-Z])?)*\.?$/, Dl = /^([a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?\.)+[a-zA-Z]{2,}$/, Lr = /^https?$/, jl = /^\+[1-9]\d{6,14}$/, Ol = "(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))", El = /* @__PURE__ */ new RegExp(`^${Ol}$`); +function xl(e) { const n = "(?:[01]\\d|2[0-3]):[0-5]\\d"; return typeof e.precision == "number" ? e.precision === -1 ? `${n}` : e.precision === 0 ? `${n}:[0-5]\\d` : `${n}:[0-5]\\d\\.\\d{${e.precision}}` : `${n}(?::[0-5]\\d(?:\\.\\d+)?)?`; } -function xl(e) { - return new RegExp(`^${Ol(e)}$`); +function Ul(e) { + return new RegExp(`^${xl(e)}$`); } -function El(e) { - const n = Ol({ precision: e.precision }), r = ["Z"]; +function Tl(e) { + const n = xl({ precision: e.precision }), r = ["Z"]; e.local && r.push(""), e.offset && r.push("([+-](?:[01]\\d|2[0-3]):[0-5]\\d)"); const o = `${n}(?:${r.join("|")})`; - return new RegExp(`^${Dl}T(?:${o})$`); + return new RegExp(`^${Ol}T(?:${o})$`); } -const Ul = (e) => { +const Nl = (e) => { const n = e ? `[\\s\\S]{${(e == null ? void 0 : e.minimum) ?? 0},${(e == null ? void 0 : e.maximum) ?? ""}}` : "[\\s\\S]*"; return new RegExp(`^${n}$`); -}, Tl = /^-?\d+n?$/, Pl = /^-?\d+$/, Zr = /^-?\d+(?:\.\d+)?$/, Nl = /^(?:true|false)$/i, Al = /^null$/i, Cl = /^undefined$/i, Zl = /^[^A-Z]*$/, Ml = /^[^a-z]*$/, Ll = /^[0-9a-fA-F]*$/; -function Nt(e, n) { +}, Pl = /^-?\d+n?$/, Al = /^-?\d+$/, Fr = /^-?\d+(?:\.\d+)?$/, Cl = /^(?:true|false)$/i, Zl = /^null$/i, Ml = /^undefined$/i, Ll = /^[^A-Z]*$/, Fl = /^[^a-z]*$/, Rl = /^[0-9a-fA-F]*$/; +function At(e, n) { return new RegExp(`^[A-Za-z0-9+/]{${e}}${n}$`); } -function At(e) { +function Ct(e) { return new RegExp(`^[A-Za-z0-9_-]{${e}}$`); } -const hb = /^[0-9a-fA-F]{32}$/, $b = /* @__PURE__ */ Nt(22, "=="), bb = /* @__PURE__ */ At(22), _b = /^[0-9a-fA-F]{40}$/, yb = /* @__PURE__ */ Nt(27, "="), kb = /* @__PURE__ */ At(27), Sb = /^[0-9a-fA-F]{64}$/, Ib = /* @__PURE__ */ Nt(43, "="), wb = /* @__PURE__ */ At(43), zb = /^[0-9a-fA-F]{96}$/, Db = /* @__PURE__ */ Nt(64, ""), jb = /* @__PURE__ */ At(64), Ob = /^[0-9a-fA-F]{128}$/, xb = /* @__PURE__ */ Nt(86, "=="), Eb = /* @__PURE__ */ At(86), Mr = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ +const H$ = /^[0-9a-fA-F]{32}$/, Y$ = /* @__PURE__ */ At(22, "=="), Q$ = /* @__PURE__ */ Ct(22), e_ = /^[0-9a-fA-F]{40}$/, t_ = /* @__PURE__ */ At(27, "="), n_ = /* @__PURE__ */ Ct(27), r_ = /^[0-9a-fA-F]{64}$/, i_ = /* @__PURE__ */ At(43, "="), o_ = /* @__PURE__ */ Ct(43), a_ = /^[0-9a-fA-F]{96}$/, l_ = /* @__PURE__ */ At(64, ""), u_ = /* @__PURE__ */ Ct(64), s_ = /^[0-9a-fA-F]{128}$/, c_ = /* @__PURE__ */ At(86, "=="), d_ = /* @__PURE__ */ Ct(86), Rr = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ __proto__: null, - base64: Sl, - base64url: Ar, - bigint: Tl, - boolean: Nl, - browserEmail: pb, - cidrv4: yl, - cidrv6: kl, - cuid: ll, - cuid2: ul, - date: jl, - datetime: El, - domain: wl, - duration: fl, - e164: zl, - email: pl, - emoji: hl, - extendedDuration: ub, - guid: vl, - hex: Ll, - hostname: Il, - html5Email: mb, - httpProtocol: Cr, - idnEmail: vb, - integer: Pl, - ipv4: $l, - ipv6: bl, - ksuid: dl, - lowercase: Zl, - mac: _l, - md5_base64: $b, - md5_base64url: bb, - md5_hex: hb, - nanoid: ml, - null: Al, - number: Zr, - rfc5322Email: fb, - sha1_base64: yb, - sha1_base64url: kb, - sha1_hex: _b, - sha256_base64: Ib, - sha256_base64url: wb, - sha256_hex: Sb, - sha384_base64: Db, - sha384_base64url: jb, - sha384_hex: zb, - sha512_base64: xb, - sha512_base64url: Eb, - sha512_hex: Ob, - string: Ul, - time: xl, - ulid: sl, - undefined: Cl, - unicodeEmail: gl, - uppercase: Ml, - uuid: ct, - uuid4: sb, - uuid6: cb, - uuid7: db, - xid: cl + base64: Il, + base64url: Mr, + bigint: Pl, + boolean: Cl, + browserEmail: W$, + cidrv4: Sl, + cidrv6: wl, + cuid: sl, + cuid2: cl, + date: El, + datetime: Tl, + domain: Dl, + duration: vl, + e164: jl, + email: hl, + emoji: $l, + extendedDuration: R$, + guid: gl, + hex: Rl, + hostname: zl, + html5Email: q$, + httpProtocol: Lr, + idnEmail: K$, + integer: Al, + ipv4: _l, + ipv6: yl, + ksuid: fl, + lowercase: Ll, + mac: kl, + md5_base64: Y$, + md5_base64url: Q$, + md5_hex: H$, + nanoid: pl, + null: Zl, + number: Fr, + rfc5322Email: G$, + sha1_base64: t_, + sha1_base64url: n_, + sha1_hex: e_, + sha256_base64: i_, + sha256_base64url: o_, + sha256_hex: r_, + sha384_base64: l_, + sha384_base64url: u_, + sha384_hex: a_, + sha512_base64: c_, + sha512_base64url: d_, + sha512_hex: s_, + string: Nl, + time: Ul, + ulid: dl, + undefined: Ml, + unicodeEmail: bl, + uppercase: Fl, + uuid: mt, + uuid4: B$, + uuid6: V$, + uuid7: J$, + xid: ml }, Symbol.toStringTag, { value: "Module" })), se = /* @__PURE__ */ v("$ZodCheck", (e, n) => { var r; e._zod ?? (e._zod = {}), e._zod.def = n, (r = e._zod).onattach ?? (r.onattach = []); -}), Fl = { +}), Bl = { number: "number", bigint: "bigint", object: "date" -}, Lr = /* @__PURE__ */ v("$ZodCheckLessThan", (e, n) => { +}, Br = /* @__PURE__ */ v("$ZodCheckLessThan", (e, n) => { se.init(e, n); - const r = Fl[typeof n.value]; + const r = Bl[typeof n.value]; e._zod.onattach.push((o) => { const t = o._zod.bag, i = (n.inclusive ? t.maximum : t.exclusiveMaximum) ?? Number.POSITIVE_INFINITY; n.value < i && (n.inclusive ? t.maximum = n.value : t.exclusiveMaximum = n.value); @@ -5521,9 +5955,9 @@ const hb = /^[0-9a-fA-F]{32}$/, $b = /* @__PURE__ */ Nt(22, "=="), bb = /* @__PU continue: !n.abort }); }; -}), Fr = /* @__PURE__ */ v("$ZodCheckGreaterThan", (e, n) => { +}), Vr = /* @__PURE__ */ v("$ZodCheckGreaterThan", (e, n) => { se.init(e, n); - const r = Fl[typeof n.value]; + const r = Bl[typeof n.value]; e._zod.onattach.push((o) => { const t = o._zod.bag, i = (n.inclusive ? t.minimum : t.exclusiveMinimum) ?? Number.NEGATIVE_INFINITY; n.value > i && (n.inclusive ? t.minimum = n.value : t.exclusiveMinimum = n.value); @@ -5538,14 +5972,14 @@ const hb = /^[0-9a-fA-F]{32}$/, $b = /* @__PURE__ */ Nt(22, "=="), bb = /* @__PU continue: !n.abort }); }; -}), Rl = /* @__PURE__ */ v("$ZodCheckMultipleOf", (e, n) => { +}), Vl = /* @__PURE__ */ v("$ZodCheckMultipleOf", (e, n) => { se.init(e, n), e._zod.onattach.push((r) => { var o; (o = r._zod.bag).multipleOf ?? (o.multipleOf = n.value); }), e._zod.check = (r) => { if (typeof r.value != typeof n.value) throw new Error("Cannot mix number and bigint in multiple_of check."); - (typeof r.value == "bigint" ? r.value % n.value === BigInt(0) : Ca(r.value, n.value) === 0) || r.issues.push({ + (typeof r.value == "bigint" ? r.value % n.value === BigInt(0) : Ma(r.value, n.value) === 0) || r.issues.push({ origin: typeof r.value, code: "not_multiple_of", divisor: n.value, @@ -5554,13 +5988,13 @@ const hb = /^[0-9a-fA-F]{32}$/, $b = /* @__PURE__ */ Nt(22, "=="), bb = /* @__PU continue: !n.abort }); }; -}), Bl = /* @__PURE__ */ v("$ZodCheckNumberFormat", (e, n) => { +}), Jl = /* @__PURE__ */ v("$ZodCheckNumberFormat", (e, n) => { var a; se.init(e, n), n.format = n.format || "float64"; - const r = (a = n.format) == null ? void 0 : a.includes("int"), o = r ? "int" : "number", [t, i] = Ra[n.format]; + const r = (a = n.format) == null ? void 0 : a.includes("int"), o = r ? "int" : "number", [t, i] = Va[n.format]; e._zod.onattach.push((l) => { const s = l._zod.bag; - s.format = n.format, s.minimum = t, s.maximum = i, r && (s.pattern = Pl); + s.format = n.format, s.minimum = t, s.maximum = i, r && (s.pattern = Al); }), e._zod.check = (l) => { const s = l.value; if (r) { @@ -5616,9 +6050,9 @@ const hb = /^[0-9a-fA-F]{32}$/, $b = /* @__PURE__ */ Nt(22, "=="), bb = /* @__PU continue: !n.abort }); }; -}), Vl = /* @__PURE__ */ v("$ZodCheckBigIntFormat", (e, n) => { +}), ql = /* @__PURE__ */ v("$ZodCheckBigIntFormat", (e, n) => { se.init(e, n); - const [r, o] = Ba[n.format]; + const [r, o] = Ja[n.format]; e._zod.onattach.push((t) => { const i = t._zod.bag; i.format = n.format, i.minimum = r, i.maximum = o; @@ -5642,7 +6076,7 @@ const hb = /^[0-9a-fA-F]{32}$/, $b = /* @__PURE__ */ Nt(22, "=="), bb = /* @__PU continue: !n.abort }); }; -}), Jl = /* @__PURE__ */ v("$ZodCheckMaxSize", (e, n) => { +}), Gl = /* @__PURE__ */ v("$ZodCheckMaxSize", (e, n) => { var r; se.init(e, n), (r = e._zod.def).when ?? (r.when = (o) => { const t = o.value; @@ -5653,7 +6087,7 @@ const hb = /^[0-9a-fA-F]{32}$/, $b = /* @__PURE__ */ Nt(22, "=="), bb = /* @__PU }), e._zod.check = (o) => { const t = o.value; t.size <= n.maximum || o.issues.push({ - origin: kn(t), + origin: Sn(t), code: "too_big", maximum: n.maximum, inclusive: !0, @@ -5662,7 +6096,7 @@ const hb = /^[0-9a-fA-F]{32}$/, $b = /* @__PURE__ */ Nt(22, "=="), bb = /* @__PU continue: !n.abort }); }; -}), ql = /* @__PURE__ */ v("$ZodCheckMinSize", (e, n) => { +}), Kl = /* @__PURE__ */ v("$ZodCheckMinSize", (e, n) => { var r; se.init(e, n), (r = e._zod.def).when ?? (r.when = (o) => { const t = o.value; @@ -5673,7 +6107,7 @@ const hb = /^[0-9a-fA-F]{32}$/, $b = /* @__PURE__ */ Nt(22, "=="), bb = /* @__PU }), e._zod.check = (o) => { const t = o.value; t.size >= n.minimum || o.issues.push({ - origin: kn(t), + origin: Sn(t), code: "too_small", minimum: n.minimum, inclusive: !0, @@ -5682,7 +6116,7 @@ const hb = /^[0-9a-fA-F]{32}$/, $b = /* @__PURE__ */ Nt(22, "=="), bb = /* @__PU continue: !n.abort }); }; -}), Gl = /* @__PURE__ */ v("$ZodCheckSizeEquals", (e, n) => { +}), Wl = /* @__PURE__ */ v("$ZodCheckSizeEquals", (e, n) => { var r; se.init(e, n), (r = e._zod.def).when ?? (r.when = (o) => { const t = o.value; @@ -5696,7 +6130,7 @@ const hb = /^[0-9a-fA-F]{32}$/, $b = /* @__PURE__ */ Nt(22, "=="), bb = /* @__PU return; const a = i > n.size; o.issues.push({ - origin: kn(t), + origin: Sn(t), ...a ? { code: "too_big", maximum: n.size } : { code: "too_small", minimum: n.size }, inclusive: !0, exact: !0, @@ -5705,7 +6139,7 @@ const hb = /^[0-9a-fA-F]{32}$/, $b = /* @__PURE__ */ Nt(22, "=="), bb = /* @__PU continue: !n.abort }); }; -}), Wl = /* @__PURE__ */ v("$ZodCheckMaxLength", (e, n) => { +}), Xl = /* @__PURE__ */ v("$ZodCheckMaxLength", (e, n) => { var r; se.init(e, n), (r = e._zod.def).when ?? (r.when = (o) => { const t = o.value; @@ -5717,7 +6151,7 @@ const hb = /^[0-9a-fA-F]{32}$/, $b = /* @__PURE__ */ Nt(22, "=="), bb = /* @__PU const t = o.value; if (t.length <= n.maximum) return; - const a = Sn(t); + const a = wn(t); o.issues.push({ origin: a, code: "too_big", @@ -5728,7 +6162,7 @@ const hb = /^[0-9a-fA-F]{32}$/, $b = /* @__PURE__ */ Nt(22, "=="), bb = /* @__PU continue: !n.abort }); }; -}), Kl = /* @__PURE__ */ v("$ZodCheckMinLength", (e, n) => { +}), Hl = /* @__PURE__ */ v("$ZodCheckMinLength", (e, n) => { var r; se.init(e, n), (r = e._zod.def).when ?? (r.when = (o) => { const t = o.value; @@ -5740,7 +6174,7 @@ const hb = /^[0-9a-fA-F]{32}$/, $b = /* @__PURE__ */ Nt(22, "=="), bb = /* @__PU const t = o.value; if (t.length >= n.minimum) return; - const a = Sn(t); + const a = wn(t); o.issues.push({ origin: a, code: "too_small", @@ -5751,7 +6185,7 @@ const hb = /^[0-9a-fA-F]{32}$/, $b = /* @__PURE__ */ Nt(22, "=="), bb = /* @__PU continue: !n.abort }); }; -}), Xl = /* @__PURE__ */ v("$ZodCheckLengthEquals", (e, n) => { +}), Yl = /* @__PURE__ */ v("$ZodCheckLengthEquals", (e, n) => { var r; se.init(e, n), (r = e._zod.def).when ?? (r.when = (o) => { const t = o.value; @@ -5763,7 +6197,7 @@ const hb = /^[0-9a-fA-F]{32}$/, $b = /* @__PURE__ */ Nt(22, "=="), bb = /* @__PU const t = o.value, i = t.length; if (i === n.length) return; - const a = Sn(t), l = i > n.length; + const a = wn(t), l = i > n.length; o.issues.push({ origin: a, ...l ? { code: "too_big", maximum: n.length } : { code: "too_small", minimum: n.length }, @@ -5774,7 +6208,7 @@ const hb = /^[0-9a-fA-F]{32}$/, $b = /* @__PURE__ */ Nt(22, "=="), bb = /* @__PU continue: !n.abort }); }; -}), Ct = /* @__PURE__ */ v("$ZodCheckStringFormat", (e, n) => { +}), Zt = /* @__PURE__ */ v("$ZodCheckStringFormat", (e, n) => { var r, o; se.init(e, n), e._zod.onattach.push((t) => { const i = t._zod.bag; @@ -5791,8 +6225,8 @@ const hb = /^[0-9a-fA-F]{32}$/, $b = /* @__PURE__ */ Nt(22, "=="), bb = /* @__PU }); }) : (o = e._zod).check ?? (o.check = () => { }); -}), Yl = /* @__PURE__ */ v("$ZodCheckRegex", (e, n) => { - Ct.init(e, n), e._zod.check = (r) => { +}), Ql = /* @__PURE__ */ v("$ZodCheckRegex", (e, n) => { + Zt.init(e, n), e._zod.check = (r) => { n.pattern.lastIndex = 0, !n.pattern.test(r.value) && r.issues.push({ origin: "string", code: "invalid_format", @@ -5803,11 +6237,11 @@ const hb = /^[0-9a-fA-F]{32}$/, $b = /* @__PURE__ */ Nt(22, "=="), bb = /* @__PU continue: !n.abort }); }; -}), Hl = /* @__PURE__ */ v("$ZodCheckLowerCase", (e, n) => { - n.pattern ?? (n.pattern = Zl), Ct.init(e, n); -}), Ql = /* @__PURE__ */ v("$ZodCheckUpperCase", (e, n) => { - n.pattern ?? (n.pattern = Ml), Ct.init(e, n); -}), eu = /* @__PURE__ */ v("$ZodCheckIncludes", (e, n) => { +}), eu = /* @__PURE__ */ v("$ZodCheckLowerCase", (e, n) => { + n.pattern ?? (n.pattern = Ll), Zt.init(e, n); +}), tu = /* @__PURE__ */ v("$ZodCheckUpperCase", (e, n) => { + n.pattern ?? (n.pattern = Fl), Zt.init(e, n); +}), nu = /* @__PURE__ */ v("$ZodCheckIncludes", (e, n) => { se.init(e, n); const r = Fe(n.includes), o = new RegExp(typeof n.position == "number" ? `^.{${n.position}}${r}` : r); n.pattern = o, e._zod.onattach.push((t) => { @@ -5824,7 +6258,7 @@ const hb = /^[0-9a-fA-F]{32}$/, $b = /* @__PURE__ */ Nt(22, "=="), bb = /* @__PU continue: !n.abort }); }; -}), tu = /* @__PURE__ */ v("$ZodCheckStartsWith", (e, n) => { +}), ru = /* @__PURE__ */ v("$ZodCheckStartsWith", (e, n) => { se.init(e, n); const r = new RegExp(`^${Fe(n.prefix)}.*`); n.pattern ?? (n.pattern = r), e._zod.onattach.push((o) => { @@ -5841,7 +6275,7 @@ const hb = /^[0-9a-fA-F]{32}$/, $b = /* @__PURE__ */ Nt(22, "=="), bb = /* @__PU continue: !n.abort }); }; -}), nu = /* @__PURE__ */ v("$ZodCheckEndsWith", (e, n) => { +}), iu = /* @__PURE__ */ v("$ZodCheckEndsWith", (e, n) => { se.init(e, n); const r = new RegExp(`.*${Fe(n.suffix)}$`); n.pattern ?? (n.pattern = r), e._zod.onattach.push((o) => { @@ -5859,20 +6293,20 @@ const hb = /^[0-9a-fA-F]{32}$/, $b = /* @__PURE__ */ Nt(22, "=="), bb = /* @__PU }); }; }); -function Fo(e, n, r) { - e.issues.length && n.issues.push(...xe(r, e.issues)); +function Vo(e, n, r) { + e.issues.length && n.issues.push(...Te(r, e.issues)); } -const ru = /* @__PURE__ */ v("$ZodCheckProperty", (e, n) => { +const ou = /* @__PURE__ */ v("$ZodCheckProperty", (e, n) => { se.init(e, n), e._zod.check = (r) => { const o = n.schema._zod.run({ value: r.value[n.property], issues: [] }, {}); if (o instanceof Promise) - return o.then((t) => Fo(t, r, n.property)); - Fo(o, r, n.property); + return o.then((t) => Vo(t, r, n.property)); + Vo(o, r, n.property); }; -}), iu = /* @__PURE__ */ v("$ZodCheckMimeType", (e, n) => { +}), au = /* @__PURE__ */ v("$ZodCheckMimeType", (e, n) => { se.init(e, n); const r = new Set(n.mime); e._zod.onattach.push((o) => { @@ -5886,12 +6320,12 @@ const ru = /* @__PURE__ */ v("$ZodCheckProperty", (e, n) => { continue: !n.abort }); }; -}), ou = /* @__PURE__ */ v("$ZodCheckOverwrite", (e, n) => { +}), lu = /* @__PURE__ */ v("$ZodCheckOverwrite", (e, n) => { se.init(e, n), e._zod.check = (r) => { r.value = n.tx(r.value); }; }); -class au { +class uu { constructor(n = []) { this.content = [], this.indent = 0, this && (this.args = n); } @@ -5914,14 +6348,14 @@ class au { `)); } } -const lu = { +const su = { major: 4, minor: 4, patch: 3 }, W = /* @__PURE__ */ v("$ZodType", (e, n) => { var t; var r; - e ?? (e = {}), e._zod.def = n, e._zod.bag = e._zod.bag || {}, e._zod.version = lu; + e ?? (e = {}), e._zod.def = n, e._zod.bag = e._zod.bag || {}, e._zod.version = su; const o = [...e._zod.def.checks ?? []]; e._zod.traits.has("$ZodCheck") && o.unshift(e); for (const i of o) @@ -5936,13 +6370,13 @@ const lu = { let d = Ye(l), c; for (const m of s) { if (m._zod.def.when) { - if (Ya(l) || !m._zod.def.when(l)) + if (Qa(l) || !m._zod.def.when(l)) continue; } else if (d) continue; const f = l.issues.length, g = m._zod.check(l); if (g instanceof Promise && (u == null ? void 0 : u.async) === !1) - throw new Qe(); + throw new et(); if (c || g instanceof Promise) c = (c ?? Promise.resolve()).then(async () => { await g, l.issues.length !== f && (d || (d = Ye(l, f))); @@ -5960,7 +6394,7 @@ const lu = { const d = i(s, o, u); if (d instanceof Promise) { if (u.async === !1) - throw new Qe(); + throw new et(); return d.then((c) => e._zod.parse(c, u)); } return e._zod.parse(d, u); @@ -5975,20 +6409,20 @@ const lu = { const u = e._zod.parse(l, s); if (u instanceof Promise) { if (s.async === !1) - throw new Qe(); + throw new et(); return u.then((d) => i(d, o, s)); } return i(u, o, s); }; } - Y(e, "~standard", () => ({ + H(e, "~standard", () => ({ validate: (i) => { var a; try { - const l = ol(e, i); + const l = ll(e, i); return l.success ? { value: l.data } : { issues: (a = l.error) == null ? void 0 : a.issues }; } catch { - return al(e, i).then((s) => { + return ul(e, i).then((s) => { var u; return s.success ? { value: s.data } : { issues: (u = s.error) == null ? void 0 : u.issues }; }); @@ -5997,9 +6431,9 @@ const lu = { vendor: "zod", version: 1 })); -}), Zt = /* @__PURE__ */ v("$ZodString", (e, n) => { +}), Mt = /* @__PURE__ */ v("$ZodString", (e, n) => { var r; - W.init(e, n), e._zod.pattern = [...((r = e == null ? void 0 : e._zod.bag) == null ? void 0 : r.patterns) ?? []].pop() ?? Ul(e._zod.bag), e._zod.parse = (o, t) => { + W.init(e, n), e._zod.pattern = [...((r = e == null ? void 0 : e._zod.bag) == null ? void 0 : r.patterns) ?? []].pop() ?? Nl(e._zod.bag), e._zod.parse = (o, t) => { if (n.coerce) try { o.value = String(o.value); @@ -6013,10 +6447,10 @@ const lu = { }), o; }; }), oe = /* @__PURE__ */ v("$ZodStringFormat", (e, n) => { - Ct.init(e, n), Zt.init(e, n); -}), uu = /* @__PURE__ */ v("$ZodGUID", (e, n) => { - n.pattern ?? (n.pattern = vl), oe.init(e, n); -}), su = /* @__PURE__ */ v("$ZodUUID", (e, n) => { + Zt.init(e, n), Mt.init(e, n); +}), cu = /* @__PURE__ */ v("$ZodGUID", (e, n) => { + n.pattern ?? (n.pattern = gl), oe.init(e, n); +}), du = /* @__PURE__ */ v("$ZodUUID", (e, n) => { if (n.version) { const o = { v1: 1, @@ -6030,18 +6464,18 @@ const lu = { }[n.version]; if (o === void 0) throw new Error(`Invalid UUID version: "${n.version}"`); - n.pattern ?? (n.pattern = ct(o)); + n.pattern ?? (n.pattern = mt(o)); } else - n.pattern ?? (n.pattern = ct()); + n.pattern ?? (n.pattern = mt()); oe.init(e, n); -}), cu = /* @__PURE__ */ v("$ZodEmail", (e, n) => { - n.pattern ?? (n.pattern = pl), oe.init(e, n); -}), du = /* @__PURE__ */ v("$ZodURL", (e, n) => { +}), mu = /* @__PURE__ */ v("$ZodEmail", (e, n) => { + n.pattern ?? (n.pattern = hl), oe.init(e, n); +}), fu = /* @__PURE__ */ v("$ZodURL", (e, n) => { oe.init(e, n), e._zod.check = (r) => { var o; try { const t = r.value.trim(); - if (!n.normalize && ((o = n.protocol) == null ? void 0 : o.source) === Cr.source && !/^https?:\/\//i.test(t)) { + if (!n.normalize && ((o = n.protocol) == null ? void 0 : o.source) === Lr.source && !/^https?:\/\//i.test(t)) { r.issues.push({ code: "invalid_format", format: "url", @@ -6081,32 +6515,32 @@ const lu = { }); } }; -}), mu = /* @__PURE__ */ v("$ZodEmoji", (e, n) => { - n.pattern ?? (n.pattern = hl()), oe.init(e, n); -}), fu = /* @__PURE__ */ v("$ZodNanoID", (e, n) => { - n.pattern ?? (n.pattern = ml), oe.init(e, n); -}), vu = /* @__PURE__ */ v("$ZodCUID", (e, n) => { - n.pattern ?? (n.pattern = ll), oe.init(e, n); -}), pu = /* @__PURE__ */ v("$ZodCUID2", (e, n) => { - n.pattern ?? (n.pattern = ul), oe.init(e, n); -}), gu = /* @__PURE__ */ v("$ZodULID", (e, n) => { +}), pu = /* @__PURE__ */ v("$ZodEmoji", (e, n) => { + n.pattern ?? (n.pattern = $l()), oe.init(e, n); +}), vu = /* @__PURE__ */ v("$ZodNanoID", (e, n) => { + n.pattern ?? (n.pattern = pl), oe.init(e, n); +}), gu = /* @__PURE__ */ v("$ZodCUID", (e, n) => { n.pattern ?? (n.pattern = sl), oe.init(e, n); -}), hu = /* @__PURE__ */ v("$ZodXID", (e, n) => { +}), hu = /* @__PURE__ */ v("$ZodCUID2", (e, n) => { n.pattern ?? (n.pattern = cl), oe.init(e, n); -}), $u = /* @__PURE__ */ v("$ZodKSUID", (e, n) => { +}), bu = /* @__PURE__ */ v("$ZodULID", (e, n) => { n.pattern ?? (n.pattern = dl), oe.init(e, n); -}), bu = /* @__PURE__ */ v("$ZodISODateTime", (e, n) => { - n.pattern ?? (n.pattern = El(n)), oe.init(e, n); -}), _u = /* @__PURE__ */ v("$ZodISODate", (e, n) => { - n.pattern ?? (n.pattern = jl), oe.init(e, n); -}), yu = /* @__PURE__ */ v("$ZodISOTime", (e, n) => { - n.pattern ?? (n.pattern = xl(n)), oe.init(e, n); -}), ku = /* @__PURE__ */ v("$ZodISODuration", (e, n) => { +}), $u = /* @__PURE__ */ v("$ZodXID", (e, n) => { + n.pattern ?? (n.pattern = ml), oe.init(e, n); +}), _u = /* @__PURE__ */ v("$ZodKSUID", (e, n) => { n.pattern ?? (n.pattern = fl), oe.init(e, n); -}), Su = /* @__PURE__ */ v("$ZodIPv4", (e, n) => { - n.pattern ?? (n.pattern = $l), oe.init(e, n), e._zod.bag.format = "ipv4"; -}), Iu = /* @__PURE__ */ v("$ZodIPv6", (e, n) => { - n.pattern ?? (n.pattern = bl), oe.init(e, n), e._zod.bag.format = "ipv6", e._zod.check = (r) => { +}), yu = /* @__PURE__ */ v("$ZodISODateTime", (e, n) => { + n.pattern ?? (n.pattern = Tl(n)), oe.init(e, n); +}), ku = /* @__PURE__ */ v("$ZodISODate", (e, n) => { + n.pattern ?? (n.pattern = El), oe.init(e, n); +}), Su = /* @__PURE__ */ v("$ZodISOTime", (e, n) => { + n.pattern ?? (n.pattern = Ul(n)), oe.init(e, n); +}), wu = /* @__PURE__ */ v("$ZodISODuration", (e, n) => { + n.pattern ?? (n.pattern = vl), oe.init(e, n); +}), Iu = /* @__PURE__ */ v("$ZodIPv4", (e, n) => { + n.pattern ?? (n.pattern = _l), oe.init(e, n), e._zod.bag.format = "ipv4"; +}), zu = /* @__PURE__ */ v("$ZodIPv6", (e, n) => { + n.pattern ?? (n.pattern = yl), oe.init(e, n), e._zod.bag.format = "ipv6", e._zod.check = (r) => { try { new URL(`http://[${r.value}]`); } catch { @@ -6119,12 +6553,12 @@ const lu = { }); } }; -}), wu = /* @__PURE__ */ v("$ZodMAC", (e, n) => { - n.pattern ?? (n.pattern = _l(n.delimiter)), oe.init(e, n), e._zod.bag.format = "mac"; -}), zu = /* @__PURE__ */ v("$ZodCIDRv4", (e, n) => { - n.pattern ?? (n.pattern = yl), oe.init(e, n); -}), Du = /* @__PURE__ */ v("$ZodCIDRv6", (e, n) => { - n.pattern ?? (n.pattern = kl), oe.init(e, n), e._zod.check = (r) => { +}), Du = /* @__PURE__ */ v("$ZodMAC", (e, n) => { + n.pattern ?? (n.pattern = kl(n.delimiter)), oe.init(e, n), e._zod.bag.format = "mac"; +}), ju = /* @__PURE__ */ v("$ZodCIDRv4", (e, n) => { + n.pattern ?? (n.pattern = Sl), oe.init(e, n); +}), Ou = /* @__PURE__ */ v("$ZodCIDRv6", (e, n) => { + n.pattern ?? (n.pattern = wl), oe.init(e, n), e._zod.check = (r) => { const o = r.value.split("/"); try { if (o.length !== 2) @@ -6149,7 +6583,7 @@ const lu = { } }; }); -function Rr(e) { +function Jr(e) { if (e === "") return !0; if (/\s/.test(e) || e.length % 4 !== 0) @@ -6160,9 +6594,9 @@ function Rr(e) { return !1; } } -const ju = /* @__PURE__ */ v("$ZodBase64", (e, n) => { - n.pattern ?? (n.pattern = Sl), oe.init(e, n), e._zod.bag.contentEncoding = "base64", e._zod.check = (r) => { - Rr(r.value) || r.issues.push({ +const Eu = /* @__PURE__ */ v("$ZodBase64", (e, n) => { + n.pattern ?? (n.pattern = Il), oe.init(e, n), e._zod.bag.contentEncoding = "base64", e._zod.check = (r) => { + Jr(r.value) || r.issues.push({ code: "invalid_format", format: "base64", input: r.value, @@ -6171,15 +6605,15 @@ const ju = /* @__PURE__ */ v("$ZodBase64", (e, n) => { }); }; }); -function Ou(e) { - if (!Ar.test(e)) +function xu(e) { + if (!Mr.test(e)) return !1; const n = e.replace(/[-_]/g, (o) => o === "-" ? "+" : "/"), r = n.padEnd(Math.ceil(n.length / 4) * 4, "="); - return Rr(r); + return Jr(r); } -const xu = /* @__PURE__ */ v("$ZodBase64URL", (e, n) => { - n.pattern ?? (n.pattern = Ar), oe.init(e, n), e._zod.bag.contentEncoding = "base64url", e._zod.check = (r) => { - Ou(r.value) || r.issues.push({ +const Uu = /* @__PURE__ */ v("$ZodBase64URL", (e, n) => { + n.pattern ?? (n.pattern = Mr), oe.init(e, n), e._zod.bag.contentEncoding = "base64url", e._zod.check = (r) => { + xu(r.value) || r.issues.push({ code: "invalid_format", format: "base64url", input: r.value, @@ -6187,10 +6621,10 @@ const xu = /* @__PURE__ */ v("$ZodBase64URL", (e, n) => { continue: !n.abort }); }; -}), Eu = /* @__PURE__ */ v("$ZodE164", (e, n) => { - n.pattern ?? (n.pattern = zl), oe.init(e, n); +}), Tu = /* @__PURE__ */ v("$ZodE164", (e, n) => { + n.pattern ?? (n.pattern = jl), oe.init(e, n); }); -function Uu(e, n = null) { +function Nu(e, n = null) { try { const r = e.split("."); if (r.length !== 3) @@ -6204,9 +6638,9 @@ function Uu(e, n = null) { return !1; } } -const Tu = /* @__PURE__ */ v("$ZodJWT", (e, n) => { +const Pu = /* @__PURE__ */ v("$ZodJWT", (e, n) => { oe.init(e, n), e._zod.check = (r) => { - Uu(r.value, n.alg) || r.issues.push({ + Nu(r.value, n.alg) || r.issues.push({ code: "invalid_format", format: "jwt", input: r.value, @@ -6214,7 +6648,7 @@ const Tu = /* @__PURE__ */ v("$ZodJWT", (e, n) => { continue: !n.abort }); }; -}), Pu = /* @__PURE__ */ v("$ZodCustomStringFormat", (e, n) => { +}), Au = /* @__PURE__ */ v("$ZodCustomStringFormat", (e, n) => { oe.init(e, n), e._zod.check = (r) => { n.fn(r.value) || r.issues.push({ code: "invalid_format", @@ -6224,8 +6658,8 @@ const Tu = /* @__PURE__ */ v("$ZodJWT", (e, n) => { continue: !n.abort }); }; -}), Br = /* @__PURE__ */ v("$ZodNumber", (e, n) => { - W.init(e, n), e._zod.pattern = e._zod.bag.pattern ?? Zr, e._zod.parse = (r, o) => { +}), qr = /* @__PURE__ */ v("$ZodNumber", (e, n) => { + W.init(e, n), e._zod.pattern = e._zod.bag.pattern ?? Fr, e._zod.parse = (r, o) => { if (n.coerce) try { r.value = Number(r.value); @@ -6243,10 +6677,10 @@ const Tu = /* @__PURE__ */ v("$ZodJWT", (e, n) => { ...i ? { received: i } : {} }), r; }; -}), Nu = /* @__PURE__ */ v("$ZodNumberFormat", (e, n) => { - Bl.init(e, n), Br.init(e, n); -}), Vr = /* @__PURE__ */ v("$ZodBoolean", (e, n) => { - W.init(e, n), e._zod.pattern = Nl, e._zod.parse = (r, o) => { +}), Cu = /* @__PURE__ */ v("$ZodNumberFormat", (e, n) => { + Jl.init(e, n), qr.init(e, n); +}), Gr = /* @__PURE__ */ v("$ZodBoolean", (e, n) => { + W.init(e, n), e._zod.pattern = Cl, e._zod.parse = (r, o) => { if (n.coerce) try { r.value = !!r.value; @@ -6260,8 +6694,8 @@ const Tu = /* @__PURE__ */ v("$ZodJWT", (e, n) => { inst: e }), r; }; -}), Jr = /* @__PURE__ */ v("$ZodBigInt", (e, n) => { - W.init(e, n), e._zod.pattern = Tl, e._zod.parse = (r, o) => { +}), Kr = /* @__PURE__ */ v("$ZodBigInt", (e, n) => { + W.init(e, n), e._zod.pattern = Pl, e._zod.parse = (r, o) => { if (n.coerce) try { r.value = BigInt(r.value); @@ -6274,9 +6708,9 @@ const Tu = /* @__PURE__ */ v("$ZodJWT", (e, n) => { inst: e }), r; }; -}), Au = /* @__PURE__ */ v("$ZodBigIntFormat", (e, n) => { - Vl.init(e, n), Jr.init(e, n); -}), Cu = /* @__PURE__ */ v("$ZodSymbol", (e, n) => { +}), Zu = /* @__PURE__ */ v("$ZodBigIntFormat", (e, n) => { + ql.init(e, n), Kr.init(e, n); +}), Mu = /* @__PURE__ */ v("$ZodSymbol", (e, n) => { W.init(e, n), e._zod.parse = (r, o) => { const t = r.value; return typeof t == "symbol" || r.issues.push({ @@ -6286,8 +6720,8 @@ const Tu = /* @__PURE__ */ v("$ZodJWT", (e, n) => { inst: e }), r; }; -}), Zu = /* @__PURE__ */ v("$ZodUndefined", (e, n) => { - W.init(e, n), e._zod.pattern = Cl, e._zod.values = /* @__PURE__ */ new Set([void 0]), e._zod.parse = (r, o) => { +}), Lu = /* @__PURE__ */ v("$ZodUndefined", (e, n) => { + W.init(e, n), e._zod.pattern = Ml, e._zod.values = /* @__PURE__ */ new Set([void 0]), e._zod.parse = (r, o) => { const t = r.value; return typeof t > "u" || r.issues.push({ expected: "undefined", @@ -6296,8 +6730,8 @@ const Tu = /* @__PURE__ */ v("$ZodJWT", (e, n) => { inst: e }), r; }; -}), Mu = /* @__PURE__ */ v("$ZodNull", (e, n) => { - W.init(e, n), e._zod.pattern = Al, e._zod.values = /* @__PURE__ */ new Set([null]), e._zod.parse = (r, o) => { +}), Fu = /* @__PURE__ */ v("$ZodNull", (e, n) => { + W.init(e, n), e._zod.pattern = Zl, e._zod.values = /* @__PURE__ */ new Set([null]), e._zod.parse = (r, o) => { const t = r.value; return t === null || r.issues.push({ expected: "null", @@ -6306,18 +6740,18 @@ const Tu = /* @__PURE__ */ v("$ZodJWT", (e, n) => { inst: e }), r; }; -}), Lu = /* @__PURE__ */ v("$ZodAny", (e, n) => { +}), Ru = /* @__PURE__ */ v("$ZodAny", (e, n) => { W.init(e, n), e._zod.parse = (r) => r; -}), Fu = /* @__PURE__ */ v("$ZodUnknown", (e, n) => { +}), Bu = /* @__PURE__ */ v("$ZodUnknown", (e, n) => { W.init(e, n), e._zod.parse = (r) => r; -}), Ru = /* @__PURE__ */ v("$ZodNever", (e, n) => { +}), Vu = /* @__PURE__ */ v("$ZodNever", (e, n) => { W.init(e, n), e._zod.parse = (r, o) => (r.issues.push({ expected: "never", code: "invalid_type", input: r.value, inst: e }), r); -}), Bu = /* @__PURE__ */ v("$ZodVoid", (e, n) => { +}), Ju = /* @__PURE__ */ v("$ZodVoid", (e, n) => { W.init(e, n), e._zod.parse = (r, o) => { const t = r.value; return typeof t > "u" || r.issues.push({ @@ -6327,7 +6761,7 @@ const Tu = /* @__PURE__ */ v("$ZodJWT", (e, n) => { inst: e }), r; }; -}), Vu = /* @__PURE__ */ v("$ZodDate", (e, n) => { +}), qu = /* @__PURE__ */ v("$ZodDate", (e, n) => { W.init(e, n), e._zod.parse = (r, o) => { if (n.coerce) try { @@ -6344,10 +6778,10 @@ const Tu = /* @__PURE__ */ v("$ZodJWT", (e, n) => { }), r; }; }); -function Ro(e, n, r) { - e.issues.length && n.issues.push(...xe(r, e.issues)), n.value[r] = e.value; +function Jo(e, n, r) { + e.issues.length && n.issues.push(...Te(r, e.issues)), n.value[r] = e.value; } -const Ju = /* @__PURE__ */ v("$ZodArray", (e, n) => { +const Gu = /* @__PURE__ */ v("$ZodArray", (e, n) => { W.init(e, n), e._zod.parse = (r, o) => { const t = r.value; if (!Array.isArray(t)) @@ -6364,7 +6798,7 @@ const Ju = /* @__PURE__ */ v("$ZodArray", (e, n) => { value: l, issues: [] }, o); - s instanceof Promise ? i.push(s.then((u) => Ro(u, r, a))) : Ro(s, r, a); + s instanceof Promise ? i.push(s.then((u) => Jo(u, r, a))) : Jo(s, r, a); } return i.length ? Promise.all(i).then(() => r) : r; }; @@ -6374,7 +6808,7 @@ function vn(e, n, r, o, t, i) { if (e.issues.length) { if (t && i && !a) return; - n.issues.push(...xe(r, e.issues)); + n.issues.push(...Te(r, e.issues)); } if (!a && !t) { e.issues.length || n.issues.push({ @@ -6387,13 +6821,13 @@ function vn(e, n, r, o, t, i) { } e.value === void 0 ? a && (n.value[r] = void 0) : n.value[r] = e.value; } -function qu(e) { +function Ku(e) { var o, t, i, a; const n = Object.keys(e.shape); for (const l of n) if (!((a = (i = (t = (o = e.shape) == null ? void 0 : o[l]) == null ? void 0 : t._zod) == null ? void 0 : i.traits) != null && a.has("$ZodType"))) throw new Error(`Invalid element at key "${l}": expected a Zod schema`); - const r = Fa(e.shape); + const r = Ba(e.shape); return { ...e, keys: n, @@ -6402,7 +6836,7 @@ function qu(e) { optionalKeys: new Set(r) }; } -function Gu(e, n, r, o, t, i) { +function Wu(e, n, r, o, t, i) { const a = [], l = t.keySet, s = t.catchall._zod, u = s.def.type, d = s.optin === "optional", c = s.optout === "optional"; for (const m in n) { if (m === "__proto__" || l.has(m)) @@ -6421,7 +6855,7 @@ function Gu(e, n, r, o, t, i) { inst: i }), e.length ? Promise.all(e).then(() => r) : r; } -const Wu = /* @__PURE__ */ v("$ZodObject", (e, n) => { +const Xu = /* @__PURE__ */ v("$ZodObject", (e, n) => { W.init(e, n); const r = Object.getOwnPropertyDescriptor(n, "shape"); if (!(r != null && r.get)) { @@ -6435,8 +6869,8 @@ const Wu = /* @__PURE__ */ v("$ZodObject", (e, n) => { } }); } - const o = xt(() => qu(n)); - Y(e._zod, "propValues", () => { + const o = xt(() => Ku(n)); + H(e._zod, "propValues", () => { const l = n.shape, s = {}; for (const u in l) { const d = l[u]._zod; @@ -6448,7 +6882,7 @@ const Wu = /* @__PURE__ */ v("$ZodObject", (e, n) => { } return s; }); - const t = ut, i = n.catchall; + const t = ct, i = n.catchall; let a; e._zod.parse = (l, s) => { a ?? (a = o.value); @@ -6463,67 +6897,67 @@ const Wu = /* @__PURE__ */ v("$ZodObject", (e, n) => { l.value = {}; const d = [], c = a.shape; for (const m of a.keys) { - const f = c[m], g = f._zod.optin === "optional", b = f._zod.optout === "optional", E = f._zod.run({ value: u[m], issues: [] }, s); - E instanceof Promise ? d.push(E.then((w) => vn(w, l, m, u, g, b))) : vn(E, l, m, u, g, b); + const f = c[m], g = f._zod.optin === "optional", y = f._zod.optout === "optional", N = f._zod.run({ value: u[m], issues: [] }, s); + N instanceof Promise ? d.push(N.then((x) => vn(x, l, m, u, g, y))) : vn(N, l, m, u, g, y); } - return i ? Gu(d, u, l, s, o.value, e) : d.length ? Promise.all(d).then(() => l) : l; + return i ? Wu(d, u, l, s, o.value, e) : d.length ? Promise.all(d).then(() => l) : l; }; -}), Ku = /* @__PURE__ */ v("$ZodObjectJIT", (e, n) => { - Wu.init(e, n); - const r = e._zod.parse, o = xt(() => qu(n)), t = (m) => { +}), Hu = /* @__PURE__ */ v("$ZodObjectJIT", (e, n) => { + Xu.init(e, n); + const r = e._zod.parse, o = xt(() => Ku(n)), t = (m) => { var L, A; - const f = new au(["shape", "payload", "ctx"]), g = o.value, b = (C) => { - const h = fr(C); + const f = new uu(["shape", "payload", "ctx"]), g = o.value, y = (C) => { + const h = pr(C); return `shape[${h}]._zod.run({ value: input[${h}], issues: [] }, ctx)`; }; f.write("const input = payload.value;"); - const E = /* @__PURE__ */ Object.create(null); - let w = 0; + const N = /* @__PURE__ */ Object.create(null); + let x = 0; for (const C of g.keys) - E[C] = `key_${w++}`; + N[C] = `key_${x++}`; f.write("const newResult = {};"); for (const C of g.keys) { - const h = E[C], $ = fr(C), I = m[C], q = ((L = I == null ? void 0 : I._zod) == null ? void 0 : L.optin) === "optional", D = ((A = I == null ? void 0 : I._zod) == null ? void 0 : A.optout) === "optional"; - f.write(`const ${h} = ${b(C)};`), q && D ? f.write(` + const h = N[C], b = pr(C), I = m[C], G = ((L = I == null ? void 0 : I._zod) == null ? void 0 : L.optin) === "optional", j = ((A = I == null ? void 0 : I._zod) == null ? void 0 : A.optout) === "optional"; + f.write(`const ${h} = ${y(C)};`), G && j ? f.write(` if (${h}.issues.length) { - if (${$} in input) { + if (${b} in input) { payload.issues = payload.issues.concat(${h}.issues.map(iss => ({ ...iss, - path: iss.path ? [${$}, ...iss.path] : [${$}] + path: iss.path ? [${b}, ...iss.path] : [${b}] }))); } } if (${h}.value === undefined) { - if (${$} in input) { - newResult[${$}] = undefined; + if (${b} in input) { + newResult[${b}] = undefined; } } else { - newResult[${$}] = ${h}.value; + newResult[${b}] = ${h}.value; } - `) : q ? f.write(` + `) : G ? f.write(` if (${h}.issues.length) { payload.issues = payload.issues.concat(${h}.issues.map(iss => ({ ...iss, - path: iss.path ? [${$}, ...iss.path] : [${$}] + path: iss.path ? [${b}, ...iss.path] : [${b}] }))); } if (${h}.value === undefined) { - if (${$} in input) { - newResult[${$}] = undefined; + if (${b} in input) { + newResult[${b}] = undefined; } } else { - newResult[${$}] = ${h}.value; + newResult[${b}] = ${h}.value; } `) : f.write(` - const ${h}_present = ${$} in input; + const ${h}_present = ${b} in input; if (${h}.issues.length) { payload.issues = payload.issues.concat(${h}.issues.map(iss => ({ ...iss, - path: iss.path ? [${$}, ...iss.path] : [${$}] + path: iss.path ? [${b}, ...iss.path] : [${b}] }))); } if (!${h}_present && !${h}.issues.length) { @@ -6531,31 +6965,31 @@ const Wu = /* @__PURE__ */ v("$ZodObject", (e, n) => { code: "invalid_type", expected: "nonoptional", input: undefined, - path: [${$}] + path: [${b}] }); } if (${h}_present) { if (${h}.value === undefined) { - newResult[${$}] = undefined; + newResult[${b}] = undefined; } else { - newResult[${$}] = ${h}.value; + newResult[${b}] = ${h}.value; } } `); } f.write("payload.value = newResult;"), f.write("return payload;"); - const z = f.compile(); - return (C, h) => z(m, C, h); + const D = f.compile(); + return (C, h) => D(m, C, h); }; let i; - const a = ut, l = !It.jitless, u = l && Ma.value, d = n.catchall; + const a = ct, l = !It.jitless, u = l && Fa.value, d = n.catchall; let c; e._zod.parse = (m, f) => { c ?? (c = o.value); const g = m.value; - return a(g) ? l && u && (f == null ? void 0 : f.async) === !1 && f.jitless !== !0 ? (i || (i = t(n.shape)), m = i(m, f), d ? Gu([], g, m, f, c, e) : m) : r(m, f) : (m.issues.push({ + return a(g) ? l && u && (f == null ? void 0 : f.async) === !1 && f.jitless !== !0 ? (i || (i = t(n.shape)), m = i(m, f), d ? Wu([], g, m, f, c, e) : m) : r(m, f) : (m.issues.push({ expected: "object", code: "invalid_type", input: g, @@ -6563,7 +6997,7 @@ const Wu = /* @__PURE__ */ v("$ZodObject", (e, n) => { }), m); }; }); -function Bo(e, n, r, o) { +function qo(e, n, r, o) { for (const i of e) if (i.issues.length === 0) return n.value = i.value, n; @@ -6572,17 +7006,17 @@ function Bo(e, n, r, o) { code: "invalid_union", input: n.value, inst: r, - errors: e.map((i) => i.issues.map((a) => De(a, o, pe()))) + errors: e.map((i) => i.issues.map((a) => Oe(a, o, _e()))) }), n); } const In = /* @__PURE__ */ v("$ZodUnion", (e, n) => { - W.init(e, n), Y(e._zod, "optin", () => n.options.some((o) => o._zod.optin === "optional") ? "optional" : void 0), Y(e._zod, "optout", () => n.options.some((o) => o._zod.optout === "optional") ? "optional" : void 0), Y(e._zod, "values", () => { + W.init(e, n), H(e._zod, "optin", () => n.options.some((o) => o._zod.optin === "optional") ? "optional" : void 0), H(e._zod, "optout", () => n.options.some((o) => o._zod.optout === "optional") ? "optional" : void 0), H(e._zod, "values", () => { if (n.options.every((o) => o._zod.values)) return new Set(n.options.flatMap((o) => Array.from(o._zod.values))); - }), Y(e._zod, "pattern", () => { + }), H(e._zod, "pattern", () => { if (n.options.every((o) => o._zod.pattern)) { const o = n.options.map((t) => t._zod.pattern); - return new RegExp(`^(${o.map((t) => _n(t.source)).join("|")})$`); + return new RegExp(`^(${o.map((t) => yn(t.source)).join("|")})$`); } }); const r = n.options.length === 1 ? n.options[0]._zod.run : null; @@ -6604,16 +7038,16 @@ const In = /* @__PURE__ */ v("$ZodUnion", (e, n) => { a.push(s); } } - return i ? Promise.all(a).then((l) => Bo(l, o, e, t)) : Bo(a, o, e, t); + return i ? Promise.all(a).then((l) => qo(l, o, e, t)) : qo(a, o, e, t); }; }); -function Vo(e, n, r, o) { +function Go(e, n, r, o) { const t = e.filter((i) => i.issues.length === 0); return t.length === 1 ? (n.value = t[0].value, n) : (t.length === 0 ? n.issues.push({ code: "invalid_union", input: n.value, inst: r, - errors: e.map((i) => i.issues.map((a) => De(a, o, pe()))) + errors: e.map((i) => i.issues.map((a) => Oe(a, o, _e()))) }) : n.issues.push({ code: "invalid_union", input: n.value, @@ -6622,7 +7056,7 @@ function Vo(e, n, r, o) { inclusive: !1 }), n); } -const Xu = /* @__PURE__ */ v("$ZodXor", (e, n) => { +const Yu = /* @__PURE__ */ v("$ZodXor", (e, n) => { In.init(e, n), n.inclusive = !1; const r = n.options.length === 1 ? n.options[0]._zod.run : null; e._zod.parse = (o, t) => { @@ -6637,12 +7071,12 @@ const Xu = /* @__PURE__ */ v("$ZodXor", (e, n) => { }, t); s instanceof Promise ? (a.push(s), i = !0) : a.push(s); } - return i ? Promise.all(a).then((l) => Vo(l, o, e, t)) : Vo(a, o, e, t); + return i ? Promise.all(a).then((l) => Go(l, o, e, t)) : Go(a, o, e, t); }; -}), Yu = /* @__PURE__ */ v("$ZodDiscriminatedUnion", (e, n) => { +}), Qu = /* @__PURE__ */ v("$ZodDiscriminatedUnion", (e, n) => { n.inclusive = !1, In.init(e, n); const r = e._zod.parse; - Y(e._zod, "propValues", () => { + H(e._zod, "propValues", () => { const t = {}; for (const i of n.options) { const a = i._zod.propValues; @@ -6673,7 +7107,7 @@ const Xu = /* @__PURE__ */ v("$ZodXor", (e, n) => { }); e._zod.parse = (t, i) => { const a = t.value; - if (!ut(a)) + if (!ct(a)) return t.issues.push({ code: "invalid_type", expected: "object", @@ -6692,21 +7126,21 @@ const Xu = /* @__PURE__ */ v("$ZodXor", (e, n) => { inst: e }), t); }; -}), Hu = /* @__PURE__ */ v("$ZodIntersection", (e, n) => { +}), es = /* @__PURE__ */ v("$ZodIntersection", (e, n) => { W.init(e, n), e._zod.parse = (r, o) => { const t = r.value, i = n.left._zod.run({ value: t, issues: [] }, o), a = n.right._zod.run({ value: t, issues: [] }, o); - return i instanceof Promise || a instanceof Promise ? Promise.all([i, a]).then(([s, u]) => Jo(r, s, u)) : Jo(r, i, a); + return i instanceof Promise || a instanceof Promise ? Promise.all([i, a]).then(([s, u]) => Ko(r, s, u)) : Ko(r, i, a); }; }); -function gr(e, n) { +function hr(e, n) { if (e === n) return { valid: !0, data: e }; if (e instanceof Date && n instanceof Date && +e == +n) return { valid: !0, data: e }; - if (et(e) && et(n)) { + if (tt(e) && tt(n)) { const r = Object.keys(n), o = Object.keys(e).filter((i) => r.indexOf(i) !== -1), t = { ...e, ...n }; for (const i of o) { - const a = gr(e[i], n[i]); + const a = hr(e[i], n[i]); if (!a.valid) return { valid: !1, @@ -6721,7 +7155,7 @@ function gr(e, n) { return { valid: !1, mergeErrorPath: [] }; const r = []; for (let o = 0; o < e.length; o++) { - const t = e[o], i = n[o], a = gr(t, i); + const t = e[o], i = n[o], a = hr(t, i); if (!a.valid) return { valid: !1, @@ -6733,7 +7167,7 @@ function gr(e, n) { } return { valid: !1, mergeErrorPath: [] }; } -function Jo(e, n, r) { +function Ko(e, n, r) { const o = /* @__PURE__ */ new Map(); let t; for (const l of n.issues) @@ -6752,12 +7186,12 @@ function Jo(e, n, r) { const i = [...o].filter(([, l]) => l.l && l.r).map(([l]) => l); if (i.length && t && e.issues.push({ ...t, keys: i }), Ye(e)) return e; - const a = gr(n.value, r.value); + const a = hr(n.value, r.value); if (!a.valid) throw new Error(`Unmergable intersection. Error path: ${JSON.stringify(a.mergeErrorPath)}`); return e.value = a.data, e; } -const qr = /* @__PURE__ */ v("$ZodTuple", (e, n) => { +const Wr = /* @__PURE__ */ v("$ZodTuple", (e, n) => { W.init(e, n); const r = n.items; e._zod.parse = (o, t) => { @@ -6770,7 +7204,7 @@ const qr = /* @__PURE__ */ v("$ZodTuple", (e, n) => { code: "invalid_type" }), o; o.value = []; - const a = [], l = qo(r, "optin"), s = qo(r, "optout"); + const a = [], l = Wo(r, "optin"), s = Wo(r, "optout"); if (!n.rest) { if (i.length < l) return o.issues.push({ @@ -6803,22 +7237,22 @@ const qr = /* @__PURE__ */ v("$ZodTuple", (e, n) => { for (const m of c) { d++; const f = n.rest._zod.run({ value: m, issues: [] }, t); - f instanceof Promise ? a.push(f.then((g) => Go(g, o, d))) : Go(f, o, d); + f instanceof Promise ? a.push(f.then((g) => Xo(g, o, d))) : Xo(f, o, d); } } - return a.length ? Promise.all(a).then(() => Wo(u, o, r, i, s)) : Wo(u, o, r, i, s); + return a.length ? Promise.all(a).then(() => Ho(u, o, r, i, s)) : Ho(u, o, r, i, s); }; }); -function qo(e, n) { +function Wo(e, n) { for (let r = e.length - 1; r >= 0; r--) if (e[r]._zod[n] !== "optional") return r + 1; return 0; } -function Go(e, n, r) { - e.issues.length && n.issues.push(...xe(r, e.issues)), n.value[r] = e.value; +function Xo(e, n, r) { + e.issues.length && n.issues.push(...Te(r, e.issues)), n.value[r] = e.value; } -function Wo(e, n, r, o, t) { +function Ho(e, n, r, o, t) { for (let i = 0; i < r.length; i++) { const a = e[i], l = i < o.length; if (a.issues.length) { @@ -6826,7 +7260,7 @@ function Wo(e, n, r, o, t) { n.value.length = i; break; } - n.issues.push(...xe(i, a.issues)); + n.issues.push(...Te(i, a.issues)); } n.value[i] = a.value; } @@ -6834,10 +7268,10 @@ function Wo(e, n, r, o, t) { n.value.length = i; return n; } -const Qu = /* @__PURE__ */ v("$ZodRecord", (e, n) => { +const ts = /* @__PURE__ */ v("$ZodRecord", (e, n) => { W.init(e, n), e._zod.parse = (r, o) => { const t = r.value; - if (!et(t)) + if (!tt(t)) return r.issues.push({ expected: "record", code: "invalid_type", @@ -6858,7 +7292,7 @@ const Qu = /* @__PURE__ */ v("$ZodRecord", (e, n) => { r.issues.push({ code: "invalid_key", origin: "record", - issues: d.issues.map((f) => De(f, o, pe())), + issues: d.issues.map((f) => Oe(f, o, _e())), input: u, path: [u], inst: e @@ -6867,8 +7301,8 @@ const Qu = /* @__PURE__ */ v("$ZodRecord", (e, n) => { } const c = d.value, m = n.valueType._zod.run({ value: t[u], issues: [] }, o); m instanceof Promise ? i.push(m.then((f) => { - f.issues.length && r.issues.push(...xe(u, f.issues)), r.value[c] = f.value; - })) : (m.issues.length && r.issues.push(...xe(u, m.issues)), r.value[c] = m.value); + f.issues.length && r.issues.push(...Te(u, f.issues)), r.value[c] = f.value; + })) : (m.issues.length && r.issues.push(...Te(u, m.issues)), r.value[c] = m.value); } let s; for (const u in t) @@ -6887,7 +7321,7 @@ const Qu = /* @__PURE__ */ v("$ZodRecord", (e, n) => { let s = n.keyType._zod.run({ value: l, issues: [] }, o); if (s instanceof Promise) throw new Error("Async schemas not supported in object keys currently"); - if (typeof l == "string" && Zr.test(l) && s.issues.length) { + if (typeof l == "string" && Fr.test(l) && s.issues.length) { const c = n.keyType._zod.run({ value: Number(l), issues: [] }, o); if (c instanceof Promise) throw new Error("Async schemas not supported in object keys currently"); @@ -6897,7 +7331,7 @@ const Qu = /* @__PURE__ */ v("$ZodRecord", (e, n) => { n.mode === "loose" ? r.value[l] = t[l] : r.issues.push({ code: "invalid_key", origin: "record", - issues: s.issues.map((c) => De(c, o, pe())), + issues: s.issues.map((c) => Oe(c, o, _e())), input: l, path: [l], inst: e @@ -6906,13 +7340,13 @@ const Qu = /* @__PURE__ */ v("$ZodRecord", (e, n) => { } const d = n.valueType._zod.run({ value: t[l], issues: [] }, o); d instanceof Promise ? i.push(d.then((c) => { - c.issues.length && r.issues.push(...xe(l, c.issues)), r.value[s.value] = c.value; - })) : (d.issues.length && r.issues.push(...xe(l, d.issues)), r.value[s.value] = d.value); + c.issues.length && r.issues.push(...Te(l, c.issues)), r.value[s.value] = c.value; + })) : (d.issues.length && r.issues.push(...Te(l, d.issues)), r.value[s.value] = d.value); } } return i.length ? Promise.all(i).then(() => r) : r; }; -}), es = /* @__PURE__ */ v("$ZodMap", (e, n) => { +}), ns = /* @__PURE__ */ v("$ZodMap", (e, n) => { W.init(e, n), e._zod.parse = (r, o) => { const t = r.value; if (!(t instanceof Map)) @@ -6927,29 +7361,29 @@ const Qu = /* @__PURE__ */ v("$ZodRecord", (e, n) => { for (const [a, l] of t) { const s = n.keyType._zod.run({ value: a, issues: [] }, o), u = n.valueType._zod.run({ value: l, issues: [] }, o); s instanceof Promise || u instanceof Promise ? i.push(Promise.all([s, u]).then(([d, c]) => { - Ko(d, c, r, a, t, e, o); - })) : Ko(s, u, r, a, t, e, o); + Yo(d, c, r, a, t, e, o); + })) : Yo(s, u, r, a, t, e, o); } return i.length ? Promise.all(i).then(() => r) : r; }; }); -function Ko(e, n, r, o, t, i, a) { - e.issues.length && (fn.has(typeof o) ? r.issues.push(...xe(o, e.issues)) : r.issues.push({ +function Yo(e, n, r, o, t, i, a) { + e.issues.length && (pn.has(typeof o) ? r.issues.push(...Te(o, e.issues)) : r.issues.push({ code: "invalid_key", origin: "map", input: t, inst: i, - issues: e.issues.map((l) => De(l, a, pe())) - })), n.issues.length && (fn.has(typeof o) ? r.issues.push(...xe(o, n.issues)) : r.issues.push({ + issues: e.issues.map((l) => Oe(l, a, _e())) + })), n.issues.length && (pn.has(typeof o) ? r.issues.push(...Te(o, n.issues)) : r.issues.push({ origin: "map", code: "invalid_element", input: t, inst: i, key: o, - issues: n.issues.map((l) => De(l, a, pe())) + issues: n.issues.map((l) => Oe(l, a, _e())) })), r.value.set(e.value, n.value); } -const ts = /* @__PURE__ */ v("$ZodSet", (e, n) => { +const rs = /* @__PURE__ */ v("$ZodSet", (e, n) => { W.init(e, n), e._zod.parse = (r, o) => { const t = r.value; if (!(t instanceof Set)) @@ -6963,18 +7397,18 @@ const ts = /* @__PURE__ */ v("$ZodSet", (e, n) => { r.value = /* @__PURE__ */ new Set(); for (const a of t) { const l = n.valueType._zod.run({ value: a, issues: [] }, o); - l instanceof Promise ? i.push(l.then((s) => Xo(s, r))) : Xo(l, r); + l instanceof Promise ? i.push(l.then((s) => Qo(s, r))) : Qo(l, r); } return i.length ? Promise.all(i).then(() => r) : r; }; }); -function Xo(e, n) { +function Qo(e, n) { e.issues.length && n.issues.push(...e.issues), n.value.add(e.value); } -const ns = /* @__PURE__ */ v("$ZodEnum", (e, n) => { +const is = /* @__PURE__ */ v("$ZodEnum", (e, n) => { W.init(e, n); - const r = Sr(n.entries), o = new Set(r); - e._zod.values = o, e._zod.pattern = new RegExp(`^(${r.filter((t) => fn.has(typeof t)).map((t) => typeof t == "string" ? Fe(t) : t.toString()).join("|")})$`), e._zod.parse = (t, i) => { + const r = zr(n.entries), o = new Set(r); + e._zod.values = o, e._zod.pattern = new RegExp(`^(${r.filter((t) => pn.has(typeof t)).map((t) => typeof t == "string" ? Fe(t) : t.toString()).join("|")})$`), e._zod.parse = (t, i) => { const a = t.value; return o.has(a) || t.issues.push({ code: "invalid_value", @@ -6983,7 +7417,7 @@ const ns = /* @__PURE__ */ v("$ZodEnum", (e, n) => { inst: e }), t; }; -}), rs = /* @__PURE__ */ v("$ZodLiteral", (e, n) => { +}), os = /* @__PURE__ */ v("$ZodLiteral", (e, n) => { if (W.init(e, n), n.values.length === 0) throw new Error("Cannot create literal schema with no valid values"); const r = new Set(n.values); @@ -6996,7 +7430,7 @@ const ns = /* @__PURE__ */ v("$ZodEnum", (e, n) => { inst: e }), o; }; -}), is = /* @__PURE__ */ v("$ZodFile", (e, n) => { +}), as = /* @__PURE__ */ v("$ZodFile", (e, n) => { W.init(e, n), e._zod.parse = (r, o) => { const t = r.value; return t instanceof File || r.issues.push({ @@ -7006,64 +7440,64 @@ const ns = /* @__PURE__ */ v("$ZodEnum", (e, n) => { inst: e }), r; }; -}), os = /* @__PURE__ */ v("$ZodTransform", (e, n) => { +}), ls = /* @__PURE__ */ v("$ZodTransform", (e, n) => { W.init(e, n), e._zod.optin = "optional", e._zod.parse = (r, o) => { if (o.direction === "backward") - throw new bn(e.constructor.name); + throw new _n(e.constructor.name); const t = n.transform(r.value, r); if (o.async) return (t instanceof Promise ? t : Promise.resolve(t)).then((a) => (r.value = a, r.fallback = !0, r)); if (t instanceof Promise) - throw new Qe(); + throw new et(); return r.value = t, r.fallback = !0, r; }; }); -function Yo(e, n) { +function ea(e, n) { return n === void 0 && (e.issues.length || e.fallback) ? { issues: [], value: void 0 } : e; } -const Gr = /* @__PURE__ */ v("$ZodOptional", (e, n) => { - W.init(e, n), e._zod.optin = "optional", e._zod.optout = "optional", Y(e._zod, "values", () => n.innerType._zod.values ? /* @__PURE__ */ new Set([...n.innerType._zod.values, void 0]) : void 0), Y(e._zod, "pattern", () => { +const Xr = /* @__PURE__ */ v("$ZodOptional", (e, n) => { + W.init(e, n), e._zod.optin = "optional", e._zod.optout = "optional", H(e._zod, "values", () => n.innerType._zod.values ? /* @__PURE__ */ new Set([...n.innerType._zod.values, void 0]) : void 0), H(e._zod, "pattern", () => { const r = n.innerType._zod.pattern; - return r ? new RegExp(`^(${_n(r.source)})?$`) : void 0; + return r ? new RegExp(`^(${yn(r.source)})?$`) : void 0; }), e._zod.parse = (r, o) => { if (n.innerType._zod.optin === "optional") { const t = r.value, i = n.innerType._zod.run(r, o); - return i instanceof Promise ? i.then((a) => Yo(a, t)) : Yo(i, t); + return i instanceof Promise ? i.then((a) => ea(a, t)) : ea(i, t); } return r.value === void 0 ? r : n.innerType._zod.run(r, o); }; -}), as = /* @__PURE__ */ v("$ZodExactOptional", (e, n) => { - Gr.init(e, n), Y(e._zod, "values", () => n.innerType._zod.values), Y(e._zod, "pattern", () => n.innerType._zod.pattern), e._zod.parse = (r, o) => n.innerType._zod.run(r, o); -}), ls = /* @__PURE__ */ v("$ZodNullable", (e, n) => { - W.init(e, n), Y(e._zod, "optin", () => n.innerType._zod.optin), Y(e._zod, "optout", () => n.innerType._zod.optout), Y(e._zod, "pattern", () => { +}), us = /* @__PURE__ */ v("$ZodExactOptional", (e, n) => { + Xr.init(e, n), H(e._zod, "values", () => n.innerType._zod.values), H(e._zod, "pattern", () => n.innerType._zod.pattern), e._zod.parse = (r, o) => n.innerType._zod.run(r, o); +}), ss = /* @__PURE__ */ v("$ZodNullable", (e, n) => { + W.init(e, n), H(e._zod, "optin", () => n.innerType._zod.optin), H(e._zod, "optout", () => n.innerType._zod.optout), H(e._zod, "pattern", () => { const r = n.innerType._zod.pattern; - return r ? new RegExp(`^(${_n(r.source)}|null)$`) : void 0; - }), Y(e._zod, "values", () => n.innerType._zod.values ? /* @__PURE__ */ new Set([...n.innerType._zod.values, null]) : void 0), e._zod.parse = (r, o) => r.value === null ? r : n.innerType._zod.run(r, o); -}), us = /* @__PURE__ */ v("$ZodDefault", (e, n) => { - W.init(e, n), e._zod.optin = "optional", Y(e._zod, "values", () => n.innerType._zod.values), e._zod.parse = (r, o) => { + return r ? new RegExp(`^(${yn(r.source)}|null)$`) : void 0; + }), H(e._zod, "values", () => n.innerType._zod.values ? /* @__PURE__ */ new Set([...n.innerType._zod.values, null]) : void 0), e._zod.parse = (r, o) => r.value === null ? r : n.innerType._zod.run(r, o); +}), cs = /* @__PURE__ */ v("$ZodDefault", (e, n) => { + W.init(e, n), e._zod.optin = "optional", H(e._zod, "values", () => n.innerType._zod.values), e._zod.parse = (r, o) => { if (o.direction === "backward") return n.innerType._zod.run(r, o); if (r.value === void 0) return r.value = n.defaultValue, r; const t = n.innerType._zod.run(r, o); - return t instanceof Promise ? t.then((i) => Ho(i, n)) : Ho(t, n); + return t instanceof Promise ? t.then((i) => ta(i, n)) : ta(t, n); }; }); -function Ho(e, n) { +function ta(e, n) { return e.value === void 0 && (e.value = n.defaultValue), e; } -const ss = /* @__PURE__ */ v("$ZodPrefault", (e, n) => { - W.init(e, n), e._zod.optin = "optional", Y(e._zod, "values", () => n.innerType._zod.values), e._zod.parse = (r, o) => (o.direction === "backward" || r.value === void 0 && (r.value = n.defaultValue), n.innerType._zod.run(r, o)); -}), cs = /* @__PURE__ */ v("$ZodNonOptional", (e, n) => { - W.init(e, n), Y(e._zod, "values", () => { +const ds = /* @__PURE__ */ v("$ZodPrefault", (e, n) => { + W.init(e, n), e._zod.optin = "optional", H(e._zod, "values", () => n.innerType._zod.values), e._zod.parse = (r, o) => (o.direction === "backward" || r.value === void 0 && (r.value = n.defaultValue), n.innerType._zod.run(r, o)); +}), ms = /* @__PURE__ */ v("$ZodNonOptional", (e, n) => { + W.init(e, n), H(e._zod, "values", () => { const r = n.innerType._zod.values; return r ? new Set([...r].filter((o) => o !== void 0)) : void 0; }), e._zod.parse = (r, o) => { const t = n.innerType._zod.run(r, o); - return t instanceof Promise ? t.then((i) => Qo(i, e)) : Qo(t, e); + return t instanceof Promise ? t.then((i) => na(i, e)) : na(t, e); }; }); -function Qo(e, n) { +function na(e, n) { return !e.issues.length && e.value === void 0 && e.issues.push({ code: "invalid_type", expected: "nonoptional", @@ -7071,97 +7505,97 @@ function Qo(e, n) { inst: n }), e; } -const ds = /* @__PURE__ */ v("$ZodSuccess", (e, n) => { +const fs = /* @__PURE__ */ v("$ZodSuccess", (e, n) => { W.init(e, n), e._zod.parse = (r, o) => { if (o.direction === "backward") - throw new bn("ZodSuccess"); + throw new _n("ZodSuccess"); const t = n.innerType._zod.run(r, o); return t instanceof Promise ? t.then((i) => (r.value = i.issues.length === 0, r)) : (r.value = t.issues.length === 0, r); }; -}), ms = /* @__PURE__ */ v("$ZodCatch", (e, n) => { - W.init(e, n), e._zod.optin = "optional", Y(e._zod, "optout", () => n.innerType._zod.optout), Y(e._zod, "values", () => n.innerType._zod.values), e._zod.parse = (r, o) => { +}), ps = /* @__PURE__ */ v("$ZodCatch", (e, n) => { + W.init(e, n), e._zod.optin = "optional", H(e._zod, "optout", () => n.innerType._zod.optout), H(e._zod, "values", () => n.innerType._zod.values), e._zod.parse = (r, o) => { if (o.direction === "backward") return n.innerType._zod.run(r, o); const t = n.innerType._zod.run(r, o); return t instanceof Promise ? t.then((i) => (r.value = i.value, i.issues.length && (r.value = n.catchValue({ ...r, error: { - issues: i.issues.map((a) => De(a, o, pe())) + issues: i.issues.map((a) => Oe(a, o, _e())) }, input: r.value }), r.issues = [], r.fallback = !0), r)) : (r.value = t.value, t.issues.length && (r.value = n.catchValue({ ...r, error: { - issues: t.issues.map((i) => De(i, o, pe())) + issues: t.issues.map((i) => Oe(i, o, _e())) }, input: r.value }), r.issues = [], r.fallback = !0), r); }; -}), fs = /* @__PURE__ */ v("$ZodNaN", (e, n) => { +}), vs = /* @__PURE__ */ v("$ZodNaN", (e, n) => { W.init(e, n), e._zod.parse = (r, o) => ((typeof r.value != "number" || !Number.isNaN(r.value)) && r.issues.push({ input: r.value, inst: e, expected: "nan", code: "invalid_type" }), r); -}), Wr = /* @__PURE__ */ v("$ZodPipe", (e, n) => { - W.init(e, n), Y(e._zod, "values", () => n.in._zod.values), Y(e._zod, "optin", () => n.in._zod.optin), Y(e._zod, "optout", () => n.out._zod.optout), Y(e._zod, "propValues", () => n.in._zod.propValues), e._zod.parse = (r, o) => { +}), Hr = /* @__PURE__ */ v("$ZodPipe", (e, n) => { + W.init(e, n), H(e._zod, "values", () => n.in._zod.values), H(e._zod, "optin", () => n.in._zod.optin), H(e._zod, "optout", () => n.out._zod.optout), H(e._zod, "propValues", () => n.in._zod.propValues), e._zod.parse = (r, o) => { if (o.direction === "backward") { const i = n.out._zod.run(r, o); - return i instanceof Promise ? i.then((a) => rn(a, n.in, o)) : rn(i, n.in, o); + return i instanceof Promise ? i.then((a) => on(a, n.in, o)) : on(i, n.in, o); } const t = n.in._zod.run(r, o); - return t instanceof Promise ? t.then((i) => rn(i, n.out, o)) : rn(t, n.out, o); - }; -}); -function rn(e, n, r) { - return e.issues.length ? (e.aborted = !0, e) : n._zod.run({ value: e.value, issues: e.issues, fallback: e.fallback }, r); -} -const Kr = /* @__PURE__ */ v("$ZodCodec", (e, n) => { - W.init(e, n), Y(e._zod, "values", () => n.in._zod.values), Y(e._zod, "optin", () => n.in._zod.optin), Y(e._zod, "optout", () => n.out._zod.optout), Y(e._zod, "propValues", () => n.in._zod.propValues), e._zod.parse = (r, o) => { - if ((o.direction || "forward") === "forward") { - const i = n.in._zod.run(r, o); - return i instanceof Promise ? i.then((a) => on(a, n, o)) : on(i, n, o); - } else { - const i = n.out._zod.run(r, o); - return i instanceof Promise ? i.then((a) => on(a, n, o)) : on(i, n, o); - } + return t instanceof Promise ? t.then((i) => on(i, n.out, o)) : on(t, n.out, o); }; }); function on(e, n, r) { + return e.issues.length ? (e.aborted = !0, e) : n._zod.run({ value: e.value, issues: e.issues, fallback: e.fallback }, r); +} +const Yr = /* @__PURE__ */ v("$ZodCodec", (e, n) => { + W.init(e, n), H(e._zod, "values", () => n.in._zod.values), H(e._zod, "optin", () => n.in._zod.optin), H(e._zod, "optout", () => n.out._zod.optout), H(e._zod, "propValues", () => n.in._zod.propValues), e._zod.parse = (r, o) => { + if ((o.direction || "forward") === "forward") { + const i = n.in._zod.run(r, o); + return i instanceof Promise ? i.then((a) => an(a, n, o)) : an(i, n, o); + } else { + const i = n.out._zod.run(r, o); + return i instanceof Promise ? i.then((a) => an(a, n, o)) : an(i, n, o); + } + }; +}); +function an(e, n, r) { if (e.issues.length) return e.aborted = !0, e; if ((r.direction || "forward") === "forward") { const t = n.transform(e.value, e); - return t instanceof Promise ? t.then((i) => an(e, i, n.out, r)) : an(e, t, n.out, r); + return t instanceof Promise ? t.then((i) => ln(e, i, n.out, r)) : ln(e, t, n.out, r); } else { const t = n.reverseTransform(e.value, e); - return t instanceof Promise ? t.then((i) => an(e, i, n.in, r)) : an(e, t, n.in, r); + return t instanceof Promise ? t.then((i) => ln(e, i, n.in, r)) : ln(e, t, n.in, r); } } -function an(e, n, r, o) { +function ln(e, n, r, o) { return e.issues.length ? (e.aborted = !0, e) : r._zod.run({ value: n, issues: e.issues }, o); } -const vs = /* @__PURE__ */ v("$ZodPreprocess", (e, n) => { - Wr.init(e, n); -}), ps = /* @__PURE__ */ v("$ZodReadonly", (e, n) => { - W.init(e, n), Y(e._zod, "propValues", () => n.innerType._zod.propValues), Y(e._zod, "values", () => n.innerType._zod.values), Y(e._zod, "optin", () => { +const gs = /* @__PURE__ */ v("$ZodPreprocess", (e, n) => { + Hr.init(e, n); +}), hs = /* @__PURE__ */ v("$ZodReadonly", (e, n) => { + W.init(e, n), H(e._zod, "propValues", () => n.innerType._zod.propValues), H(e._zod, "values", () => n.innerType._zod.values), H(e._zod, "optin", () => { var r, o; return (o = (r = n.innerType) == null ? void 0 : r._zod) == null ? void 0 : o.optin; - }), Y(e._zod, "optout", () => { + }), H(e._zod, "optout", () => { var r, o; return (o = (r = n.innerType) == null ? void 0 : r._zod) == null ? void 0 : o.optout; }), e._zod.parse = (r, o) => { if (o.direction === "backward") return n.innerType._zod.run(r, o); const t = n.innerType._zod.run(r, o); - return t instanceof Promise ? t.then(ea) : ea(t); + return t instanceof Promise ? t.then(ra) : ra(t); }; }); -function ea(e) { +function ra(e) { return e.value = Object.freeze(e.value), e; } -const gs = /* @__PURE__ */ v("$ZodTemplateLiteral", (e, n) => { +const bs = /* @__PURE__ */ v("$ZodTemplateLiteral", (e, n) => { W.init(e, n); const r = []; for (const o of n.parts) @@ -7173,7 +7607,7 @@ const gs = /* @__PURE__ */ v("$ZodTemplateLiteral", (e, n) => { throw new Error(`Invalid template literal part: ${o._zod.traits}`); const i = t.startsWith("^") ? 1 : 0, a = t.endsWith("$") ? t.length - 1 : t.length; r.push(t.slice(i, a)); - } else if (o === null || La.has(typeof o)) + } else if (o === null || Ra.has(typeof o)) r.push(Fe(`${o}`)); else throw new Error(`Invalid template literal part: ${o}`); @@ -7189,7 +7623,7 @@ const gs = /* @__PURE__ */ v("$ZodTemplateLiteral", (e, n) => { format: n.format ?? "template_literal", pattern: e._zod.pattern.source }), o); -}), hs = /* @__PURE__ */ v("$ZodFunction", (e, n) => (W.init(e, n), e._def = n, e._zod.def = n, e.implement = (r) => { +}), $s = /* @__PURE__ */ v("$ZodFunction", (e, n) => (W.init(e, n), e._def = n, e._zod.def = n, e.implement = (r) => { if (typeof r != "function") throw new Error("implement() must be called with a function"); return function(...o) { @@ -7200,8 +7634,8 @@ const gs = /* @__PURE__ */ v("$ZodTemplateLiteral", (e, n) => { if (typeof r != "function") throw new Error("implementAsync() must be called with a function"); return async function(...o) { - const t = e._def.input ? await pr(e._def.input, o) : o, i = await Reflect.apply(r, this, t); - return e._def.output ? await pr(e._def.output, i) : i; + const t = e._def.input ? await gr(e._def.input, o) : o, i = await Reflect.apply(r, this, t); + return e._def.output ? await gr(e._def.output, i) : i; }; }, e._zod.parse = (r, o) => typeof r.value != "function" ? (r.issues.push({ code: "invalid_type", @@ -7212,7 +7646,7 @@ const gs = /* @__PURE__ */ v("$ZodTemplateLiteral", (e, n) => { const o = e.constructor; return Array.isArray(r[0]) ? new o({ type: "function", - input: new qr({ + input: new Wr({ type: "tuple", items: r[0], rest: r[1] @@ -7230,34 +7664,34 @@ const gs = /* @__PURE__ */ v("$ZodTemplateLiteral", (e, n) => { input: e._def.input, output: r }); -}, e)), $s = /* @__PURE__ */ v("$ZodPromise", (e, n) => { +}, e)), _s = /* @__PURE__ */ v("$ZodPromise", (e, n) => { W.init(e, n), e._zod.parse = (r, o) => Promise.resolve(r.value).then((t) => n.innerType._zod.run({ value: t, issues: [] }, o)); -}), bs = /* @__PURE__ */ v("$ZodLazy", (e, n) => { - W.init(e, n), Y(e._zod, "innerType", () => { +}), ys = /* @__PURE__ */ v("$ZodLazy", (e, n) => { + W.init(e, n), H(e._zod, "innerType", () => { const r = n; return r._cachedInner || (r._cachedInner = n.getter()), r._cachedInner; - }), Y(e._zod, "pattern", () => { + }), H(e._zod, "pattern", () => { var r, o; return (o = (r = e._zod.innerType) == null ? void 0 : r._zod) == null ? void 0 : o.pattern; - }), Y(e._zod, "propValues", () => { + }), H(e._zod, "propValues", () => { var r, o; return (o = (r = e._zod.innerType) == null ? void 0 : r._zod) == null ? void 0 : o.propValues; - }), Y(e._zod, "optin", () => { + }), H(e._zod, "optin", () => { var r, o; return ((o = (r = e._zod.innerType) == null ? void 0 : r._zod) == null ? void 0 : o.optin) ?? void 0; - }), Y(e._zod, "optout", () => { + }), H(e._zod, "optout", () => { var r, o; return ((o = (r = e._zod.innerType) == null ? void 0 : r._zod) == null ? void 0 : o.optout) ?? void 0; }), e._zod.parse = (r, o) => e._zod.innerType._zod.run(r, o); -}), _s = /* @__PURE__ */ v("$ZodCustom", (e, n) => { +}), ks = /* @__PURE__ */ v("$ZodCustom", (e, n) => { se.init(e, n), W.init(e, n), e._zod.parse = (r, o) => r, e._zod.check = (r) => { const o = r.value, t = n.fn(o); if (t instanceof Promise) - return t.then((i) => ta(i, r, o, e)); - ta(t, r, o, e); + return t.then((i) => ia(i, r, o, e)); + ia(t, r, o, e); }; }); -function ta(e, n, r, o) { +function ia(e, n, r, o) { if (!e) { const t = { code: "custom", @@ -7269,10 +7703,10 @@ function ta(e, n, r, o) { continue: !o._zod.def.abort // params: inst._zod.def.params, }; - o._zod.def.params && (t.params = o._zod.def.params), n.issues.push(st(t)); + o._zod.def.params && (t.params = o._zod.def.params), n.issues.push(dt(t)); } } -const Ub = () => { +const m_ = () => { const e = { string: { unit: "حرف", verb: "أن يحوي" }, file: { unit: "بايت", verb: "أن يحوي" }, @@ -7317,11 +7751,11 @@ const Ub = () => { return (t) => { switch (t.code) { case "invalid_type": { - const i = o[t.expected] ?? t.expected, a = R(t.input), l = o[a] ?? a; + const i = o[t.expected] ?? t.expected, a = J(t.input), l = o[a] ?? a; return /^[A-Z]/.test(t.expected) ? `مدخلات غير مقبولة: يفترض إدخال instanceof ${t.expected}، ولكن تم إدخال ${l}` : `مدخلات غير مقبولة: يفترض إدخال ${i}، ولكن تم إدخال ${l}`; } case "invalid_value": - return t.values.length === 1 ? `مدخلات غير مقبولة: يفترض إدخال ${F(t.values[0])}` : `اختيار غير مقبول: يتوقع انتقاء أحد هذه الخيارات: ${k(t.values, "|")}`; + return t.values.length === 1 ? `مدخلات غير مقبولة: يفترض إدخال ${V(t.values[0])}` : `اختيار غير مقبول: يتوقع انتقاء أحد هذه الخيارات: ${w(t.values, "|")}`; case "too_big": { const i = t.inclusive ? "<=" : "<", a = n(t.origin); return a ? ` أكبر من اللازم: يفترض أن تكون ${t.origin ?? "القيمة"} ${i} ${t.maximum.toString()} ${a.unit ?? "عنصر"}` : `أكبر من اللازم: يفترض أن تكون ${t.origin ?? "القيمة"} ${i} ${t.maximum.toString()}`; @@ -7337,7 +7771,7 @@ const Ub = () => { case "not_multiple_of": return `رقم غير مقبول: يجب أن يكون من مضاعفات ${t.divisor}`; case "unrecognized_keys": - return `معرف${t.keys.length > 1 ? "ات" : ""} غريب${t.keys.length > 1 ? "ة" : ""}: ${k(t.keys, "، ")}`; + return `معرف${t.keys.length > 1 ? "ات" : ""} غريب${t.keys.length > 1 ? "ة" : ""}: ${w(t.keys, "، ")}`; case "invalid_key": return `معرف غير مقبول في ${t.origin}`; case "invalid_union": @@ -7349,12 +7783,12 @@ const Ub = () => { } }; }; -function Tb() { +function f_() { return { - localeError: Ub() + localeError: m_() }; } -const Pb = () => { +const p_ = () => { const e = { string: { unit: "simvol", verb: "olmalıdır" }, file: { unit: "bayt", verb: "olmalıdır" }, @@ -7399,11 +7833,11 @@ const Pb = () => { return (t) => { switch (t.code) { case "invalid_type": { - const i = o[t.expected] ?? t.expected, a = R(t.input), l = o[a] ?? a; + const i = o[t.expected] ?? t.expected, a = J(t.input), l = o[a] ?? a; return /^[A-Z]/.test(t.expected) ? `Yanlış dəyər: gözlənilən instanceof ${t.expected}, daxil olan ${l}` : `Yanlış dəyər: gözlənilən ${i}, daxil olan ${l}`; } case "invalid_value": - return t.values.length === 1 ? `Yanlış dəyər: gözlənilən ${F(t.values[0])}` : `Yanlış seçim: aşağıdakılardan biri olmalıdır: ${k(t.values, "|")}`; + return t.values.length === 1 ? `Yanlış dəyər: gözlənilən ${V(t.values[0])}` : `Yanlış seçim: aşağıdakılardan biri olmalıdır: ${w(t.values, "|")}`; case "too_big": { const i = t.inclusive ? "<=" : "<", a = n(t.origin); return a ? `Çox böyük: gözlənilən ${t.origin ?? "dəyər"} ${i}${t.maximum.toString()} ${a.unit ?? "element"}` : `Çox böyük: gözlənilən ${t.origin ?? "dəyər"} ${i}${t.maximum.toString()}`; @@ -7419,7 +7853,7 @@ const Pb = () => { case "not_multiple_of": return `Yanlış ədəd: ${t.divisor} ilə bölünə bilən olmalıdır`; case "unrecognized_keys": - return `Tanınmayan açar${t.keys.length > 1 ? "lar" : ""}: ${k(t.keys, ", ")}`; + return `Tanınmayan açar${t.keys.length > 1 ? "lar" : ""}: ${w(t.keys, ", ")}`; case "invalid_key": return `${t.origin} daxilində yanlış açar`; case "invalid_union": @@ -7431,16 +7865,16 @@ const Pb = () => { } }; }; -function Nb() { +function v_() { return { - localeError: Pb() + localeError: p_() }; } -function na(e, n, r, o) { +function oa(e, n, r, o) { const t = Math.abs(e), i = t % 10, a = t % 100; return a >= 11 && a <= 19 ? o : i === 1 ? n : i >= 2 && i <= 4 ? r : o; } -const Ab = () => { +const g_ = () => { const e = { string: { unit: { @@ -7515,15 +7949,15 @@ const Ab = () => { return (t) => { switch (t.code) { case "invalid_type": { - const i = o[t.expected] ?? t.expected, a = R(t.input), l = o[a] ?? a; + const i = o[t.expected] ?? t.expected, a = J(t.input), l = o[a] ?? a; return /^[A-Z]/.test(t.expected) ? `Няправільны ўвод: чакаўся instanceof ${t.expected}, атрымана ${l}` : `Няправільны ўвод: чакаўся ${i}, атрымана ${l}`; } case "invalid_value": - return t.values.length === 1 ? `Няправільны ўвод: чакалася ${F(t.values[0])}` : `Няправільны варыянт: чакаўся адзін з ${k(t.values, "|")}`; + return t.values.length === 1 ? `Няправільны ўвод: чакалася ${V(t.values[0])}` : `Няправільны варыянт: чакаўся адзін з ${w(t.values, "|")}`; case "too_big": { const i = t.inclusive ? "<=" : "<", a = n(t.origin); if (a) { - const l = Number(t.maximum), s = na(l, a.unit.one, a.unit.few, a.unit.many); + const l = Number(t.maximum), s = oa(l, a.unit.one, a.unit.few, a.unit.many); return `Занадта вялікі: чакалася, што ${t.origin ?? "значэнне"} павінна ${a.verb} ${i}${t.maximum.toString()} ${s}`; } return `Занадта вялікі: чакалася, што ${t.origin ?? "значэнне"} павінна быць ${i}${t.maximum.toString()}`; @@ -7531,7 +7965,7 @@ const Ab = () => { case "too_small": { const i = t.inclusive ? ">=" : ">", a = n(t.origin); if (a) { - const l = Number(t.minimum), s = na(l, a.unit.one, a.unit.few, a.unit.many); + const l = Number(t.minimum), s = oa(l, a.unit.one, a.unit.few, a.unit.many); return `Занадта малы: чакалася, што ${t.origin} павінна ${a.verb} ${i}${t.minimum.toString()} ${s}`; } return `Занадта малы: чакалася, што ${t.origin} павінна быць ${i}${t.minimum.toString()}`; @@ -7543,7 +7977,7 @@ const Ab = () => { case "not_multiple_of": return `Няправільны лік: павінен быць кратным ${t.divisor}`; case "unrecognized_keys": - return `Нераспазнаны ${t.keys.length > 1 ? "ключы" : "ключ"}: ${k(t.keys, ", ")}`; + return `Нераспазнаны ${t.keys.length > 1 ? "ключы" : "ключ"}: ${w(t.keys, ", ")}`; case "invalid_key": return `Няправільны ключ у ${t.origin}`; case "invalid_union": @@ -7555,12 +7989,12 @@ const Ab = () => { } }; }; -function Cb() { +function h_() { return { - localeError: Ab() + localeError: g_() }; } -const Zb = () => { +const b_ = () => { const e = { string: { unit: "символа", verb: "да съдържа" }, file: { unit: "байта", verb: "да съдържа" }, @@ -7607,11 +8041,11 @@ const Zb = () => { return (t) => { switch (t.code) { case "invalid_type": { - const i = o[t.expected] ?? t.expected, a = R(t.input), l = o[a] ?? a; + const i = o[t.expected] ?? t.expected, a = J(t.input), l = o[a] ?? a; return /^[A-Z]/.test(t.expected) ? `Невалиден вход: очакван instanceof ${t.expected}, получен ${l}` : `Невалиден вход: очакван ${i}, получен ${l}`; } case "invalid_value": - return t.values.length === 1 ? `Невалиден вход: очакван ${F(t.values[0])}` : `Невалидна опция: очаквано едно от ${k(t.values, "|")}`; + return t.values.length === 1 ? `Невалиден вход: очакван ${V(t.values[0])}` : `Невалидна опция: очаквано едно от ${w(t.values, "|")}`; case "too_big": { const i = t.inclusive ? "<=" : "<", a = n(t.origin); return a ? `Твърде голямо: очаква се ${t.origin ?? "стойност"} да съдържа ${i}${t.maximum.toString()} ${a.unit ?? "елемента"}` : `Твърде голямо: очаква се ${t.origin ?? "стойност"} да бъде ${i}${t.maximum.toString()}`; @@ -7636,7 +8070,7 @@ const Zb = () => { case "not_multiple_of": return `Невалидно число: трябва да бъде кратно на ${t.divisor}`; case "unrecognized_keys": - return `Неразпознат${t.keys.length > 1 ? "и" : ""} ключ${t.keys.length > 1 ? "ове" : ""}: ${k(t.keys, ", ")}`; + return `Неразпознат${t.keys.length > 1 ? "и" : ""} ключ${t.keys.length > 1 ? "ове" : ""}: ${w(t.keys, ", ")}`; case "invalid_key": return `Невалиден ключ в ${t.origin}`; case "invalid_union": @@ -7648,12 +8082,12 @@ const Zb = () => { } }; }; -function Mb() { +function $_() { return { - localeError: Zb() + localeError: b_() }; } -const Lb = () => { +const __ = () => { const e = { string: { unit: "caràcters", verb: "contenir" }, file: { unit: "bytes", verb: "contenir" }, @@ -7698,11 +8132,11 @@ const Lb = () => { return (t) => { switch (t.code) { case "invalid_type": { - const i = o[t.expected] ?? t.expected, a = R(t.input), l = o[a] ?? a; + const i = o[t.expected] ?? t.expected, a = J(t.input), l = o[a] ?? a; return /^[A-Z]/.test(t.expected) ? `Tipus invàlid: s'esperava instanceof ${t.expected}, s'ha rebut ${l}` : `Tipus invàlid: s'esperava ${i}, s'ha rebut ${l}`; } case "invalid_value": - return t.values.length === 1 ? `Valor invàlid: s'esperava ${F(t.values[0])}` : `Opció invàlida: s'esperava una de ${k(t.values, " o ")}`; + return t.values.length === 1 ? `Valor invàlid: s'esperava ${V(t.values[0])}` : `Opció invàlida: s'esperava una de ${w(t.values, " o ")}`; case "too_big": { const i = t.inclusive ? "com a màxim" : "menys de", a = n(t.origin); return a ? `Massa gran: s'esperava que ${t.origin ?? "el valor"} contingués ${i} ${t.maximum.toString()} ${a.unit ?? "elements"}` : `Massa gran: s'esperava que ${t.origin ?? "el valor"} fos ${i} ${t.maximum.toString()}`; @@ -7718,7 +8152,7 @@ const Lb = () => { case "not_multiple_of": return `Número invàlid: ha de ser múltiple de ${t.divisor}`; case "unrecognized_keys": - return `Clau${t.keys.length > 1 ? "s" : ""} no reconeguda${t.keys.length > 1 ? "s" : ""}: ${k(t.keys, ", ")}`; + return `Clau${t.keys.length > 1 ? "s" : ""} no reconeguda${t.keys.length > 1 ? "s" : ""}: ${w(t.keys, ", ")}`; case "invalid_key": return `Clau invàlida a ${t.origin}`; case "invalid_union": @@ -7731,12 +8165,12 @@ const Lb = () => { } }; }; -function Fb() { +function y_() { return { - localeError: Lb() + localeError: __() }; } -const Rb = () => { +const k_ = () => { const e = { string: { unit: "znaků", verb: "mít" }, file: { unit: "bajtů", verb: "mít" }, @@ -7785,11 +8219,11 @@ const Rb = () => { return (t) => { switch (t.code) { case "invalid_type": { - const i = o[t.expected] ?? t.expected, a = R(t.input), l = o[a] ?? a; + const i = o[t.expected] ?? t.expected, a = J(t.input), l = o[a] ?? a; return /^[A-Z]/.test(t.expected) ? `Neplatný vstup: očekáváno instanceof ${t.expected}, obdrženo ${l}` : `Neplatný vstup: očekáváno ${i}, obdrženo ${l}`; } case "invalid_value": - return t.values.length === 1 ? `Neplatný vstup: očekáváno ${F(t.values[0])}` : `Neplatná možnost: očekávána jedna z hodnot ${k(t.values, "|")}`; + return t.values.length === 1 ? `Neplatný vstup: očekáváno ${V(t.values[0])}` : `Neplatná možnost: očekávána jedna z hodnot ${w(t.values, "|")}`; case "too_big": { const i = t.inclusive ? "<=" : "<", a = n(t.origin); return a ? `Hodnota je příliš velká: ${t.origin ?? "hodnota"} musí mít ${i}${t.maximum.toString()} ${a.unit ?? "prvků"}` : `Hodnota je příliš velká: ${t.origin ?? "hodnota"} musí být ${i}${t.maximum.toString()}`; @@ -7805,7 +8239,7 @@ const Rb = () => { case "not_multiple_of": return `Neplatné číslo: musí být násobkem ${t.divisor}`; case "unrecognized_keys": - return `Neznámé klíče: ${k(t.keys, ", ")}`; + return `Neznámé klíče: ${w(t.keys, ", ")}`; case "invalid_key": return `Neplatný klíč v ${t.origin}`; case "invalid_union": @@ -7817,12 +8251,12 @@ const Rb = () => { } }; }; -function Bb() { +function S_() { return { - localeError: Rb() + localeError: k_() }; } -const Vb = () => { +const w_ = () => { const e = { string: { unit: "tegn", verb: "havde" }, file: { unit: "bytes", verb: "havde" }, @@ -7874,11 +8308,11 @@ const Vb = () => { return (t) => { switch (t.code) { case "invalid_type": { - const i = o[t.expected] ?? t.expected, a = R(t.input), l = o[a] ?? a; + const i = o[t.expected] ?? t.expected, a = J(t.input), l = o[a] ?? a; return /^[A-Z]/.test(t.expected) ? `Ugyldigt input: forventede instanceof ${t.expected}, fik ${l}` : `Ugyldigt input: forventede ${i}, fik ${l}`; } case "invalid_value": - return t.values.length === 1 ? `Ugyldig værdi: forventede ${F(t.values[0])}` : `Ugyldigt valg: forventede en af følgende ${k(t.values, "|")}`; + return t.values.length === 1 ? `Ugyldig værdi: forventede ${V(t.values[0])}` : `Ugyldigt valg: forventede en af følgende ${w(t.values, "|")}`; case "too_big": { const i = t.inclusive ? "<=" : "<", a = n(t.origin), l = o[t.origin] ?? t.origin; return a ? `For stor: forventede ${l ?? "value"} ${a.verb} ${i} ${t.maximum.toString()} ${a.unit ?? "elementer"}` : `For stor: forventede ${l ?? "value"} havde ${i} ${t.maximum.toString()}`; @@ -7894,7 +8328,7 @@ const Vb = () => { case "not_multiple_of": return `Ugyldigt tal: skal være deleligt med ${t.divisor}`; case "unrecognized_keys": - return `${t.keys.length > 1 ? "Ukendte nøgler" : "Ukendt nøgle"}: ${k(t.keys, ", ")}`; + return `${t.keys.length > 1 ? "Ukendte nøgler" : "Ukendt nøgle"}: ${w(t.keys, ", ")}`; case "invalid_key": return `Ugyldig nøgle i ${t.origin}`; case "invalid_union": @@ -7906,12 +8340,12 @@ const Vb = () => { } }; }; -function Jb() { +function I_() { return { - localeError: Vb() + localeError: w_() }; } -const qb = () => { +const z_ = () => { const e = { string: { unit: "Zeichen", verb: "zu haben" }, file: { unit: "Bytes", verb: "zu haben" }, @@ -7958,11 +8392,11 @@ const qb = () => { return (t) => { switch (t.code) { case "invalid_type": { - const i = o[t.expected] ?? t.expected, a = R(t.input), l = o[a] ?? a; + const i = o[t.expected] ?? t.expected, a = J(t.input), l = o[a] ?? a; return /^[A-Z]/.test(t.expected) ? `Ungültige Eingabe: erwartet instanceof ${t.expected}, erhalten ${l}` : `Ungültige Eingabe: erwartet ${i}, erhalten ${l}`; } case "invalid_value": - return t.values.length === 1 ? `Ungültige Eingabe: erwartet ${F(t.values[0])}` : `Ungültige Option: erwartet eine von ${k(t.values, "|")}`; + return t.values.length === 1 ? `Ungültige Eingabe: erwartet ${V(t.values[0])}` : `Ungültige Option: erwartet eine von ${w(t.values, "|")}`; case "too_big": { const i = t.inclusive ? "<=" : "<", a = n(t.origin); return a ? `Zu groß: erwartet, dass ${t.origin ?? "Wert"} ${i}${t.maximum.toString()} ${a.unit ?? "Elemente"} hat` : `Zu groß: erwartet, dass ${t.origin ?? "Wert"} ${i}${t.maximum.toString()} ist`; @@ -7978,7 +8412,7 @@ const qb = () => { case "not_multiple_of": return `Ungültige Zahl: muss ein Vielfaches von ${t.divisor} sein`; case "unrecognized_keys": - return `${t.keys.length > 1 ? "Unbekannte Schlüssel" : "Unbekannter Schlüssel"}: ${k(t.keys, ", ")}`; + return `${t.keys.length > 1 ? "Unbekannte Schlüssel" : "Unbekannter Schlüssel"}: ${w(t.keys, ", ")}`; case "invalid_key": return `Ungültiger Schlüssel in ${t.origin}`; case "invalid_union": @@ -7990,12 +8424,12 @@ const qb = () => { } }; }; -function Gb() { +function D_() { return { - localeError: qb() + localeError: z_() }; } -const Wb = () => { +const j_ = () => { const e = { string: { unit: "χαρακτήρες", verb: "να έχει" }, file: { unit: "bytes", verb: "να έχει" }, @@ -8042,11 +8476,11 @@ const Wb = () => { return (t) => { switch (t.code) { case "invalid_type": { - const i = o[t.expected] ?? t.expected, a = R(t.input), l = o[a] ?? a; + const i = o[t.expected] ?? t.expected, a = J(t.input), l = o[a] ?? a; return typeof t.expected == "string" && /^[A-Z]/.test(t.expected) ? `Μη έγκυρη είσοδος: αναμενόταν instanceof ${t.expected}, λήφθηκε ${l}` : `Μη έγκυρη είσοδος: αναμενόταν ${i}, λήφθηκε ${l}`; } case "invalid_value": - return t.values.length === 1 ? `Μη έγκυρη είσοδος: αναμενόταν ${F(t.values[0])}` : `Μη έγκυρη επιλογή: αναμενόταν ένα από ${k(t.values, "|")}`; + return t.values.length === 1 ? `Μη έγκυρη είσοδος: αναμενόταν ${V(t.values[0])}` : `Μη έγκυρη επιλογή: αναμενόταν ένα από ${w(t.values, "|")}`; case "too_big": { const i = t.inclusive ? "<=" : "<", a = n(t.origin); return a ? `Πολύ μεγάλο: αναμενόταν ${t.origin ?? "τιμή"} να έχει ${i}${t.maximum.toString()} ${a.unit ?? "στοιχεία"}` : `Πολύ μεγάλο: αναμενόταν ${t.origin ?? "τιμή"} να είναι ${i}${t.maximum.toString()}`; @@ -8062,7 +8496,7 @@ const Wb = () => { case "not_multiple_of": return `Μη έγκυρος αριθμός: πρέπει να είναι πολλαπλάσιο του ${t.divisor}`; case "unrecognized_keys": - return `Άγνωστ${t.keys.length > 1 ? "α" : "ο"} κλειδ${t.keys.length > 1 ? "ιά" : "ί"}: ${k(t.keys, ", ")}`; + return `Άγνωστ${t.keys.length > 1 ? "α" : "ο"} κλειδ${t.keys.length > 1 ? "ιά" : "ί"}: ${w(t.keys, ", ")}`; case "invalid_key": return `Μη έγκυρο κλειδί στο ${t.origin}`; case "invalid_union": @@ -8074,12 +8508,12 @@ const Wb = () => { } }; }; -function Kb() { +function O_() { return { - localeError: Wb() + localeError: j_() }; } -const Xb = () => { +const E_ = () => { const e = { string: { unit: "characters", verb: "to have" }, file: { unit: "bytes", verb: "to have" }, @@ -8128,11 +8562,11 @@ const Xb = () => { return (t) => { switch (t.code) { case "invalid_type": { - const i = o[t.expected] ?? t.expected, a = R(t.input), l = o[a] ?? a; + const i = o[t.expected] ?? t.expected, a = J(t.input), l = o[a] ?? a; return `Invalid input: expected ${i}, received ${l}`; } case "invalid_value": - return t.values.length === 1 ? `Invalid input: expected ${F(t.values[0])}` : `Invalid option: expected one of ${k(t.values, "|")}`; + return t.values.length === 1 ? `Invalid input: expected ${V(t.values[0])}` : `Invalid option: expected one of ${w(t.values, "|")}`; case "too_big": { const i = t.inclusive ? "<=" : "<", a = n(t.origin); return a ? `Too big: expected ${t.origin ?? "value"} to have ${i}${t.maximum.toString()} ${a.unit ?? "elements"}` : `Too big: expected ${t.origin ?? "value"} to be ${i}${t.maximum.toString()}`; @@ -8148,7 +8582,7 @@ const Xb = () => { case "not_multiple_of": return `Invalid number: must be a multiple of ${t.divisor}`; case "unrecognized_keys": - return `Unrecognized key${t.keys.length > 1 ? "s" : ""}: ${k(t.keys, ", ")}`; + return `Unrecognized key${t.keys.length > 1 ? "s" : ""}: ${w(t.keys, ", ")}`; case "invalid_key": return `Invalid key in ${t.origin}`; case "invalid_union": @@ -8160,12 +8594,12 @@ const Xb = () => { } }; }; -function ys() { +function Ss() { return { - localeError: Xb() + localeError: E_() }; } -const Yb = () => { +const x_ = () => { const e = { string: { unit: "karaktrojn", verb: "havi" }, file: { unit: "bajtojn", verb: "havi" }, @@ -8213,11 +8647,11 @@ const Yb = () => { return (t) => { switch (t.code) { case "invalid_type": { - const i = o[t.expected] ?? t.expected, a = R(t.input), l = o[a] ?? a; + const i = o[t.expected] ?? t.expected, a = J(t.input), l = o[a] ?? a; return /^[A-Z]/.test(t.expected) ? `Nevalida enigo: atendiĝis instanceof ${t.expected}, riceviĝis ${l}` : `Nevalida enigo: atendiĝis ${i}, riceviĝis ${l}`; } case "invalid_value": - return t.values.length === 1 ? `Nevalida enigo: atendiĝis ${F(t.values[0])}` : `Nevalida opcio: atendiĝis unu el ${k(t.values, "|")}`; + return t.values.length === 1 ? `Nevalida enigo: atendiĝis ${V(t.values[0])}` : `Nevalida opcio: atendiĝis unu el ${w(t.values, "|")}`; case "too_big": { const i = t.inclusive ? "<=" : "<", a = n(t.origin); return a ? `Tro granda: atendiĝis ke ${t.origin ?? "valoro"} havu ${i}${t.maximum.toString()} ${a.unit ?? "elementojn"}` : `Tro granda: atendiĝis ke ${t.origin ?? "valoro"} havu ${i}${t.maximum.toString()}`; @@ -8233,7 +8667,7 @@ const Yb = () => { case "not_multiple_of": return `Nevalida nombro: devas esti oblo de ${t.divisor}`; case "unrecognized_keys": - return `Nekonata${t.keys.length > 1 ? "j" : ""} ŝlosilo${t.keys.length > 1 ? "j" : ""}: ${k(t.keys, ", ")}`; + return `Nekonata${t.keys.length > 1 ? "j" : ""} ŝlosilo${t.keys.length > 1 ? "j" : ""}: ${w(t.keys, ", ")}`; case "invalid_key": return `Nevalida ŝlosilo en ${t.origin}`; case "invalid_union": @@ -8245,12 +8679,12 @@ const Yb = () => { } }; }; -function Hb() { +function U_() { return { - localeError: Yb() + localeError: x_() }; } -const Qb = () => { +const T_ = () => { const e = { string: { unit: "caracteres", verb: "tener" }, file: { unit: "bytes", verb: "tener" }, @@ -8319,11 +8753,11 @@ const Qb = () => { return (t) => { switch (t.code) { case "invalid_type": { - const i = o[t.expected] ?? t.expected, a = R(t.input), l = o[a] ?? a; + const i = o[t.expected] ?? t.expected, a = J(t.input), l = o[a] ?? a; return /^[A-Z]/.test(t.expected) ? `Entrada inválida: se esperaba instanceof ${t.expected}, recibido ${l}` : `Entrada inválida: se esperaba ${i}, recibido ${l}`; } case "invalid_value": - return t.values.length === 1 ? `Entrada inválida: se esperaba ${F(t.values[0])}` : `Opción inválida: se esperaba una de ${k(t.values, "|")}`; + return t.values.length === 1 ? `Entrada inválida: se esperaba ${V(t.values[0])}` : `Opción inválida: se esperaba una de ${w(t.values, "|")}`; case "too_big": { const i = t.inclusive ? "<=" : "<", a = n(t.origin), l = o[t.origin] ?? t.origin; return a ? `Demasiado grande: se esperaba que ${l ?? "valor"} tuviera ${i}${t.maximum.toString()} ${a.unit ?? "elementos"}` : `Demasiado grande: se esperaba que ${l ?? "valor"} fuera ${i}${t.maximum.toString()}`; @@ -8339,7 +8773,7 @@ const Qb = () => { case "not_multiple_of": return `Número inválido: debe ser múltiplo de ${t.divisor}`; case "unrecognized_keys": - return `Llave${t.keys.length > 1 ? "s" : ""} desconocida${t.keys.length > 1 ? "s" : ""}: ${k(t.keys, ", ")}`; + return `Llave${t.keys.length > 1 ? "s" : ""} desconocida${t.keys.length > 1 ? "s" : ""}: ${w(t.keys, ", ")}`; case "invalid_key": return `Llave inválida en ${o[t.origin] ?? t.origin}`; case "invalid_union": @@ -8351,12 +8785,12 @@ const Qb = () => { } }; }; -function e_() { +function N_() { return { - localeError: Qb() + localeError: T_() }; } -const t_ = () => { +const P_ = () => { const e = { string: { unit: "کاراکتر", verb: "داشته باشد" }, file: { unit: "بایت", verb: "داشته باشد" }, @@ -8403,11 +8837,11 @@ const t_ = () => { return (t) => { switch (t.code) { case "invalid_type": { - const i = o[t.expected] ?? t.expected, a = R(t.input), l = o[a] ?? a; + const i = o[t.expected] ?? t.expected, a = J(t.input), l = o[a] ?? a; return /^[A-Z]/.test(t.expected) ? `ورودی نامعتبر: می‌بایست instanceof ${t.expected} می‌بود، ${l} دریافت شد` : `ورودی نامعتبر: می‌بایست ${i} می‌بود، ${l} دریافت شد`; } case "invalid_value": - return t.values.length === 1 ? `ورودی نامعتبر: می‌بایست ${F(t.values[0])} می‌بود` : `گزینه نامعتبر: می‌بایست یکی از ${k(t.values, "|")} می‌بود`; + return t.values.length === 1 ? `ورودی نامعتبر: می‌بایست ${V(t.values[0])} می‌بود` : `گزینه نامعتبر: می‌بایست یکی از ${w(t.values, "|")} می‌بود`; case "too_big": { const i = t.inclusive ? "<=" : "<", a = n(t.origin); return a ? `خیلی بزرگ: ${t.origin ?? "مقدار"} باید ${i}${t.maximum.toString()} ${a.unit ?? "عنصر"} باشد` : `خیلی بزرگ: ${t.origin ?? "مقدار"} باید ${i}${t.maximum.toString()} باشد`; @@ -8423,7 +8857,7 @@ const t_ = () => { case "not_multiple_of": return `عدد نامعتبر: باید مضرب ${t.divisor} باشد`; case "unrecognized_keys": - return `کلید${t.keys.length > 1 ? "های" : ""} ناشناس: ${k(t.keys, ", ")}`; + return `کلید${t.keys.length > 1 ? "های" : ""} ناشناس: ${w(t.keys, ", ")}`; case "invalid_key": return `کلید ناشناس در ${t.origin}`; case "invalid_union": @@ -8435,12 +8869,12 @@ const t_ = () => { } }; }; -function n_() { +function A_() { return { - localeError: t_() + localeError: P_() }; } -const r_ = () => { +const C_ = () => { const e = { string: { unit: "merkkiä", subject: "merkkijonon" }, file: { unit: "tavua", subject: "tiedoston" }, @@ -8489,11 +8923,11 @@ const r_ = () => { return (t) => { switch (t.code) { case "invalid_type": { - const i = o[t.expected] ?? t.expected, a = R(t.input), l = o[a] ?? a; + const i = o[t.expected] ?? t.expected, a = J(t.input), l = o[a] ?? a; return /^[A-Z]/.test(t.expected) ? `Virheellinen tyyppi: odotettiin instanceof ${t.expected}, oli ${l}` : `Virheellinen tyyppi: odotettiin ${i}, oli ${l}`; } case "invalid_value": - return t.values.length === 1 ? `Virheellinen syöte: täytyy olla ${F(t.values[0])}` : `Virheellinen valinta: täytyy olla yksi seuraavista: ${k(t.values, "|")}`; + return t.values.length === 1 ? `Virheellinen syöte: täytyy olla ${V(t.values[0])}` : `Virheellinen valinta: täytyy olla yksi seuraavista: ${w(t.values, "|")}`; case "too_big": { const i = t.inclusive ? "<=" : "<", a = n(t.origin); return a ? `Liian suuri: ${a.subject} täytyy olla ${i}${t.maximum.toString()} ${a.unit}`.trim() : `Liian suuri: arvon täytyy olla ${i}${t.maximum.toString()}`; @@ -8509,7 +8943,7 @@ const r_ = () => { case "not_multiple_of": return `Virheellinen luku: täytyy olla luvun ${t.divisor} monikerta`; case "unrecognized_keys": - return `${t.keys.length > 1 ? "Tuntemattomat avaimet" : "Tuntematon avain"}: ${k(t.keys, ", ")}`; + return `${t.keys.length > 1 ? "Tuntemattomat avaimet" : "Tuntematon avain"}: ${w(t.keys, ", ")}`; case "invalid_key": return "Virheellinen avain tietueessa"; case "invalid_union": @@ -8521,12 +8955,12 @@ const r_ = () => { } }; }; -function i_() { +function Z_() { return { - localeError: r_() + localeError: C_() }; } -const o_ = () => { +const M_ = () => { const e = { string: { unit: "caractères", verb: "avoir" }, file: { unit: "octets", verb: "avoir" }, @@ -8591,11 +9025,11 @@ const o_ = () => { return (t) => { switch (t.code) { case "invalid_type": { - const i = o[t.expected] ?? t.expected, a = R(t.input), l = o[a] ?? a; + const i = o[t.expected] ?? t.expected, a = J(t.input), l = o[a] ?? a; return /^[A-Z]/.test(t.expected) ? `Entrée invalide : instanceof ${t.expected} attendu, ${l} reçu` : `Entrée invalide : ${i} attendu, ${l} reçu`; } case "invalid_value": - return t.values.length === 1 ? `Entrée invalide : ${F(t.values[0])} attendu` : `Option invalide : une valeur parmi ${k(t.values, "|")} attendue`; + return t.values.length === 1 ? `Entrée invalide : ${V(t.values[0])} attendu` : `Option invalide : une valeur parmi ${w(t.values, "|")} attendue`; case "too_big": { const i = t.inclusive ? "<=" : "<", a = n(t.origin); return a ? `Trop grand : ${o[t.origin] ?? "valeur"} doit ${a.verb} ${i}${t.maximum.toString()} ${a.unit ?? "élément(s)"}` : `Trop grand : ${o[t.origin] ?? "valeur"} doit être ${i}${t.maximum.toString()}`; @@ -8611,7 +9045,7 @@ const o_ = () => { case "not_multiple_of": return `Nombre invalide : doit être un multiple de ${t.divisor}`; case "unrecognized_keys": - return `Clé${t.keys.length > 1 ? "s" : ""} non reconnue${t.keys.length > 1 ? "s" : ""} : ${k(t.keys, ", ")}`; + return `Clé${t.keys.length > 1 ? "s" : ""} non reconnue${t.keys.length > 1 ? "s" : ""} : ${w(t.keys, ", ")}`; case "invalid_key": return `Clé invalide dans ${t.origin}`; case "invalid_union": @@ -8623,12 +9057,12 @@ const o_ = () => { } }; }; -function a_() { +function L_() { return { - localeError: o_() + localeError: M_() }; } -const l_ = () => { +const F_ = () => { const e = { string: { unit: "caractères", verb: "avoir" }, file: { unit: "octets", verb: "avoir" }, @@ -8673,11 +9107,11 @@ const l_ = () => { return (t) => { switch (t.code) { case "invalid_type": { - const i = o[t.expected] ?? t.expected, a = R(t.input), l = o[a] ?? a; + const i = o[t.expected] ?? t.expected, a = J(t.input), l = o[a] ?? a; return /^[A-Z]/.test(t.expected) ? `Entrée invalide : attendu instanceof ${t.expected}, reçu ${l}` : `Entrée invalide : attendu ${i}, reçu ${l}`; } case "invalid_value": - return t.values.length === 1 ? `Entrée invalide : attendu ${F(t.values[0])}` : `Option invalide : attendu l'une des valeurs suivantes ${k(t.values, "|")}`; + return t.values.length === 1 ? `Entrée invalide : attendu ${V(t.values[0])}` : `Option invalide : attendu l'une des valeurs suivantes ${w(t.values, "|")}`; case "too_big": { const i = t.inclusive ? "≤" : "<", a = n(t.origin); return a ? `Trop grand : attendu que ${t.origin ?? "la valeur"} ait ${i}${t.maximum.toString()} ${a.unit}` : `Trop grand : attendu que ${t.origin ?? "la valeur"} soit ${i}${t.maximum.toString()}`; @@ -8693,7 +9127,7 @@ const l_ = () => { case "not_multiple_of": return `Nombre invalide : doit être un multiple de ${t.divisor}`; case "unrecognized_keys": - return `Clé${t.keys.length > 1 ? "s" : ""} non reconnue${t.keys.length > 1 ? "s" : ""} : ${k(t.keys, ", ")}`; + return `Clé${t.keys.length > 1 ? "s" : ""} non reconnue${t.keys.length > 1 ? "s" : ""} : ${w(t.keys, ", ")}`; case "invalid_key": return `Clé invalide dans ${t.origin}`; case "invalid_union": @@ -8705,12 +9139,12 @@ const l_ = () => { } }; }; -function u_() { +function R_() { return { - localeError: l_() + localeError: F_() }; } -const s_ = () => { +const B_ = () => { const e = { string: { label: "מחרוזת", gender: "f" }, number: { label: "מספר", gender: "m" }, @@ -8781,13 +9215,13 @@ const s_ = () => { var d; switch (u.code) { case "invalid_type": { - const c = u.expected, m = s[c ?? ""] ?? o(c), f = R(u.input), g = s[f] ?? ((d = e[f]) == null ? void 0 : d.label) ?? f; + const c = u.expected, m = s[c ?? ""] ?? o(c), f = J(u.input), g = s[f] ?? ((d = e[f]) == null ? void 0 : d.label) ?? f; return /^[A-Z]/.test(u.expected) ? `קלט לא תקין: צריך להיות instanceof ${u.expected}, התקבל ${g}` : `קלט לא תקין: צריך להיות ${m}, התקבל ${g}`; } case "invalid_value": { if (u.values.length === 1) - return `ערך לא תקין: הערך חייב להיות ${F(u.values[0])}`; - const c = u.values.map((g) => F(g)); + return `ערך לא תקין: הערך חייב להיות ${V(u.values[0])}`; + const c = u.values.map((g) => V(g)); if (u.values.length === 2) return `ערך לא תקין: האפשרויות המתאימות הן ${c[0]} או ${c[1]}`; const m = c[c.length - 1]; @@ -8798,12 +9232,12 @@ const s_ = () => { if (u.origin === "string") return `${(c == null ? void 0 : c.longLabel) ?? "ארוך"} מדי: ${m} צריכה להכיל ${u.maximum.toString()} ${(c == null ? void 0 : c.unit) ?? ""} ${u.inclusive ? "או פחות" : "לכל היותר"}`.trim(); if (u.origin === "number") { - const b = u.inclusive ? `קטן או שווה ל-${u.maximum}` : `קטן מ-${u.maximum}`; - return `גדול מדי: ${m} צריך להיות ${b}`; + const y = u.inclusive ? `קטן או שווה ל-${u.maximum}` : `קטן מ-${u.maximum}`; + return `גדול מדי: ${m} צריך להיות ${y}`; } if (u.origin === "array" || u.origin === "set") { - const b = u.origin === "set" ? "צריכה" : "צריך", E = u.inclusive ? `${u.maximum} ${(c == null ? void 0 : c.unit) ?? ""} או פחות` : `פחות מ-${u.maximum} ${(c == null ? void 0 : c.unit) ?? ""}`; - return `גדול מדי: ${m} ${b} להכיל ${E}`.trim(); + const y = u.origin === "set" ? "צריכה" : "צריך", N = u.inclusive ? `${u.maximum} ${(c == null ? void 0 : c.unit) ?? ""} או פחות` : `פחות מ-${u.maximum} ${(c == null ? void 0 : c.unit) ?? ""}`; + return `גדול מדי: ${m} ${y} להכיל ${N}`.trim(); } const f = u.inclusive ? "<=" : "<", g = i(u.origin ?? "value"); return c != null && c.unit ? `${c.longLabel} מדי: ${m} ${g} ${f}${u.maximum.toString()} ${c.unit}` : `${(c == null ? void 0 : c.longLabel) ?? "גדול"} מדי: ${m} ${g} ${f}${u.maximum.toString()}`; @@ -8813,17 +9247,17 @@ const s_ = () => { if (u.origin === "string") return `${(c == null ? void 0 : c.shortLabel) ?? "קצר"} מדי: ${m} צריכה להכיל ${u.minimum.toString()} ${(c == null ? void 0 : c.unit) ?? ""} ${u.inclusive ? "או יותר" : "לפחות"}`.trim(); if (u.origin === "number") { - const b = u.inclusive ? `גדול או שווה ל-${u.minimum}` : `גדול מ-${u.minimum}`; - return `קטן מדי: ${m} צריך להיות ${b}`; + const y = u.inclusive ? `גדול או שווה ל-${u.minimum}` : `גדול מ-${u.minimum}`; + return `קטן מדי: ${m} צריך להיות ${y}`; } if (u.origin === "array" || u.origin === "set") { - const b = u.origin === "set" ? "צריכה" : "צריך"; + const y = u.origin === "set" ? "צריכה" : "צריך"; if (u.minimum === 1 && u.inclusive) { - const w = (u.origin === "set", "לפחות פריט אחד"); - return `קטן מדי: ${m} ${b} להכיל ${w}`; + const x = (u.origin === "set", "לפחות פריט אחד"); + return `קטן מדי: ${m} ${y} להכיל ${x}`; } - const E = u.inclusive ? `${u.minimum} ${(c == null ? void 0 : c.unit) ?? ""} או יותר` : `יותר מ-${u.minimum} ${(c == null ? void 0 : c.unit) ?? ""}`; - return `קטן מדי: ${m} ${b} להכיל ${E}`.trim(); + const N = u.inclusive ? `${u.minimum} ${(c == null ? void 0 : c.unit) ?? ""} או יותר` : `יותר מ-${u.minimum} ${(c == null ? void 0 : c.unit) ?? ""}`; + return `קטן מדי: ${m} ${y} להכיל ${N}`.trim(); } const f = u.inclusive ? ">=" : ">", g = i(u.origin ?? "value"); return c != null && c.unit ? `${c.shortLabel} מדי: ${m} ${g} ${f}${u.minimum.toString()} ${c.unit}` : `${(c == null ? void 0 : c.shortLabel) ?? "קטן"} מדי: ${m} ${g} ${f}${u.minimum.toString()}`; @@ -8838,13 +9272,13 @@ const s_ = () => { return `המחרוזת חייבת לכלול "${c.includes}"`; if (c.format === "regex") return `המחרוזת חייבת להתאים לתבנית ${c.pattern}`; - const m = l[c.format], f = (m == null ? void 0 : m.label) ?? c.format, b = ((m == null ? void 0 : m.gender) ?? "m") === "f" ? "תקינה" : "תקין"; - return `${f} לא ${b}`; + const m = l[c.format], f = (m == null ? void 0 : m.label) ?? c.format, y = ((m == null ? void 0 : m.gender) ?? "m") === "f" ? "תקינה" : "תקין"; + return `${f} לא ${y}`; } case "not_multiple_of": return `מספר לא תקין: חייב להיות מכפלה של ${u.divisor}`; case "unrecognized_keys": - return `מפתח${u.keys.length > 1 ? "ות" : ""} לא מזוה${u.keys.length > 1 ? "ים" : "ה"}: ${k(u.keys, ", ")}`; + return `מפתח${u.keys.length > 1 ? "ות" : ""} לא מזוה${u.keys.length > 1 ? "ים" : "ה"}: ${w(u.keys, ", ")}`; case "invalid_key": return "שדה לא תקין באובייקט"; case "invalid_union": @@ -8856,12 +9290,12 @@ const s_ = () => { } }; }; -function c_() { +function V_() { return { - localeError: s_() + localeError: B_() }; } -const d_ = () => { +const J_ = () => { const e = { string: { unit: "znakova", verb: "imati" }, file: { unit: "bajtova", verb: "imati" }, @@ -8920,11 +9354,11 @@ const d_ = () => { return (t) => { switch (t.code) { case "invalid_type": { - const i = o[t.expected] ?? t.expected, a = R(t.input), l = o[a] ?? a; + const i = o[t.expected] ?? t.expected, a = J(t.input), l = o[a] ?? a; return /^[A-Z]/.test(t.expected) ? `Neispravan unos: očekuje se instanceof ${t.expected}, a primljeno je ${l}` : `Neispravan unos: očekuje se ${i}, a primljeno je ${l}`; } case "invalid_value": - return t.values.length === 1 ? `Neispravna vrijednost: očekivano ${F(t.values[0])}` : `Neispravna opcija: očekivano jedno od ${k(t.values, "|")}`; + return t.values.length === 1 ? `Neispravna vrijednost: očekivano ${V(t.values[0])}` : `Neispravna opcija: očekivano jedno od ${w(t.values, "|")}`; case "too_big": { const i = t.inclusive ? "<=" : "<", a = n(t.origin), l = o[t.origin] ?? t.origin; return a ? `Preveliko: očekivano da ${l ?? "vrijednost"} ima ${i}${t.maximum.toString()} ${a.unit ?? "elemenata"}` : `Preveliko: očekivano da ${l ?? "vrijednost"} bude ${i}${t.maximum.toString()}`; @@ -8940,7 +9374,7 @@ const d_ = () => { case "not_multiple_of": return `Neispravan broj: mora biti višekratnik od ${t.divisor}`; case "unrecognized_keys": - return `Neprepoznat${t.keys.length > 1 ? "i ključevi" : " ključ"}: ${k(t.keys, ", ")}`; + return `Neprepoznat${t.keys.length > 1 ? "i ključevi" : " ključ"}: ${w(t.keys, ", ")}`; case "invalid_key": return `Neispravan ključ u ${o[t.origin] ?? t.origin}`; case "invalid_union": @@ -8952,12 +9386,12 @@ const d_ = () => { } }; }; -function m_() { +function q_() { return { - localeError: d_() + localeError: J_() }; } -const f_ = () => { +const G_ = () => { const e = { string: { unit: "karakter", verb: "legyen" }, file: { unit: "byte", verb: "legyen" }, @@ -9004,11 +9438,11 @@ const f_ = () => { return (t) => { switch (t.code) { case "invalid_type": { - const i = o[t.expected] ?? t.expected, a = R(t.input), l = o[a] ?? a; + const i = o[t.expected] ?? t.expected, a = J(t.input), l = o[a] ?? a; return /^[A-Z]/.test(t.expected) ? `Érvénytelen bemenet: a várt érték instanceof ${t.expected}, a kapott érték ${l}` : `Érvénytelen bemenet: a várt érték ${i}, a kapott érték ${l}`; } case "invalid_value": - return t.values.length === 1 ? `Érvénytelen bemenet: a várt érték ${F(t.values[0])}` : `Érvénytelen opció: valamelyik érték várt ${k(t.values, "|")}`; + return t.values.length === 1 ? `Érvénytelen bemenet: a várt érték ${V(t.values[0])}` : `Érvénytelen opció: valamelyik érték várt ${w(t.values, "|")}`; case "too_big": { const i = t.inclusive ? "<=" : "<", a = n(t.origin); return a ? `Túl nagy: ${t.origin ?? "érték"} mérete túl nagy ${i}${t.maximum.toString()} ${a.unit ?? "elem"}` : `Túl nagy: a bemeneti érték ${t.origin ?? "érték"} túl nagy: ${i}${t.maximum.toString()}`; @@ -9024,7 +9458,7 @@ const f_ = () => { case "not_multiple_of": return `Érvénytelen szám: ${t.divisor} többszörösének kell lennie`; case "unrecognized_keys": - return `Ismeretlen kulcs${t.keys.length > 1 ? "s" : ""}: ${k(t.keys, ", ")}`; + return `Ismeretlen kulcs${t.keys.length > 1 ? "s" : ""}: ${w(t.keys, ", ")}`; case "invalid_key": return `Érvénytelen kulcs ${t.origin}`; case "invalid_union": @@ -9036,12 +9470,12 @@ const f_ = () => { } }; }; -function v_() { +function K_() { return { - localeError: f_() + localeError: G_() }; } -function ra(e, n, r) { +function aa(e, n, r) { return Math.abs(e) === 1 ? n : r; } function lt(e) { @@ -9050,7 +9484,7 @@ function lt(e) { const n = ["ա", "ե", "ը", "ի", "ո", "ու", "օ"], r = e[e.length - 1]; return e + (n.includes(r) ? "ն" : "ը"); } -const p_ = () => { +const W_ = () => { const e = { string: { unit: { @@ -9121,15 +9555,15 @@ const p_ = () => { return (t) => { switch (t.code) { case "invalid_type": { - const i = o[t.expected] ?? t.expected, a = R(t.input), l = o[a] ?? a; + const i = o[t.expected] ?? t.expected, a = J(t.input), l = o[a] ?? a; return /^[A-Z]/.test(t.expected) ? `Սխալ մուտքագրում․ սպասվում էր instanceof ${t.expected}, ստացվել է ${l}` : `Սխալ մուտքագրում․ սպասվում էր ${i}, ստացվել է ${l}`; } case "invalid_value": - return t.values.length === 1 ? `Սխալ մուտքագրում․ սպասվում էր ${F(t.values[1])}` : `Սխալ տարբերակ․ սպասվում էր հետևյալներից մեկը՝ ${k(t.values, "|")}`; + return t.values.length === 1 ? `Սխալ մուտքագրում․ սպասվում էր ${V(t.values[1])}` : `Սխալ տարբերակ․ սպասվում էր հետևյալներից մեկը՝ ${w(t.values, "|")}`; case "too_big": { const i = t.inclusive ? "<=" : "<", a = n(t.origin); if (a) { - const l = Number(t.maximum), s = ra(l, a.unit.one, a.unit.many); + const l = Number(t.maximum), s = aa(l, a.unit.one, a.unit.many); return `Չափազանց մեծ արժեք․ սպասվում է, որ ${lt(t.origin ?? "արժեք")} կունենա ${i}${t.maximum.toString()} ${s}`; } return `Չափազանց մեծ արժեք․ սպասվում է, որ ${lt(t.origin ?? "արժեք")} լինի ${i}${t.maximum.toString()}`; @@ -9137,7 +9571,7 @@ const p_ = () => { case "too_small": { const i = t.inclusive ? ">=" : ">", a = n(t.origin); if (a) { - const l = Number(t.minimum), s = ra(l, a.unit.one, a.unit.many); + const l = Number(t.minimum), s = aa(l, a.unit.one, a.unit.many); return `Չափազանց փոքր արժեք․ սպասվում է, որ ${lt(t.origin)} կունենա ${i}${t.minimum.toString()} ${s}`; } return `Չափազանց փոքր արժեք․ սպասվում է, որ ${lt(t.origin)} լինի ${i}${t.minimum.toString()}`; @@ -9149,7 +9583,7 @@ const p_ = () => { case "not_multiple_of": return `Սխալ թիվ․ պետք է բազմապատիկ լինի ${t.divisor}-ի`; case "unrecognized_keys": - return `Չճանաչված բանալի${t.keys.length > 1 ? "ներ" : ""}. ${k(t.keys, ", ")}`; + return `Չճանաչված բանալի${t.keys.length > 1 ? "ներ" : ""}. ${w(t.keys, ", ")}`; case "invalid_key": return `Սխալ բանալի ${lt(t.origin)}-ում`; case "invalid_union": @@ -9161,12 +9595,12 @@ const p_ = () => { } }; }; -function g_() { +function X_() { return { - localeError: p_() + localeError: W_() }; } -const h_ = () => { +const H_ = () => { const e = { string: { unit: "karakter", verb: "memiliki" }, file: { unit: "byte", verb: "memiliki" }, @@ -9211,11 +9645,11 @@ const h_ = () => { return (t) => { switch (t.code) { case "invalid_type": { - const i = o[t.expected] ?? t.expected, a = R(t.input), l = o[a] ?? a; + const i = o[t.expected] ?? t.expected, a = J(t.input), l = o[a] ?? a; return /^[A-Z]/.test(t.expected) ? `Input tidak valid: diharapkan instanceof ${t.expected}, diterima ${l}` : `Input tidak valid: diharapkan ${i}, diterima ${l}`; } case "invalid_value": - return t.values.length === 1 ? `Input tidak valid: diharapkan ${F(t.values[0])}` : `Pilihan tidak valid: diharapkan salah satu dari ${k(t.values, "|")}`; + return t.values.length === 1 ? `Input tidak valid: diharapkan ${V(t.values[0])}` : `Pilihan tidak valid: diharapkan salah satu dari ${w(t.values, "|")}`; case "too_big": { const i = t.inclusive ? "<=" : "<", a = n(t.origin); return a ? `Terlalu besar: diharapkan ${t.origin ?? "value"} memiliki ${i}${t.maximum.toString()} ${a.unit ?? "elemen"}` : `Terlalu besar: diharapkan ${t.origin ?? "value"} menjadi ${i}${t.maximum.toString()}`; @@ -9231,7 +9665,7 @@ const h_ = () => { case "not_multiple_of": return `Angka tidak valid: harus kelipatan dari ${t.divisor}`; case "unrecognized_keys": - return `Kunci tidak dikenali ${t.keys.length > 1 ? "s" : ""}: ${k(t.keys, ", ")}`; + return `Kunci tidak dikenali ${t.keys.length > 1 ? "s" : ""}: ${w(t.keys, ", ")}`; case "invalid_key": return `Kunci tidak valid di ${t.origin}`; case "invalid_union": @@ -9243,12 +9677,12 @@ const h_ = () => { } }; }; -function $_() { +function Y_() { return { - localeError: h_() + localeError: H_() }; } -const b_ = () => { +const Q_ = () => { const e = { string: { unit: "stafi", verb: "að hafa" }, file: { unit: "bæti", verb: "að hafa" }, @@ -9295,11 +9729,11 @@ const b_ = () => { return (t) => { switch (t.code) { case "invalid_type": { - const i = o[t.expected] ?? t.expected, a = R(t.input), l = o[a] ?? a; + const i = o[t.expected] ?? t.expected, a = J(t.input), l = o[a] ?? a; return /^[A-Z]/.test(t.expected) ? `Rangt gildi: Þú slóst inn ${l} þar sem á að vera instanceof ${t.expected}` : `Rangt gildi: Þú slóst inn ${l} þar sem á að vera ${i}`; } case "invalid_value": - return t.values.length === 1 ? `Rangt gildi: gert ráð fyrir ${F(t.values[0])}` : `Ógilt val: má vera eitt af eftirfarandi ${k(t.values, "|")}`; + return t.values.length === 1 ? `Rangt gildi: gert ráð fyrir ${V(t.values[0])}` : `Ógilt val: má vera eitt af eftirfarandi ${w(t.values, "|")}`; case "too_big": { const i = t.inclusive ? "<=" : "<", a = n(t.origin); return a ? `Of stórt: gert er ráð fyrir að ${t.origin ?? "gildi"} hafi ${i}${t.maximum.toString()} ${a.unit ?? "hluti"}` : `Of stórt: gert er ráð fyrir að ${t.origin ?? "gildi"} sé ${i}${t.maximum.toString()}`; @@ -9315,7 +9749,7 @@ const b_ = () => { case "not_multiple_of": return `Röng tala: verður að vera margfeldi af ${t.divisor}`; case "unrecognized_keys": - return `Óþekkt ${t.keys.length > 1 ? "ir lyklar" : "ur lykill"}: ${k(t.keys, ", ")}`; + return `Óþekkt ${t.keys.length > 1 ? "ir lyklar" : "ur lykill"}: ${w(t.keys, ", ")}`; case "invalid_key": return `Rangur lykill í ${t.origin}`; case "invalid_union": @@ -9327,12 +9761,12 @@ const b_ = () => { } }; }; -function __() { +function ey() { return { - localeError: b_() + localeError: Q_() }; } -const y_ = () => { +const ty = () => { const e = { string: { unit: "caratteri", verb: "avere" }, file: { unit: "byte", verb: "avere" }, @@ -9379,11 +9813,11 @@ const y_ = () => { return (t) => { switch (t.code) { case "invalid_type": { - const i = o[t.expected] ?? t.expected, a = R(t.input), l = o[a] ?? a; + const i = o[t.expected] ?? t.expected, a = J(t.input), l = o[a] ?? a; return /^[A-Z]/.test(t.expected) ? `Input non valido: atteso instanceof ${t.expected}, ricevuto ${l}` : `Input non valido: atteso ${i}, ricevuto ${l}`; } case "invalid_value": - return t.values.length === 1 ? `Input non valido: atteso ${F(t.values[0])}` : `Opzione non valida: atteso uno tra ${k(t.values, "|")}`; + return t.values.length === 1 ? `Input non valido: atteso ${V(t.values[0])}` : `Opzione non valida: atteso uno tra ${w(t.values, "|")}`; case "too_big": { const i = t.inclusive ? "<=" : "<", a = n(t.origin); return a ? `Troppo grande: ${t.origin ?? "valore"} deve avere ${i}${t.maximum.toString()} ${a.unit ?? "elementi"}` : `Troppo grande: ${t.origin ?? "valore"} deve essere ${i}${t.maximum.toString()}`; @@ -9399,7 +9833,7 @@ const y_ = () => { case "not_multiple_of": return `Numero non valido: deve essere un multiplo di ${t.divisor}`; case "unrecognized_keys": - return `Chiav${t.keys.length > 1 ? "i" : "e"} non riconosciut${t.keys.length > 1 ? "e" : "a"}: ${k(t.keys, ", ")}`; + return `Chiav${t.keys.length > 1 ? "i" : "e"} non riconosciut${t.keys.length > 1 ? "e" : "a"}: ${w(t.keys, ", ")}`; case "invalid_key": return `Chiave non valida in ${t.origin}`; case "invalid_union": @@ -9411,12 +9845,12 @@ const y_ = () => { } }; }; -function k_() { +function ny() { return { - localeError: y_() + localeError: ty() }; } -const S_ = () => { +const ry = () => { const e = { string: { unit: "文字", verb: "である" }, file: { unit: "バイト", verb: "である" }, @@ -9463,11 +9897,11 @@ const S_ = () => { return (t) => { switch (t.code) { case "invalid_type": { - const i = o[t.expected] ?? t.expected, a = R(t.input), l = o[a] ?? a; + const i = o[t.expected] ?? t.expected, a = J(t.input), l = o[a] ?? a; return /^[A-Z]/.test(t.expected) ? `無効な入力: instanceof ${t.expected}が期待されましたが、${l}が入力されました` : `無効な入力: ${i}が期待されましたが、${l}が入力されました`; } case "invalid_value": - return t.values.length === 1 ? `無効な入力: ${F(t.values[0])}が期待されました` : `無効な選択: ${k(t.values, "、")}のいずれかである必要があります`; + return t.values.length === 1 ? `無効な入力: ${V(t.values[0])}が期待されました` : `無効な選択: ${w(t.values, "、")}のいずれかである必要があります`; case "too_big": { const i = t.inclusive ? "以下である" : "より小さい", a = n(t.origin); return a ? `大きすぎる値: ${t.origin ?? "値"}は${t.maximum.toString()}${a.unit ?? "要素"}${i}必要があります` : `大きすぎる値: ${t.origin ?? "値"}は${t.maximum.toString()}${i}必要があります`; @@ -9483,7 +9917,7 @@ const S_ = () => { case "not_multiple_of": return `無効な数値: ${t.divisor}の倍数である必要があります`; case "unrecognized_keys": - return `認識されていないキー${t.keys.length > 1 ? "群" : ""}: ${k(t.keys, "、")}`; + return `認識されていないキー${t.keys.length > 1 ? "群" : ""}: ${w(t.keys, "、")}`; case "invalid_key": return `${t.origin}内の無効なキー`; case "invalid_union": @@ -9495,12 +9929,12 @@ const S_ = () => { } }; }; -function I_() { +function iy() { return { - localeError: S_() + localeError: ry() }; } -const w_ = () => { +const oy = () => { const e = { string: { unit: "სიმბოლო", verb: "უნდა შეიცავდეს" }, file: { unit: "ბაიტი", verb: "უნდა შეიცავდეს" }, @@ -9550,11 +9984,11 @@ const w_ = () => { return (t) => { switch (t.code) { case "invalid_type": { - const i = o[t.expected] ?? t.expected, a = R(t.input), l = o[a] ?? a; + const i = o[t.expected] ?? t.expected, a = J(t.input), l = o[a] ?? a; return /^[A-Z]/.test(t.expected) ? `არასწორი შეყვანა: მოსალოდნელი instanceof ${t.expected}, მიღებული ${l}` : `არასწორი შეყვანა: მოსალოდნელი ${i}, მიღებული ${l}`; } case "invalid_value": - return t.values.length === 1 ? `არასწორი შეყვანა: მოსალოდნელი ${F(t.values[0])}` : `არასწორი ვარიანტი: მოსალოდნელია ერთ-ერთი ${k(t.values, "|")}-დან`; + return t.values.length === 1 ? `არასწორი შეყვანა: მოსალოდნელი ${V(t.values[0])}` : `არასწორი ვარიანტი: მოსალოდნელია ერთ-ერთი ${w(t.values, "|")}-დან`; case "too_big": { const i = t.inclusive ? "<=" : "<", a = n(t.origin); return a ? `ზედმეტად დიდი: მოსალოდნელი ${t.origin ?? "მნიშვნელობა"} ${a.verb} ${i}${t.maximum.toString()} ${a.unit}` : `ზედმეტად დიდი: მოსალოდნელი ${t.origin ?? "მნიშვნელობა"} იყოს ${i}${t.maximum.toString()}`; @@ -9570,7 +10004,7 @@ const w_ = () => { case "not_multiple_of": return `არასწორი რიცხვი: უნდა იყოს ${t.divisor}-ის ჯერადი`; case "unrecognized_keys": - return `უცნობი გასაღებ${t.keys.length > 1 ? "ები" : "ი"}: ${k(t.keys, ", ")}`; + return `უცნობი გასაღებ${t.keys.length > 1 ? "ები" : "ი"}: ${w(t.keys, ", ")}`; case "invalid_key": return `არასწორი გასაღები ${t.origin}-ში`; case "invalid_union": @@ -9582,12 +10016,12 @@ const w_ = () => { } }; }; -function z_() { +function ay() { return { - localeError: w_() + localeError: oy() }; } -const D_ = () => { +const ly = () => { const e = { string: { unit: "តួអក្សរ", verb: "គួរមាន" }, file: { unit: "បៃ", verb: "គួរមាន" }, @@ -9635,11 +10069,11 @@ const D_ = () => { return (t) => { switch (t.code) { case "invalid_type": { - const i = o[t.expected] ?? t.expected, a = R(t.input), l = o[a] ?? a; + const i = o[t.expected] ?? t.expected, a = J(t.input), l = o[a] ?? a; return /^[A-Z]/.test(t.expected) ? `ទិន្នន័យបញ្ចូលមិនត្រឹមត្រូវ៖ ត្រូវការ instanceof ${t.expected} ប៉ុន្តែទទួលបាន ${l}` : `ទិន្នន័យបញ្ចូលមិនត្រឹមត្រូវ៖ ត្រូវការ ${i} ប៉ុន្តែទទួលបាន ${l}`; } case "invalid_value": - return t.values.length === 1 ? `ទិន្នន័យបញ្ចូលមិនត្រឹមត្រូវ៖ ត្រូវការ ${F(t.values[0])}` : `ជម្រើសមិនត្រឹមត្រូវ៖ ត្រូវជាមួយក្នុងចំណោម ${k(t.values, "|")}`; + return t.values.length === 1 ? `ទិន្នន័យបញ្ចូលមិនត្រឹមត្រូវ៖ ត្រូវការ ${V(t.values[0])}` : `ជម្រើសមិនត្រឹមត្រូវ៖ ត្រូវជាមួយក្នុងចំណោម ${w(t.values, "|")}`; case "too_big": { const i = t.inclusive ? "<=" : "<", a = n(t.origin); return a ? `ធំពេក៖ ត្រូវការ ${t.origin ?? "តម្លៃ"} ${i} ${t.maximum.toString()} ${a.unit ?? "ធាតុ"}` : `ធំពេក៖ ត្រូវការ ${t.origin ?? "តម្លៃ"} ${i} ${t.maximum.toString()}`; @@ -9655,7 +10089,7 @@ const D_ = () => { case "not_multiple_of": return `លេខមិនត្រឹមត្រូវ៖ ត្រូវតែជាពហុគុណនៃ ${t.divisor}`; case "unrecognized_keys": - return `រកឃើញសោមិនស្គាល់៖ ${k(t.keys, ", ")}`; + return `រកឃើញសោមិនស្គាល់៖ ${w(t.keys, ", ")}`; case "invalid_key": return `សោមិនត្រឹមត្រូវនៅក្នុង ${t.origin}`; case "invalid_union": @@ -9667,15 +10101,15 @@ const D_ = () => { } }; }; -function ks() { +function ws() { return { - localeError: D_() + localeError: ly() }; } -function j_() { - return ks(); +function uy() { + return ws(); } -const O_ = () => { +const sy = () => { const e = { string: { unit: "문자", verb: "to have" }, file: { unit: "바이트", verb: "to have" }, @@ -9720,11 +10154,11 @@ const O_ = () => { return (t) => { switch (t.code) { case "invalid_type": { - const i = o[t.expected] ?? t.expected, a = R(t.input), l = o[a] ?? a; + const i = o[t.expected] ?? t.expected, a = J(t.input), l = o[a] ?? a; return /^[A-Z]/.test(t.expected) ? `잘못된 입력: 예상 타입은 instanceof ${t.expected}, 받은 타입은 ${l}입니다` : `잘못된 입력: 예상 타입은 ${i}, 받은 타입은 ${l}입니다`; } case "invalid_value": - return t.values.length === 1 ? `잘못된 입력: 값은 ${F(t.values[0])} 이어야 합니다` : `잘못된 옵션: ${k(t.values, "또는 ")} 중 하나여야 합니다`; + return t.values.length === 1 ? `잘못된 입력: 값은 ${V(t.values[0])} 이어야 합니다` : `잘못된 옵션: ${w(t.values, "또는 ")} 중 하나여야 합니다`; case "too_big": { const i = t.inclusive ? "이하" : "미만", a = i === "미만" ? "이어야 합니다" : "여야 합니다", l = n(t.origin), s = (l == null ? void 0 : l.unit) ?? "요소"; return l ? `${t.origin ?? "값"}이 너무 큽니다: ${t.maximum.toString()}${s} ${i}${a}` : `${t.origin ?? "값"}이 너무 큽니다: ${t.maximum.toString()} ${i}${a}`; @@ -9740,7 +10174,7 @@ const O_ = () => { case "not_multiple_of": return `잘못된 숫자: ${t.divisor}의 배수여야 합니다`; case "unrecognized_keys": - return `인식할 수 없는 키: ${k(t.keys, ", ")}`; + return `인식할 수 없는 키: ${w(t.keys, ", ")}`; case "invalid_key": return `잘못된 키: ${t.origin}`; case "invalid_union": @@ -9752,17 +10186,17 @@ const O_ = () => { } }; }; -function x_() { +function cy() { return { - localeError: O_() + localeError: sy() }; } -const _t = (e) => e.charAt(0).toUpperCase() + e.slice(1); -function ia(e) { +const kt = (e) => e.charAt(0).toUpperCase() + e.slice(1); +function la(e) { const n = Math.abs(e), r = n % 10, o = n % 100; return o >= 11 && o <= 19 || r === 0 ? "many" : r === 1 ? "one" : "few"; } -const E_ = () => { +const dy = () => { const e = { string: { unit: { @@ -9885,24 +10319,24 @@ const E_ = () => { return (t) => { switch (t.code) { case "invalid_type": { - const i = o[t.expected] ?? t.expected, a = R(t.input), l = o[a] ?? a; + const i = o[t.expected] ?? t.expected, a = J(t.input), l = o[a] ?? a; return /^[A-Z]/.test(t.expected) ? `Gautas tipas ${l}, o tikėtasi - instanceof ${t.expected}` : `Gautas tipas ${l}, o tikėtasi - ${i}`; } case "invalid_value": - return t.values.length === 1 ? `Privalo būti ${F(t.values[0])}` : `Privalo būti vienas iš ${k(t.values, "|")} pasirinkimų`; + return t.values.length === 1 ? `Privalo būti ${V(t.values[0])}` : `Privalo būti vienas iš ${w(t.values, "|")} pasirinkimų`; case "too_big": { - const i = o[t.origin] ?? t.origin, a = n(t.origin, ia(Number(t.maximum)), t.inclusive ?? !1, "smaller"); + const i = o[t.origin] ?? t.origin, a = n(t.origin, la(Number(t.maximum)), t.inclusive ?? !1, "smaller"); if (a != null && a.verb) - return `${_t(i ?? t.origin ?? "reikšmė")} ${a.verb} ${t.maximum.toString()} ${a.unit ?? "elementų"}`; + return `${kt(i ?? t.origin ?? "reikšmė")} ${a.verb} ${t.maximum.toString()} ${a.unit ?? "elementų"}`; const l = t.inclusive ? "ne didesnis kaip" : "mažesnis kaip"; - return `${_t(i ?? t.origin ?? "reikšmė")} turi būti ${l} ${t.maximum.toString()} ${a == null ? void 0 : a.unit}`; + return `${kt(i ?? t.origin ?? "reikšmė")} turi būti ${l} ${t.maximum.toString()} ${a == null ? void 0 : a.unit}`; } case "too_small": { - const i = o[t.origin] ?? t.origin, a = n(t.origin, ia(Number(t.minimum)), t.inclusive ?? !1, "bigger"); + const i = o[t.origin] ?? t.origin, a = n(t.origin, la(Number(t.minimum)), t.inclusive ?? !1, "bigger"); if (a != null && a.verb) - return `${_t(i ?? t.origin ?? "reikšmė")} ${a.verb} ${t.minimum.toString()} ${a.unit ?? "elementų"}`; + return `${kt(i ?? t.origin ?? "reikšmė")} ${a.verb} ${t.minimum.toString()} ${a.unit ?? "elementų"}`; const l = t.inclusive ? "ne mažesnis kaip" : "didesnis kaip"; - return `${_t(i ?? t.origin ?? "reikšmė")} turi būti ${l} ${t.minimum.toString()} ${a == null ? void 0 : a.unit}`; + return `${kt(i ?? t.origin ?? "reikšmė")} turi būti ${l} ${t.minimum.toString()} ${a == null ? void 0 : a.unit}`; } case "invalid_format": { const i = t; @@ -9911,26 +10345,26 @@ const E_ = () => { case "not_multiple_of": return `Skaičius privalo būti ${t.divisor} kartotinis.`; case "unrecognized_keys": - return `Neatpažint${t.keys.length > 1 ? "i" : "as"} rakt${t.keys.length > 1 ? "ai" : "as"}: ${k(t.keys, ", ")}`; + return `Neatpažint${t.keys.length > 1 ? "i" : "as"} rakt${t.keys.length > 1 ? "ai" : "as"}: ${w(t.keys, ", ")}`; case "invalid_key": return "Rastas klaidingas raktas"; case "invalid_union": return "Klaidinga įvestis"; case "invalid_element": { const i = o[t.origin] ?? t.origin; - return `${_t(i ?? t.origin ?? "reikšmė")} turi klaidingą įvestį`; + return `${kt(i ?? t.origin ?? "reikšmė")} turi klaidingą įvestį`; } default: return "Klaidinga įvestis"; } }; }; -function U_() { +function my() { return { - localeError: E_() + localeError: dy() }; } -const T_ = () => { +const fy = () => { const e = { string: { unit: "знаци", verb: "да имаат" }, file: { unit: "бајти", verb: "да имаат" }, @@ -9977,11 +10411,11 @@ const T_ = () => { return (t) => { switch (t.code) { case "invalid_type": { - const i = o[t.expected] ?? t.expected, a = R(t.input), l = o[a] ?? a; + const i = o[t.expected] ?? t.expected, a = J(t.input), l = o[a] ?? a; return /^[A-Z]/.test(t.expected) ? `Грешен внес: се очекува instanceof ${t.expected}, примено ${l}` : `Грешен внес: се очекува ${i}, примено ${l}`; } case "invalid_value": - return t.values.length === 1 ? `Invalid input: expected ${F(t.values[0])}` : `Грешана опција: се очекува една ${k(t.values, "|")}`; + return t.values.length === 1 ? `Invalid input: expected ${V(t.values[0])}` : `Грешана опција: се очекува една ${w(t.values, "|")}`; case "too_big": { const i = t.inclusive ? "<=" : "<", a = n(t.origin); return a ? `Премногу голем: се очекува ${t.origin ?? "вредноста"} да има ${i}${t.maximum.toString()} ${a.unit ?? "елементи"}` : `Премногу голем: се очекува ${t.origin ?? "вредноста"} да биде ${i}${t.maximum.toString()}`; @@ -9997,7 +10431,7 @@ const T_ = () => { case "not_multiple_of": return `Грешен број: мора да биде делив со ${t.divisor}`; case "unrecognized_keys": - return `${t.keys.length > 1 ? "Непрепознаени клучеви" : "Непрепознаен клуч"}: ${k(t.keys, ", ")}`; + return `${t.keys.length > 1 ? "Непрепознаени клучеви" : "Непрепознаен клуч"}: ${w(t.keys, ", ")}`; case "invalid_key": return `Грешен клуч во ${t.origin}`; case "invalid_union": @@ -10009,12 +10443,12 @@ const T_ = () => { } }; }; -function P_() { +function py() { return { - localeError: T_() + localeError: fy() }; } -const N_ = () => { +const vy = () => { const e = { string: { unit: "aksara", verb: "mempunyai" }, file: { unit: "bait", verb: "mempunyai" }, @@ -10060,11 +10494,11 @@ const N_ = () => { return (t) => { switch (t.code) { case "invalid_type": { - const i = o[t.expected] ?? t.expected, a = R(t.input), l = o[a] ?? a; + const i = o[t.expected] ?? t.expected, a = J(t.input), l = o[a] ?? a; return /^[A-Z]/.test(t.expected) ? `Input tidak sah: dijangka instanceof ${t.expected}, diterima ${l}` : `Input tidak sah: dijangka ${i}, diterima ${l}`; } case "invalid_value": - return t.values.length === 1 ? `Input tidak sah: dijangka ${F(t.values[0])}` : `Pilihan tidak sah: dijangka salah satu daripada ${k(t.values, "|")}`; + return t.values.length === 1 ? `Input tidak sah: dijangka ${V(t.values[0])}` : `Pilihan tidak sah: dijangka salah satu daripada ${w(t.values, "|")}`; case "too_big": { const i = t.inclusive ? "<=" : "<", a = n(t.origin); return a ? `Terlalu besar: dijangka ${t.origin ?? "nilai"} ${a.verb} ${i}${t.maximum.toString()} ${a.unit ?? "elemen"}` : `Terlalu besar: dijangka ${t.origin ?? "nilai"} adalah ${i}${t.maximum.toString()}`; @@ -10080,7 +10514,7 @@ const N_ = () => { case "not_multiple_of": return `Nombor tidak sah: perlu gandaan ${t.divisor}`; case "unrecognized_keys": - return `Kunci tidak dikenali: ${k(t.keys, ", ")}`; + return `Kunci tidak dikenali: ${w(t.keys, ", ")}`; case "invalid_key": return `Kunci tidak sah dalam ${t.origin}`; case "invalid_union": @@ -10092,12 +10526,12 @@ const N_ = () => { } }; }; -function A_() { +function gy() { return { - localeError: N_() + localeError: vy() }; } -const C_ = () => { +const hy = () => { const e = { string: { unit: "tekens", verb: "heeft" }, file: { unit: "bytes", verb: "heeft" }, @@ -10143,11 +10577,11 @@ const C_ = () => { return (t) => { switch (t.code) { case "invalid_type": { - const i = o[t.expected] ?? t.expected, a = R(t.input), l = o[a] ?? a; + const i = o[t.expected] ?? t.expected, a = J(t.input), l = o[a] ?? a; return /^[A-Z]/.test(t.expected) ? `Ongeldige invoer: verwacht instanceof ${t.expected}, ontving ${l}` : `Ongeldige invoer: verwacht ${i}, ontving ${l}`; } case "invalid_value": - return t.values.length === 1 ? `Ongeldige invoer: verwacht ${F(t.values[0])}` : `Ongeldige optie: verwacht één van ${k(t.values, "|")}`; + return t.values.length === 1 ? `Ongeldige invoer: verwacht ${V(t.values[0])}` : `Ongeldige optie: verwacht één van ${w(t.values, "|")}`; case "too_big": { const i = t.inclusive ? "<=" : "<", a = n(t.origin), l = t.origin === "date" ? "laat" : t.origin === "string" ? "lang" : "groot"; return a ? `Te ${l}: verwacht dat ${t.origin ?? "waarde"} ${i}${t.maximum.toString()} ${a.unit ?? "elementen"} ${a.verb}` : `Te ${l}: verwacht dat ${t.origin ?? "waarde"} ${i}${t.maximum.toString()} is`; @@ -10163,7 +10597,7 @@ const C_ = () => { case "not_multiple_of": return `Ongeldig getal: moet een veelvoud van ${t.divisor} zijn`; case "unrecognized_keys": - return `Onbekende key${t.keys.length > 1 ? "s" : ""}: ${k(t.keys, ", ")}`; + return `Onbekende key${t.keys.length > 1 ? "s" : ""}: ${w(t.keys, ", ")}`; case "invalid_key": return `Ongeldige key in ${t.origin}`; case "invalid_union": @@ -10175,12 +10609,12 @@ const C_ = () => { } }; }; -function Z_() { +function by() { return { - localeError: C_() + localeError: hy() }; } -const M_ = () => { +const $y = () => { const e = { string: { unit: "tegn", verb: "å ha" }, file: { unit: "bytes", verb: "å ha" }, @@ -10227,11 +10661,11 @@ const M_ = () => { return (t) => { switch (t.code) { case "invalid_type": { - const i = o[t.expected] ?? t.expected, a = R(t.input), l = o[a] ?? a; + const i = o[t.expected] ?? t.expected, a = J(t.input), l = o[a] ?? a; return /^[A-Z]/.test(t.expected) ? `Ugyldig input: forventet instanceof ${t.expected}, fikk ${l}` : `Ugyldig input: forventet ${i}, fikk ${l}`; } case "invalid_value": - return t.values.length === 1 ? `Ugyldig verdi: forventet ${F(t.values[0])}` : `Ugyldig valg: forventet en av ${k(t.values, "|")}`; + return t.values.length === 1 ? `Ugyldig verdi: forventet ${V(t.values[0])}` : `Ugyldig valg: forventet en av ${w(t.values, "|")}`; case "too_big": { const i = t.inclusive ? "<=" : "<", a = n(t.origin); return a ? `For stor(t): forventet ${t.origin ?? "value"} til å ha ${i}${t.maximum.toString()} ${a.unit ?? "elementer"}` : `For stor(t): forventet ${t.origin ?? "value"} til å ha ${i}${t.maximum.toString()}`; @@ -10247,7 +10681,7 @@ const M_ = () => { case "not_multiple_of": return `Ugyldig tall: må være et multiplum av ${t.divisor}`; case "unrecognized_keys": - return `${t.keys.length > 1 ? "Ukjente nøkler" : "Ukjent nøkkel"}: ${k(t.keys, ", ")}`; + return `${t.keys.length > 1 ? "Ukjente nøkler" : "Ukjent nøkkel"}: ${w(t.keys, ", ")}`; case "invalid_key": return `Ugyldig nøkkel i ${t.origin}`; case "invalid_union": @@ -10259,12 +10693,12 @@ const M_ = () => { } }; }; -function L_() { +function _y() { return { - localeError: M_() + localeError: $y() }; } -const F_ = () => { +const yy = () => { const e = { string: { unit: "harf", verb: "olmalıdır" }, file: { unit: "bayt", verb: "olmalıdır" }, @@ -10312,11 +10746,11 @@ const F_ = () => { return (t) => { switch (t.code) { case "invalid_type": { - const i = o[t.expected] ?? t.expected, a = R(t.input), l = o[a] ?? a; + const i = o[t.expected] ?? t.expected, a = J(t.input), l = o[a] ?? a; return /^[A-Z]/.test(t.expected) ? `Fâsit giren: umulan instanceof ${t.expected}, alınan ${l}` : `Fâsit giren: umulan ${i}, alınan ${l}`; } case "invalid_value": - return t.values.length === 1 ? `Fâsit giren: umulan ${F(t.values[0])}` : `Fâsit tercih: mûteberler ${k(t.values, "|")}`; + return t.values.length === 1 ? `Fâsit giren: umulan ${V(t.values[0])}` : `Fâsit tercih: mûteberler ${w(t.values, "|")}`; case "too_big": { const i = t.inclusive ? "<=" : "<", a = n(t.origin); return a ? `Fazla büyük: ${t.origin ?? "value"}, ${i}${t.maximum.toString()} ${a.unit ?? "elements"} sahip olmalıydı.` : `Fazla büyük: ${t.origin ?? "value"}, ${i}${t.maximum.toString()} olmalıydı.`; @@ -10332,7 +10766,7 @@ const F_ = () => { case "not_multiple_of": return `Fâsit sayı: ${t.divisor} katı olmalıydı.`; case "unrecognized_keys": - return `Tanınmayan anahtar ${t.keys.length > 1 ? "s" : ""}: ${k(t.keys, ", ")}`; + return `Tanınmayan anahtar ${t.keys.length > 1 ? "s" : ""}: ${w(t.keys, ", ")}`; case "invalid_key": return `${t.origin} için tanınmayan anahtar var.`; case "invalid_union": @@ -10344,12 +10778,12 @@ const F_ = () => { } }; }; -function R_() { +function ky() { return { - localeError: F_() + localeError: yy() }; } -const B_ = () => { +const Sy = () => { const e = { string: { unit: "توکي", verb: "ولري" }, file: { unit: "بایټس", verb: "ولري" }, @@ -10396,11 +10830,11 @@ const B_ = () => { return (t) => { switch (t.code) { case "invalid_type": { - const i = o[t.expected] ?? t.expected, a = R(t.input), l = o[a] ?? a; + const i = o[t.expected] ?? t.expected, a = J(t.input), l = o[a] ?? a; return /^[A-Z]/.test(t.expected) ? `ناسم ورودي: باید instanceof ${t.expected} وای, مګر ${l} ترلاسه شو` : `ناسم ورودي: باید ${i} وای, مګر ${l} ترلاسه شو`; } case "invalid_value": - return t.values.length === 1 ? `ناسم ورودي: باید ${F(t.values[0])} وای` : `ناسم انتخاب: باید یو له ${k(t.values, "|")} څخه وای`; + return t.values.length === 1 ? `ناسم ورودي: باید ${V(t.values[0])} وای` : `ناسم انتخاب: باید یو له ${w(t.values, "|")} څخه وای`; case "too_big": { const i = t.inclusive ? "<=" : "<", a = n(t.origin); return a ? `ډیر لوی: ${t.origin ?? "ارزښت"} باید ${i}${t.maximum.toString()} ${a.unit ?? "عنصرونه"} ولري` : `ډیر لوی: ${t.origin ?? "ارزښت"} باید ${i}${t.maximum.toString()} وي`; @@ -10416,7 +10850,7 @@ const B_ = () => { case "not_multiple_of": return `ناسم عدد: باید د ${t.divisor} مضرب وي`; case "unrecognized_keys": - return `ناسم ${t.keys.length > 1 ? "کلیډونه" : "کلیډ"}: ${k(t.keys, ", ")}`; + return `ناسم ${t.keys.length > 1 ? "کلیډونه" : "کلیډ"}: ${w(t.keys, ", ")}`; case "invalid_key": return `ناسم کلیډ په ${t.origin} کې`; case "invalid_union": @@ -10428,12 +10862,12 @@ const B_ = () => { } }; }; -function V_() { +function wy() { return { - localeError: B_() + localeError: Sy() }; } -const J_ = () => { +const Iy = () => { const e = { string: { unit: "znaków", verb: "mieć" }, file: { unit: "bajtów", verb: "mieć" }, @@ -10480,11 +10914,11 @@ const J_ = () => { return (t) => { switch (t.code) { case "invalid_type": { - const i = o[t.expected] ?? t.expected, a = R(t.input), l = o[a] ?? a; + const i = o[t.expected] ?? t.expected, a = J(t.input), l = o[a] ?? a; return /^[A-Z]/.test(t.expected) ? `Nieprawidłowe dane wejściowe: oczekiwano instanceof ${t.expected}, otrzymano ${l}` : `Nieprawidłowe dane wejściowe: oczekiwano ${i}, otrzymano ${l}`; } case "invalid_value": - return t.values.length === 1 ? `Nieprawidłowe dane wejściowe: oczekiwano ${F(t.values[0])}` : `Nieprawidłowa opcja: oczekiwano jednej z wartości ${k(t.values, "|")}`; + return t.values.length === 1 ? `Nieprawidłowe dane wejściowe: oczekiwano ${V(t.values[0])}` : `Nieprawidłowa opcja: oczekiwano jednej z wartości ${w(t.values, "|")}`; case "too_big": { const i = t.inclusive ? "<=" : "<", a = n(t.origin); return a ? `Za duża wartość: oczekiwano, że ${t.origin ?? "wartość"} będzie mieć ${i}${t.maximum.toString()} ${a.unit ?? "elementów"}` : `Zbyt duż(y/a/e): oczekiwano, że ${t.origin ?? "wartość"} będzie wynosić ${i}${t.maximum.toString()}`; @@ -10500,7 +10934,7 @@ const J_ = () => { case "not_multiple_of": return `Nieprawidłowa liczba: musi być wielokrotnością ${t.divisor}`; case "unrecognized_keys": - return `Nierozpoznane klucze${t.keys.length > 1 ? "s" : ""}: ${k(t.keys, ", ")}`; + return `Nierozpoznane klucze${t.keys.length > 1 ? "s" : ""}: ${w(t.keys, ", ")}`; case "invalid_key": return `Nieprawidłowy klucz w ${t.origin}`; case "invalid_union": @@ -10512,12 +10946,12 @@ const J_ = () => { } }; }; -function q_() { +function zy() { return { - localeError: J_() + localeError: Iy() }; } -const G_ = () => { +const Dy = () => { const e = { string: { unit: "caracteres", verb: "ter" }, file: { unit: "bytes", verb: "ter" }, @@ -10564,11 +10998,11 @@ const G_ = () => { return (t) => { switch (t.code) { case "invalid_type": { - const i = o[t.expected] ?? t.expected, a = R(t.input), l = o[a] ?? a; + const i = o[t.expected] ?? t.expected, a = J(t.input), l = o[a] ?? a; return /^[A-Z]/.test(t.expected) ? `Tipo inválido: esperado instanceof ${t.expected}, recebido ${l}` : `Tipo inválido: esperado ${i}, recebido ${l}`; } case "invalid_value": - return t.values.length === 1 ? `Entrada inválida: esperado ${F(t.values[0])}` : `Opção inválida: esperada uma das ${k(t.values, "|")}`; + return t.values.length === 1 ? `Entrada inválida: esperado ${V(t.values[0])}` : `Opção inválida: esperada uma das ${w(t.values, "|")}`; case "too_big": { const i = t.inclusive ? "<=" : "<", a = n(t.origin); return a ? `Muito grande: esperado que ${t.origin ?? "valor"} tivesse ${i}${t.maximum.toString()} ${a.unit ?? "elementos"}` : `Muito grande: esperado que ${t.origin ?? "valor"} fosse ${i}${t.maximum.toString()}`; @@ -10584,7 +11018,7 @@ const G_ = () => { case "not_multiple_of": return `Número inválido: deve ser múltiplo de ${t.divisor}`; case "unrecognized_keys": - return `Chave${t.keys.length > 1 ? "s" : ""} desconhecida${t.keys.length > 1 ? "s" : ""}: ${k(t.keys, ", ")}`; + return `Chave${t.keys.length > 1 ? "s" : ""} desconhecida${t.keys.length > 1 ? "s" : ""}: ${w(t.keys, ", ")}`; case "invalid_key": return `Chave inválida em ${t.origin}`; case "invalid_union": @@ -10596,12 +11030,12 @@ const G_ = () => { } }; }; -function W_() { +function jy() { return { - localeError: G_() + localeError: Dy() }; } -const K_ = () => { +const Oy = () => { const e = { string: { unit: "caractere", verb: "să aibă" }, file: { unit: "octeți", verb: "să aibă" }, @@ -10661,11 +11095,11 @@ const K_ = () => { return (t) => { switch (t.code) { case "invalid_type": { - const i = o[t.expected] ?? t.expected, a = R(t.input), l = o[a] ?? a; + const i = o[t.expected] ?? t.expected, a = J(t.input), l = o[a] ?? a; return `Intrare invalidă: așteptat ${i}, primit ${l}`; } case "invalid_value": - return t.values.length === 1 ? `Intrare invalidă: așteptat ${F(t.values[0])}` : `Opțiune invalidă: așteptat una dintre ${k(t.values, "|")}`; + return t.values.length === 1 ? `Intrare invalidă: așteptat ${V(t.values[0])}` : `Opțiune invalidă: așteptat una dintre ${w(t.values, "|")}`; case "too_big": { const i = t.inclusive ? "<=" : "<", a = n(t.origin); return a ? `Prea mare: așteptat ca ${t.origin ?? "valoarea"} ${a.verb} ${i}${t.maximum.toString()} ${a.unit ?? "elemente"}` : `Prea mare: așteptat ca ${t.origin ?? "valoarea"} să fie ${i}${t.maximum.toString()}`; @@ -10681,7 +11115,7 @@ const K_ = () => { case "not_multiple_of": return `Număr invalid: trebuie să fie multiplu de ${t.divisor}`; case "unrecognized_keys": - return `Chei nerecunoscute: ${k(t.keys, ", ")}`; + return `Chei nerecunoscute: ${w(t.keys, ", ")}`; case "invalid_key": return `Cheie invalidă în ${t.origin}`; case "invalid_union": @@ -10693,16 +11127,16 @@ const K_ = () => { } }; }; -function X_() { +function Ey() { return { - localeError: K_() + localeError: Oy() }; } -function oa(e, n, r, o) { +function ua(e, n, r, o) { const t = Math.abs(e), i = t % 10, a = t % 100; return a >= 11 && a <= 19 ? o : i === 1 ? n : i >= 2 && i <= 4 ? r : o; } -const Y_ = () => { +const xy = () => { const e = { string: { unit: { @@ -10777,15 +11211,15 @@ const Y_ = () => { return (t) => { switch (t.code) { case "invalid_type": { - const i = o[t.expected] ?? t.expected, a = R(t.input), l = o[a] ?? a; + const i = o[t.expected] ?? t.expected, a = J(t.input), l = o[a] ?? a; return /^[A-Z]/.test(t.expected) ? `Неверный ввод: ожидалось instanceof ${t.expected}, получено ${l}` : `Неверный ввод: ожидалось ${i}, получено ${l}`; } case "invalid_value": - return t.values.length === 1 ? `Неверный ввод: ожидалось ${F(t.values[0])}` : `Неверный вариант: ожидалось одно из ${k(t.values, "|")}`; + return t.values.length === 1 ? `Неверный ввод: ожидалось ${V(t.values[0])}` : `Неверный вариант: ожидалось одно из ${w(t.values, "|")}`; case "too_big": { const i = t.inclusive ? "<=" : "<", a = n(t.origin); if (a) { - const l = Number(t.maximum), s = oa(l, a.unit.one, a.unit.few, a.unit.many); + const l = Number(t.maximum), s = ua(l, a.unit.one, a.unit.few, a.unit.many); return `Слишком большое значение: ожидалось, что ${t.origin ?? "значение"} будет иметь ${i}${t.maximum.toString()} ${s}`; } return `Слишком большое значение: ожидалось, что ${t.origin ?? "значение"} будет ${i}${t.maximum.toString()}`; @@ -10793,7 +11227,7 @@ const Y_ = () => { case "too_small": { const i = t.inclusive ? ">=" : ">", a = n(t.origin); if (a) { - const l = Number(t.minimum), s = oa(l, a.unit.one, a.unit.few, a.unit.many); + const l = Number(t.minimum), s = ua(l, a.unit.one, a.unit.few, a.unit.many); return `Слишком маленькое значение: ожидалось, что ${t.origin} будет иметь ${i}${t.minimum.toString()} ${s}`; } return `Слишком маленькое значение: ожидалось, что ${t.origin} будет ${i}${t.minimum.toString()}`; @@ -10805,7 +11239,7 @@ const Y_ = () => { case "not_multiple_of": return `Неверное число: должно быть кратным ${t.divisor}`; case "unrecognized_keys": - return `Нераспознанн${t.keys.length > 1 ? "ые" : "ый"} ключ${t.keys.length > 1 ? "и" : ""}: ${k(t.keys, ", ")}`; + return `Нераспознанн${t.keys.length > 1 ? "ые" : "ый"} ключ${t.keys.length > 1 ? "и" : ""}: ${w(t.keys, ", ")}`; case "invalid_key": return `Неверный ключ в ${t.origin}`; case "invalid_union": @@ -10817,12 +11251,12 @@ const Y_ = () => { } }; }; -function H_() { +function Uy() { return { - localeError: Y_() + localeError: xy() }; } -const Q_ = () => { +const Ty = () => { const e = { string: { unit: "znakov", verb: "imeti" }, file: { unit: "bajtov", verb: "imeti" }, @@ -10869,11 +11303,11 @@ const Q_ = () => { return (t) => { switch (t.code) { case "invalid_type": { - const i = o[t.expected] ?? t.expected, a = R(t.input), l = o[a] ?? a; + const i = o[t.expected] ?? t.expected, a = J(t.input), l = o[a] ?? a; return /^[A-Z]/.test(t.expected) ? `Neveljaven vnos: pričakovano instanceof ${t.expected}, prejeto ${l}` : `Neveljaven vnos: pričakovano ${i}, prejeto ${l}`; } case "invalid_value": - return t.values.length === 1 ? `Neveljaven vnos: pričakovano ${F(t.values[0])}` : `Neveljavna možnost: pričakovano eno izmed ${k(t.values, "|")}`; + return t.values.length === 1 ? `Neveljaven vnos: pričakovano ${V(t.values[0])}` : `Neveljavna možnost: pričakovano eno izmed ${w(t.values, "|")}`; case "too_big": { const i = t.inclusive ? "<=" : "<", a = n(t.origin); return a ? `Preveliko: pričakovano, da bo ${t.origin ?? "vrednost"} imelo ${i}${t.maximum.toString()} ${a.unit ?? "elementov"}` : `Preveliko: pričakovano, da bo ${t.origin ?? "vrednost"} ${i}${t.maximum.toString()}`; @@ -10889,7 +11323,7 @@ const Q_ = () => { case "not_multiple_of": return `Neveljavno število: mora biti večkratnik ${t.divisor}`; case "unrecognized_keys": - return `Neprepoznan${t.keys.length > 1 ? "i ključi" : " ključ"}: ${k(t.keys, ", ")}`; + return `Neprepoznan${t.keys.length > 1 ? "i ključi" : " ključ"}: ${w(t.keys, ", ")}`; case "invalid_key": return `Neveljaven ključ v ${t.origin}`; case "invalid_union": @@ -10901,12 +11335,12 @@ const Q_ = () => { } }; }; -function ey() { +function Ny() { return { - localeError: Q_() + localeError: Ty() }; } -const ty = () => { +const Py = () => { const e = { string: { unit: "tecken", verb: "att ha" }, file: { unit: "bytes", verb: "att ha" }, @@ -10953,11 +11387,11 @@ const ty = () => { return (t) => { switch (t.code) { case "invalid_type": { - const i = o[t.expected] ?? t.expected, a = R(t.input), l = o[a] ?? a; + const i = o[t.expected] ?? t.expected, a = J(t.input), l = o[a] ?? a; return /^[A-Z]/.test(t.expected) ? `Ogiltig inmatning: förväntat instanceof ${t.expected}, fick ${l}` : `Ogiltig inmatning: förväntat ${i}, fick ${l}`; } case "invalid_value": - return t.values.length === 1 ? `Ogiltig inmatning: förväntat ${F(t.values[0])}` : `Ogiltigt val: förväntade en av ${k(t.values, "|")}`; + return t.values.length === 1 ? `Ogiltig inmatning: förväntat ${V(t.values[0])}` : `Ogiltigt val: förväntade en av ${w(t.values, "|")}`; case "too_big": { const i = t.inclusive ? "<=" : "<", a = n(t.origin); return a ? `För stor(t): förväntade ${t.origin ?? "värdet"} att ha ${i}${t.maximum.toString()} ${a.unit ?? "element"}` : `För stor(t): förväntat ${t.origin ?? "värdet"} att ha ${i}${t.maximum.toString()}`; @@ -10973,7 +11407,7 @@ const ty = () => { case "not_multiple_of": return `Ogiltigt tal: måste vara en multipel av ${t.divisor}`; case "unrecognized_keys": - return `${t.keys.length > 1 ? "Okända nycklar" : "Okänd nyckel"}: ${k(t.keys, ", ")}`; + return `${t.keys.length > 1 ? "Okända nycklar" : "Okänd nyckel"}: ${w(t.keys, ", ")}`; case "invalid_key": return `Ogiltig nyckel i ${t.origin ?? "värdet"}`; case "invalid_union": @@ -10985,12 +11419,12 @@ const ty = () => { } }; }; -function ny() { +function Ay() { return { - localeError: ty() + localeError: Py() }; } -const ry = () => { +const Cy = () => { const e = { string: { unit: "எழுத்துக்கள்", verb: "கொண்டிருக்க வேண்டும்" }, file: { unit: "பைட்டுகள்", verb: "கொண்டிருக்க வேண்டும்" }, @@ -11038,11 +11472,11 @@ const ry = () => { return (t) => { switch (t.code) { case "invalid_type": { - const i = o[t.expected] ?? t.expected, a = R(t.input), l = o[a] ?? a; + const i = o[t.expected] ?? t.expected, a = J(t.input), l = o[a] ?? a; return /^[A-Z]/.test(t.expected) ? `தவறான உள்ளீடு: எதிர்பார்க்கப்பட்டது instanceof ${t.expected}, பெறப்பட்டது ${l}` : `தவறான உள்ளீடு: எதிர்பார்க்கப்பட்டது ${i}, பெறப்பட்டது ${l}`; } case "invalid_value": - return t.values.length === 1 ? `தவறான உள்ளீடு: எதிர்பார்க்கப்பட்டது ${F(t.values[0])}` : `தவறான விருப்பம்: எதிர்பார்க்கப்பட்டது ${k(t.values, "|")} இல் ஒன்று`; + return t.values.length === 1 ? `தவறான உள்ளீடு: எதிர்பார்க்கப்பட்டது ${V(t.values[0])}` : `தவறான விருப்பம்: எதிர்பார்க்கப்பட்டது ${w(t.values, "|")} இல் ஒன்று`; case "too_big": { const i = t.inclusive ? "<=" : "<", a = n(t.origin); return a ? `மிக பெரியது: எதிர்பார்க்கப்பட்டது ${t.origin ?? "மதிப்பு"} ${i}${t.maximum.toString()} ${a.unit ?? "உறுப்புகள்"} ஆக இருக்க வேண்டும்` : `மிக பெரியது: எதிர்பார்க்கப்பட்டது ${t.origin ?? "மதிப்பு"} ${i}${t.maximum.toString()} ஆக இருக்க வேண்டும்`; @@ -11058,7 +11492,7 @@ const ry = () => { case "not_multiple_of": return `தவறான எண்: ${t.divisor} இன் பலமாக இருக்க வேண்டும்`; case "unrecognized_keys": - return `அடையாளம் தெரியாத விசை${t.keys.length > 1 ? "கள்" : ""}: ${k(t.keys, ", ")}`; + return `அடையாளம் தெரியாத விசை${t.keys.length > 1 ? "கள்" : ""}: ${w(t.keys, ", ")}`; case "invalid_key": return `${t.origin} இல் தவறான விசை`; case "invalid_union": @@ -11070,12 +11504,12 @@ const ry = () => { } }; }; -function iy() { +function Zy() { return { - localeError: ry() + localeError: Cy() }; } -const oy = () => { +const My = () => { const e = { string: { unit: "ตัวอักษร", verb: "ควรมี" }, file: { unit: "ไบต์", verb: "ควรมี" }, @@ -11123,11 +11557,11 @@ const oy = () => { return (t) => { switch (t.code) { case "invalid_type": { - const i = o[t.expected] ?? t.expected, a = R(t.input), l = o[a] ?? a; + const i = o[t.expected] ?? t.expected, a = J(t.input), l = o[a] ?? a; return /^[A-Z]/.test(t.expected) ? `ประเภทข้อมูลไม่ถูกต้อง: ควรเป็น instanceof ${t.expected} แต่ได้รับ ${l}` : `ประเภทข้อมูลไม่ถูกต้อง: ควรเป็น ${i} แต่ได้รับ ${l}`; } case "invalid_value": - return t.values.length === 1 ? `ค่าไม่ถูกต้อง: ควรเป็น ${F(t.values[0])}` : `ตัวเลือกไม่ถูกต้อง: ควรเป็นหนึ่งใน ${k(t.values, "|")}`; + return t.values.length === 1 ? `ค่าไม่ถูกต้อง: ควรเป็น ${V(t.values[0])}` : `ตัวเลือกไม่ถูกต้อง: ควรเป็นหนึ่งใน ${w(t.values, "|")}`; case "too_big": { const i = t.inclusive ? "ไม่เกิน" : "น้อยกว่า", a = n(t.origin); return a ? `เกินกำหนด: ${t.origin ?? "ค่า"} ควรมี${i} ${t.maximum.toString()} ${a.unit ?? "รายการ"}` : `เกินกำหนด: ${t.origin ?? "ค่า"} ควรมี${i} ${t.maximum.toString()}`; @@ -11143,7 +11577,7 @@ const oy = () => { case "not_multiple_of": return `ตัวเลขไม่ถูกต้อง: ต้องเป็นจำนวนที่หารด้วย ${t.divisor} ได้ลงตัว`; case "unrecognized_keys": - return `พบคีย์ที่ไม่รู้จัก: ${k(t.keys, ", ")}`; + return `พบคีย์ที่ไม่รู้จัก: ${w(t.keys, ", ")}`; case "invalid_key": return `คีย์ไม่ถูกต้องใน ${t.origin}`; case "invalid_union": @@ -11155,12 +11589,12 @@ const oy = () => { } }; }; -function ay() { +function Ly() { return { - localeError: oy() + localeError: My() }; } -const ly = () => { +const Fy = () => { const e = { string: { unit: "karakter", verb: "olmalı" }, file: { unit: "bayt", verb: "olmalı" }, @@ -11205,11 +11639,11 @@ const ly = () => { return (t) => { switch (t.code) { case "invalid_type": { - const i = o[t.expected] ?? t.expected, a = R(t.input), l = o[a] ?? a; + const i = o[t.expected] ?? t.expected, a = J(t.input), l = o[a] ?? a; return /^[A-Z]/.test(t.expected) ? `Geçersiz değer: beklenen instanceof ${t.expected}, alınan ${l}` : `Geçersiz değer: beklenen ${i}, alınan ${l}`; } case "invalid_value": - return t.values.length === 1 ? `Geçersiz değer: beklenen ${F(t.values[0])}` : `Geçersiz seçenek: aşağıdakilerden biri olmalı: ${k(t.values, "|")}`; + return t.values.length === 1 ? `Geçersiz değer: beklenen ${V(t.values[0])}` : `Geçersiz seçenek: aşağıdakilerden biri olmalı: ${w(t.values, "|")}`; case "too_big": { const i = t.inclusive ? "<=" : "<", a = n(t.origin); return a ? `Çok büyük: beklenen ${t.origin ?? "değer"} ${i}${t.maximum.toString()} ${a.unit ?? "öğe"}` : `Çok büyük: beklenen ${t.origin ?? "değer"} ${i}${t.maximum.toString()}`; @@ -11225,7 +11659,7 @@ const ly = () => { case "not_multiple_of": return `Geçersiz sayı: ${t.divisor} ile tam bölünebilmeli`; case "unrecognized_keys": - return `Tanınmayan anahtar${t.keys.length > 1 ? "lar" : ""}: ${k(t.keys, ", ")}`; + return `Tanınmayan anahtar${t.keys.length > 1 ? "lar" : ""}: ${w(t.keys, ", ")}`; case "invalid_key": return `${t.origin} içinde geçersiz anahtar`; case "invalid_union": @@ -11237,12 +11671,12 @@ const ly = () => { } }; }; -function uy() { +function Ry() { return { - localeError: ly() + localeError: Fy() }; } -const sy = () => { +const By = () => { const e = { string: { unit: "символів", verb: "матиме" }, file: { unit: "байтів", verb: "матиме" }, @@ -11289,11 +11723,11 @@ const sy = () => { return (t) => { switch (t.code) { case "invalid_type": { - const i = o[t.expected] ?? t.expected, a = R(t.input), l = o[a] ?? a; + const i = o[t.expected] ?? t.expected, a = J(t.input), l = o[a] ?? a; return /^[A-Z]/.test(t.expected) ? `Неправильні вхідні дані: очікується instanceof ${t.expected}, отримано ${l}` : `Неправильні вхідні дані: очікується ${i}, отримано ${l}`; } case "invalid_value": - return t.values.length === 1 ? `Неправильні вхідні дані: очікується ${F(t.values[0])}` : `Неправильна опція: очікується одне з ${k(t.values, "|")}`; + return t.values.length === 1 ? `Неправильні вхідні дані: очікується ${V(t.values[0])}` : `Неправильна опція: очікується одне з ${w(t.values, "|")}`; case "too_big": { const i = t.inclusive ? "<=" : "<", a = n(t.origin); return a ? `Занадто велике: очікується, що ${t.origin ?? "значення"} ${a.verb} ${i}${t.maximum.toString()} ${a.unit ?? "елементів"}` : `Занадто велике: очікується, що ${t.origin ?? "значення"} буде ${i}${t.maximum.toString()}`; @@ -11309,7 +11743,7 @@ const sy = () => { case "not_multiple_of": return `Неправильне число: повинно бути кратним ${t.divisor}`; case "unrecognized_keys": - return `Нерозпізнаний ключ${t.keys.length > 1 ? "і" : ""}: ${k(t.keys, ", ")}`; + return `Нерозпізнаний ключ${t.keys.length > 1 ? "і" : ""}: ${w(t.keys, ", ")}`; case "invalid_key": return `Неправильний ключ у ${t.origin}`; case "invalid_union": @@ -11321,15 +11755,15 @@ const sy = () => { } }; }; -function Ss() { +function Is() { return { - localeError: sy() + localeError: By() }; } -function cy() { - return Ss(); +function Vy() { + return Is(); } -const dy = () => { +const Jy = () => { const e = { string: { unit: "حروف", verb: "ہونا" }, file: { unit: "بائٹس", verb: "ہونا" }, @@ -11377,11 +11811,11 @@ const dy = () => { return (t) => { switch (t.code) { case "invalid_type": { - const i = o[t.expected] ?? t.expected, a = R(t.input), l = o[a] ?? a; + const i = o[t.expected] ?? t.expected, a = J(t.input), l = o[a] ?? a; return /^[A-Z]/.test(t.expected) ? `غلط ان پٹ: instanceof ${t.expected} متوقع تھا، ${l} موصول ہوا` : `غلط ان پٹ: ${i} متوقع تھا، ${l} موصول ہوا`; } case "invalid_value": - return t.values.length === 1 ? `غلط ان پٹ: ${F(t.values[0])} متوقع تھا` : `غلط آپشن: ${k(t.values, "|")} میں سے ایک متوقع تھا`; + return t.values.length === 1 ? `غلط ان پٹ: ${V(t.values[0])} متوقع تھا` : `غلط آپشن: ${w(t.values, "|")} میں سے ایک متوقع تھا`; case "too_big": { const i = t.inclusive ? "<=" : "<", a = n(t.origin); return a ? `بہت بڑا: ${t.origin ?? "ویلیو"} کے ${i}${t.maximum.toString()} ${a.unit ?? "عناصر"} ہونے متوقع تھے` : `بہت بڑا: ${t.origin ?? "ویلیو"} کا ${i}${t.maximum.toString()} ہونا متوقع تھا`; @@ -11397,7 +11831,7 @@ const dy = () => { case "not_multiple_of": return `غلط نمبر: ${t.divisor} کا مضاعف ہونا چاہیے`; case "unrecognized_keys": - return `غیر تسلیم شدہ کی${t.keys.length > 1 ? "ز" : ""}: ${k(t.keys, "، ")}`; + return `غیر تسلیم شدہ کی${t.keys.length > 1 ? "ز" : ""}: ${w(t.keys, "، ")}`; case "invalid_key": return `${t.origin} میں غلط کی`; case "invalid_union": @@ -11409,12 +11843,12 @@ const dy = () => { } }; }; -function my() { +function qy() { return { - localeError: dy() + localeError: Jy() }; } -const fy = () => { +const Gy = () => { const e = { string: { unit: "belgi", verb: "bo‘lishi kerak" }, file: { unit: "bayt", verb: "bo‘lishi kerak" }, @@ -11463,11 +11897,11 @@ const fy = () => { return (t) => { switch (t.code) { case "invalid_type": { - const i = o[t.expected] ?? t.expected, a = R(t.input), l = o[a] ?? a; + const i = o[t.expected] ?? t.expected, a = J(t.input), l = o[a] ?? a; return /^[A-Z]/.test(t.expected) ? `Noto‘g‘ri kirish: kutilgan instanceof ${t.expected}, qabul qilingan ${l}` : `Noto‘g‘ri kirish: kutilgan ${i}, qabul qilingan ${l}`; } case "invalid_value": - return t.values.length === 1 ? `Noto‘g‘ri kirish: kutilgan ${F(t.values[0])}` : `Noto‘g‘ri variant: quyidagilardan biri kutilgan ${k(t.values, "|")}`; + return t.values.length === 1 ? `Noto‘g‘ri kirish: kutilgan ${V(t.values[0])}` : `Noto‘g‘ri variant: quyidagilardan biri kutilgan ${w(t.values, "|")}`; case "too_big": { const i = t.inclusive ? "<=" : "<", a = n(t.origin); return a ? `Juda katta: kutilgan ${t.origin ?? "qiymat"} ${i}${t.maximum.toString()} ${a.unit} ${a.verb}` : `Juda katta: kutilgan ${t.origin ?? "qiymat"} ${i}${t.maximum.toString()}`; @@ -11483,7 +11917,7 @@ const fy = () => { case "not_multiple_of": return `Noto‘g‘ri raqam: ${t.divisor} ning karralisi bo‘lishi kerak`; case "unrecognized_keys": - return `Noma’lum kalit${t.keys.length > 1 ? "lar" : ""}: ${k(t.keys, ", ")}`; + return `Noma’lum kalit${t.keys.length > 1 ? "lar" : ""}: ${w(t.keys, ", ")}`; case "invalid_key": return `${t.origin} dagi kalit noto‘g‘ri`; case "invalid_union": @@ -11495,12 +11929,12 @@ const fy = () => { } }; }; -function vy() { +function Ky() { return { - localeError: fy() + localeError: Gy() }; } -const py = () => { +const Wy = () => { const e = { string: { unit: "ký tự", verb: "có" }, file: { unit: "byte", verb: "có" }, @@ -11547,11 +11981,11 @@ const py = () => { return (t) => { switch (t.code) { case "invalid_type": { - const i = o[t.expected] ?? t.expected, a = R(t.input), l = o[a] ?? a; + const i = o[t.expected] ?? t.expected, a = J(t.input), l = o[a] ?? a; return /^[A-Z]/.test(t.expected) ? `Đầu vào không hợp lệ: mong đợi instanceof ${t.expected}, nhận được ${l}` : `Đầu vào không hợp lệ: mong đợi ${i}, nhận được ${l}`; } case "invalid_value": - return t.values.length === 1 ? `Đầu vào không hợp lệ: mong đợi ${F(t.values[0])}` : `Tùy chọn không hợp lệ: mong đợi một trong các giá trị ${k(t.values, "|")}`; + return t.values.length === 1 ? `Đầu vào không hợp lệ: mong đợi ${V(t.values[0])}` : `Tùy chọn không hợp lệ: mong đợi một trong các giá trị ${w(t.values, "|")}`; case "too_big": { const i = t.inclusive ? "<=" : "<", a = n(t.origin); return a ? `Quá lớn: mong đợi ${t.origin ?? "giá trị"} ${a.verb} ${i}${t.maximum.toString()} ${a.unit ?? "phần tử"}` : `Quá lớn: mong đợi ${t.origin ?? "giá trị"} ${i}${t.maximum.toString()}`; @@ -11567,7 +12001,7 @@ const py = () => { case "not_multiple_of": return `Số không hợp lệ: phải là bội số của ${t.divisor}`; case "unrecognized_keys": - return `Khóa không được nhận dạng: ${k(t.keys, ", ")}`; + return `Khóa không được nhận dạng: ${w(t.keys, ", ")}`; case "invalid_key": return `Khóa không hợp lệ trong ${t.origin}`; case "invalid_union": @@ -11579,12 +12013,12 @@ const py = () => { } }; }; -function gy() { +function Xy() { return { - localeError: py() + localeError: Wy() }; } -const hy = () => { +const Hy = () => { const e = { string: { unit: "字符", verb: "包含" }, file: { unit: "字节", verb: "包含" }, @@ -11632,11 +12066,11 @@ const hy = () => { return (t) => { switch (t.code) { case "invalid_type": { - const i = o[t.expected] ?? t.expected, a = R(t.input), l = o[a] ?? a; + const i = o[t.expected] ?? t.expected, a = J(t.input), l = o[a] ?? a; return /^[A-Z]/.test(t.expected) ? `无效输入:期望 instanceof ${t.expected},实际接收 ${l}` : `无效输入:期望 ${i},实际接收 ${l}`; } case "invalid_value": - return t.values.length === 1 ? `无效输入:期望 ${F(t.values[0])}` : `无效选项:期望以下之一 ${k(t.values, "|")}`; + return t.values.length === 1 ? `无效输入:期望 ${V(t.values[0])}` : `无效选项:期望以下之一 ${w(t.values, "|")}`; case "too_big": { const i = t.inclusive ? "<=" : "<", a = n(t.origin); return a ? `数值过大:期望 ${t.origin ?? "值"} ${i}${t.maximum.toString()} ${a.unit ?? "个元素"}` : `数值过大:期望 ${t.origin ?? "值"} ${i}${t.maximum.toString()}`; @@ -11652,7 +12086,7 @@ const hy = () => { case "not_multiple_of": return `无效数字:必须是 ${t.divisor} 的倍数`; case "unrecognized_keys": - return `出现未知的键(key): ${k(t.keys, ", ")}`; + return `出现未知的键(key): ${w(t.keys, ", ")}`; case "invalid_key": return `${t.origin} 中的键(key)无效`; case "invalid_union": @@ -11664,12 +12098,12 @@ const hy = () => { } }; }; -function $y() { +function Yy() { return { - localeError: hy() + localeError: Hy() }; } -const by = () => { +const Qy = () => { const e = { string: { unit: "字元", verb: "擁有" }, file: { unit: "位元組", verb: "擁有" }, @@ -11714,11 +12148,11 @@ const by = () => { return (t) => { switch (t.code) { case "invalid_type": { - const i = o[t.expected] ?? t.expected, a = R(t.input), l = o[a] ?? a; + const i = o[t.expected] ?? t.expected, a = J(t.input), l = o[a] ?? a; return /^[A-Z]/.test(t.expected) ? `無效的輸入值:預期為 instanceof ${t.expected},但收到 ${l}` : `無效的輸入值:預期為 ${i},但收到 ${l}`; } case "invalid_value": - return t.values.length === 1 ? `無效的輸入值:預期為 ${F(t.values[0])}` : `無效的選項:預期為以下其中之一 ${k(t.values, "|")}`; + return t.values.length === 1 ? `無效的輸入值:預期為 ${V(t.values[0])}` : `無效的選項:預期為以下其中之一 ${w(t.values, "|")}`; case "too_big": { const i = t.inclusive ? "<=" : "<", a = n(t.origin); return a ? `數值過大:預期 ${t.origin ?? "值"} 應為 ${i}${t.maximum.toString()} ${a.unit ?? "個元素"}` : `數值過大:預期 ${t.origin ?? "值"} 應為 ${i}${t.maximum.toString()}`; @@ -11734,7 +12168,7 @@ const by = () => { case "not_multiple_of": return `無效的數字:必須為 ${t.divisor} 的倍數`; case "unrecognized_keys": - return `無法識別的鍵值${t.keys.length > 1 ? "們" : ""}:${k(t.keys, "、")}`; + return `無法識別的鍵值${t.keys.length > 1 ? "們" : ""}:${w(t.keys, "、")}`; case "invalid_key": return `${t.origin} 中有無效的鍵值`; case "invalid_union": @@ -11746,12 +12180,12 @@ const by = () => { } }; }; -function _y() { +function ek() { return { - localeError: by() + localeError: Qy() }; } -const yy = () => { +const tk = () => { const e = { string: { unit: "àmi", verb: "ní" }, file: { unit: "bytes", verb: "ní" }, @@ -11798,11 +12232,11 @@ const yy = () => { return (t) => { switch (t.code) { case "invalid_type": { - const i = o[t.expected] ?? t.expected, a = R(t.input), l = o[a] ?? a; + const i = o[t.expected] ?? t.expected, a = J(t.input), l = o[a] ?? a; return /^[A-Z]/.test(t.expected) ? `Ìbáwọlé aṣìṣe: a ní láti fi instanceof ${t.expected}, àmọ̀ a rí ${l}` : `Ìbáwọlé aṣìṣe: a ní láti fi ${i}, àmọ̀ a rí ${l}`; } case "invalid_value": - return t.values.length === 1 ? `Ìbáwọlé aṣìṣe: a ní láti fi ${F(t.values[0])}` : `Àṣàyàn aṣìṣe: yan ọ̀kan lára ${k(t.values, "|")}`; + return t.values.length === 1 ? `Ìbáwọlé aṣìṣe: a ní láti fi ${V(t.values[0])}` : `Àṣàyàn aṣìṣe: yan ọ̀kan lára ${w(t.values, "|")}`; case "too_big": { const i = t.inclusive ? "<=" : "<", a = n(t.origin); return a ? `Tó pọ̀ jù: a ní láti jẹ́ pé ${t.origin ?? "iye"} ${a.verb} ${i}${t.maximum} ${a.unit}` : `Tó pọ̀ jù: a ní láti jẹ́ ${i}${t.maximum}`; @@ -11818,7 +12252,7 @@ const yy = () => { case "not_multiple_of": return `Nọ́mbà aṣìṣe: gbọ́dọ̀ jẹ́ èyà pípín ti ${t.divisor}`; case "unrecognized_keys": - return `Bọtìnì àìmọ̀: ${k(t.keys, ", ")}`; + return `Bọtìnì àìmọ̀: ${w(t.keys, ", ")}`; case "invalid_key": return `Bọtìnì aṣìṣe nínú ${t.origin}`; case "invalid_union": @@ -11830,69 +12264,69 @@ const yy = () => { } }; }; -function ky() { +function nk() { return { - localeError: yy() + localeError: tk() }; } -const Is = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ +const zs = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ __proto__: null, - ar: Tb, - az: Nb, - be: Cb, - bg: Mb, - ca: Fb, - cs: Bb, - da: Jb, - de: Gb, - el: Kb, - en: ys, - eo: Hb, - es: e_, - fa: n_, - fi: i_, - fr: a_, - frCA: u_, - he: c_, - hr: m_, - hu: v_, - hy: g_, - id: $_, - is: __, - it: k_, - ja: I_, - ka: z_, - kh: j_, - km: ks, - ko: x_, - lt: U_, - mk: P_, - ms: A_, - nl: Z_, - no: L_, - ota: R_, - pl: q_, - ps: V_, - pt: W_, - ro: X_, - ru: H_, - sl: ey, - sv: ny, - ta: iy, - th: ay, - tr: uy, - ua: cy, - uk: Ss, - ur: my, - uz: vy, - vi: gy, - yo: ky, - zhCN: $y, - zhTW: _y + ar: f_, + az: v_, + be: h_, + bg: $_, + ca: y_, + cs: S_, + da: I_, + de: D_, + el: O_, + en: Ss, + eo: U_, + es: N_, + fa: A_, + fi: Z_, + fr: L_, + frCA: R_, + he: V_, + hr: q_, + hu: K_, + hy: X_, + id: Y_, + is: ey, + it: ny, + ja: iy, + ka: ay, + kh: uy, + km: ws, + ko: cy, + lt: my, + mk: py, + ms: gy, + nl: by, + no: _y, + ota: ky, + pl: zy, + ps: wy, + pt: jy, + ro: Ey, + ru: Uy, + sl: Ny, + sv: Ay, + ta: Zy, + th: Ly, + tr: Ry, + ua: Vy, + uk: Is, + ur: qy, + uz: Ky, + vi: Xy, + yo: nk, + zhCN: Yy, + zhTW: ek }, Symbol.toStringTag, { value: "Module" })); -var aa; -const ws = Symbol("ZodOutput"), zs = Symbol("ZodInput"); -class Ds { +var sa; +const Ds = Symbol("ZodOutput"), js = Symbol("ZodInput"); +class Os { constructor() { this._map = /* @__PURE__ */ new WeakMap(), this._idmap = /* @__PURE__ */ new Map(); } @@ -11921,76 +12355,44 @@ class Ds { return this._map.has(n); } } -function Xr() { - return new Ds(); +function Qr() { + return new Os(); } -(aa = globalThis).__zod_globalRegistry ?? (aa.__zod_globalRegistry = Xr()); -const Ee = globalThis.__zod_globalRegistry; +(sa = globalThis).__zod_globalRegistry ?? (sa.__zod_globalRegistry = Qr()); +const Ne = globalThis.__zod_globalRegistry; // @__NO_SIDE_EFFECTS__ -function js(e, n) { +function Es(e, n) { return new e({ type: "string", - ...y(n) + ..._(n) }); } // @__NO_SIDE_EFFECTS__ -function Os(e, n) { +function xs(e, n) { return new e({ type: "string", coerce: !0, - ...y(n) - }); -} -// @__NO_SIDE_EFFECTS__ -function Yr(e, n) { - return new e({ - type: "string", - format: "email", - check: "string_format", - abort: !1, - ...y(n) - }); -} -// @__NO_SIDE_EFFECTS__ -function pn(e, n) { - return new e({ - type: "string", - format: "guid", - check: "string_format", - abort: !1, - ...y(n) - }); -} -// @__NO_SIDE_EFFECTS__ -function Hr(e, n) { - return new e({ - type: "string", - format: "uuid", - check: "string_format", - abort: !1, - ...y(n) - }); -} -// @__NO_SIDE_EFFECTS__ -function Qr(e, n) { - return new e({ - type: "string", - format: "uuid", - check: "string_format", - abort: !1, - version: "v4", - ...y(n) + ..._(n) }); } // @__NO_SIDE_EFFECTS__ function ei(e, n) { return new e({ type: "string", - format: "uuid", + format: "email", check: "string_format", abort: !1, - version: "v6", - ...y(n) + ..._(n) + }); +} +// @__NO_SIDE_EFFECTS__ +function gn(e, n) { + return new e({ + type: "string", + format: "guid", + check: "string_format", + abort: !1, + ..._(n) }); } // @__NO_SIDE_EFFECTS__ @@ -12000,181 +12402,213 @@ function ti(e, n) { format: "uuid", check: "string_format", abort: !1, - version: "v7", - ...y(n) - }); -} -// @__NO_SIDE_EFFECTS__ -function wn(e, n) { - return new e({ - type: "string", - format: "url", - check: "string_format", - abort: !1, - ...y(n) + ..._(n) }); } // @__NO_SIDE_EFFECTS__ function ni(e, n) { return new e({ type: "string", - format: "emoji", + format: "uuid", check: "string_format", abort: !1, - ...y(n) + version: "v4", + ..._(n) }); } // @__NO_SIDE_EFFECTS__ function ri(e, n) { return new e({ type: "string", - format: "nanoid", + format: "uuid", check: "string_format", abort: !1, - ...y(n) + version: "v6", + ..._(n) }); } // @__NO_SIDE_EFFECTS__ function ii(e, n) { return new e({ type: "string", - format: "cuid", + format: "uuid", check: "string_format", abort: !1, - ...y(n) + version: "v7", + ..._(n) + }); +} +// @__NO_SIDE_EFFECTS__ +function zn(e, n) { + return new e({ + type: "string", + format: "url", + check: "string_format", + abort: !1, + ..._(n) }); } // @__NO_SIDE_EFFECTS__ function oi(e, n) { return new e({ type: "string", - format: "cuid2", + format: "emoji", check: "string_format", abort: !1, - ...y(n) + ..._(n) }); } // @__NO_SIDE_EFFECTS__ function ai(e, n) { return new e({ type: "string", - format: "ulid", + format: "nanoid", check: "string_format", abort: !1, - ...y(n) + ..._(n) }); } // @__NO_SIDE_EFFECTS__ function li(e, n) { return new e({ type: "string", - format: "xid", + format: "cuid", check: "string_format", abort: !1, - ...y(n) + ..._(n) }); } // @__NO_SIDE_EFFECTS__ function ui(e, n) { return new e({ type: "string", - format: "ksuid", + format: "cuid2", check: "string_format", abort: !1, - ...y(n) + ..._(n) }); } // @__NO_SIDE_EFFECTS__ function si(e, n) { return new e({ type: "string", - format: "ipv4", + format: "ulid", check: "string_format", abort: !1, - ...y(n) + ..._(n) }); } // @__NO_SIDE_EFFECTS__ function ci(e, n) { return new e({ type: "string", - format: "ipv6", + format: "xid", check: "string_format", abort: !1, - ...y(n) - }); -} -// @__NO_SIDE_EFFECTS__ -function xs(e, n) { - return new e({ - type: "string", - format: "mac", - check: "string_format", - abort: !1, - ...y(n) + ..._(n) }); } // @__NO_SIDE_EFFECTS__ function di(e, n) { return new e({ type: "string", - format: "cidrv4", + format: "ksuid", check: "string_format", abort: !1, - ...y(n) + ..._(n) }); } // @__NO_SIDE_EFFECTS__ function mi(e, n) { return new e({ type: "string", - format: "cidrv6", + format: "ipv4", check: "string_format", abort: !1, - ...y(n) + ..._(n) }); } // @__NO_SIDE_EFFECTS__ function fi(e, n) { return new e({ type: "string", - format: "base64", + format: "ipv6", check: "string_format", abort: !1, - ...y(n) + ..._(n) }); } // @__NO_SIDE_EFFECTS__ -function vi(e, n) { +function Us(e, n) { return new e({ type: "string", - format: "base64url", + format: "mac", check: "string_format", abort: !1, - ...y(n) + ..._(n) }); } // @__NO_SIDE_EFFECTS__ function pi(e, n) { return new e({ type: "string", - format: "e164", + format: "cidrv4", check: "string_format", abort: !1, - ...y(n) + ..._(n) + }); +} +// @__NO_SIDE_EFFECTS__ +function vi(e, n) { + return new e({ + type: "string", + format: "cidrv6", + check: "string_format", + abort: !1, + ..._(n) }); } // @__NO_SIDE_EFFECTS__ function gi(e, n) { + return new e({ + type: "string", + format: "base64", + check: "string_format", + abort: !1, + ..._(n) + }); +} +// @__NO_SIDE_EFFECTS__ +function hi(e, n) { + return new e({ + type: "string", + format: "base64url", + check: "string_format", + abort: !1, + ..._(n) + }); +} +// @__NO_SIDE_EFFECTS__ +function bi(e, n) { + return new e({ + type: "string", + format: "e164", + check: "string_format", + abort: !1, + ..._(n) + }); +} +// @__NO_SIDE_EFFECTS__ +function $i(e, n) { return new e({ type: "string", format: "jwt", check: "string_format", abort: !1, - ...y(n) + ..._(n) }); } -const Es = { +const Ts = { Any: null, Minute: -1, Second: 0, @@ -12182,7 +12616,7 @@ const Es = { Microsecond: 6 }; // @__NO_SIDE_EFFECTS__ -function Us(e, n) { +function Ns(e, n) { return new e({ type: "string", format: "datetime", @@ -12190,72 +12624,52 @@ function Us(e, n) { offset: !1, local: !1, precision: null, - ...y(n) - }); -} -// @__NO_SIDE_EFFECTS__ -function Ts(e, n) { - return new e({ - type: "string", - format: "date", - check: "string_format", - ...y(n) + ..._(n) }); } // @__NO_SIDE_EFFECTS__ function Ps(e, n) { return new e({ type: "string", - format: "time", + format: "date", check: "string_format", - precision: null, - ...y(n) - }); -} -// @__NO_SIDE_EFFECTS__ -function Ns(e, n) { - return new e({ - type: "string", - format: "duration", - check: "string_format", - ...y(n) + ..._(n) }); } // @__NO_SIDE_EFFECTS__ function As(e, n) { return new e({ - type: "number", - checks: [], - ...y(n) + type: "string", + format: "time", + check: "string_format", + precision: null, + ..._(n) }); } // @__NO_SIDE_EFFECTS__ function Cs(e, n) { return new e({ - type: "number", - coerce: !0, - checks: [], - ...y(n) + type: "string", + format: "duration", + check: "string_format", + ..._(n) }); } // @__NO_SIDE_EFFECTS__ function Zs(e, n) { return new e({ type: "number", - check: "number_format", - abort: !1, - format: "safeint", - ...y(n) + checks: [], + ..._(n) }); } // @__NO_SIDE_EFFECTS__ function Ms(e, n) { return new e({ type: "number", - check: "number_format", - abort: !1, - format: "float32", - ...y(n) + coerce: !0, + checks: [], + ..._(n) }); } // @__NO_SIDE_EFFECTS__ @@ -12264,8 +12678,8 @@ function Ls(e, n) { type: "number", check: "number_format", abort: !1, - format: "float64", - ...y(n) + format: "safeint", + ..._(n) }); } // @__NO_SIDE_EFFECTS__ @@ -12274,8 +12688,8 @@ function Fs(e, n) { type: "number", check: "number_format", abort: !1, - format: "int32", - ...y(n) + format: "float32", + ..._(n) }); } // @__NO_SIDE_EFFECTS__ @@ -12284,48 +12698,58 @@ function Rs(e, n) { type: "number", check: "number_format", abort: !1, - format: "uint32", - ...y(n) + format: "float64", + ..._(n) }); } // @__NO_SIDE_EFFECTS__ function Bs(e, n) { return new e({ - type: "boolean", - ...y(n) + type: "number", + check: "number_format", + abort: !1, + format: "int32", + ..._(n) }); } // @__NO_SIDE_EFFECTS__ function Vs(e, n) { return new e({ - type: "boolean", - coerce: !0, - ...y(n) + type: "number", + check: "number_format", + abort: !1, + format: "uint32", + ..._(n) }); } // @__NO_SIDE_EFFECTS__ function Js(e, n) { return new e({ - type: "bigint", - ...y(n) + type: "boolean", + ..._(n) }); } // @__NO_SIDE_EFFECTS__ function qs(e, n) { return new e({ - type: "bigint", + type: "boolean", coerce: !0, - ...y(n) + ..._(n) }); } // @__NO_SIDE_EFFECTS__ function Gs(e, n) { return new e({ type: "bigint", - check: "bigint_format", - abort: !1, - format: "int64", - ...y(n) + ..._(n) + }); +} +// @__NO_SIDE_EFFECTS__ +function Ks(e, n) { + return new e({ + type: "bigint", + coerce: !0, + ..._(n) }); } // @__NO_SIDE_EFFECTS__ @@ -12334,265 +12758,275 @@ function Ws(e, n) { type: "bigint", check: "bigint_format", abort: !1, - format: "uint64", - ...y(n) - }); -} -// @__NO_SIDE_EFFECTS__ -function Ks(e, n) { - return new e({ - type: "symbol", - ...y(n) + format: "int64", + ..._(n) }); } // @__NO_SIDE_EFFECTS__ function Xs(e, n) { return new e({ - type: "undefined", - ...y(n) + type: "bigint", + check: "bigint_format", + abort: !1, + format: "uint64", + ..._(n) + }); +} +// @__NO_SIDE_EFFECTS__ +function Hs(e, n) { + return new e({ + type: "symbol", + ..._(n) }); } // @__NO_SIDE_EFFECTS__ function Ys(e, n) { return new e({ - type: "null", - ...y(n) + type: "undefined", + ..._(n) }); } // @__NO_SIDE_EFFECTS__ -function Hs(e) { +function Qs(e, n) { + return new e({ + type: "null", + ..._(n) + }); +} +// @__NO_SIDE_EFFECTS__ +function ec(e) { return new e({ type: "any" }); } // @__NO_SIDE_EFFECTS__ -function Qs(e) { +function tc(e) { return new e({ type: "unknown" }); } // @__NO_SIDE_EFFECTS__ -function ec(e, n) { - return new e({ - type: "never", - ...y(n) - }); -} -// @__NO_SIDE_EFFECTS__ -function tc(e, n) { - return new e({ - type: "void", - ...y(n) - }); -} -// @__NO_SIDE_EFFECTS__ function nc(e, n) { return new e({ - type: "date", - ...y(n) + type: "never", + ..._(n) }); } // @__NO_SIDE_EFFECTS__ function rc(e, n) { return new e({ - type: "date", - coerce: !0, - ...y(n) + type: "void", + ..._(n) }); } // @__NO_SIDE_EFFECTS__ function ic(e, n) { + return new e({ + type: "date", + ..._(n) + }); +} +// @__NO_SIDE_EFFECTS__ +function oc(e, n) { + return new e({ + type: "date", + coerce: !0, + ..._(n) + }); +} +// @__NO_SIDE_EFFECTS__ +function ac(e, n) { return new e({ type: "nan", - ...y(n) + ..._(n) }); } // @__NO_SIDE_EFFECTS__ function qe(e, n) { - return new Lr({ + return new Br({ check: "less_than", - ...y(n), + ..._(n), value: e, inclusive: !1 }); } // @__NO_SIDE_EFFECTS__ -function Ue(e, n) { - return new Lr({ +function Pe(e, n) { + return new Br({ check: "less_than", - ...y(n), + ..._(n), value: e, inclusive: !0 }); } // @__NO_SIDE_EFFECTS__ function Ge(e, n) { - return new Fr({ + return new Vr({ check: "greater_than", - ...y(n), + ..._(n), value: e, inclusive: !1 }); } // @__NO_SIDE_EFFECTS__ -function Ie(e, n) { - return new Fr({ +function De(e, n) { + return new Vr({ check: "greater_than", - ...y(n), + ..._(n), value: e, inclusive: !0 }); } // @__NO_SIDE_EFFECTS__ -function hi(e) { +function _i(e) { return /* @__PURE__ */ Ge(0, e); } // @__NO_SIDE_EFFECTS__ -function $i(e) { +function yi(e) { return /* @__PURE__ */ qe(0, e); } // @__NO_SIDE_EFFECTS__ -function bi(e) { - return /* @__PURE__ */ Ue(0, e); +function ki(e) { + return /* @__PURE__ */ Pe(0, e); } // @__NO_SIDE_EFFECTS__ -function _i(e) { - return /* @__PURE__ */ Ie(0, e); +function Si(e) { + return /* @__PURE__ */ De(0, e); } // @__NO_SIDE_EFFECTS__ -function dt(e, n) { - return new Rl({ +function ft(e, n) { + return new Vl({ check: "multiple_of", - ...y(n), + ..._(n), value: e }); } // @__NO_SIDE_EFFECTS__ -function ht(e, n) { - return new Jl({ +function $t(e, n) { + return new Gl({ check: "max_size", - ...y(n), + ..._(n), maximum: e }); } // @__NO_SIDE_EFFECTS__ -function We(e, n) { - return new ql({ +function Ke(e, n) { + return new Kl({ check: "min_size", - ...y(n), + ..._(n), minimum: e }); } // @__NO_SIDE_EFFECTS__ -function Mt(e, n) { - return new Gl({ - check: "size_equals", - ...y(n), - size: e - }); -} -// @__NO_SIDE_EFFECTS__ function Lt(e, n) { return new Wl({ - check: "max_length", - ...y(n), - maximum: e - }); -} -// @__NO_SIDE_EFFECTS__ -function tt(e, n) { - return new Kl({ - check: "min_length", - ...y(n), - minimum: e + check: "size_equals", + ..._(n), + size: e }); } // @__NO_SIDE_EFFECTS__ function Ft(e, n) { return new Xl({ + check: "max_length", + ..._(n), + maximum: e + }); +} +// @__NO_SIDE_EFFECTS__ +function nt(e, n) { + return new Hl({ + check: "min_length", + ..._(n), + minimum: e + }); +} +// @__NO_SIDE_EFFECTS__ +function Rt(e, n) { + return new Yl({ check: "length_equals", - ...y(n), + ..._(n), length: e }); } // @__NO_SIDE_EFFECTS__ -function zn(e, n) { - return new Yl({ +function Dn(e, n) { + return new Ql({ check: "string_format", format: "regex", - ...y(n), + ..._(n), pattern: e }); } // @__NO_SIDE_EFFECTS__ -function Dn(e) { - return new Hl({ - check: "string_format", - format: "lowercase", - ...y(e) - }); -} -// @__NO_SIDE_EFFECTS__ function jn(e) { - return new Ql({ - check: "string_format", - format: "uppercase", - ...y(e) - }); -} -// @__NO_SIDE_EFFECTS__ -function On(e, n) { return new eu({ check: "string_format", - format: "includes", - ...y(n), - includes: e + format: "lowercase", + ..._(e) }); } // @__NO_SIDE_EFFECTS__ -function xn(e, n) { +function On(e) { return new tu({ check: "string_format", - format: "starts_with", - ...y(n), - prefix: e + format: "uppercase", + ..._(e) }); } // @__NO_SIDE_EFFECTS__ function En(e, n) { return new nu({ check: "string_format", - format: "ends_with", - ...y(n), - suffix: e + format: "includes", + ..._(n), + includes: e }); } // @__NO_SIDE_EFFECTS__ -function yi(e, n, r) { +function xn(e, n) { return new ru({ - check: "property", - property: e, - schema: n, - ...y(r) + check: "string_format", + format: "starts_with", + ..._(n), + prefix: e }); } // @__NO_SIDE_EFFECTS__ function Un(e, n) { return new iu({ + check: "string_format", + format: "ends_with", + ..._(n), + suffix: e + }); +} +// @__NO_SIDE_EFFECTS__ +function wi(e, n, r) { + return new ou({ + check: "property", + property: e, + schema: n, + ..._(r) + }); +} +// @__NO_SIDE_EFFECTS__ +function Tn(e, n) { + return new au({ check: "mime_type", mime: e, - ...y(n) + ..._(n) }); } // @__NO_SIDE_EFFECTS__ function Be(e) { - return new ou({ + return new lu({ check: "overwrite", tx: e }); } // @__NO_SIDE_EFFECTS__ -function Tn(e) { +function Nn(e) { return /* @__PURE__ */ Be((n) => n.normalize(e)); } // @__NO_SIDE_EFFECTS__ @@ -12600,55 +13034,55 @@ function Pn() { return /* @__PURE__ */ Be((e) => e.trim()); } // @__NO_SIDE_EFFECTS__ -function Nn() { +function An() { return /* @__PURE__ */ Be((e) => e.toLowerCase()); } // @__NO_SIDE_EFFECTS__ -function An() { +function Cn() { return /* @__PURE__ */ Be((e) => e.toUpperCase()); } // @__NO_SIDE_EFFECTS__ -function Cn() { - return /* @__PURE__ */ Be((e) => Za(e)); +function Zn() { + return /* @__PURE__ */ Be((e) => La(e)); } // @__NO_SIDE_EFFECTS__ -function oc(e, n, r) { +function lc(e, n, r) { return new e({ type: "array", element: n, // get element() { // return element; // }, - ...y(r) + ..._(r) }); } // @__NO_SIDE_EFFECTS__ -function Sy(e, n, r) { +function rk(e, n, r) { return new e({ type: "union", options: n, - ...y(r) + ..._(r) }); } -function Iy(e, n, r) { +function ik(e, n, r) { return new e({ type: "union", options: n, inclusive: !1, - ...y(r) + ..._(r) }); } // @__NO_SIDE_EFFECTS__ -function wy(e, n, r, o) { +function ok(e, n, r, o) { return new e({ type: "union", options: r, discriminator: n, - ...y(o) + ..._(o) }); } // @__NO_SIDE_EFFECTS__ -function zy(e, n, r) { +function ak(e, n, r) { return new e({ type: "intersection", left: n, @@ -12656,121 +13090,121 @@ function zy(e, n, r) { }); } // @__NO_SIDE_EFFECTS__ -function Dy(e, n, r, o) { +function lk(e, n, r, o) { const t = r instanceof W, i = t ? o : r, a = t ? r : null; return new e({ type: "tuple", items: n, rest: a, - ...y(i) + ..._(i) }); } // @__NO_SIDE_EFFECTS__ -function jy(e, n, r, o) { +function uk(e, n, r, o) { return new e({ type: "record", keyType: n, valueType: r, - ...y(o) + ..._(o) }); } // @__NO_SIDE_EFFECTS__ -function Oy(e, n, r, o) { +function sk(e, n, r, o) { return new e({ type: "map", keyType: n, valueType: r, - ...y(o) + ..._(o) }); } // @__NO_SIDE_EFFECTS__ -function xy(e, n, r) { +function ck(e, n, r) { return new e({ type: "set", valueType: n, - ...y(r) + ..._(r) }); } // @__NO_SIDE_EFFECTS__ -function Ey(e, n, r) { +function dk(e, n, r) { const o = Array.isArray(n) ? Object.fromEntries(n.map((t) => [t, t])) : n; return new e({ type: "enum", entries: o, - ...y(r) + ..._(r) }); } // @__NO_SIDE_EFFECTS__ -function Uy(e, n, r) { +function mk(e, n, r) { return new e({ type: "enum", entries: n, - ...y(r) + ..._(r) }); } // @__NO_SIDE_EFFECTS__ -function Ty(e, n, r) { +function fk(e, n, r) { return new e({ type: "literal", values: Array.isArray(n) ? n : [n], - ...y(r) + ..._(r) }); } // @__NO_SIDE_EFFECTS__ -function ac(e, n) { +function uc(e, n) { return new e({ type: "file", - ...y(n) + ..._(n) }); } // @__NO_SIDE_EFFECTS__ -function Py(e, n) { +function pk(e, n) { return new e({ type: "transform", transform: n }); } // @__NO_SIDE_EFFECTS__ -function Ny(e, n) { +function vk(e, n) { return new e({ type: "optional", innerType: n }); } // @__NO_SIDE_EFFECTS__ -function Ay(e, n) { +function gk(e, n) { return new e({ type: "nullable", innerType: n }); } // @__NO_SIDE_EFFECTS__ -function Cy(e, n, r) { +function hk(e, n, r) { return new e({ type: "default", innerType: n, get defaultValue() { - return typeof r == "function" ? r() : yn(r); + return typeof r == "function" ? r() : kn(r); } }); } // @__NO_SIDE_EFFECTS__ -function Zy(e, n, r) { +function bk(e, n, r) { return new e({ type: "nonoptional", innerType: n, - ...y(r) + ..._(r) }); } // @__NO_SIDE_EFFECTS__ -function My(e, n) { +function $k(e, n) { return new e({ type: "success", innerType: n }); } // @__NO_SIDE_EFFECTS__ -function Ly(e, n, r) { +function _k(e, n, r) { return new e({ type: "catch", innerType: n, @@ -12778,7 +13212,7 @@ function Ly(e, n, r) { }); } // @__NO_SIDE_EFFECTS__ -function Fy(e, n, r) { +function yk(e, n, r) { return new e({ type: "pipe", in: n, @@ -12786,37 +13220,37 @@ function Fy(e, n, r) { }); } // @__NO_SIDE_EFFECTS__ -function Ry(e, n) { +function kk(e, n) { return new e({ type: "readonly", innerType: n }); } // @__NO_SIDE_EFFECTS__ -function By(e, n, r) { +function Sk(e, n, r) { return new e({ type: "template_literal", parts: n, - ...y(r) + ..._(r) }); } // @__NO_SIDE_EFFECTS__ -function Vy(e, n) { +function wk(e, n) { return new e({ type: "lazy", getter: n }); } // @__NO_SIDE_EFFECTS__ -function Jy(e, n) { +function Ik(e, n) { return new e({ type: "promise", innerType: n }); } // @__NO_SIDE_EFFECTS__ -function lc(e, n, r) { - const o = y(r); +function sc(e, n, r) { + const o = _(r); return o.abort ?? (o.abort = !0), new e({ type: "custom", check: "custom", @@ -12825,68 +13259,68 @@ function lc(e, n, r) { }); } // @__NO_SIDE_EFFECTS__ -function uc(e, n, r) { +function cc(e, n, r) { return new e({ type: "custom", check: "custom", fn: n, - ...y(r) + ..._(r) }); } // @__NO_SIDE_EFFECTS__ -function sc(e, n) { - const r = /* @__PURE__ */ cc((o) => (o.addIssue = (t) => { +function dc(e, n) { + const r = /* @__PURE__ */ mc((o) => (o.addIssue = (t) => { if (typeof t == "string") - o.issues.push(st(t, o.value, r._zod.def)); + o.issues.push(dt(t, o.value, r._zod.def)); else { const i = t; - i.fatal && (i.continue = !1), i.code ?? (i.code = "custom"), i.input ?? (i.input = o.value), i.inst ?? (i.inst = r), i.continue ?? (i.continue = !r._zod.def.abort), o.issues.push(st(i)); + i.fatal && (i.continue = !1), i.code ?? (i.code = "custom"), i.input ?? (i.input = o.value), i.inst ?? (i.inst = r), i.continue ?? (i.continue = !r._zod.def.abort), o.issues.push(dt(i)); } }, e(o.value, o)), n); return r; } // @__NO_SIDE_EFFECTS__ -function cc(e, n) { +function mc(e, n) { const r = new se({ check: "custom", - ...y(n) + ..._(n) }); return r._zod.check = e, r; } // @__NO_SIDE_EFFECTS__ -function dc(e) { +function fc(e) { const n = new se({ check: "describe" }); return n._zod.onattach = [ (r) => { - const o = Ee.get(r) ?? {}; - Ee.add(r, { ...o, description: e }); + const o = Ne.get(r) ?? {}; + Ne.add(r, { ...o, description: e }); } ], n._zod.check = () => { }, n; } // @__NO_SIDE_EFFECTS__ -function mc(e) { +function pc(e) { const n = new se({ check: "meta" }); return n._zod.onattach = [ (r) => { - const o = Ee.get(r) ?? {}; - Ee.add(r, { ...o, ...e }); + const o = Ne.get(r) ?? {}; + Ne.add(r, { ...o, ...e }); } ], n._zod.check = () => { }, n; } // @__NO_SIDE_EFFECTS__ -function fc(e, n) { - const r = y(n); +function vc(e, n) { + const r = _(n); let o = r.truthy ?? ["true", "1", "yes", "on", "y", "enabled"], t = r.falsy ?? ["false", "0", "no", "off", "n", "disabled"]; r.case !== "sensitive" && (o = o.map((f) => typeof f == "string" ? f.toLowerCase() : f), t = t.map((f) => typeof f == "string" ? f.toLowerCase() : f)); - const i = new Set(o), a = new Set(t), l = e.Codec ?? Kr, s = e.Boolean ?? Vr, u = e.String ?? Zt, d = new u({ type: "string", error: r.error }), c = new s({ type: "boolean", error: r.error }), m = new l({ + const i = new Set(o), a = new Set(t), l = e.Codec ?? Yr, s = e.Boolean ?? Gr, u = e.String ?? Mt, d = new u({ type: "string", error: r.error }), c = new s({ type: "boolean", error: r.error }), m = new l({ type: "pipe", in: d, out: c, transform: ((f, g) => { - let b = f; - return r.case !== "sensitive" && (b = b.toLowerCase()), i.has(b) ? !0 : a.has(b) ? !1 : (g.issues.push({ + let y = f; + return r.case !== "sensitive" && (y = y.toLowerCase()), i.has(y) ? !0 : a.has(y) ? !1 : (g.issues.push({ code: "invalid_value", expected: "stringbool", values: [...i, ...a], @@ -12901,9 +13335,9 @@ function fc(e, n) { return m; } // @__NO_SIDE_EFFECTS__ -function Rt(e, n, r, o = {}) { - const t = y(o), i = { - ...y(o), +function Bt(e, n, r, o = {}) { + const t = _(o), i = { + ..._(o), check: "string_format", type: "string", format: n, @@ -12912,11 +13346,11 @@ function Rt(e, n, r, o = {}) { }; return r instanceof RegExp && (i.pattern = r), new e(i); } -function mt(e) { +function pt(e) { let n = (e == null ? void 0 : e.target) ?? "draft-2020-12"; return n === "draft-4" && (n = "draft-04"), n === "draft-7" && (n = "draft-07"), { processors: e.processors ?? {}, - metadataRegistry: (e == null ? void 0 : e.metadata) ?? Ee, + metadataRegistry: (e == null ? void 0 : e.metadata) ?? Ne, target: n, unrepresentable: (e == null ? void 0 : e.unrepresentable) ?? "throw", override: (e == null ? void 0 : e.override) ?? (() => { @@ -12949,18 +13383,18 @@ function ie(e, n, r = { path: [], schemaPath: [] }) { if (e._zod.processJSONSchema) e._zod.processJSONSchema(n, a.schema, m); else { - const g = a.schema, b = n.processors[t.type]; - if (!b) + const g = a.schema, y = n.processors[t.type]; + if (!y) throw new Error(`[toJSONSchema]: Non-representable type encountered: ${t.type}`); - b(e, n, g, m); + y(e, n, g, m); } const f = e._zod.parent; f && (a.ref || (a.ref = f), ie(f, n, m), n.seen.get(f).isParent = !0); } const s = n.metadataRegistry.get(e); - return s && Object.assign(a.schema, s), n.io === "input" && ye(e) && (delete a.schema.examples, delete a.schema.default), n.io === "input" && "_prefault" in a.schema && ((o = a.schema).default ?? (o.default = a.schema._prefault)), delete a.schema._prefault, n.seen.get(e).schema; + return s && Object.assign(a.schema, s), n.io === "input" && we(e) && (delete a.schema.examples, delete a.schema.default), n.io === "input" && "_prefault" in a.schema && ((o = a.schema).default ?? (o.default = a.schema._prefault)), delete a.schema._prefault, n.seen.get(e).schema; } -function ft(e, n) { +function vt(e, n) { var a, l, s, u; const r = e.seen.get(n); if (!r) @@ -12976,14 +13410,14 @@ function ft(e, n) { } } const t = (d) => { - var b; + var y; const c = e.target === "draft-2020-12" ? "$defs" : "definitions"; if (e.external) { - const E = (b = e.external.registry.get(d[0])) == null ? void 0 : b.id, w = e.external.uri ?? ((L) => L); - if (E) - return { ref: w(E) }; - const z = d[1].defId ?? d[1].schema.id ?? `schema${e.counter++}`; - return d[1].defId = z, { defId: z, ref: `${w("__shared")}#/${c}/${z}` }; + const N = (y = e.external.registry.get(d[0])) == null ? void 0 : y.id, x = e.external.uri ?? ((L) => L); + if (N) + return { ref: x(N) }; + const D = d[1].defId ?? d[1].schema.id ?? `schema${e.counter++}`; + return d[1].defId = D, { defId: D, ref: `${x("__shared")}#/${c}/${D}` }; } if (d[1] === r) return { ref: "#" }; @@ -12995,8 +13429,8 @@ function ft(e, n) { const c = d[1], { ref: m, defId: f } = t(d); c.def = { ...c.schema }, f && (c.defId = f); const g = c.schema; - for (const b in g) - delete g[b]; + for (const y in g) + delete g[y]; g.$ref = m; }; if (e.cycles === "throw") @@ -13034,7 +13468,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs. } } } -function vt(e, n) { +function gt(e, n) { var l, s, u, d; const r = e.seen.get(n); if (!r) @@ -13043,24 +13477,24 @@ function vt(e, n) { const m = e.seen.get(c); if (m.ref === null) return; - const f = m.def ?? m.schema, g = { ...f }, b = m.ref; - if (m.ref = null, b) { - o(b); - const w = e.seen.get(b), z = w.schema; - if (z.$ref && (e.target === "draft-07" || e.target === "draft-04" || e.target === "openapi-3.0") ? (f.allOf = f.allOf ?? [], f.allOf.push(z)) : Object.assign(f, z), Object.assign(f, g), c._zod.parent === b) + const f = m.def ?? m.schema, g = { ...f }, y = m.ref; + if (m.ref = null, y) { + o(y); + const x = e.seen.get(y), D = x.schema; + if (D.$ref && (e.target === "draft-07" || e.target === "draft-04" || e.target === "openapi-3.0") ? (f.allOf = f.allOf ?? [], f.allOf.push(D)) : Object.assign(f, D), Object.assign(f, g), c._zod.parent === y) for (const A in f) A === "$ref" || A === "allOf" || A in g || delete f[A]; - if (z.$ref && w.def) + if (D.$ref && x.def) for (const A in f) - A === "$ref" || A === "allOf" || A in w.def && JSON.stringify(f[A]) === JSON.stringify(w.def[A]) && delete f[A]; + A === "$ref" || A === "allOf" || A in x.def && JSON.stringify(f[A]) === JSON.stringify(x.def[A]) && delete f[A]; } - const E = c._zod.parent; - if (E && E !== b) { - o(E); - const w = e.seen.get(E); - if (w != null && w.schema.$ref && (f.$ref = w.schema.$ref, w.def)) - for (const z in f) - z === "$ref" || z === "allOf" || z in w.def && JSON.stringify(f[z]) === JSON.stringify(w.def[z]) && delete f[z]; + const N = c._zod.parent; + if (N && N !== y) { + o(N); + const x = e.seen.get(N); + if (x != null && x.schema.$ref && (f.$ref = x.schema.$ref, x.def)) + for (const D in f) + D === "$ref" || D === "allOf" || D in x.def && JSON.stringify(f[D]) === JSON.stringify(x.def[D]) && delete f[D]; } e.override({ zodSchema: c, @@ -13092,8 +13526,8 @@ function vt(e, n) { value: { ...n["~standard"], jsonSchema: { - input: wt(n, "input", e.processors), - output: wt(n, "output", e.processors) + input: zt(n, "input", e.processors), + output: zt(n, "output", e.processors) } }, enumerable: !1, @@ -13103,7 +13537,7 @@ function vt(e, n) { throw new Error("Error converting schema to JSON."); } } -function ye(e, n) { +function we(e, n) { const r = n ?? { seen: /* @__PURE__ */ new Set() }; if (r.seen.has(e)) return !1; @@ -13112,57 +13546,57 @@ function ye(e, n) { if (o.type === "transform") return !0; if (o.type === "array") - return ye(o.element, r); + return we(o.element, r); if (o.type === "set") - return ye(o.valueType, r); + return we(o.valueType, r); if (o.type === "lazy") - return ye(o.getter(), r); + return we(o.getter(), r); if (o.type === "promise" || o.type === "optional" || o.type === "nonoptional" || o.type === "nullable" || o.type === "readonly" || o.type === "default" || o.type === "prefault") - return ye(o.innerType, r); + return we(o.innerType, r); if (o.type === "intersection") - return ye(o.left, r) || ye(o.right, r); + return we(o.left, r) || we(o.right, r); if (o.type === "record" || o.type === "map") - return ye(o.keyType, r) || ye(o.valueType, r); + return we(o.keyType, r) || we(o.valueType, r); if (o.type === "pipe") - return e._zod.traits.has("$ZodCodec") ? !0 : ye(o.in, r) || ye(o.out, r); + return e._zod.traits.has("$ZodCodec") ? !0 : we(o.in, r) || we(o.out, r); if (o.type === "object") { for (const t in o.shape) - if (ye(o.shape[t], r)) + if (we(o.shape[t], r)) return !0; return !1; } if (o.type === "union") { for (const t of o.options) - if (ye(t, r)) + if (we(t, r)) return !0; return !1; } if (o.type === "tuple") { for (const t of o.items) - if (ye(t, r)) + if (we(t, r)) return !0; - return !!(o.rest && ye(o.rest, r)); + return !!(o.rest && we(o.rest, r)); } return !1; } -const vc = (e, n = {}) => (r) => { - const o = mt({ ...r, processors: n }); - return ie(e, o), ft(o, e), vt(o, e); -}, wt = (e, n, r = {}) => (o) => { - const { libraryOptions: t, target: i } = o ?? {}, a = mt({ ...t ?? {}, target: i, io: n, processors: r }); - return ie(e, a), ft(a, e), vt(a, e); -}, qy = { +const gc = (e, n = {}) => (r) => { + const o = pt({ ...r, processors: n }); + return ie(e, o), vt(o, e), gt(o, e); +}, zt = (e, n, r = {}) => (o) => { + const { libraryOptions: t, target: i } = o ?? {}, a = pt({ ...t ?? {}, target: i, io: n, processors: r }); + return ie(e, a), vt(a, e), gt(a, e); +}, zk = { guid: "uuid", url: "uri", datetime: "date-time", json_string: "json-string", regex: "" // do not set -}, pc = (e, n, r, o) => { +}, hc = (e, n, r, o) => { const t = r; t.type = "string"; const { minimum: i, maximum: a, format: l, patterns: s, contentEncoding: u } = e._zod.bag; - if (typeof i == "number" && (t.minLength = i), typeof a == "number" && (t.maxLength = a), l && (t.format = qy[l] ?? l, t.format === "" && delete t.format, l === "time" && delete t.format), u && (t.contentEncoding = u), s && s.size > 0) { + if (typeof i == "number" && (t.minLength = i), typeof a == "number" && (t.maxLength = a), l && (t.format = zk[l] ?? l, t.format === "" && delete t.format, l === "time" && delete t.format), u && (t.contentEncoding = u), s && s.size > 0) { const d = [...s]; d.length === 1 ? t.pattern = d[0].source : d.length > 1 && (t.allOf = [ ...d.map((c) => ({ @@ -13171,38 +13605,38 @@ const vc = (e, n = {}) => (r) => { })) ]); } -}, gc = (e, n, r, o) => { +}, bc = (e, n, r, o) => { const t = r, { minimum: i, maximum: a, format: l, multipleOf: s, exclusiveMaximum: u, exclusiveMinimum: d } = e._zod.bag; typeof l == "string" && l.includes("int") ? t.type = "integer" : t.type = "number"; const c = typeof d == "number" && d >= (i ?? Number.NEGATIVE_INFINITY), m = typeof u == "number" && u <= (a ?? Number.POSITIVE_INFINITY), f = n.target === "draft-04" || n.target === "openapi-3.0"; c ? f ? (t.minimum = d, t.exclusiveMinimum = !0) : t.exclusiveMinimum = d : typeof i == "number" && (t.minimum = i), m ? f ? (t.maximum = u, t.exclusiveMaximum = !0) : t.exclusiveMaximum = u : typeof a == "number" && (t.maximum = a), typeof s == "number" && (t.multipleOf = s); -}, hc = (e, n, r, o) => { - r.type = "boolean"; }, $c = (e, n, r, o) => { + r.type = "boolean"; +}, _c = (e, n, r, o) => { if (n.unrepresentable === "throw") throw new Error("BigInt cannot be represented in JSON Schema"); -}, bc = (e, n, r, o) => { - if (n.unrepresentable === "throw") - throw new Error("Symbols cannot be represented in JSON Schema"); -}, _c = (e, n, r, o) => { - n.target === "openapi-3.0" ? (r.type = "string", r.nullable = !0, r.enum = [null]) : r.type = "null"; }, yc = (e, n, r, o) => { if (n.unrepresentable === "throw") - throw new Error("Undefined cannot be represented in JSON Schema"); + throw new Error("Symbols cannot be represented in JSON Schema"); }, kc = (e, n, r, o) => { + n.target === "openapi-3.0" ? (r.type = "string", r.nullable = !0, r.enum = [null]) : r.type = "null"; +}, Sc = (e, n, r, o) => { + if (n.unrepresentable === "throw") + throw new Error("Undefined cannot be represented in JSON Schema"); +}, wc = (e, n, r, o) => { if (n.unrepresentable === "throw") throw new Error("Void cannot be represented in JSON Schema"); -}, Sc = (e, n, r, o) => { - r.not = {}; }, Ic = (e, n, r, o) => { -}, wc = (e, n, r, o) => { + r.not = {}; }, zc = (e, n, r, o) => { +}, Dc = (e, n, r, o) => { +}, jc = (e, n, r, o) => { if (n.unrepresentable === "throw") throw new Error("Date cannot be represented in JSON Schema"); -}, Dc = (e, n, r, o) => { - const t = e._zod.def, i = Sr(t.entries); +}, Oc = (e, n, r, o) => { + const t = e._zod.def, i = zr(t.entries); i.every((a) => typeof a == "number") && (r.type = "number"), i.every((a) => typeof a == "string") && (r.type = "string"), r.enum = i; -}, jc = (e, n, r, o) => { +}, Ec = (e, n, r, o) => { const t = e._zod.def, i = []; for (const a of t.values) if (a === void 0) { @@ -13219,45 +13653,45 @@ const vc = (e, n = {}) => (r) => { r.type = a === null ? "null" : typeof a, n.target === "draft-04" || n.target === "openapi-3.0" ? r.enum = [a] : r.const = a; } else i.every((a) => typeof a == "number") && (r.type = "number"), i.every((a) => typeof a == "string") && (r.type = "string"), i.every((a) => typeof a == "boolean") && (r.type = "boolean"), i.every((a) => a === null) && (r.type = "null"), r.enum = i; -}, Oc = (e, n, r, o) => { +}, xc = (e, n, r, o) => { if (n.unrepresentable === "throw") throw new Error("NaN cannot be represented in JSON Schema"); -}, xc = (e, n, r, o) => { +}, Uc = (e, n, r, o) => { const t = r, i = e._zod.pattern; if (!i) throw new Error("Pattern not found in template literal"); t.type = "string", t.pattern = i.source; -}, Ec = (e, n, r, o) => { +}, Tc = (e, n, r, o) => { const t = r, i = { type: "string", format: "binary", contentEncoding: "binary" }, { minimum: a, maximum: l, mime: s } = e._zod.bag; a !== void 0 && (i.minLength = a), l !== void 0 && (i.maxLength = l), s ? s.length === 1 ? (i.contentMediaType = s[0], Object.assign(t, i)) : (Object.assign(t, i), t.anyOf = s.map((u) => ({ contentMediaType: u }))) : Object.assign(t, i); -}, Uc = (e, n, r, o) => { +}, Nc = (e, n, r, o) => { r.type = "boolean"; -}, Tc = (e, n, r, o) => { - if (n.unrepresentable === "throw") - throw new Error("Custom types cannot be represented in JSON Schema"); }, Pc = (e, n, r, o) => { if (n.unrepresentable === "throw") - throw new Error("Function types cannot be represented in JSON Schema"); -}, Nc = (e, n, r, o) => { - if (n.unrepresentable === "throw") - throw new Error("Transforms cannot be represented in JSON Schema"); + throw new Error("Custom types cannot be represented in JSON Schema"); }, Ac = (e, n, r, o) => { if (n.unrepresentable === "throw") - throw new Error("Map cannot be represented in JSON Schema"); + throw new Error("Function types cannot be represented in JSON Schema"); }, Cc = (e, n, r, o) => { if (n.unrepresentable === "throw") - throw new Error("Set cannot be represented in JSON Schema"); + throw new Error("Transforms cannot be represented in JSON Schema"); }, Zc = (e, n, r, o) => { + if (n.unrepresentable === "throw") + throw new Error("Map cannot be represented in JSON Schema"); +}, Mc = (e, n, r, o) => { + if (n.unrepresentable === "throw") + throw new Error("Set cannot be represented in JSON Schema"); +}, Lc = (e, n, r, o) => { const t = r, i = e._zod.def, { minimum: a, maximum: l } = e._zod.bag; typeof a == "number" && (t.minItems = a), typeof l == "number" && (t.maxItems = l), t.type = "array", t.items = ie(i.element, n, { ...o, path: [...o.path, "items"] }); -}, Mc = (e, n, r, o) => { +}, Fc = (e, n, r, o) => { var u; const t = r, i = e._zod.def; t.type = "object", t.properties = {}; @@ -13275,13 +13709,13 @@ const vc = (e, n = {}) => (r) => { ...o, path: [...o.path, "additionalProperties"] })) : n.io === "output" && (t.additionalProperties = !1); -}, ki = (e, n, r, o) => { +}, Ii = (e, n, r, o) => { const t = e._zod.def, i = t.inclusive === !1, a = t.options.map((l, s) => ie(l, n, { ...o, path: [...o.path, i ? "oneOf" : "anyOf", s] })); i ? r.oneOf = a : r.anyOf = a; -}, Lc = (e, n, r, o) => { +}, Rc = (e, n, r, o) => { const t = e._zod.def, i = ie(t.left, n, { ...o, path: [...o.path, "allOf", 0] @@ -13293,7 +13727,7 @@ const vc = (e, n = {}) => (r) => { ...l(a) ? a.allOf : [a] ]; r.allOf = s; -}, Fc = (e, n, r, o) => { +}, Bc = (e, n, r, o) => { const t = r, i = e._zod.def; t.type = "array"; const a = n.target === "draft-2020-12" ? "prefixItems" : "items", l = n.target === "draft-2020-12" || n.target === "openapi-3.0" ? "items" : "additionalItems", s = i.items.map((m, f) => ie(m, n, { @@ -13308,7 +13742,7 @@ const vc = (e, n = {}) => (r) => { }, u && t.items.anyOf.push(u), t.minItems = s.length, u || (t.maxItems = s.length)) : (t.items = s, u && (t.additionalItems = u)); const { minimum: d, maximum: c } = e._zod.bag; typeof d == "number" && (t.minItems = d), typeof c == "number" && (t.maxItems = c); -}, Rc = (e, n, r, o) => { +}, Vc = (e, n, r, o) => { const t = r, i = e._zod.def; t.type = "object"; const a = i.keyType, l = a._zod.bag, s = l == null ? void 0 : l.patterns; @@ -13333,25 +13767,25 @@ const vc = (e, n = {}) => (r) => { const d = [...u].filter((c) => typeof c == "string" || typeof c == "number"); d.length > 0 && (t.required = d); } -}, Bc = (e, n, r, o) => { +}, Jc = (e, n, r, o) => { const t = e._zod.def, i = ie(t.innerType, n, o), a = n.seen.get(e); n.target === "openapi-3.0" ? (a.ref = t.innerType, r.nullable = !0) : r.anyOf = [i, { type: "null" }]; -}, Vc = (e, n, r, o) => { - const t = e._zod.def; - ie(t.innerType, n, o); - const i = n.seen.get(e); - i.ref = t.innerType; -}, Jc = (e, n, r, o) => { - const t = e._zod.def; - ie(t.innerType, n, o); - const i = n.seen.get(e); - i.ref = t.innerType, r.default = JSON.parse(JSON.stringify(t.defaultValue)); }, qc = (e, n, r, o) => { const t = e._zod.def; ie(t.innerType, n, o); const i = n.seen.get(e); - i.ref = t.innerType, n.io === "input" && (r._prefault = JSON.parse(JSON.stringify(t.defaultValue))); + i.ref = t.innerType; }, Gc = (e, n, r, o) => { + const t = e._zod.def; + ie(t.innerType, n, o); + const i = n.seen.get(e); + i.ref = t.innerType, r.default = JSON.parse(JSON.stringify(t.defaultValue)); +}, Kc = (e, n, r, o) => { + const t = e._zod.def; + ie(t.innerType, n, o); + const i = n.seen.get(e); + i.ref = t.innerType, n.io === "input" && (r._prefault = JSON.parse(JSON.stringify(t.defaultValue))); +}, Wc = (e, n, r, o) => { const t = e._zod.def; ie(t.innerType, n, o); const i = n.seen.get(e); @@ -13363,75 +13797,75 @@ const vc = (e, n = {}) => (r) => { throw new Error("Dynamic catch values are not supported in JSON Schema"); } r.default = a; -}, Wc = (e, n, r, o) => { +}, Xc = (e, n, r, o) => { const t = e._zod.def, i = t.in._zod.traits.has("$ZodTransform"), a = n.io === "input" ? i ? t.out : t.in : t.out; ie(a, n, o); const l = n.seen.get(e); l.ref = a; -}, Kc = (e, n, r, o) => { +}, Hc = (e, n, r, o) => { const t = e._zod.def; ie(t.innerType, n, o); const i = n.seen.get(e); i.ref = t.innerType, r.readOnly = !0; -}, Xc = (e, n, r, o) => { - const t = e._zod.def; - ie(t.innerType, n, o); - const i = n.seen.get(e); - i.ref = t.innerType; -}, Si = (e, n, r, o) => { - const t = e._zod.def; - ie(t.innerType, n, o); - const i = n.seen.get(e); - i.ref = t.innerType; }, Yc = (e, n, r, o) => { + const t = e._zod.def; + ie(t.innerType, n, o); + const i = n.seen.get(e); + i.ref = t.innerType; +}, zi = (e, n, r, o) => { + const t = e._zod.def; + ie(t.innerType, n, o); + const i = n.seen.get(e); + i.ref = t.innerType; +}, Qc = (e, n, r, o) => { const t = e._zod.innerType; ie(t, n, o); const i = n.seen.get(e); i.ref = t; -}, hr = { - string: pc, - number: gc, - boolean: hc, - bigint: $c, - symbol: bc, - null: _c, - undefined: yc, - void: kc, - never: Sc, - any: Ic, - unknown: wc, - date: zc, - enum: Dc, - literal: jc, - nan: Oc, - template_literal: xc, - file: Ec, - success: Uc, - custom: Tc, - function: Pc, - transform: Nc, - map: Ac, - set: Cc, - array: Zc, - object: Mc, - union: ki, - intersection: Lc, - tuple: Fc, - record: Rc, - nullable: Bc, - nonoptional: Vc, - default: Jc, - prefault: qc, - catch: Gc, - pipe: Wc, - readonly: Kc, - promise: Xc, - optional: Si, - lazy: Yc +}, br = { + string: hc, + number: bc, + boolean: $c, + bigint: _c, + symbol: yc, + null: kc, + undefined: Sc, + void: wc, + never: Ic, + any: zc, + unknown: Dc, + date: jc, + enum: Oc, + literal: Ec, + nan: xc, + template_literal: Uc, + file: Tc, + success: Nc, + custom: Pc, + function: Ac, + transform: Cc, + map: Zc, + set: Mc, + array: Lc, + object: Fc, + union: Ii, + intersection: Rc, + tuple: Bc, + record: Vc, + nullable: Jc, + nonoptional: qc, + default: Gc, + prefault: Kc, + catch: Wc, + pipe: Xc, + readonly: Hc, + promise: Yc, + optional: zi, + lazy: Qc }; -function Hc(e, n) { +function ed(e, n) { if ("_idmap" in e) { - const o = e, t = mt({ ...n, processors: hr }), i = {}; + const o = e, t = pt({ ...n, processors: br }), i = {}; for (const s of o._idmap.entries()) { const [u, d] = s; ie(d, t); @@ -13444,7 +13878,7 @@ function Hc(e, n) { t.external = l; for (const s of o._idmap.entries()) { const [u, d] = s; - ft(t, d), a[u] = vt(t, d); + vt(t, d), a[u] = gt(t, d); } if (Object.keys(i).length > 0) { const s = t.target === "draft-2020-12" ? "$defs" : "definitions"; @@ -13454,10 +13888,10 @@ function Hc(e, n) { } return { schemas: a }; } - const r = mt({ ...n, processors: hr }); - return ie(e, r), ft(r, e), vt(r, e); + const r = pt({ ...n, processors: br }); + return ie(e, r), vt(r, e), gt(r, e); } -class Gy { +class Dk { /** @deprecated Access via ctx instead */ get metadataRegistry() { return this.ctx.metadataRegistry; @@ -13491,8 +13925,8 @@ class Gy { } constructor(n) { let r = (n == null ? void 0 : n.target) ?? "draft-2020-12"; - r === "draft-4" && (r = "draft-04"), r === "draft-7" && (r = "draft-07"), this.ctx = mt({ - processors: hr, + r === "draft-4" && (r = "draft-04"), r === "draft-7" && (r = "draft-07"), this.ctx = pt({ + processors: br, target: r, ...(n == null ? void 0 : n.metadata) && { metadata: n.metadata }, ...(n == null ? void 0 : n.unrepresentable) && { unrepresentable: n.unrepresentable }, @@ -13512,373 +13946,373 @@ class Gy { * Must call process() first. */ emit(n, r) { - r && (r.cycles && (this.ctx.cycles = r.cycles), r.reused && (this.ctx.reused = r.reused), r.external && (this.ctx.external = r.external)), ft(this.ctx, n); - const o = vt(this.ctx, n), { "~standard": t, ...i } = o; + r && (r.cycles && (this.ctx.cycles = r.cycles), r.reused && (this.ctx.reused = r.reused), r.external && (this.ctx.external = r.external)), vt(this.ctx, n); + const o = gt(this.ctx, n), { "~standard": t, ...i } = o; return i; } } -const Wy = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ +const jk = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ __proto__: null -}, Symbol.toStringTag, { value: "Module" })), Ky = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ +}, Symbol.toStringTag, { value: "Module" })), Ok = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ __proto__: null, - $ZodAny: Lu, - $ZodArray: Ju, - $ZodAsyncError: Qe, - $ZodBase64: ju, - $ZodBase64URL: xu, - $ZodBigInt: Jr, - $ZodBigIntFormat: Au, - $ZodBoolean: Vr, - $ZodCIDRv4: zu, - $ZodCIDRv6: Du, - $ZodCUID: vu, - $ZodCUID2: pu, - $ZodCatch: ms, + $ZodAny: Ru, + $ZodArray: Gu, + $ZodAsyncError: et, + $ZodBase64: Eu, + $ZodBase64URL: Uu, + $ZodBigInt: Kr, + $ZodBigIntFormat: Zu, + $ZodBoolean: Gr, + $ZodCIDRv4: ju, + $ZodCIDRv6: Ou, + $ZodCUID: gu, + $ZodCUID2: hu, + $ZodCatch: ps, $ZodCheck: se, - $ZodCheckBigIntFormat: Vl, - $ZodCheckEndsWith: nu, - $ZodCheckGreaterThan: Fr, - $ZodCheckIncludes: eu, - $ZodCheckLengthEquals: Xl, - $ZodCheckLessThan: Lr, - $ZodCheckLowerCase: Hl, - $ZodCheckMaxLength: Wl, - $ZodCheckMaxSize: Jl, - $ZodCheckMimeType: iu, - $ZodCheckMinLength: Kl, - $ZodCheckMinSize: ql, - $ZodCheckMultipleOf: Rl, - $ZodCheckNumberFormat: Bl, - $ZodCheckOverwrite: ou, - $ZodCheckProperty: ru, - $ZodCheckRegex: Yl, - $ZodCheckSizeEquals: Gl, - $ZodCheckStartsWith: tu, - $ZodCheckStringFormat: Ct, - $ZodCheckUpperCase: Ql, - $ZodCodec: Kr, - $ZodCustom: _s, - $ZodCustomStringFormat: Pu, - $ZodDate: Vu, - $ZodDefault: us, - $ZodDiscriminatedUnion: Yu, - $ZodE164: Eu, - $ZodEmail: cu, - $ZodEmoji: mu, - $ZodEncodeError: bn, - $ZodEnum: ns, - $ZodError: wr, - $ZodExactOptional: as, - $ZodFile: is, - $ZodFunction: hs, - $ZodGUID: uu, - $ZodIPv4: Su, - $ZodIPv6: Iu, - $ZodISODate: _u, - $ZodISODateTime: bu, - $ZodISODuration: ku, - $ZodISOTime: yu, - $ZodIntersection: Hu, - $ZodJWT: Tu, - $ZodKSUID: $u, - $ZodLazy: bs, - $ZodLiteral: rs, - $ZodMAC: wu, - $ZodMap: es, - $ZodNaN: fs, - $ZodNanoID: fu, - $ZodNever: Ru, - $ZodNonOptional: cs, - $ZodNull: Mu, - $ZodNullable: ls, - $ZodNumber: Br, - $ZodNumberFormat: Nu, - $ZodObject: Wu, - $ZodObjectJIT: Ku, - $ZodOptional: Gr, - $ZodPipe: Wr, - $ZodPrefault: ss, - $ZodPreprocess: vs, - $ZodPromise: $s, - $ZodReadonly: ps, - $ZodRealError: je, - $ZodRecord: Qu, - $ZodRegistry: Ds, - $ZodSet: ts, - $ZodString: Zt, + $ZodCheckBigIntFormat: ql, + $ZodCheckEndsWith: iu, + $ZodCheckGreaterThan: Vr, + $ZodCheckIncludes: nu, + $ZodCheckLengthEquals: Yl, + $ZodCheckLessThan: Br, + $ZodCheckLowerCase: eu, + $ZodCheckMaxLength: Xl, + $ZodCheckMaxSize: Gl, + $ZodCheckMimeType: au, + $ZodCheckMinLength: Hl, + $ZodCheckMinSize: Kl, + $ZodCheckMultipleOf: Vl, + $ZodCheckNumberFormat: Jl, + $ZodCheckOverwrite: lu, + $ZodCheckProperty: ou, + $ZodCheckRegex: Ql, + $ZodCheckSizeEquals: Wl, + $ZodCheckStartsWith: ru, + $ZodCheckStringFormat: Zt, + $ZodCheckUpperCase: tu, + $ZodCodec: Yr, + $ZodCustom: ks, + $ZodCustomStringFormat: Au, + $ZodDate: qu, + $ZodDefault: cs, + $ZodDiscriminatedUnion: Qu, + $ZodE164: Tu, + $ZodEmail: mu, + $ZodEmoji: pu, + $ZodEncodeError: _n, + $ZodEnum: is, + $ZodError: jr, + $ZodExactOptional: us, + $ZodFile: as, + $ZodFunction: $s, + $ZodGUID: cu, + $ZodIPv4: Iu, + $ZodIPv6: zu, + $ZodISODate: ku, + $ZodISODateTime: yu, + $ZodISODuration: wu, + $ZodISOTime: Su, + $ZodIntersection: es, + $ZodJWT: Pu, + $ZodKSUID: _u, + $ZodLazy: ys, + $ZodLiteral: os, + $ZodMAC: Du, + $ZodMap: ns, + $ZodNaN: vs, + $ZodNanoID: vu, + $ZodNever: Vu, + $ZodNonOptional: ms, + $ZodNull: Fu, + $ZodNullable: ss, + $ZodNumber: qr, + $ZodNumberFormat: Cu, + $ZodObject: Xu, + $ZodObjectJIT: Hu, + $ZodOptional: Xr, + $ZodPipe: Hr, + $ZodPrefault: ds, + $ZodPreprocess: gs, + $ZodPromise: _s, + $ZodReadonly: hs, + $ZodRealError: Ee, + $ZodRecord: ts, + $ZodRegistry: Os, + $ZodSet: rs, + $ZodString: Mt, $ZodStringFormat: oe, - $ZodSuccess: ds, - $ZodSymbol: Cu, - $ZodTemplateLiteral: gs, - $ZodTransform: os, - $ZodTuple: qr, + $ZodSuccess: fs, + $ZodSymbol: Mu, + $ZodTemplateLiteral: bs, + $ZodTransform: ls, + $ZodTuple: Wr, $ZodType: W, - $ZodULID: gu, - $ZodURL: du, - $ZodUUID: su, - $ZodUndefined: Zu, + $ZodULID: bu, + $ZodURL: fu, + $ZodUUID: du, + $ZodUndefined: Lu, $ZodUnion: In, - $ZodUnknown: Fu, - $ZodVoid: Bu, - $ZodXID: hu, - $ZodXor: Xu, - $brand: Aa, + $ZodUnknown: Bu, + $ZodVoid: Ju, + $ZodXID: $u, + $ZodXor: Yu, + $brand: Za, $constructor: v, - $input: zs, - $output: ws, - Doc: au, - JSONSchema: Wy, - JSONSchemaGenerator: Gy, - NEVER: Na, - TimePrecision: Es, - _any: Hs, - _array: oc, - _base64: fi, - _base64url: vi, - _bigint: Js, - _boolean: Bs, - _catch: Ly, - _check: cc, - _cidrv4: di, - _cidrv6: mi, - _coercedBigint: qs, - _coercedBoolean: Vs, - _coercedDate: rc, - _coercedNumber: Cs, - _coercedString: Os, - _cuid: ii, - _cuid2: oi, - _custom: lc, - _date: nc, - _decode: Or, - _decodeAsync: Er, - _default: Cy, - _discriminatedUnion: wy, - _e164: pi, - _email: Yr, - _emoji: ni, - _encode: jr, - _encodeAsync: xr, - _endsWith: En, - _enum: Ey, - _file: ac, - _float32: Ms, - _float64: Ls, + $input: js, + $output: Ds, + Doc: uu, + JSONSchema: jk, + JSONSchemaGenerator: Dk, + NEVER: Ca, + TimePrecision: Ts, + _any: ec, + _array: lc, + _base64: gi, + _base64url: hi, + _bigint: Gs, + _boolean: Js, + _catch: _k, + _check: mc, + _cidrv4: pi, + _cidrv6: vi, + _coercedBigint: Ks, + _coercedBoolean: qs, + _coercedDate: oc, + _coercedNumber: Ms, + _coercedString: xs, + _cuid: li, + _cuid2: ui, + _custom: sc, + _date: ic, + _decode: Ur, + _decodeAsync: Nr, + _default: hk, + _discriminatedUnion: ok, + _e164: bi, + _email: ei, + _emoji: oi, + _encode: xr, + _encodeAsync: Tr, + _endsWith: Un, + _enum: dk, + _file: uc, + _float32: Fs, + _float64: Rs, _gt: Ge, - _gte: Ie, - _guid: pn, - _includes: On, - _int: Zs, - _int32: Fs, - _int64: Gs, - _intersection: zy, - _ipv4: si, - _ipv6: ci, - _isoDate: Ts, - _isoDateTime: Us, - _isoDuration: Ns, - _isoTime: Ps, - _jwt: gi, - _ksuid: ui, - _lazy: Vy, - _length: Ft, - _literal: Ty, - _lowercase: Dn, + _gte: De, + _guid: gn, + _includes: En, + _int: Ls, + _int32: Bs, + _int64: Ws, + _intersection: ak, + _ipv4: mi, + _ipv6: fi, + _isoDate: Ps, + _isoDateTime: Ns, + _isoDuration: Cs, + _isoTime: As, + _jwt: $i, + _ksuid: di, + _lazy: wk, + _length: Rt, + _literal: fk, + _lowercase: jn, _lt: qe, - _lte: Ue, - _mac: xs, - _map: Oy, - _max: Ue, - _maxLength: Lt, - _maxSize: ht, - _mime: Un, - _min: Ie, - _minLength: tt, - _minSize: We, - _multipleOf: dt, - _nan: ic, - _nanoid: ri, - _nativeEnum: Uy, - _negative: $i, - _never: ec, - _nonnegative: _i, - _nonoptional: Zy, - _nonpositive: bi, - _normalize: Tn, - _null: Ys, - _nullable: Ay, - _number: As, - _optional: Ny, + _lte: Pe, + _mac: Us, + _map: sk, + _max: Pe, + _maxLength: Ft, + _maxSize: $t, + _mime: Tn, + _min: De, + _minLength: nt, + _minSize: Ke, + _multipleOf: ft, + _nan: ac, + _nanoid: ai, + _nativeEnum: mk, + _negative: yi, + _never: nc, + _nonnegative: Si, + _nonoptional: bk, + _nonpositive: ki, + _normalize: Nn, + _null: Qs, + _nullable: gk, + _number: Zs, + _optional: vk, _overwrite: Be, - _parse: Et, - _parseAsync: Ut, - _pipe: Fy, - _positive: hi, - _promise: Jy, - _property: yi, - _readonly: Ry, - _record: jy, - _refine: uc, - _regex: zn, - _safeDecode: Tr, - _safeDecodeAsync: Nr, - _safeEncode: Ur, - _safeEncodeAsync: Pr, - _safeParse: Tt, + _parse: Ut, + _parseAsync: Tt, + _pipe: yk, + _positive: _i, + _promise: Ik, + _property: wi, + _readonly: kk, + _record: uk, + _refine: cc, + _regex: Dn, + _safeDecode: Ar, + _safeDecodeAsync: Zr, + _safeEncode: Pr, + _safeEncodeAsync: Cr, + _safeParse: Nt, _safeParseAsync: Pt, - _set: xy, - _size: Mt, - _slugify: Cn, + _set: ck, + _size: Lt, + _slugify: Zn, _startsWith: xn, - _string: js, - _stringFormat: Rt, - _stringbool: fc, - _success: My, - _superRefine: sc, - _symbol: Ks, - _templateLiteral: By, - _toLowerCase: Nn, - _toUpperCase: An, - _transform: Py, + _string: Es, + _stringFormat: Bt, + _stringbool: vc, + _success: $k, + _superRefine: dc, + _symbol: Hs, + _templateLiteral: Sk, + _toLowerCase: An, + _toUpperCase: Cn, + _transform: pk, _trim: Pn, - _tuple: Dy, - _uint32: Rs, - _uint64: Ws, - _ulid: ai, - _undefined: Xs, - _union: Sy, - _unknown: Qs, - _uppercase: jn, - _url: wn, - _uuid: Hr, - _uuidv4: Qr, - _uuidv6: ei, - _uuidv7: ti, - _void: tc, - _xid: li, - _xor: Iy, - clone: Te, - config: pe, - createStandardJSONSchemaMethod: wt, - createToJSONSchemaMethod: vc, - decode: tb, - decodeAsync: rb, - describe: dc, - encode: eb, - encodeAsync: nb, - extractDefs: ft, - finalize: vt, - flattenError: zr, - formatError: Dr, + _tuple: lk, + _uint32: Vs, + _uint64: Xs, + _ulid: si, + _undefined: Ys, + _union: rk, + _unknown: tc, + _uppercase: On, + _url: zn, + _uuid: ti, + _uuidv4: ni, + _uuidv6: ri, + _uuidv7: ii, + _void: rc, + _xid: ci, + _xor: ik, + clone: Ae, + config: _e, + createStandardJSONSchemaMethod: zt, + createToJSONSchemaMethod: gc, + decode: P$, + decodeAsync: C$, + describe: fc, + encode: N$, + encodeAsync: A$, + extractDefs: vt, + finalize: gt, + flattenError: Or, + formatError: Er, globalConfig: It, - globalRegistry: Ee, - initializeContext: mt, - isValidBase64: Rr, - isValidBase64URL: Ou, - isValidJWT: Uu, - locales: Is, - meta: mc, + globalRegistry: Ne, + initializeContext: pt, + isValidBase64: Jr, + isValidBase64URL: xu, + isValidJWT: Nu, + locales: zs, + meta: pc, parse: vr, - parseAsync: pr, - prettifyError: il, + parseAsync: gr, + prettifyError: al, process: ie, - regexes: Mr, - registry: Xr, - safeDecode: ob, - safeDecodeAsync: lb, - safeEncode: ib, - safeEncodeAsync: ab, - safeParse: ol, - safeParseAsync: al, - toDotPath: rl, - toJSONSchema: Hc, - treeifyError: nl, - util: el, - version: lu -}, Symbol.toStringTag, { value: "Module" })), Xy = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ + regexes: Rr, + registry: Qr, + safeDecode: M$, + safeDecodeAsync: F$, + safeEncode: Z$, + safeEncodeAsync: L$, + safeParse: ll, + safeParseAsync: ul, + toDotPath: ol, + toJSONSchema: ed, + treeifyError: il, + util: nl, + version: su +}, Symbol.toStringTag, { value: "Module" })), Ek = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ __proto__: null, - endsWith: En, + endsWith: Un, gt: Ge, - gte: Ie, - includes: On, - length: Ft, - lowercase: Dn, + gte: De, + includes: En, + length: Rt, + lowercase: jn, lt: qe, - lte: Ue, - maxLength: Lt, - maxSize: ht, - mime: Un, - minLength: tt, - minSize: We, - multipleOf: dt, - negative: $i, - nonnegative: _i, - nonpositive: bi, - normalize: Tn, + lte: Pe, + maxLength: Ft, + maxSize: $t, + mime: Tn, + minLength: nt, + minSize: Ke, + multipleOf: ft, + negative: yi, + nonnegative: Si, + nonpositive: ki, + normalize: Nn, overwrite: Be, - positive: hi, - property: yi, - regex: zn, - size: Mt, - slugify: Cn, + positive: _i, + property: wi, + regex: Dn, + size: Lt, + slugify: Zn, startsWith: xn, - toLowerCase: Nn, - toUpperCase: An, + toLowerCase: An, + toUpperCase: Cn, trim: Pn, - uppercase: jn -}, Symbol.toStringTag, { value: "Module" })), Ii = /* @__PURE__ */ v("ZodISODateTime", (e, n) => { - bu.init(e, n), ae.init(e, n); -}); -function Qc(e) { - return /* @__PURE__ */ Us(Ii, e); -} -const wi = /* @__PURE__ */ v("ZodISODate", (e, n) => { - _u.init(e, n), ae.init(e, n); -}); -function ed(e) { - return /* @__PURE__ */ Ts(wi, e); -} -const zi = /* @__PURE__ */ v("ZodISOTime", (e, n) => { + uppercase: On +}, Symbol.toStringTag, { value: "Module" })), Di = /* @__PURE__ */ v("ZodISODateTime", (e, n) => { yu.init(e, n), ae.init(e, n); }); function td(e) { - return /* @__PURE__ */ Ps(zi, e); + return /* @__PURE__ */ Ns(Di, e); } -const Di = /* @__PURE__ */ v("ZodISODuration", (e, n) => { +const ji = /* @__PURE__ */ v("ZodISODate", (e, n) => { ku.init(e, n), ae.init(e, n); }); function nd(e) { - return /* @__PURE__ */ Ns(Di, e); + return /* @__PURE__ */ Ps(ji, e); } -const rd = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ +const Oi = /* @__PURE__ */ v("ZodISOTime", (e, n) => { + Su.init(e, n), ae.init(e, n); +}); +function rd(e) { + return /* @__PURE__ */ As(Oi, e); +} +const Ei = /* @__PURE__ */ v("ZodISODuration", (e, n) => { + wu.init(e, n), ae.init(e, n); +}); +function id(e) { + return /* @__PURE__ */ Cs(Ei, e); +} +const od = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ __proto__: null, - ZodISODate: wi, - ZodISODateTime: Ii, - ZodISODuration: Di, - ZodISOTime: zi, - date: ed, - datetime: Qc, - duration: nd, - time: td -}, Symbol.toStringTag, { value: "Module" })), id = (e, n) => { - wr.init(e, n), e.name = "ZodError", Object.defineProperties(e, { + ZodISODate: ji, + ZodISODateTime: Di, + ZodISODuration: Ei, + ZodISOTime: Oi, + date: nd, + datetime: td, + duration: id, + time: rd +}, Symbol.toStringTag, { value: "Module" })), ad = (e, n) => { + jr.init(e, n), e.name = "ZodError", Object.defineProperties(e, { format: { - value: (r) => Dr(e, r) + value: (r) => Er(e, r) // enumerable: false, }, flatten: { - value: (r) => zr(e, r) + value: (r) => Or(e, r) // enumerable: false, }, addIssue: { value: (r) => { - e.issues.push(r), e.message = JSON.stringify(e.issues, mn, 2); + e.issues.push(r), e.message = JSON.stringify(e.issues, fn, 2); } // enumerable: false, }, addIssues: { value: (r) => { - e.issues.push(...r), e.message = JSON.stringify(e.issues, mn, 2); + e.issues.push(...r), e.message = JSON.stringify(e.issues, fn, 2); } // enumerable: false, }, @@ -13889,13 +14323,13 @@ const rd = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ // enumerable: false, } }); -}, Yy = /* @__PURE__ */ v("ZodError", id), Oe = /* @__PURE__ */ v("ZodError", id, { +}, xk = /* @__PURE__ */ v("ZodError", ad), xe = /* @__PURE__ */ v("ZodError", ad, { Parent: Error -}), od = /* @__PURE__ */ Et(Oe), ad = /* @__PURE__ */ Ut(Oe), ld = /* @__PURE__ */ Tt(Oe), ud = /* @__PURE__ */ Pt(Oe), sd = /* @__PURE__ */ jr(Oe), cd = /* @__PURE__ */ Or(Oe), dd = /* @__PURE__ */ xr(Oe), md = /* @__PURE__ */ Er(Oe), fd = /* @__PURE__ */ Ur(Oe), vd = /* @__PURE__ */ Tr(Oe), pd = /* @__PURE__ */ Pr(Oe), gd = /* @__PURE__ */ Nr(Oe), la = /* @__PURE__ */ new WeakMap(); -function Bt(e, n, r) { +}), ld = /* @__PURE__ */ Ut(xe), ud = /* @__PURE__ */ Tt(xe), sd = /* @__PURE__ */ Nt(xe), cd = /* @__PURE__ */ Pt(xe), dd = /* @__PURE__ */ xr(xe), md = /* @__PURE__ */ Ur(xe), fd = /* @__PURE__ */ Tr(xe), pd = /* @__PURE__ */ Nr(xe), vd = /* @__PURE__ */ Pr(xe), gd = /* @__PURE__ */ Ar(xe), hd = /* @__PURE__ */ Cr(xe), bd = /* @__PURE__ */ Zr(xe), ca = /* @__PURE__ */ new WeakMap(); +function Vt(e, n, r) { const o = Object.getPrototypeOf(e); - let t = la.get(o); - if (t || (t = /* @__PURE__ */ new Set(), la.set(o, t)), !t.has(n)) { + let t = ca.get(o); + if (t || (t = /* @__PURE__ */ new Set(), ca.set(o, t)), !t.has(n)) { t.add(n); for (const i in r) { const a = r[i]; @@ -13923,15 +14357,15 @@ function Bt(e, n, r) { } } } -const K = /* @__PURE__ */ v("ZodType", (e, n) => (W.init(e, n), Object.assign(e["~standard"], { +const X = /* @__PURE__ */ v("ZodType", (e, n) => (W.init(e, n), Object.assign(e["~standard"], { jsonSchema: { - input: wt(e, "input"), - output: wt(e, "output") + input: zt(e, "input"), + output: zt(e, "output") } -}), e.toJSONSchema = vc(e, {}), e.def = n, e.type = n.type, Object.defineProperty(e, "_def", { value: n }), e.parse = (r, o) => od(e, r, o, { callee: e.parse }), e.safeParse = (r, o) => ld(e, r, o), e.parseAsync = async (r, o) => ad(e, r, o, { callee: e.parseAsync }), e.safeParseAsync = async (r, o) => ud(e, r, o), e.spa = e.safeParseAsync, e.encode = (r, o) => sd(e, r, o), e.decode = (r, o) => cd(e, r, o), e.encodeAsync = async (r, o) => dd(e, r, o), e.decodeAsync = async (r, o) => md(e, r, o), e.safeEncode = (r, o) => fd(e, r, o), e.safeDecode = (r, o) => vd(e, r, o), e.safeEncodeAsync = async (r, o) => pd(e, r, o), e.safeDecodeAsync = async (r, o) => gd(e, r, o), Bt(e, "ZodType", { +}), e.toJSONSchema = gc(e, {}), e.def = n, e.type = n.type, Object.defineProperty(e, "_def", { value: n }), e.parse = (r, o) => ld(e, r, o, { callee: e.parse }), e.safeParse = (r, o) => sd(e, r, o), e.parseAsync = async (r, o) => ud(e, r, o, { callee: e.parseAsync }), e.safeParseAsync = async (r, o) => cd(e, r, o), e.spa = e.safeParseAsync, e.encode = (r, o) => dd(e, r, o), e.decode = (r, o) => md(e, r, o), e.encodeAsync = async (r, o) => fd(e, r, o), e.decodeAsync = async (r, o) => pd(e, r, o), e.safeEncode = (r, o) => vd(e, r, o), e.safeDecode = (r, o) => gd(e, r, o), e.safeEncodeAsync = async (r, o) => hd(e, r, o), e.safeDecodeAsync = async (r, o) => bd(e, r, o), Vt(e, "ZodType", { check(...r) { const o = this.def; - return this.clone(Ze(o, { + return this.clone(Le(o, { checks: [ ...o.checks ?? [], ...r.map((t) => typeof t == "function" ? { _zod: { check: t, def: { check: "custom" }, onattach: [] } } : t) @@ -13942,7 +14376,7 @@ const K = /* @__PURE__ */ v("ZodType", (e, n) => (W.init(e, n), Object.assign(e[ return this.check(...r); }, clone(r, o) { - return Te(this, r, o); + return Ae(this, r, o); }, brand() { return this; @@ -13951,65 +14385,65 @@ const K = /* @__PURE__ */ v("ZodType", (e, n) => (W.init(e, n), Object.assign(e[ return r.add(this, o), this; }, refine(r, o) { - return this.check(bo(r, o)); + return this.check(ko(r, o)); }, superRefine(r, o) { - return this.check(_o(r, o)); + return this.check(So(r, o)); }, overwrite(r) { return this.check(/* @__PURE__ */ Be(r)); }, optional() { - return jt(this); - }, - exactOptional() { - return Qi(this); - }, - nullable() { return Ot(this); }, + exactOptional() { + return no(this); + }, + nullable() { + return Et(this); + }, nullish() { - return jt(Ot(this)); + return Ot(Et(this)); }, nonoptional(r) { - return oo(this, r); - }, - array() { - return Kt(this); - }, - or(r) { - return ir([this, r]); - }, - and(r) { - return Bi(this, r); - }, - transform(r) { - return hn(this, ar(r)); - }, - default(r) { - return no(this, r); - }, - prefault(r) { - return io(this, r); - }, - catch(r) { return uo(this, r); }, + array() { + return Xt(this); + }, + or(r) { + return or([this, r]); + }, + and(r) { + return qi(this, r); + }, + transform(r) { + return bn(this, lr(r)); + }, + default(r) { + return oo(this, r); + }, + prefault(r) { + return lo(this, r); + }, + catch(r) { + return mo(this, r); + }, pipe(r) { - return hn(this, r); + return bn(this, r); }, readonly() { - return fo(this); + return go(this); }, describe(r) { const o = this.clone(); - return Ee.add(o, { description: r }), o; + return Ne.add(o, { description: r }), o; }, meta(...r) { if (r.length === 0) - return Ee.get(this); + return Ne.get(this); const o = this.clone(); - return Ee.add(o, r[0]), o; + return Ne.add(o, r[0]), o; }, isOptional() { return this.safeParse(void 0).success; @@ -14023,264 +14457,264 @@ const K = /* @__PURE__ */ v("ZodType", (e, n) => (W.init(e, n), Object.assign(e[ }), Object.defineProperty(e, "description", { get() { var r; - return (r = Ee.get(e)) == null ? void 0 : r.description; + return (r = Ne.get(e)) == null ? void 0 : r.description; }, configurable: !0 -}), e)), Zn = /* @__PURE__ */ v("_ZodString", (e, n) => { - Zt.init(e, n), K.init(e, n), e._zod.processJSONSchema = (o, t, i) => pc(e, o, t); +}), e)), Mn = /* @__PURE__ */ v("_ZodString", (e, n) => { + Mt.init(e, n), X.init(e, n), e._zod.processJSONSchema = (o, t, i) => hc(e, o, t); const r = e._zod.bag; - e.format = r.format ?? null, e.minLength = r.minimum ?? null, e.maxLength = r.maximum ?? null, Bt(e, "_ZodString", { + e.format = r.format ?? null, e.minLength = r.minimum ?? null, e.maxLength = r.maximum ?? null, Vt(e, "_ZodString", { regex(...o) { - return this.check(/* @__PURE__ */ zn(...o)); + return this.check(/* @__PURE__ */ Dn(...o)); }, includes(...o) { - return this.check(/* @__PURE__ */ On(...o)); + return this.check(/* @__PURE__ */ En(...o)); }, startsWith(...o) { return this.check(/* @__PURE__ */ xn(...o)); }, endsWith(...o) { - return this.check(/* @__PURE__ */ En(...o)); + return this.check(/* @__PURE__ */ Un(...o)); }, min(...o) { - return this.check(/* @__PURE__ */ tt(...o)); + return this.check(/* @__PURE__ */ nt(...o)); }, max(...o) { - return this.check(/* @__PURE__ */ Lt(...o)); - }, - length(...o) { return this.check(/* @__PURE__ */ Ft(...o)); }, + length(...o) { + return this.check(/* @__PURE__ */ Rt(...o)); + }, nonempty(...o) { - return this.check(/* @__PURE__ */ tt(1, ...o)); + return this.check(/* @__PURE__ */ nt(1, ...o)); }, lowercase(o) { - return this.check(/* @__PURE__ */ Dn(o)); + return this.check(/* @__PURE__ */ jn(o)); }, uppercase(o) { - return this.check(/* @__PURE__ */ jn(o)); + return this.check(/* @__PURE__ */ On(o)); }, trim() { return this.check(/* @__PURE__ */ Pn()); }, normalize(...o) { - return this.check(/* @__PURE__ */ Tn(...o)); + return this.check(/* @__PURE__ */ Nn(...o)); }, toLowerCase() { - return this.check(/* @__PURE__ */ Nn()); - }, - toUpperCase() { return this.check(/* @__PURE__ */ An()); }, - slugify() { + toUpperCase() { return this.check(/* @__PURE__ */ Cn()); + }, + slugify() { + return this.check(/* @__PURE__ */ Zn()); } }); -}), Vt = /* @__PURE__ */ v("ZodString", (e, n) => { - Zt.init(e, n), Zn.init(e, n), e.email = (r) => e.check(/* @__PURE__ */ Yr(Mn, r)), e.url = (r) => e.check(/* @__PURE__ */ wn(Jt, r)), e.jwt = (r) => e.check(/* @__PURE__ */ gi(er, r)), e.emoji = (r) => e.check(/* @__PURE__ */ ni(Ln, r)), e.guid = (r) => e.check(/* @__PURE__ */ pn(Dt, r)), e.uuid = (r) => e.check(/* @__PURE__ */ Hr(Ce, r)), e.uuidv4 = (r) => e.check(/* @__PURE__ */ Qr(Ce, r)), e.uuidv6 = (r) => e.check(/* @__PURE__ */ ei(Ce, r)), e.uuidv7 = (r) => e.check(/* @__PURE__ */ ti(Ce, r)), e.nanoid = (r) => e.check(/* @__PURE__ */ ri(Fn, r)), e.guid = (r) => e.check(/* @__PURE__ */ pn(Dt, r)), e.cuid = (r) => e.check(/* @__PURE__ */ ii(Rn, r)), e.cuid2 = (r) => e.check(/* @__PURE__ */ oi(Bn, r)), e.ulid = (r) => e.check(/* @__PURE__ */ ai(Vn, r)), e.base64 = (r) => e.check(/* @__PURE__ */ fi(Yn, r)), e.base64url = (r) => e.check(/* @__PURE__ */ vi(Hn, r)), e.xid = (r) => e.check(/* @__PURE__ */ li(Jn, r)), e.ksuid = (r) => e.check(/* @__PURE__ */ ui(qn, r)), e.ipv4 = (r) => e.check(/* @__PURE__ */ si(Gn, r)), e.ipv6 = (r) => e.check(/* @__PURE__ */ ci(Wn, r)), e.cidrv4 = (r) => e.check(/* @__PURE__ */ di(Kn, r)), e.cidrv6 = (r) => e.check(/* @__PURE__ */ mi(Xn, r)), e.e164 = (r) => e.check(/* @__PURE__ */ pi(Qn, r)), e.datetime = (r) => e.check(Qc(r)), e.date = (r) => e.check(ed(r)), e.time = (r) => e.check(td(r)), e.duration = (r) => e.check(nd(r)); +}), Jt = /* @__PURE__ */ v("ZodString", (e, n) => { + Mt.init(e, n), Mn.init(e, n), e.email = (r) => e.check(/* @__PURE__ */ ei(Ln, r)), e.url = (r) => e.check(/* @__PURE__ */ zn(qt, r)), e.jwt = (r) => e.check(/* @__PURE__ */ $i(tr, r)), e.emoji = (r) => e.check(/* @__PURE__ */ oi(Fn, r)), e.guid = (r) => e.check(/* @__PURE__ */ gn(jt, r)), e.uuid = (r) => e.check(/* @__PURE__ */ ti(Me, r)), e.uuidv4 = (r) => e.check(/* @__PURE__ */ ni(Me, r)), e.uuidv6 = (r) => e.check(/* @__PURE__ */ ri(Me, r)), e.uuidv7 = (r) => e.check(/* @__PURE__ */ ii(Me, r)), e.nanoid = (r) => e.check(/* @__PURE__ */ ai(Rn, r)), e.guid = (r) => e.check(/* @__PURE__ */ gn(jt, r)), e.cuid = (r) => e.check(/* @__PURE__ */ li(Bn, r)), e.cuid2 = (r) => e.check(/* @__PURE__ */ ui(Vn, r)), e.ulid = (r) => e.check(/* @__PURE__ */ si(Jn, r)), e.base64 = (r) => e.check(/* @__PURE__ */ gi(Yn, r)), e.base64url = (r) => e.check(/* @__PURE__ */ hi(Qn, r)), e.xid = (r) => e.check(/* @__PURE__ */ ci(qn, r)), e.ksuid = (r) => e.check(/* @__PURE__ */ di(Gn, r)), e.ipv4 = (r) => e.check(/* @__PURE__ */ mi(Kn, r)), e.ipv6 = (r) => e.check(/* @__PURE__ */ fi(Wn, r)), e.cidrv4 = (r) => e.check(/* @__PURE__ */ pi(Xn, r)), e.cidrv6 = (r) => e.check(/* @__PURE__ */ vi(Hn, r)), e.e164 = (r) => e.check(/* @__PURE__ */ bi(er, r)), e.datetime = (r) => e.check(td(r)), e.date = (r) => e.check(nd(r)), e.time = (r) => e.check(rd(r)), e.duration = (r) => e.check(id(r)); }); -function zt(e) { - return /* @__PURE__ */ js(Vt, e); +function Dt(e) { + return /* @__PURE__ */ Es(Jt, e); } const ae = /* @__PURE__ */ v("ZodStringFormat", (e, n) => { - oe.init(e, n), Zn.init(e, n); -}), Mn = /* @__PURE__ */ v("ZodEmail", (e, n) => { - cu.init(e, n), ae.init(e, n); -}); -function hd(e) { - return /* @__PURE__ */ Yr(Mn, e); -} -const Dt = /* @__PURE__ */ v("ZodGUID", (e, n) => { - uu.init(e, n), ae.init(e, n); -}); -function $d(e) { - return /* @__PURE__ */ pn(Dt, e); -} -const Ce = /* @__PURE__ */ v("ZodUUID", (e, n) => { - su.init(e, n), ae.init(e, n); -}); -function bd(e) { - return /* @__PURE__ */ Hr(Ce, e); -} -function _d(e) { - return /* @__PURE__ */ Qr(Ce, e); -} -function yd(e) { - return /* @__PURE__ */ ei(Ce, e); -} -function kd(e) { - return /* @__PURE__ */ ti(Ce, e); -} -const Jt = /* @__PURE__ */ v("ZodURL", (e, n) => { - du.init(e, n), ae.init(e, n); -}); -function Sd(e) { - return /* @__PURE__ */ wn(Jt, e); -} -function Id(e) { - return /* @__PURE__ */ wn(Jt, { - protocol: Cr, - hostname: wl, - ...y(e) - }); -} -const Ln = /* @__PURE__ */ v("ZodEmoji", (e, n) => { + oe.init(e, n), Mn.init(e, n); +}), Ln = /* @__PURE__ */ v("ZodEmail", (e, n) => { mu.init(e, n), ae.init(e, n); }); -function wd(e) { - return /* @__PURE__ */ ni(Ln, e); +function $d(e) { + return /* @__PURE__ */ ei(Ln, e); } -const Fn = /* @__PURE__ */ v("ZodNanoID", (e, n) => { +const jt = /* @__PURE__ */ v("ZodGUID", (e, n) => { + cu.init(e, n), ae.init(e, n); +}); +function _d(e) { + return /* @__PURE__ */ gn(jt, e); +} +const Me = /* @__PURE__ */ v("ZodUUID", (e, n) => { + du.init(e, n), ae.init(e, n); +}); +function yd(e) { + return /* @__PURE__ */ ti(Me, e); +} +function kd(e) { + return /* @__PURE__ */ ni(Me, e); +} +function Sd(e) { + return /* @__PURE__ */ ri(Me, e); +} +function wd(e) { + return /* @__PURE__ */ ii(Me, e); +} +const qt = /* @__PURE__ */ v("ZodURL", (e, n) => { fu.init(e, n), ae.init(e, n); }); +function Id(e) { + return /* @__PURE__ */ zn(qt, e); +} function zd(e) { - return /* @__PURE__ */ ri(Fn, e); + return /* @__PURE__ */ zn(qt, { + protocol: Lr, + hostname: Dl, + ..._(e) + }); } -const Rn = /* @__PURE__ */ v("ZodCUID", (e, n) => { - vu.init(e, n), ae.init(e, n); -}); -function Dd(e) { - return /* @__PURE__ */ ii(Rn, e); -} -const Bn = /* @__PURE__ */ v("ZodCUID2", (e, n) => { +const Fn = /* @__PURE__ */ v("ZodEmoji", (e, n) => { pu.init(e, n), ae.init(e, n); }); -function jd(e) { - return /* @__PURE__ */ oi(Bn, e); +function Dd(e) { + return /* @__PURE__ */ oi(Fn, e); } -const Vn = /* @__PURE__ */ v("ZodULID", (e, n) => { +const Rn = /* @__PURE__ */ v("ZodNanoID", (e, n) => { + vu.init(e, n), ae.init(e, n); +}); +function jd(e) { + return /* @__PURE__ */ ai(Rn, e); +} +const Bn = /* @__PURE__ */ v("ZodCUID", (e, n) => { gu.init(e, n), ae.init(e, n); }); function Od(e) { - return /* @__PURE__ */ ai(Vn, e); + return /* @__PURE__ */ li(Bn, e); } -const Jn = /* @__PURE__ */ v("ZodXID", (e, n) => { +const Vn = /* @__PURE__ */ v("ZodCUID2", (e, n) => { hu.init(e, n), ae.init(e, n); }); -function xd(e) { - return /* @__PURE__ */ li(Jn, e); +function Ed(e) { + return /* @__PURE__ */ ui(Vn, e); } -const qn = /* @__PURE__ */ v("ZodKSUID", (e, n) => { +const Jn = /* @__PURE__ */ v("ZodULID", (e, n) => { + bu.init(e, n), ae.init(e, n); +}); +function xd(e) { + return /* @__PURE__ */ si(Jn, e); +} +const qn = /* @__PURE__ */ v("ZodXID", (e, n) => { $u.init(e, n), ae.init(e, n); }); -function Ed(e) { - return /* @__PURE__ */ ui(qn, e); -} -const Gn = /* @__PURE__ */ v("ZodIPv4", (e, n) => { - Su.init(e, n), ae.init(e, n); -}); function Ud(e) { - return /* @__PURE__ */ si(Gn, e); + return /* @__PURE__ */ ci(qn, e); } -const ji = /* @__PURE__ */ v("ZodMAC", (e, n) => { - wu.init(e, n), ae.init(e, n); +const Gn = /* @__PURE__ */ v("ZodKSUID", (e, n) => { + _u.init(e, n), ae.init(e, n); }); function Td(e) { - return /* @__PURE__ */ xs(ji, e); + return /* @__PURE__ */ di(Gn, e); } -const Wn = /* @__PURE__ */ v("ZodIPv6", (e, n) => { +const Kn = /* @__PURE__ */ v("ZodIPv4", (e, n) => { Iu.init(e, n), ae.init(e, n); }); -function Pd(e) { - return /* @__PURE__ */ ci(Wn, e); -} -const Kn = /* @__PURE__ */ v("ZodCIDRv4", (e, n) => { - zu.init(e, n), ae.init(e, n); -}); function Nd(e) { - return /* @__PURE__ */ di(Kn, e); + return /* @__PURE__ */ mi(Kn, e); } -const Xn = /* @__PURE__ */ v("ZodCIDRv6", (e, n) => { +const xi = /* @__PURE__ */ v("ZodMAC", (e, n) => { Du.init(e, n), ae.init(e, n); }); -function Ad(e) { - return /* @__PURE__ */ mi(Xn, e); +function Pd(e) { + return /* @__PURE__ */ Us(xi, e); } -const Yn = /* @__PURE__ */ v("ZodBase64", (e, n) => { +const Wn = /* @__PURE__ */ v("ZodIPv6", (e, n) => { + zu.init(e, n), ae.init(e, n); +}); +function Ad(e) { + return /* @__PURE__ */ fi(Wn, e); +} +const Xn = /* @__PURE__ */ v("ZodCIDRv4", (e, n) => { ju.init(e, n), ae.init(e, n); }); function Cd(e) { - return /* @__PURE__ */ fi(Yn, e); + return /* @__PURE__ */ pi(Xn, e); } -const Hn = /* @__PURE__ */ v("ZodBase64URL", (e, n) => { - xu.init(e, n), ae.init(e, n); +const Hn = /* @__PURE__ */ v("ZodCIDRv6", (e, n) => { + Ou.init(e, n), ae.init(e, n); }); function Zd(e) { return /* @__PURE__ */ vi(Hn, e); } -const Qn = /* @__PURE__ */ v("ZodE164", (e, n) => { +const Yn = /* @__PURE__ */ v("ZodBase64", (e, n) => { Eu.init(e, n), ae.init(e, n); }); function Md(e) { - return /* @__PURE__ */ pi(Qn, e); + return /* @__PURE__ */ gi(Yn, e); } -const er = /* @__PURE__ */ v("ZodJWT", (e, n) => { - Tu.init(e, n), ae.init(e, n); +const Qn = /* @__PURE__ */ v("ZodBase64URL", (e, n) => { + Uu.init(e, n), ae.init(e, n); }); function Ld(e) { - return /* @__PURE__ */ gi(er, e); + return /* @__PURE__ */ hi(Qn, e); } -const $t = /* @__PURE__ */ v("ZodCustomStringFormat", (e, n) => { +const er = /* @__PURE__ */ v("ZodE164", (e, n) => { + Tu.init(e, n), ae.init(e, n); +}); +function Fd(e) { + return /* @__PURE__ */ bi(er, e); +} +const tr = /* @__PURE__ */ v("ZodJWT", (e, n) => { Pu.init(e, n), ae.init(e, n); }); -function Fd(e, n, r = {}) { - return /* @__PURE__ */ Rt($t, e, n, r); -} function Rd(e) { - return /* @__PURE__ */ Rt($t, "hostname", Il, e); + return /* @__PURE__ */ $i(tr, e); } -function Bd(e) { - return /* @__PURE__ */ Rt($t, "hex", Ll, e); +const _t = /* @__PURE__ */ v("ZodCustomStringFormat", (e, n) => { + Au.init(e, n), ae.init(e, n); +}); +function Bd(e, n, r = {}) { + return /* @__PURE__ */ Bt(_t, e, n, r); } -function Vd(e, n) { - const r = (n == null ? void 0 : n.enc) ?? "hex", o = `${e}_${r}`, t = Mr[o]; +function Vd(e) { + return /* @__PURE__ */ Bt(_t, "hostname", zl, e); +} +function Jd(e) { + return /* @__PURE__ */ Bt(_t, "hex", Rl, e); +} +function qd(e, n) { + const r = (n == null ? void 0 : n.enc) ?? "hex", o = `${e}_${r}`, t = Rr[o]; if (!t) throw new Error(`Unrecognized hash format: ${o}`); - return /* @__PURE__ */ Rt($t, o, t, n); + return /* @__PURE__ */ Bt(_t, o, t, n); } -const qt = /* @__PURE__ */ v("ZodNumber", (e, n) => { - Br.init(e, n), K.init(e, n), e._zod.processJSONSchema = (o, t, i) => gc(e, o, t), Bt(e, "ZodNumber", { +const Gt = /* @__PURE__ */ v("ZodNumber", (e, n) => { + qr.init(e, n), X.init(e, n), e._zod.processJSONSchema = (o, t, i) => bc(e, o, t), Vt(e, "ZodNumber", { gt(o, t) { return this.check(/* @__PURE__ */ Ge(o, t)); }, gte(o, t) { - return this.check(/* @__PURE__ */ Ie(o, t)); + return this.check(/* @__PURE__ */ De(o, t)); }, min(o, t) { - return this.check(/* @__PURE__ */ Ie(o, t)); + return this.check(/* @__PURE__ */ De(o, t)); }, lt(o, t) { return this.check(/* @__PURE__ */ qe(o, t)); }, lte(o, t) { - return this.check(/* @__PURE__ */ Ue(o, t)); + return this.check(/* @__PURE__ */ Pe(o, t)); }, max(o, t) { - return this.check(/* @__PURE__ */ Ue(o, t)); + return this.check(/* @__PURE__ */ Pe(o, t)); }, int(o) { - return this.check(gn(o)); + return this.check(hn(o)); }, safe(o) { - return this.check(gn(o)); + return this.check(hn(o)); }, positive(o) { return this.check(/* @__PURE__ */ Ge(0, o)); }, nonnegative(o) { - return this.check(/* @__PURE__ */ Ie(0, o)); + return this.check(/* @__PURE__ */ De(0, o)); }, negative(o) { return this.check(/* @__PURE__ */ qe(0, o)); }, nonpositive(o) { - return this.check(/* @__PURE__ */ Ue(0, o)); + return this.check(/* @__PURE__ */ Pe(0, o)); }, multipleOf(o, t) { - return this.check(/* @__PURE__ */ dt(o, t)); + return this.check(/* @__PURE__ */ ft(o, t)); }, step(o, t) { - return this.check(/* @__PURE__ */ dt(o, t)); + return this.check(/* @__PURE__ */ ft(o, t)); }, finite() { return this; @@ -14289,307 +14723,307 @@ const qt = /* @__PURE__ */ v("ZodNumber", (e, n) => { const r = e._zod.bag; e.minValue = Math.max(r.minimum ?? Number.NEGATIVE_INFINITY, r.exclusiveMinimum ?? Number.NEGATIVE_INFINITY) ?? null, e.maxValue = Math.min(r.maximum ?? Number.POSITIVE_INFINITY, r.exclusiveMaximum ?? Number.POSITIVE_INFINITY) ?? null, e.isInt = (r.format ?? "").includes("int") || Number.isSafeInteger(r.multipleOf ?? 0.5), e.isFinite = !0, e.format = r.format ?? null; }); -function Oi(e) { - return /* @__PURE__ */ As(qt, e); +function Ui(e) { + return /* @__PURE__ */ Zs(Gt, e); } const ot = /* @__PURE__ */ v("ZodNumberFormat", (e, n) => { - Nu.init(e, n), qt.init(e, n); + Cu.init(e, n), Gt.init(e, n); }); -function gn(e) { - return /* @__PURE__ */ Zs(ot, e); -} -function Jd(e) { - return /* @__PURE__ */ Ms(ot, e); -} -function qd(e) { +function hn(e) { return /* @__PURE__ */ Ls(ot, e); } function Gd(e) { return /* @__PURE__ */ Fs(ot, e); } -function Wd(e) { +function Kd(e) { return /* @__PURE__ */ Rs(ot, e); } -const Gt = /* @__PURE__ */ v("ZodBoolean", (e, n) => { - Vr.init(e, n), K.init(e, n), e._zod.processJSONSchema = (r, o, t) => hc(e, r, o); +function Wd(e) { + return /* @__PURE__ */ Bs(ot, e); +} +function Xd(e) { + return /* @__PURE__ */ Vs(ot, e); +} +const Kt = /* @__PURE__ */ v("ZodBoolean", (e, n) => { + Gr.init(e, n), X.init(e, n), e._zod.processJSONSchema = (r, o, t) => $c(e, r, o); }); -function xi(e) { - return /* @__PURE__ */ Bs(Gt, e); +function Ti(e) { + return /* @__PURE__ */ Js(Kt, e); } const Wt = /* @__PURE__ */ v("ZodBigInt", (e, n) => { - Jr.init(e, n), K.init(e, n), e._zod.processJSONSchema = (o, t, i) => $c(e, o), e.gte = (o, t) => e.check(/* @__PURE__ */ Ie(o, t)), e.min = (o, t) => e.check(/* @__PURE__ */ Ie(o, t)), e.gt = (o, t) => e.check(/* @__PURE__ */ Ge(o, t)), e.gte = (o, t) => e.check(/* @__PURE__ */ Ie(o, t)), e.min = (o, t) => e.check(/* @__PURE__ */ Ie(o, t)), e.lt = (o, t) => e.check(/* @__PURE__ */ qe(o, t)), e.lte = (o, t) => e.check(/* @__PURE__ */ Ue(o, t)), e.max = (o, t) => e.check(/* @__PURE__ */ Ue(o, t)), e.positive = (o) => e.check(/* @__PURE__ */ Ge(BigInt(0), o)), e.negative = (o) => e.check(/* @__PURE__ */ qe(BigInt(0), o)), e.nonpositive = (o) => e.check(/* @__PURE__ */ Ue(BigInt(0), o)), e.nonnegative = (o) => e.check(/* @__PURE__ */ Ie(BigInt(0), o)), e.multipleOf = (o, t) => e.check(/* @__PURE__ */ dt(o, t)); + Kr.init(e, n), X.init(e, n), e._zod.processJSONSchema = (o, t, i) => _c(e, o), e.gte = (o, t) => e.check(/* @__PURE__ */ De(o, t)), e.min = (o, t) => e.check(/* @__PURE__ */ De(o, t)), e.gt = (o, t) => e.check(/* @__PURE__ */ Ge(o, t)), e.gte = (o, t) => e.check(/* @__PURE__ */ De(o, t)), e.min = (o, t) => e.check(/* @__PURE__ */ De(o, t)), e.lt = (o, t) => e.check(/* @__PURE__ */ qe(o, t)), e.lte = (o, t) => e.check(/* @__PURE__ */ Pe(o, t)), e.max = (o, t) => e.check(/* @__PURE__ */ Pe(o, t)), e.positive = (o) => e.check(/* @__PURE__ */ Ge(BigInt(0), o)), e.negative = (o) => e.check(/* @__PURE__ */ qe(BigInt(0), o)), e.nonpositive = (o) => e.check(/* @__PURE__ */ Pe(BigInt(0), o)), e.nonnegative = (o) => e.check(/* @__PURE__ */ De(BigInt(0), o)), e.multipleOf = (o, t) => e.check(/* @__PURE__ */ ft(o, t)); const r = e._zod.bag; e.minValue = r.minimum ?? null, e.maxValue = r.maximum ?? null, e.format = r.format ?? null; }); -function Kd(e) { - return /* @__PURE__ */ Js(Wt, e); -} -const tr = /* @__PURE__ */ v("ZodBigIntFormat", (e, n) => { - Au.init(e, n), Wt.init(e, n); -}); -function Xd(e) { - return /* @__PURE__ */ Gs(tr, e); -} -function Yd(e) { - return /* @__PURE__ */ Ws(tr, e); -} -const Ei = /* @__PURE__ */ v("ZodSymbol", (e, n) => { - Cu.init(e, n), K.init(e, n), e._zod.processJSONSchema = (r, o, t) => bc(e, r); -}); function Hd(e) { - return /* @__PURE__ */ Ks(Ei, e); + return /* @__PURE__ */ Gs(Wt, e); } -const Ui = /* @__PURE__ */ v("ZodUndefined", (e, n) => { - Zu.init(e, n), K.init(e, n), e._zod.processJSONSchema = (r, o, t) => yc(e, r); +const nr = /* @__PURE__ */ v("ZodBigIntFormat", (e, n) => { + Zu.init(e, n), Wt.init(e, n); }); +function Yd(e) { + return /* @__PURE__ */ Ws(nr, e); +} function Qd(e) { - return /* @__PURE__ */ Xs(Ui, e); + return /* @__PURE__ */ Xs(nr, e); } -const Ti = /* @__PURE__ */ v("ZodNull", (e, n) => { - Mu.init(e, n), K.init(e, n), e._zod.processJSONSchema = (r, o, t) => _c(e, r, o); +const Ni = /* @__PURE__ */ v("ZodSymbol", (e, n) => { + Mu.init(e, n), X.init(e, n), e._zod.processJSONSchema = (r, o, t) => yc(e, r); }); -function Pi(e) { - return /* @__PURE__ */ Ys(Ti, e); +function em(e) { + return /* @__PURE__ */ Hs(Ni, e); } -const Ni = /* @__PURE__ */ v("ZodAny", (e, n) => { - Lu.init(e, n), K.init(e, n), e._zod.processJSONSchema = (r, o, t) => Ic(); -}); -function em() { - return /* @__PURE__ */ Hs(Ni); -} -const Ai = /* @__PURE__ */ v("ZodUnknown", (e, n) => { - Fu.init(e, n), K.init(e, n), e._zod.processJSONSchema = (r, o, t) => wc(); -}); -function nt() { - return /* @__PURE__ */ Qs(Ai); -} -const Ci = /* @__PURE__ */ v("ZodNever", (e, n) => { - Ru.init(e, n), K.init(e, n), e._zod.processJSONSchema = (r, o, t) => Sc(e, r, o); -}); -function nr(e) { - return /* @__PURE__ */ ec(Ci, e); -} -const Zi = /* @__PURE__ */ v("ZodVoid", (e, n) => { - Bu.init(e, n), K.init(e, n), e._zod.processJSONSchema = (r, o, t) => kc(e, r); +const Pi = /* @__PURE__ */ v("ZodUndefined", (e, n) => { + Lu.init(e, n), X.init(e, n), e._zod.processJSONSchema = (r, o, t) => Sc(e, r); }); function tm(e) { - return /* @__PURE__ */ tc(Zi, e); + return /* @__PURE__ */ Ys(Pi, e); } -const rr = /* @__PURE__ */ v("ZodDate", (e, n) => { - Vu.init(e, n), K.init(e, n), e._zod.processJSONSchema = (o, t, i) => zc(e, o), e.min = (o, t) => e.check(/* @__PURE__ */ Ie(o, t)), e.max = (o, t) => e.check(/* @__PURE__ */ Ue(o, t)); +const Ai = /* @__PURE__ */ v("ZodNull", (e, n) => { + Fu.init(e, n), X.init(e, n), e._zod.processJSONSchema = (r, o, t) => kc(e, r, o); +}); +function Ci(e) { + return /* @__PURE__ */ Qs(Ai, e); +} +const Zi = /* @__PURE__ */ v("ZodAny", (e, n) => { + Ru.init(e, n), X.init(e, n), e._zod.processJSONSchema = (r, o, t) => zc(); +}); +function nm() { + return /* @__PURE__ */ ec(Zi); +} +const Mi = /* @__PURE__ */ v("ZodUnknown", (e, n) => { + Bu.init(e, n), X.init(e, n), e._zod.processJSONSchema = (r, o, t) => Dc(); +}); +function rt() { + return /* @__PURE__ */ tc(Mi); +} +const Li = /* @__PURE__ */ v("ZodNever", (e, n) => { + Vu.init(e, n), X.init(e, n), e._zod.processJSONSchema = (r, o, t) => Ic(e, r, o); +}); +function rr(e) { + return /* @__PURE__ */ nc(Li, e); +} +const Fi = /* @__PURE__ */ v("ZodVoid", (e, n) => { + Ju.init(e, n), X.init(e, n), e._zod.processJSONSchema = (r, o, t) => wc(e, r); +}); +function rm(e) { + return /* @__PURE__ */ rc(Fi, e); +} +const ir = /* @__PURE__ */ v("ZodDate", (e, n) => { + qu.init(e, n), X.init(e, n), e._zod.processJSONSchema = (o, t, i) => jc(e, o), e.min = (o, t) => e.check(/* @__PURE__ */ De(o, t)), e.max = (o, t) => e.check(/* @__PURE__ */ Pe(o, t)); const r = e._zod.bag; e.minDate = r.minimum ? new Date(r.minimum) : null, e.maxDate = r.maximum ? new Date(r.maximum) : null; }); -function nm(e) { - return /* @__PURE__ */ nc(rr, e); +function im(e) { + return /* @__PURE__ */ ic(ir, e); } -const Mi = /* @__PURE__ */ v("ZodArray", (e, n) => { - Ju.init(e, n), K.init(e, n), e._zod.processJSONSchema = (r, o, t) => Zc(e, r, o, t), e.element = n.element, Bt(e, "ZodArray", { +const Ri = /* @__PURE__ */ v("ZodArray", (e, n) => { + Gu.init(e, n), X.init(e, n), e._zod.processJSONSchema = (r, o, t) => Lc(e, r, o, t), e.element = n.element, Vt(e, "ZodArray", { min(r, o) { - return this.check(/* @__PURE__ */ tt(r, o)); + return this.check(/* @__PURE__ */ nt(r, o)); }, nonempty(r) { - return this.check(/* @__PURE__ */ tt(1, r)); + return this.check(/* @__PURE__ */ nt(1, r)); }, max(r, o) { - return this.check(/* @__PURE__ */ Lt(r, o)); + return this.check(/* @__PURE__ */ Ft(r, o)); }, length(r, o) { - return this.check(/* @__PURE__ */ Ft(r, o)); + return this.check(/* @__PURE__ */ Rt(r, o)); }, unwrap() { return this.element; } }); }); -function Kt(e, n) { - return /* @__PURE__ */ oc(Mi, e, n); +function Xt(e, n) { + return /* @__PURE__ */ lc(Ri, e, n); } -function rm(e) { +function om(e) { const n = e._zod.def.shape; - return or(Object.keys(n)); + return ar(Object.keys(n)); } -const Xt = /* @__PURE__ */ v("ZodObject", (e, n) => { - Ku.init(e, n), K.init(e, n), e._zod.processJSONSchema = (r, o, t) => Mc(e, r, o, t), Y(e, "shape", () => n.shape), Bt(e, "ZodObject", { +const Ht = /* @__PURE__ */ v("ZodObject", (e, n) => { + Hu.init(e, n), X.init(e, n), e._zod.processJSONSchema = (r, o, t) => Fc(e, r, o, t), H(e, "shape", () => n.shape), Vt(e, "ZodObject", { keyof() { - return or(Object.keys(this._zod.def.shape)); + return ar(Object.keys(this._zod.def.shape)); }, catchall(r) { return this.clone({ ...this._zod.def, catchall: r }); }, passthrough() { - return this.clone({ ...this._zod.def, catchall: nt() }); + return this.clone({ ...this._zod.def, catchall: rt() }); }, loose() { - return this.clone({ ...this._zod.def, catchall: nt() }); + return this.clone({ ...this._zod.def, catchall: rt() }); }, strict() { - return this.clone({ ...this._zod.def, catchall: nr() }); + return this.clone({ ...this._zod.def, catchall: rr() }); }, strip() { return this.clone({ ...this._zod.def, catchall: void 0 }); }, extend(r) { - return qa(this, r); + return Ka(this, r); }, safeExtend(r) { - return Ga(this, r); - }, - merge(r) { return Wa(this, r); }, + merge(r) { + return Xa(this, r); + }, pick(r) { - return Va(this, r); + return qa(this, r); }, omit(r) { - return Ja(this, r); + return Ga(this, r); }, partial(...r) { - return Ka(lr, this, r[0]); + return Ha(ur, this, r[0]); }, required(...r) { - return Xa(ur, this, r[0]); + return Ya(sr, this, r[0]); } }); }); -function im(e, n) { +function am(e, n) { const r = { type: "object", shape: e ?? {}, - ...y(n) + ..._(n) }; - return new Xt(r); + return new Ht(r); } -function om(e, n) { - return new Xt({ +function lm(e, n) { + return new Ht({ type: "object", shape: e, - catchall: nr(), - ...y(n) + catchall: rr(), + ..._(n) }); } -function am(e, n) { - return new Xt({ +function um(e, n) { + return new Ht({ type: "object", shape: e, - catchall: nt(), - ...y(n) + catchall: rt(), + ..._(n) }); } const Yt = /* @__PURE__ */ v("ZodUnion", (e, n) => { - In.init(e, n), K.init(e, n), e._zod.processJSONSchema = (r, o, t) => ki(e, r, o, t), e.options = n.options; + In.init(e, n), X.init(e, n), e._zod.processJSONSchema = (r, o, t) => Ii(e, r, o, t), e.options = n.options; }); -function ir(e, n) { +function or(e, n) { return new Yt({ type: "union", options: e, - ...y(n) + ..._(n) }); } -const Li = /* @__PURE__ */ v("ZodXor", (e, n) => { - Yt.init(e, n), Xu.init(e, n), e._zod.processJSONSchema = (r, o, t) => ki(e, r, o, t), e.options = n.options; +const Bi = /* @__PURE__ */ v("ZodXor", (e, n) => { + Yt.init(e, n), Yu.init(e, n), e._zod.processJSONSchema = (r, o, t) => Ii(e, r, o, t), e.options = n.options; }); -function lm(e, n) { - return new Li({ +function sm(e, n) { + return new Bi({ type: "union", options: e, inclusive: !1, - ...y(n) + ..._(n) }); } -const Fi = /* @__PURE__ */ v("ZodDiscriminatedUnion", (e, n) => { - Yt.init(e, n), Yu.init(e, n); +const Vi = /* @__PURE__ */ v("ZodDiscriminatedUnion", (e, n) => { + Yt.init(e, n), Qu.init(e, n); }); -function um(e, n, r) { - return new Fi({ +function cm(e, n, r) { + return new Vi({ type: "union", options: n, discriminator: e, - ...y(r) + ..._(r) }); } -const Ri = /* @__PURE__ */ v("ZodIntersection", (e, n) => { - Hu.init(e, n), K.init(e, n), e._zod.processJSONSchema = (r, o, t) => Lc(e, r, o, t); +const Ji = /* @__PURE__ */ v("ZodIntersection", (e, n) => { + es.init(e, n), X.init(e, n), e._zod.processJSONSchema = (r, o, t) => Rc(e, r, o, t); }); -function Bi(e, n) { - return new Ri({ +function qi(e, n) { + return new Ji({ type: "intersection", left: e, right: n }); } -const Vi = /* @__PURE__ */ v("ZodTuple", (e, n) => { - qr.init(e, n), K.init(e, n), e._zod.processJSONSchema = (r, o, t) => Fc(e, r, o, t), e.rest = (r) => e.clone({ +const Gi = /* @__PURE__ */ v("ZodTuple", (e, n) => { + Wr.init(e, n), X.init(e, n), e._zod.processJSONSchema = (r, o, t) => Bc(e, r, o, t), e.rest = (r) => e.clone({ ...e._zod.def, rest: r }); }); -function Ji(e, n, r) { +function Ki(e, n, r) { const o = n instanceof W, t = o ? r : n, i = o ? n : null; - return new Vi({ + return new Gi({ type: "tuple", items: e, rest: i, - ...y(t) + ..._(t) }); } -const pt = /* @__PURE__ */ v("ZodRecord", (e, n) => { - Qu.init(e, n), K.init(e, n), e._zod.processJSONSchema = (r, o, t) => Rc(e, r, o, t), e.keyType = n.keyType, e.valueType = n.valueType; +const ht = /* @__PURE__ */ v("ZodRecord", (e, n) => { + ts.init(e, n), X.init(e, n), e._zod.processJSONSchema = (r, o, t) => Vc(e, r, o, t), e.keyType = n.keyType, e.valueType = n.valueType; }); -function qi(e, n, r) { - return !n || !n._zod ? new pt({ +function Wi(e, n, r) { + return !n || !n._zod ? new ht({ type: "record", - keyType: zt(), + keyType: Dt(), valueType: e, - ...y(n) - }) : new pt({ + ..._(n) + }) : new ht({ type: "record", keyType: e, valueType: n, - ...y(r) + ..._(r) }); } -function sm(e, n, r) { - const o = Te(e); - return o._zod.values = void 0, new pt({ +function dm(e, n, r) { + const o = Ae(e); + return o._zod.values = void 0, new ht({ type: "record", keyType: o, valueType: n, - ...y(r) + ..._(r) }); } -function cm(e, n, r) { - return new pt({ +function mm(e, n, r) { + return new ht({ type: "record", keyType: e, valueType: n, mode: "loose", - ...y(r) + ..._(r) }); } -const Gi = /* @__PURE__ */ v("ZodMap", (e, n) => { - es.init(e, n), K.init(e, n), e._zod.processJSONSchema = (r, o, t) => Ac(e, r), e.keyType = n.keyType, e.valueType = n.valueType, e.min = (...r) => e.check(/* @__PURE__ */ We(...r)), e.nonempty = (r) => e.check(/* @__PURE__ */ We(1, r)), e.max = (...r) => e.check(/* @__PURE__ */ ht(...r)), e.size = (...r) => e.check(/* @__PURE__ */ Mt(...r)); +const Xi = /* @__PURE__ */ v("ZodMap", (e, n) => { + ns.init(e, n), X.init(e, n), e._zod.processJSONSchema = (r, o, t) => Zc(e, r), e.keyType = n.keyType, e.valueType = n.valueType, e.min = (...r) => e.check(/* @__PURE__ */ Ke(...r)), e.nonempty = (r) => e.check(/* @__PURE__ */ Ke(1, r)), e.max = (...r) => e.check(/* @__PURE__ */ $t(...r)), e.size = (...r) => e.check(/* @__PURE__ */ Lt(...r)); }); -function dm(e, n, r) { - return new Gi({ +function fm(e, n, r) { + return new Xi({ type: "map", keyType: e, valueType: n, - ...y(r) + ..._(r) }); } -const Wi = /* @__PURE__ */ v("ZodSet", (e, n) => { - ts.init(e, n), K.init(e, n), e._zod.processJSONSchema = (r, o, t) => Cc(e, r), e.min = (...r) => e.check(/* @__PURE__ */ We(...r)), e.nonempty = (r) => e.check(/* @__PURE__ */ We(1, r)), e.max = (...r) => e.check(/* @__PURE__ */ ht(...r)), e.size = (...r) => e.check(/* @__PURE__ */ Mt(...r)); +const Hi = /* @__PURE__ */ v("ZodSet", (e, n) => { + rs.init(e, n), X.init(e, n), e._zod.processJSONSchema = (r, o, t) => Mc(e, r), e.min = (...r) => e.check(/* @__PURE__ */ Ke(...r)), e.nonempty = (r) => e.check(/* @__PURE__ */ Ke(1, r)), e.max = (...r) => e.check(/* @__PURE__ */ $t(...r)), e.size = (...r) => e.check(/* @__PURE__ */ Lt(...r)); }); -function mm(e, n) { - return new Wi({ +function pm(e, n) { + return new Hi({ type: "set", valueType: e, - ...y(n) + ..._(n) }); } -const gt = /* @__PURE__ */ v("ZodEnum", (e, n) => { - ns.init(e, n), K.init(e, n), e._zod.processJSONSchema = (o, t, i) => Dc(e, o, t), e.enum = n.entries, e.options = Object.values(n.entries); +const bt = /* @__PURE__ */ v("ZodEnum", (e, n) => { + is.init(e, n), X.init(e, n), e._zod.processJSONSchema = (o, t, i) => Oc(e, o, t), e.enum = n.entries, e.options = Object.values(n.entries); const r = new Set(Object.keys(n.entries)); e.extract = (o, t) => { const i = {}; @@ -14598,10 +15032,10 @@ const gt = /* @__PURE__ */ v("ZodEnum", (e, n) => { i[a] = n.entries[a]; else throw new Error(`Key ${a} not found in enum`); - return new gt({ + return new bt({ ...n, checks: [], - ...y(t), + ..._(t), entries: i }); }, e.exclude = (o, t) => { @@ -14611,31 +15045,31 @@ const gt = /* @__PURE__ */ v("ZodEnum", (e, n) => { delete i[a]; else throw new Error(`Key ${a} not found in enum`); - return new gt({ + return new bt({ ...n, checks: [], - ...y(t), + ..._(t), entries: i }); }; }); -function or(e, n) { +function ar(e, n) { const r = Array.isArray(e) ? Object.fromEntries(e.map((o) => [o, o])) : e; - return new gt({ + return new bt({ type: "enum", entries: r, - ...y(n) + ..._(n) }); } -function fm(e, n) { - return new gt({ +function vm(e, n) { + return new bt({ type: "enum", entries: e, - ...y(n) + ..._(n) }); } -const Ki = /* @__PURE__ */ v("ZodLiteral", (e, n) => { - rs.init(e, n), K.init(e, n), e._zod.processJSONSchema = (r, o, t) => jc(e, r, o), e.values = new Set(n.values), Object.defineProperty(e, "value", { +const Yi = /* @__PURE__ */ v("ZodLiteral", (e, n) => { + os.init(e, n), X.init(e, n), e._zod.processJSONSchema = (r, o, t) => Ec(e, r, o), e.values = new Set(n.values), Object.defineProperty(e, "value", { get() { if (n.values.length > 1) throw new Error("This schema contains multiple valid literal values. Use `.values` instead."); @@ -14643,146 +15077,146 @@ const Ki = /* @__PURE__ */ v("ZodLiteral", (e, n) => { } }); }); -function vm(e, n) { - return new Ki({ +function gm(e, n) { + return new Yi({ type: "literal", values: Array.isArray(e) ? e : [e], - ...y(n) + ..._(n) }); } -const Xi = /* @__PURE__ */ v("ZodFile", (e, n) => { - is.init(e, n), K.init(e, n), e._zod.processJSONSchema = (r, o, t) => Ec(e, r, o), e.min = (r, o) => e.check(/* @__PURE__ */ We(r, o)), e.max = (r, o) => e.check(/* @__PURE__ */ ht(r, o)), e.mime = (r, o) => e.check(/* @__PURE__ */ Un(Array.isArray(r) ? r : [r], o)); +const Qi = /* @__PURE__ */ v("ZodFile", (e, n) => { + as.init(e, n), X.init(e, n), e._zod.processJSONSchema = (r, o, t) => Tc(e, r, o), e.min = (r, o) => e.check(/* @__PURE__ */ Ke(r, o)), e.max = (r, o) => e.check(/* @__PURE__ */ $t(r, o)), e.mime = (r, o) => e.check(/* @__PURE__ */ Tn(Array.isArray(r) ? r : [r], o)); }); -function pm(e) { - return /* @__PURE__ */ ac(Xi, e); +function hm(e) { + return /* @__PURE__ */ uc(Qi, e); } -const Yi = /* @__PURE__ */ v("ZodTransform", (e, n) => { - os.init(e, n), K.init(e, n), e._zod.processJSONSchema = (r, o, t) => Nc(e, r), e._zod.parse = (r, o) => { +const eo = /* @__PURE__ */ v("ZodTransform", (e, n) => { + ls.init(e, n), X.init(e, n), e._zod.processJSONSchema = (r, o, t) => Cc(e, r), e._zod.parse = (r, o) => { if (o.direction === "backward") - throw new bn(e.constructor.name); + throw new _n(e.constructor.name); r.addIssue = (i) => { if (typeof i == "string") - r.issues.push(st(i, r.value, n)); + r.issues.push(dt(i, r.value, n)); else { const a = i; - a.fatal && (a.continue = !1), a.code ?? (a.code = "custom"), a.input ?? (a.input = r.value), a.inst ?? (a.inst = e), r.issues.push(st(a)); + a.fatal && (a.continue = !1), a.code ?? (a.code = "custom"), a.input ?? (a.input = r.value), a.inst ?? (a.inst = e), r.issues.push(dt(a)); } }; const t = n.transform(r.value, r); return t instanceof Promise ? t.then((i) => (r.value = i, r.fallback = !0, r)) : (r.value = t, r.fallback = !0, r); }; }); -function ar(e) { - return new Yi({ +function lr(e) { + return new eo({ type: "transform", transform: e }); } -const lr = /* @__PURE__ */ v("ZodOptional", (e, n) => { - Gr.init(e, n), K.init(e, n), e._zod.processJSONSchema = (r, o, t) => Si(e, r, o, t), e.unwrap = () => e._zod.def.innerType; -}); -function jt(e) { - return new lr({ - type: "optional", - innerType: e - }); -} -const Hi = /* @__PURE__ */ v("ZodExactOptional", (e, n) => { - as.init(e, n), K.init(e, n), e._zod.processJSONSchema = (r, o, t) => Si(e, r, o, t), e.unwrap = () => e._zod.def.innerType; -}); -function Qi(e) { - return new Hi({ - type: "optional", - innerType: e - }); -} -const eo = /* @__PURE__ */ v("ZodNullable", (e, n) => { - ls.init(e, n), K.init(e, n), e._zod.processJSONSchema = (r, o, t) => Bc(e, r, o, t), e.unwrap = () => e._zod.def.innerType; +const ur = /* @__PURE__ */ v("ZodOptional", (e, n) => { + Xr.init(e, n), X.init(e, n), e._zod.processJSONSchema = (r, o, t) => zi(e, r, o, t), e.unwrap = () => e._zod.def.innerType; }); function Ot(e) { - return new eo({ + return new ur({ + type: "optional", + innerType: e + }); +} +const to = /* @__PURE__ */ v("ZodExactOptional", (e, n) => { + us.init(e, n), X.init(e, n), e._zod.processJSONSchema = (r, o, t) => zi(e, r, o, t), e.unwrap = () => e._zod.def.innerType; +}); +function no(e) { + return new to({ + type: "optional", + innerType: e + }); +} +const ro = /* @__PURE__ */ v("ZodNullable", (e, n) => { + ss.init(e, n), X.init(e, n), e._zod.processJSONSchema = (r, o, t) => Jc(e, r, o, t), e.unwrap = () => e._zod.def.innerType; +}); +function Et(e) { + return new ro({ type: "nullable", innerType: e }); } -function gm(e) { - return jt(Ot(e)); +function bm(e) { + return Ot(Et(e)); } -const to = /* @__PURE__ */ v("ZodDefault", (e, n) => { - us.init(e, n), K.init(e, n), e._zod.processJSONSchema = (r, o, t) => Jc(e, r, o, t), e.unwrap = () => e._zod.def.innerType, e.removeDefault = e.unwrap; +const io = /* @__PURE__ */ v("ZodDefault", (e, n) => { + cs.init(e, n), X.init(e, n), e._zod.processJSONSchema = (r, o, t) => Gc(e, r, o, t), e.unwrap = () => e._zod.def.innerType, e.removeDefault = e.unwrap; }); -function no(e, n) { - return new to({ +function oo(e, n) { + return new io({ type: "default", innerType: e, get defaultValue() { - return typeof n == "function" ? n() : yn(n); + return typeof n == "function" ? n() : kn(n); } }); } -const ro = /* @__PURE__ */ v("ZodPrefault", (e, n) => { - ss.init(e, n), K.init(e, n), e._zod.processJSONSchema = (r, o, t) => qc(e, r, o, t), e.unwrap = () => e._zod.def.innerType; +const ao = /* @__PURE__ */ v("ZodPrefault", (e, n) => { + ds.init(e, n), X.init(e, n), e._zod.processJSONSchema = (r, o, t) => Kc(e, r, o, t), e.unwrap = () => e._zod.def.innerType; }); -function io(e, n) { - return new ro({ +function lo(e, n) { + return new ao({ type: "prefault", innerType: e, get defaultValue() { - return typeof n == "function" ? n() : yn(n); + return typeof n == "function" ? n() : kn(n); } }); } -const ur = /* @__PURE__ */ v("ZodNonOptional", (e, n) => { - cs.init(e, n), K.init(e, n), e._zod.processJSONSchema = (r, o, t) => Vc(e, r, o, t), e.unwrap = () => e._zod.def.innerType; +const sr = /* @__PURE__ */ v("ZodNonOptional", (e, n) => { + ms.init(e, n), X.init(e, n), e._zod.processJSONSchema = (r, o, t) => qc(e, r, o, t), e.unwrap = () => e._zod.def.innerType; }); -function oo(e, n) { - return new ur({ +function uo(e, n) { + return new sr({ type: "nonoptional", innerType: e, - ...y(n) + ..._(n) }); } -const ao = /* @__PURE__ */ v("ZodSuccess", (e, n) => { - ds.init(e, n), K.init(e, n), e._zod.processJSONSchema = (r, o, t) => Uc(e, r, o), e.unwrap = () => e._zod.def.innerType; +const so = /* @__PURE__ */ v("ZodSuccess", (e, n) => { + fs.init(e, n), X.init(e, n), e._zod.processJSONSchema = (r, o, t) => Nc(e, r, o), e.unwrap = () => e._zod.def.innerType; }); -function hm(e) { - return new ao({ +function $m(e) { + return new so({ type: "success", innerType: e }); } -const lo = /* @__PURE__ */ v("ZodCatch", (e, n) => { - ms.init(e, n), K.init(e, n), e._zod.processJSONSchema = (r, o, t) => Gc(e, r, o, t), e.unwrap = () => e._zod.def.innerType, e.removeCatch = e.unwrap; +const co = /* @__PURE__ */ v("ZodCatch", (e, n) => { + ps.init(e, n), X.init(e, n), e._zod.processJSONSchema = (r, o, t) => Wc(e, r, o, t), e.unwrap = () => e._zod.def.innerType, e.removeCatch = e.unwrap; }); -function uo(e, n) { - return new lo({ +function mo(e, n) { + return new co({ type: "catch", innerType: e, catchValue: typeof n == "function" ? n : () => n }); } -const so = /* @__PURE__ */ v("ZodNaN", (e, n) => { - fs.init(e, n), K.init(e, n), e._zod.processJSONSchema = (r, o, t) => Oc(e, r); +const fo = /* @__PURE__ */ v("ZodNaN", (e, n) => { + vs.init(e, n), X.init(e, n), e._zod.processJSONSchema = (r, o, t) => xc(e, r); }); -function $m(e) { - return /* @__PURE__ */ ic(so, e); +function _m(e) { + return /* @__PURE__ */ ac(fo, e); } -const Ht = /* @__PURE__ */ v("ZodPipe", (e, n) => { - Wr.init(e, n), K.init(e, n), e._zod.processJSONSchema = (r, o, t) => Wc(e, r, o, t), e.in = n.in, e.out = n.out; +const Qt = /* @__PURE__ */ v("ZodPipe", (e, n) => { + Hr.init(e, n), X.init(e, n), e._zod.processJSONSchema = (r, o, t) => Xc(e, r, o, t), e.in = n.in, e.out = n.out; }); -function hn(e, n) { - return new Ht({ +function bn(e, n) { + return new Qt({ type: "pipe", in: e, out: n // ...util.normalizeParams(params), }); } -const Qt = /* @__PURE__ */ v("ZodCodec", (e, n) => { - Ht.init(e, n), Kr.init(e, n); +const en = /* @__PURE__ */ v("ZodCodec", (e, n) => { + Qt.init(e, n), Yr.init(e, n); }); -function bm(e, n, r) { - return new Qt({ +function ym(e, n, r) { + return new en({ type: "pipe", in: e, out: n, @@ -14790,9 +15224,9 @@ function bm(e, n, r) { reverseTransform: r.encode }); } -function _m(e) { +function km(e) { const n = e._zod.def; - return new Qt({ + return new en({ type: "pipe", in: n.out, out: n.in, @@ -14800,82 +15234,82 @@ function _m(e) { reverseTransform: n.transform }); } -const co = /* @__PURE__ */ v("ZodPreprocess", (e, n) => { - Ht.init(e, n), vs.init(e, n); -}), mo = /* @__PURE__ */ v("ZodReadonly", (e, n) => { - ps.init(e, n), K.init(e, n), e._zod.processJSONSchema = (r, o, t) => Kc(e, r, o, t), e.unwrap = () => e._zod.def.innerType; +const po = /* @__PURE__ */ v("ZodPreprocess", (e, n) => { + Qt.init(e, n), gs.init(e, n); +}), vo = /* @__PURE__ */ v("ZodReadonly", (e, n) => { + hs.init(e, n), X.init(e, n), e._zod.processJSONSchema = (r, o, t) => Hc(e, r, o, t), e.unwrap = () => e._zod.def.innerType; }); -function fo(e) { - return new mo({ +function go(e) { + return new vo({ type: "readonly", innerType: e }); } -const vo = /* @__PURE__ */ v("ZodTemplateLiteral", (e, n) => { - gs.init(e, n), K.init(e, n), e._zod.processJSONSchema = (r, o, t) => xc(e, r, o); +const ho = /* @__PURE__ */ v("ZodTemplateLiteral", (e, n) => { + bs.init(e, n), X.init(e, n), e._zod.processJSONSchema = (r, o, t) => Uc(e, r, o); }); -function ym(e, n) { - return new vo({ +function Sm(e, n) { + return new ho({ type: "template_literal", parts: e, - ...y(n) + ..._(n) }); } -const po = /* @__PURE__ */ v("ZodLazy", (e, n) => { - bs.init(e, n), K.init(e, n), e._zod.processJSONSchema = (r, o, t) => Yc(e, r, o, t), e.unwrap = () => e._zod.def.getter(); +const bo = /* @__PURE__ */ v("ZodLazy", (e, n) => { + ys.init(e, n), X.init(e, n), e._zod.processJSONSchema = (r, o, t) => Qc(e, r, o, t), e.unwrap = () => e._zod.def.getter(); }); -function go(e) { - return new po({ +function $o(e) { + return new bo({ type: "lazy", getter: e }); } -const ho = /* @__PURE__ */ v("ZodPromise", (e, n) => { - $s.init(e, n), K.init(e, n), e._zod.processJSONSchema = (r, o, t) => Xc(e, r, o, t), e.unwrap = () => e._zod.def.innerType; +const _o = /* @__PURE__ */ v("ZodPromise", (e, n) => { + _s.init(e, n), X.init(e, n), e._zod.processJSONSchema = (r, o, t) => Yc(e, r, o, t), e.unwrap = () => e._zod.def.innerType; }); -function km(e) { - return new ho({ +function wm(e) { + return new _o({ type: "promise", innerType: e }); } -const $o = /* @__PURE__ */ v("ZodFunction", (e, n) => { - hs.init(e, n), K.init(e, n), e._zod.processJSONSchema = (r, o, t) => Pc(e, r); +const yo = /* @__PURE__ */ v("ZodFunction", (e, n) => { + $s.init(e, n), X.init(e, n), e._zod.processJSONSchema = (r, o, t) => Ac(e, r); }); function $n(e) { - return new $o({ + return new yo({ type: "function", - input: Array.isArray(e == null ? void 0 : e.input) ? Ji(e == null ? void 0 : e.input) : (e == null ? void 0 : e.input) ?? Kt(nt()), - output: (e == null ? void 0 : e.output) ?? nt() + input: Array.isArray(e == null ? void 0 : e.input) ? Ki(e == null ? void 0 : e.input) : (e == null ? void 0 : e.input) ?? Xt(rt()), + output: (e == null ? void 0 : e.output) ?? rt() }); } -const en = /* @__PURE__ */ v("ZodCustom", (e, n) => { - _s.init(e, n), K.init(e, n), e._zod.processJSONSchema = (r, o, t) => Tc(e, r); +const tn = /* @__PURE__ */ v("ZodCustom", (e, n) => { + ks.init(e, n), X.init(e, n), e._zod.processJSONSchema = (r, o, t) => Pc(e, r); }); -function Sm(e) { +function Im(e) { const n = new se({ check: "custom" // ...util.normalizeParams(params), }); return n._zod.check = e, n; } -function Im(e, n) { - return /* @__PURE__ */ lc(en, e ?? (() => !0), n); +function zm(e, n) { + return /* @__PURE__ */ sc(tn, e ?? (() => !0), n); } -function bo(e, n = {}) { - return /* @__PURE__ */ uc(en, e, n); +function ko(e, n = {}) { + return /* @__PURE__ */ cc(tn, e, n); } -function _o(e, n) { - return /* @__PURE__ */ sc(e, n); +function So(e, n) { + return /* @__PURE__ */ dc(e, n); } -const wm = dc, zm = mc; -function Dm(e, n = {}) { - const r = new en({ +const Dm = fc, jm = pc; +function Om(e, n = {}) { + const r = new tn({ type: "custom", check: "custom", fn: (o) => o instanceof e, abort: !0, - ...y(n) + ..._(n) }); return r._zod.bag.Class = e, r._zod.check = (o) => { o.value instanceof e || o.issues.push({ @@ -14887,191 +15321,191 @@ function Dm(e, n = {}) { }); }, r; } -const jm = (...e) => /* @__PURE__ */ fc({ - Codec: Qt, - Boolean: Gt, - String: Vt +const Em = (...e) => /* @__PURE__ */ vc({ + Codec: en, + Boolean: Kt, + String: Jt }, ...e); -function Om(e) { - const n = go(() => ir([zt(e), Oi(), xi(), Pi(), Kt(n), qi(zt(), n)])); +function xm(e) { + const n = $o(() => or([Dt(e), Ui(), Ti(), Ci(), Xt(n), Wi(Dt(), n)])); return n; } -function xm(e, n) { - return new co({ +function Um(e, n) { + return new po({ type: "pipe", - in: ar(e), + in: lr(e), out: n }); } -const Hy = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ +const Uk = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ __proto__: null, - ZodAny: Ni, - ZodArray: Mi, + ZodAny: Zi, + ZodArray: Ri, ZodBase64: Yn, - ZodBase64URL: Hn, + ZodBase64URL: Qn, ZodBigInt: Wt, - ZodBigIntFormat: tr, - ZodBoolean: Gt, - ZodCIDRv4: Kn, - ZodCIDRv6: Xn, - ZodCUID: Rn, - ZodCUID2: Bn, - ZodCatch: lo, - ZodCodec: Qt, - ZodCustom: en, - ZodCustomStringFormat: $t, - ZodDate: rr, - ZodDefault: to, - ZodDiscriminatedUnion: Fi, - ZodE164: Qn, - ZodEmail: Mn, - ZodEmoji: Ln, - ZodEnum: gt, - ZodExactOptional: Hi, - ZodFile: Xi, - ZodFunction: $o, - ZodGUID: Dt, - ZodIPv4: Gn, + ZodBigIntFormat: nr, + ZodBoolean: Kt, + ZodCIDRv4: Xn, + ZodCIDRv6: Hn, + ZodCUID: Bn, + ZodCUID2: Vn, + ZodCatch: co, + ZodCodec: en, + ZodCustom: tn, + ZodCustomStringFormat: _t, + ZodDate: ir, + ZodDefault: io, + ZodDiscriminatedUnion: Vi, + ZodE164: er, + ZodEmail: Ln, + ZodEmoji: Fn, + ZodEnum: bt, + ZodExactOptional: to, + ZodFile: Qi, + ZodFunction: yo, + ZodGUID: jt, + ZodIPv4: Kn, ZodIPv6: Wn, - ZodIntersection: Ri, - ZodJWT: er, - ZodKSUID: qn, - ZodLazy: po, - ZodLiteral: Ki, - ZodMAC: ji, - ZodMap: Gi, - ZodNaN: so, - ZodNanoID: Fn, - ZodNever: Ci, - ZodNonOptional: ur, - ZodNull: Ti, - ZodNullable: eo, - ZodNumber: qt, + ZodIntersection: Ji, + ZodJWT: tr, + ZodKSUID: Gn, + ZodLazy: bo, + ZodLiteral: Yi, + ZodMAC: xi, + ZodMap: Xi, + ZodNaN: fo, + ZodNanoID: Rn, + ZodNever: Li, + ZodNonOptional: sr, + ZodNull: Ai, + ZodNullable: ro, + ZodNumber: Gt, ZodNumberFormat: ot, - ZodObject: Xt, - ZodOptional: lr, - ZodPipe: Ht, - ZodPrefault: ro, - ZodPreprocess: co, - ZodPromise: ho, - ZodReadonly: mo, - ZodRecord: pt, - ZodSet: Wi, - ZodString: Vt, + ZodObject: Ht, + ZodOptional: ur, + ZodPipe: Qt, + ZodPrefault: ao, + ZodPreprocess: po, + ZodPromise: _o, + ZodReadonly: vo, + ZodRecord: ht, + ZodSet: Hi, + ZodString: Jt, ZodStringFormat: ae, - ZodSuccess: ao, - ZodSymbol: Ei, - ZodTemplateLiteral: vo, - ZodTransform: Yi, - ZodTuple: Vi, - ZodType: K, - ZodULID: Vn, - ZodURL: Jt, - ZodUUID: Ce, - ZodUndefined: Ui, + ZodSuccess: so, + ZodSymbol: Ni, + ZodTemplateLiteral: ho, + ZodTransform: eo, + ZodTuple: Gi, + ZodType: X, + ZodULID: Jn, + ZodURL: qt, + ZodUUID: Me, + ZodUndefined: Pi, ZodUnion: Yt, - ZodUnknown: Ai, - ZodVoid: Zi, - ZodXID: Jn, - ZodXor: Li, - _ZodString: Zn, - _default: no, + ZodUnknown: Mi, + ZodVoid: Fi, + ZodXID: qn, + ZodXor: Bi, + _ZodString: Mn, + _default: oo, _function: $n, - any: em, - array: Kt, - base64: Cd, - base64url: Zd, - bigint: Kd, - boolean: xi, - catch: uo, - check: Sm, - cidrv4: Nd, - cidrv6: Ad, - codec: bm, - cuid: Dd, - cuid2: jd, - custom: Im, - date: nm, - describe: wm, - discriminatedUnion: um, - e164: Md, - email: hd, - emoji: wd, - enum: or, - exactOptional: Qi, - file: pm, - float32: Jd, - float64: qd, + any: nm, + array: Xt, + base64: Md, + base64url: Ld, + bigint: Hd, + boolean: Ti, + catch: mo, + check: Im, + cidrv4: Cd, + cidrv6: Zd, + codec: ym, + cuid: Od, + cuid2: Ed, + custom: zm, + date: im, + describe: Dm, + discriminatedUnion: cm, + e164: Fd, + email: $d, + emoji: Dd, + enum: ar, + exactOptional: no, + file: hm, + float32: Gd, + float64: Kd, function: $n, - guid: $d, - hash: Vd, - hex: Bd, - hostname: Rd, - httpUrl: Id, - instanceof: Dm, - int: gn, - int32: Gd, - int64: Xd, - intersection: Bi, - invertCodec: _m, - ipv4: Ud, - ipv6: Pd, - json: Om, - jwt: Ld, - keyof: rm, - ksuid: Ed, - lazy: go, - literal: vm, - looseObject: am, - looseRecord: cm, - mac: Td, - map: dm, - meta: zm, - nan: $m, - nanoid: zd, - nativeEnum: fm, - never: nr, - nonoptional: oo, - null: Pi, - nullable: Ot, - nullish: gm, - number: Oi, - object: im, - optional: jt, - partialRecord: sm, - pipe: hn, - prefault: io, - preprocess: xm, - promise: km, - readonly: fo, - record: qi, - refine: bo, - set: mm, - strictObject: om, - string: zt, - stringFormat: Fd, - stringbool: jm, - success: hm, - superRefine: _o, - symbol: Hd, - templateLiteral: ym, - transform: ar, - tuple: Ji, - uint32: Wd, - uint64: Yd, - ulid: Od, - undefined: Qd, - union: ir, - unknown: nt, - url: Sd, - uuid: bd, - uuidv4: _d, - uuidv6: yd, - uuidv7: kd, - void: tm, - xid: xd, - xor: lm -}, Symbol.toStringTag, { value: "Module" })), Qy = { + guid: _d, + hash: qd, + hex: Jd, + hostname: Vd, + httpUrl: zd, + instanceof: Om, + int: hn, + int32: Wd, + int64: Yd, + intersection: qi, + invertCodec: km, + ipv4: Nd, + ipv6: Ad, + json: xm, + jwt: Rd, + keyof: om, + ksuid: Td, + lazy: $o, + literal: gm, + looseObject: um, + looseRecord: mm, + mac: Pd, + map: fm, + meta: jm, + nan: _m, + nanoid: jd, + nativeEnum: vm, + never: rr, + nonoptional: uo, + null: Ci, + nullable: Et, + nullish: bm, + number: Ui, + object: am, + optional: Ot, + partialRecord: dm, + pipe: bn, + prefault: lo, + preprocess: Um, + promise: wm, + readonly: go, + record: Wi, + refine: ko, + set: pm, + strictObject: lm, + string: Dt, + stringFormat: Bd, + stringbool: Em, + success: $m, + superRefine: So, + symbol: em, + templateLiteral: Sm, + transform: lr, + tuple: Ki, + uint32: Xd, + uint64: Qd, + ulid: xd, + undefined: tm, + union: or, + unknown: rt, + url: Id, + uuid: yd, + uuidv4: kd, + uuidv6: Sd, + uuidv7: wd, + void: rm, + xid: Ud, + xor: sm +}, Symbol.toStringTag, { value: "Module" })), Tk = { invalid_type: "invalid_type", too_big: "too_big", too_small: "too_small", @@ -15084,21 +15518,21 @@ const Hy = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ invalid_value: "invalid_value", custom: "custom" }; -function ek(e) { - pe({ +function Nk(e) { + _e({ customError: e }); } -function tk() { - return pe().customError; +function Pk() { + return _e().customError; } var $r; $r || ($r = {}); -const T = { - ...Hy, - ...Xy, - iso: rd -}, nk = /* @__PURE__ */ new Set([ +const P = { + ...Uk, + ...Ek, + iso: od +}, Ak = /* @__PURE__ */ new Set([ // Schema identification "$schema", "$ref", @@ -15169,11 +15603,11 @@ const T = { "nullable", "readOnly" ]); -function rk(e, n) { +function Ck(e, n) { const r = e.$schema; return r === "https://json-schema.org/draft/2020-12/schema" ? "draft-2020-12" : r === "http://json-schema.org/draft-07/schema#" ? "draft-7" : r === "http://json-schema.org/draft-04/schema#" ? "draft-4" : n ?? "draft-2020-12"; } -function ik(e, n) { +function Zk(e, n) { if (!e.startsWith("#")) throw new Error("External $ref is not supported, only local refs (#/...) are allowed"); const r = e.slice(1).split("/").filter(Boolean); @@ -15188,10 +15622,10 @@ function ik(e, n) { } throw new Error(`Reference not found: ${e}`); } -function Em(e, n) { +function Tm(e, n) { if (e.not !== void 0) { if (typeof e.not == "object" && Object.keys(e.not).length === 0) - return T.never(); + return P.never(); throw new Error("not is not supported in Zod (except { not: {} } for never)"); } if (e.unevaluatedItems !== void 0) @@ -15207,118 +15641,118 @@ function Em(e, n) { if (n.refs.has(t)) return n.refs.get(t); if (n.processing.has(t)) - return T.lazy(() => { + return P.lazy(() => { if (!n.refs.has(t)) throw new Error(`Circular reference not resolved: ${t}`); return n.refs.get(t); }); n.processing.add(t); - const i = ik(t, n), a = be(i, n); + const i = Zk(t, n), a = Se(i, n); return n.refs.set(t, a), n.processing.delete(t), a; } if (e.enum !== void 0) { const t = e.enum; if (n.version === "openapi-3.0" && e.nullable === !0 && t.length === 1 && t[0] === null) - return T.null(); + return P.null(); if (t.length === 0) - return T.never(); + return P.never(); if (t.length === 1) - return T.literal(t[0]); + return P.literal(t[0]); if (t.every((a) => typeof a == "string")) - return T.enum(t); - const i = t.map((a) => T.literal(a)); - return i.length < 2 ? i[0] : T.union([i[0], i[1], ...i.slice(2)]); + return P.enum(t); + const i = t.map((a) => P.literal(a)); + return i.length < 2 ? i[0] : P.union([i[0], i[1], ...i.slice(2)]); } if (e.const !== void 0) - return T.literal(e.const); + return P.literal(e.const); const r = e.type; if (Array.isArray(r)) { const t = r.map((i) => { const a = { ...e, type: i }; - return Em(a, n); + return Tm(a, n); }); - return t.length === 0 ? T.never() : t.length === 1 ? t[0] : T.union(t); + return t.length === 0 ? P.never() : t.length === 1 ? t[0] : P.union(t); } if (!r) - return T.any(); + return P.any(); let o; switch (r) { case "string": { - let t = T.string(); + let t = P.string(); if (e.format) { const i = e.format; - i === "email" ? t = t.check(T.email()) : i === "uri" || i === "uri-reference" ? t = t.check(T.url()) : i === "uuid" || i === "guid" ? t = t.check(T.uuid()) : i === "date-time" ? t = t.check(T.iso.datetime()) : i === "date" ? t = t.check(T.iso.date()) : i === "time" ? t = t.check(T.iso.time()) : i === "duration" ? t = t.check(T.iso.duration()) : i === "ipv4" ? t = t.check(T.ipv4()) : i === "ipv6" ? t = t.check(T.ipv6()) : i === "mac" ? t = t.check(T.mac()) : i === "cidr" ? t = t.check(T.cidrv4()) : i === "cidr-v6" ? t = t.check(T.cidrv6()) : i === "base64" ? t = t.check(T.base64()) : i === "base64url" ? t = t.check(T.base64url()) : i === "e164" ? t = t.check(T.e164()) : i === "jwt" ? t = t.check(T.jwt()) : i === "emoji" ? t = t.check(T.emoji()) : i === "nanoid" ? t = t.check(T.nanoid()) : i === "cuid" ? t = t.check(T.cuid()) : i === "cuid2" ? t = t.check(T.cuid2()) : i === "ulid" ? t = t.check(T.ulid()) : i === "xid" ? t = t.check(T.xid()) : i === "ksuid" && (t = t.check(T.ksuid())); + i === "email" ? t = t.check(P.email()) : i === "uri" || i === "uri-reference" ? t = t.check(P.url()) : i === "uuid" || i === "guid" ? t = t.check(P.uuid()) : i === "date-time" ? t = t.check(P.iso.datetime()) : i === "date" ? t = t.check(P.iso.date()) : i === "time" ? t = t.check(P.iso.time()) : i === "duration" ? t = t.check(P.iso.duration()) : i === "ipv4" ? t = t.check(P.ipv4()) : i === "ipv6" ? t = t.check(P.ipv6()) : i === "mac" ? t = t.check(P.mac()) : i === "cidr" ? t = t.check(P.cidrv4()) : i === "cidr-v6" ? t = t.check(P.cidrv6()) : i === "base64" ? t = t.check(P.base64()) : i === "base64url" ? t = t.check(P.base64url()) : i === "e164" ? t = t.check(P.e164()) : i === "jwt" ? t = t.check(P.jwt()) : i === "emoji" ? t = t.check(P.emoji()) : i === "nanoid" ? t = t.check(P.nanoid()) : i === "cuid" ? t = t.check(P.cuid()) : i === "cuid2" ? t = t.check(P.cuid2()) : i === "ulid" ? t = t.check(P.ulid()) : i === "xid" ? t = t.check(P.xid()) : i === "ksuid" && (t = t.check(P.ksuid())); } typeof e.minLength == "number" && (t = t.min(e.minLength)), typeof e.maxLength == "number" && (t = t.max(e.maxLength)), e.pattern && (t = t.regex(new RegExp(e.pattern))), o = t; break; } case "number": case "integer": { - let t = r === "integer" ? T.number().int() : T.number(); + let t = r === "integer" ? P.number().int() : P.number(); typeof e.minimum == "number" && (t = t.min(e.minimum)), typeof e.maximum == "number" && (t = t.max(e.maximum)), typeof e.exclusiveMinimum == "number" ? t = t.gt(e.exclusiveMinimum) : e.exclusiveMinimum === !0 && typeof e.minimum == "number" && (t = t.gt(e.minimum)), typeof e.exclusiveMaximum == "number" ? t = t.lt(e.exclusiveMaximum) : e.exclusiveMaximum === !0 && typeof e.maximum == "number" && (t = t.lt(e.maximum)), typeof e.multipleOf == "number" && (t = t.multipleOf(e.multipleOf)), o = t; break; } case "boolean": { - o = T.boolean(); + o = P.boolean(); break; } case "null": { - o = T.null(); + o = P.null(); break; } case "object": { const t = {}, i = e.properties || {}, a = new Set(e.required || []); for (const [s, u] of Object.entries(i)) { - const d = be(u, n); + const d = Se(u, n); t[s] = a.has(s) ? d : d.optional(); } if (e.propertyNames) { - const s = be(e.propertyNames, n), u = e.additionalProperties && typeof e.additionalProperties == "object" ? be(e.additionalProperties, n) : T.any(); + const s = Se(e.propertyNames, n), u = e.additionalProperties && typeof e.additionalProperties == "object" ? Se(e.additionalProperties, n) : P.any(); if (Object.keys(t).length === 0) { - o = T.record(s, u); + o = P.record(s, u); break; } - const d = T.object(t).passthrough(), c = T.looseRecord(s, u); - o = T.intersection(d, c); + const d = P.object(t).passthrough(), c = P.looseRecord(s, u); + o = P.intersection(d, c); break; } if (e.patternProperties) { const s = e.patternProperties, u = Object.keys(s), d = []; for (const m of u) { - const f = be(s[m], n), g = T.string().regex(new RegExp(m)); - d.push(T.looseRecord(g, f)); + const f = Se(s[m], n), g = P.string().regex(new RegExp(m)); + d.push(P.looseRecord(g, f)); } const c = []; - if (Object.keys(t).length > 0 && c.push(T.object(t).passthrough()), c.push(...d), c.length === 0) - o = T.object({}).passthrough(); + if (Object.keys(t).length > 0 && c.push(P.object(t).passthrough()), c.push(...d), c.length === 0) + o = P.object({}).passthrough(); else if (c.length === 1) o = c[0]; else { - let m = T.intersection(c[0], c[1]); + let m = P.intersection(c[0], c[1]); for (let f = 2; f < c.length; f++) - m = T.intersection(m, c[f]); + m = P.intersection(m, c[f]); o = m; } break; } - const l = T.object(t); - e.additionalProperties === !1 ? o = l.strict() : typeof e.additionalProperties == "object" ? o = l.catchall(be(e.additionalProperties, n)) : o = l.passthrough(); + const l = P.object(t); + e.additionalProperties === !1 ? o = l.strict() : typeof e.additionalProperties == "object" ? o = l.catchall(Se(e.additionalProperties, n)) : o = l.passthrough(); break; } case "array": { const t = e.prefixItems, i = e.items; if (t && Array.isArray(t)) { - const a = t.map((s) => be(s, n)), l = i && typeof i == "object" && !Array.isArray(i) ? be(i, n) : void 0; - l ? o = T.tuple(a).rest(l) : o = T.tuple(a), typeof e.minItems == "number" && (o = o.check(T.minLength(e.minItems))), typeof e.maxItems == "number" && (o = o.check(T.maxLength(e.maxItems))); + const a = t.map((s) => Se(s, n)), l = i && typeof i == "object" && !Array.isArray(i) ? Se(i, n) : void 0; + l ? o = P.tuple(a).rest(l) : o = P.tuple(a), typeof e.minItems == "number" && (o = o.check(P.minLength(e.minItems))), typeof e.maxItems == "number" && (o = o.check(P.maxLength(e.maxItems))); } else if (Array.isArray(i)) { - const a = i.map((s) => be(s, n)), l = e.additionalItems && typeof e.additionalItems == "object" ? be(e.additionalItems, n) : void 0; - l ? o = T.tuple(a).rest(l) : o = T.tuple(a), typeof e.minItems == "number" && (o = o.check(T.minLength(e.minItems))), typeof e.maxItems == "number" && (o = o.check(T.maxLength(e.maxItems))); + const a = i.map((s) => Se(s, n)), l = e.additionalItems && typeof e.additionalItems == "object" ? Se(e.additionalItems, n) : void 0; + l ? o = P.tuple(a).rest(l) : o = P.tuple(a), typeof e.minItems == "number" && (o = o.check(P.minLength(e.minItems))), typeof e.maxItems == "number" && (o = o.check(P.maxLength(e.maxItems))); } else if (i !== void 0) { - const a = be(i, n); - let l = T.array(a); + const a = Se(i, n); + let l = P.array(a); typeof e.minItems == "number" && (l = l.min(e.minItems)), typeof e.maxItems == "number" && (l = l.max(e.maxItems)), o = l; } else - o = T.array(T.any()); + o = P.array(P.any()); break; } default: @@ -15326,30 +15760,30 @@ function Em(e, n) { } return o; } -function be(e, n) { +function Se(e, n) { if (typeof e == "boolean") - return e ? T.any() : T.never(); - let r = Em(e, n); + return e ? P.any() : P.never(); + let r = Tm(e, n); const o = e.type || e.enum !== void 0 || e.const !== void 0; if (e.anyOf && Array.isArray(e.anyOf)) { - const l = e.anyOf.map((u) => be(u, n)), s = T.union(l); - r = o ? T.intersection(r, s) : s; + const l = e.anyOf.map((u) => Se(u, n)), s = P.union(l); + r = o ? P.intersection(r, s) : s; } if (e.oneOf && Array.isArray(e.oneOf)) { - const l = e.oneOf.map((u) => be(u, n)), s = T.xor(l); - r = o ? T.intersection(r, s) : s; + const l = e.oneOf.map((u) => Se(u, n)), s = P.xor(l); + r = o ? P.intersection(r, s) : s; } if (e.allOf && Array.isArray(e.allOf)) if (e.allOf.length === 0) - r = o ? r : T.any(); + r = o ? r : P.any(); else { - let l = o ? r : be(e.allOf[0], n); + let l = o ? r : Se(e.allOf[0], n); const s = o ? 0 : 1; for (let u = s; u < e.allOf.length; u++) - l = T.intersection(l, be(e.allOf[u], n)); + l = P.intersection(l, Se(e.allOf[u], n)); r = l; } - e.nullable === !0 && n.version === "openapi-3.0" && (r = T.nullable(r)), e.readOnly === !0 && (r = T.readonly(r)), e.default !== void 0 && (r = r.default(e.default)); + e.nullable === !0 && n.version === "openapi-3.0" && (r = P.nullable(r)), e.readOnly === !0 && (r = P.readonly(r)), e.default !== void 0 && (r = r.default(e.default)); const t = {}, i = ["$id", "id", "$comment", "$anchor", "$vocabulary", "$dynamicRef", "$dynamicAnchor"]; for (const l of i) l in e && (t[l] = e[l]); @@ -15357,300 +15791,300 @@ function be(e, n) { for (const l of a) l in e && (t[l] = e[l]); for (const l of Object.keys(e)) - nk.has(l) || (t[l] = e[l]); + Ak.has(l) || (t[l] = e[l]); return Object.keys(t).length > 0 && n.registry.add(r, t), e.description && (r = r.describe(e.description)), r; } -function ok(e, n) { +function Mk(e, n) { if (typeof e == "boolean") - return e ? T.any() : T.never(); + return e ? P.any() : P.never(); let r; try { r = JSON.parse(JSON.stringify(e)); } catch { throw new Error("fromJSONSchema input is not valid JSON (possibly cyclic); use $defs/$ref for recursive schemas"); } - const o = rk(r, n == null ? void 0 : n.defaultTarget), t = r.$defs || r.definitions || {}, i = { + const o = Ck(r, n == null ? void 0 : n.defaultTarget), t = r.$defs || r.definitions || {}, i = { version: o, defs: t, refs: /* @__PURE__ */ new Map(), processing: /* @__PURE__ */ new Set(), rootSchema: r, - registry: (n == null ? void 0 : n.registry) ?? Ee + registry: (n == null ? void 0 : n.registry) ?? Ne }; - return be(r, i); + return Se(r, i); } -function ak(e) { - return /* @__PURE__ */ Os(Vt, e); +function Lk(e) { + return /* @__PURE__ */ xs(Jt, e); } -function lk(e) { - return /* @__PURE__ */ Cs(qt, e); +function Fk(e) { + return /* @__PURE__ */ Ms(Gt, e); } -function uk(e) { - return /* @__PURE__ */ Vs(Gt, e); +function Rk(e) { + return /* @__PURE__ */ qs(Kt, e); } -function sk(e) { - return /* @__PURE__ */ qs(Wt, e); +function Bk(e) { + return /* @__PURE__ */ Ks(Wt, e); } -function ck(e) { - return /* @__PURE__ */ rc(rr, e); +function Vk(e) { + return /* @__PURE__ */ oc(ir, e); } -const dk = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ +const Jk = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ __proto__: null, - bigint: sk, - boolean: uk, - date: ck, - number: lk, - string: ak + bigint: Bk, + boolean: Rk, + date: Vk, + number: Fk, + string: Lk }, Symbol.toStringTag, { value: "Module" })); -pe(ys()); -const de = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ +_e(Ss()); +const me = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ __proto__: null, - $brand: Aa, - $input: zs, - $output: ws, - NEVER: Na, - TimePrecision: Es, - ZodAny: Ni, - ZodArray: Mi, + $brand: Za, + $input: js, + $output: Ds, + NEVER: Ca, + TimePrecision: Ts, + ZodAny: Zi, + ZodArray: Ri, ZodBase64: Yn, - ZodBase64URL: Hn, + ZodBase64URL: Qn, ZodBigInt: Wt, - ZodBigIntFormat: tr, - ZodBoolean: Gt, - ZodCIDRv4: Kn, - ZodCIDRv6: Xn, - ZodCUID: Rn, - ZodCUID2: Bn, - ZodCatch: lo, - ZodCodec: Qt, - ZodCustom: en, - ZodCustomStringFormat: $t, - ZodDate: rr, - ZodDefault: to, - ZodDiscriminatedUnion: Fi, - ZodE164: Qn, - ZodEmail: Mn, - ZodEmoji: Ln, - ZodEnum: gt, - ZodError: Yy, - ZodExactOptional: Hi, - ZodFile: Xi, + ZodBigIntFormat: nr, + ZodBoolean: Kt, + ZodCIDRv4: Xn, + ZodCIDRv6: Hn, + ZodCUID: Bn, + ZodCUID2: Vn, + ZodCatch: co, + ZodCodec: en, + ZodCustom: tn, + ZodCustomStringFormat: _t, + ZodDate: ir, + ZodDefault: io, + ZodDiscriminatedUnion: Vi, + ZodE164: er, + ZodEmail: Ln, + ZodEmoji: Fn, + ZodEnum: bt, + ZodError: xk, + ZodExactOptional: to, + ZodFile: Qi, get ZodFirstPartyTypeKind() { return $r; }, - ZodFunction: $o, - ZodGUID: Dt, - ZodIPv4: Gn, + ZodFunction: yo, + ZodGUID: jt, + ZodIPv4: Kn, ZodIPv6: Wn, - ZodISODate: wi, - ZodISODateTime: Ii, - ZodISODuration: Di, - ZodISOTime: zi, - ZodIntersection: Ri, - ZodIssueCode: Qy, - ZodJWT: er, - ZodKSUID: qn, - ZodLazy: po, - ZodLiteral: Ki, - ZodMAC: ji, - ZodMap: Gi, - ZodNaN: so, - ZodNanoID: Fn, - ZodNever: Ci, - ZodNonOptional: ur, - ZodNull: Ti, - ZodNullable: eo, - ZodNumber: qt, + ZodISODate: ji, + ZodISODateTime: Di, + ZodISODuration: Ei, + ZodISOTime: Oi, + ZodIntersection: Ji, + ZodIssueCode: Tk, + ZodJWT: tr, + ZodKSUID: Gn, + ZodLazy: bo, + ZodLiteral: Yi, + ZodMAC: xi, + ZodMap: Xi, + ZodNaN: fo, + ZodNanoID: Rn, + ZodNever: Li, + ZodNonOptional: sr, + ZodNull: Ai, + ZodNullable: ro, + ZodNumber: Gt, ZodNumberFormat: ot, - ZodObject: Xt, - ZodOptional: lr, - ZodPipe: Ht, - ZodPrefault: ro, - ZodPreprocess: co, - ZodPromise: ho, - ZodReadonly: mo, - ZodRealError: Oe, - ZodRecord: pt, - ZodSet: Wi, - ZodString: Vt, + ZodObject: Ht, + ZodOptional: ur, + ZodPipe: Qt, + ZodPrefault: ao, + ZodPreprocess: po, + ZodPromise: _o, + ZodReadonly: vo, + ZodRealError: xe, + ZodRecord: ht, + ZodSet: Hi, + ZodString: Jt, ZodStringFormat: ae, - ZodSuccess: ao, - ZodSymbol: Ei, - ZodTemplateLiteral: vo, - ZodTransform: Yi, - ZodTuple: Vi, - ZodType: K, - ZodULID: Vn, - ZodURL: Jt, - ZodUUID: Ce, - ZodUndefined: Ui, + ZodSuccess: so, + ZodSymbol: Ni, + ZodTemplateLiteral: ho, + ZodTransform: eo, + ZodTuple: Gi, + ZodType: X, + ZodULID: Jn, + ZodURL: qt, + ZodUUID: Me, + ZodUndefined: Pi, ZodUnion: Yt, - ZodUnknown: Ai, - ZodVoid: Zi, - ZodXID: Jn, - ZodXor: Li, - _ZodString: Zn, - _default: no, + ZodUnknown: Mi, + ZodVoid: Fi, + ZodXID: qn, + ZodXor: Bi, + _ZodString: Mn, + _default: oo, _function: $n, - any: em, - array: Kt, - base64: Cd, - base64url: Zd, - bigint: Kd, - boolean: xi, - catch: uo, - check: Sm, - cidrv4: Nd, - cidrv6: Ad, - clone: Te, - codec: bm, - coerce: dk, - config: pe, - core: Ky, - cuid: Dd, - cuid2: jd, - custom: Im, - date: nm, - decode: cd, - decodeAsync: md, - describe: wm, - discriminatedUnion: um, - e164: Md, - email: hd, - emoji: wd, - encode: sd, - encodeAsync: dd, - endsWith: En, - enum: or, - exactOptional: Qi, - file: pm, - flattenError: zr, - float32: Jd, - float64: qd, - formatError: Dr, - fromJSONSchema: ok, + any: nm, + array: Xt, + base64: Md, + base64url: Ld, + bigint: Hd, + boolean: Ti, + catch: mo, + check: Im, + cidrv4: Cd, + cidrv6: Zd, + clone: Ae, + codec: ym, + coerce: Jk, + config: _e, + core: Ok, + cuid: Od, + cuid2: Ed, + custom: zm, + date: im, + decode: md, + decodeAsync: pd, + describe: Dm, + discriminatedUnion: cm, + e164: Fd, + email: $d, + emoji: Dd, + encode: dd, + encodeAsync: fd, + endsWith: Un, + enum: ar, + exactOptional: no, + file: hm, + flattenError: Or, + float32: Gd, + float64: Kd, + formatError: Er, + fromJSONSchema: Mk, function: $n, - getErrorMap: tk, - globalRegistry: Ee, + getErrorMap: Pk, + globalRegistry: Ne, gt: Ge, - gte: Ie, - guid: $d, - hash: Vd, - hex: Bd, - hostname: Rd, - httpUrl: Id, - includes: On, - instanceof: Dm, - int: gn, - int32: Gd, - int64: Xd, - intersection: Bi, - invertCodec: _m, - ipv4: Ud, - ipv6: Pd, - iso: rd, - json: Om, - jwt: Ld, - keyof: rm, - ksuid: Ed, - lazy: go, - length: Ft, - literal: vm, - locales: Is, - looseObject: am, - looseRecord: cm, - lowercase: Dn, + gte: De, + guid: _d, + hash: qd, + hex: Jd, + hostname: Vd, + httpUrl: zd, + includes: En, + instanceof: Om, + int: hn, + int32: Wd, + int64: Yd, + intersection: qi, + invertCodec: km, + ipv4: Nd, + ipv6: Ad, + iso: od, + json: xm, + jwt: Rd, + keyof: om, + ksuid: Td, + lazy: $o, + length: Rt, + literal: gm, + locales: zs, + looseObject: um, + looseRecord: mm, + lowercase: jn, lt: qe, - lte: Ue, - mac: Td, - map: dm, - maxLength: Lt, - maxSize: ht, - meta: zm, - mime: Un, - minLength: tt, - minSize: We, - multipleOf: dt, - nan: $m, - nanoid: zd, - nativeEnum: fm, - negative: $i, - never: nr, - nonnegative: _i, - nonoptional: oo, - nonpositive: bi, - normalize: Tn, - null: Pi, - nullable: Ot, - nullish: gm, - number: Oi, - object: im, - optional: jt, + lte: Pe, + mac: Pd, + map: fm, + maxLength: Ft, + maxSize: $t, + meta: jm, + mime: Tn, + minLength: nt, + minSize: Ke, + multipleOf: ft, + nan: _m, + nanoid: jd, + nativeEnum: vm, + negative: yi, + never: rr, + nonnegative: Si, + nonoptional: uo, + nonpositive: ki, + normalize: Nn, + null: Ci, + nullable: Et, + nullish: bm, + number: Ui, + object: am, + optional: Ot, overwrite: Be, - parse: od, - parseAsync: ad, - partialRecord: sm, - pipe: hn, - positive: hi, - prefault: io, - preprocess: xm, - prettifyError: il, - promise: km, - property: yi, - readonly: fo, - record: qi, - refine: bo, - regex: zn, - regexes: Mr, - registry: Xr, - safeDecode: vd, - safeDecodeAsync: gd, - safeEncode: fd, - safeEncodeAsync: pd, - safeParse: ld, - safeParseAsync: ud, - set: mm, - setErrorMap: ek, - size: Mt, - slugify: Cn, + parse: ld, + parseAsync: ud, + partialRecord: dm, + pipe: bn, + positive: _i, + prefault: lo, + preprocess: Um, + prettifyError: al, + promise: wm, + property: wi, + readonly: go, + record: Wi, + refine: ko, + regex: Dn, + regexes: Rr, + registry: Qr, + safeDecode: gd, + safeDecodeAsync: bd, + safeEncode: vd, + safeEncodeAsync: hd, + safeParse: sd, + safeParseAsync: cd, + set: pm, + setErrorMap: Nk, + size: Lt, + slugify: Zn, startsWith: xn, - strictObject: om, - string: zt, - stringFormat: Fd, - stringbool: jm, - success: hm, - superRefine: _o, - symbol: Hd, - templateLiteral: ym, - toJSONSchema: Hc, - toLowerCase: Nn, - toUpperCase: An, - transform: ar, - treeifyError: nl, + strictObject: lm, + string: Dt, + stringFormat: Bd, + stringbool: Em, + success: $m, + superRefine: So, + symbol: em, + templateLiteral: Sm, + toJSONSchema: ed, + toLowerCase: An, + toUpperCase: Cn, + transform: lr, + treeifyError: il, trim: Pn, - tuple: Ji, - uint32: Wd, - uint64: Yd, - ulid: Od, - undefined: Qd, - union: ir, - unknown: nt, - uppercase: jn, - url: Sd, - util: el, - uuid: bd, - uuidv4: _d, - uuidv6: yd, - uuidv7: kd, - void: tm, - xid: xd, - xor: lm + tuple: Ki, + uint32: Xd, + uint64: Qd, + ulid: xd, + undefined: tm, + union: or, + unknown: rt, + uppercase: On, + url: Id, + util: nl, + uuid: yd, + uuidv4: kd, + uuidv6: Sd, + uuidv7: wd, + void: rm, + xid: Ud, + xor: sm }, Symbol.toStringTag, { value: "Module" })); -var mk = {}; -globalThis.cacheMemoria_cache = mk; -var fk = ((e) => (e.codigo = "codigo", e.excluido = "excluido", e.data_hora_criacao = "data_hora_criacao", e.data_hora_atualizacao = "data_hora_atualizacao", e.codigo_usuario_criacao = "codigo_usuario_criacao", e.codigo_usuario_atualizacao = "codigo_usuario_atualizacao", e.versao = "versao", e))(fk || {}), vk = ((e) => (e.token = "token", e))(vk || {}), pk = ((e) => (e.Usuario = "usuario", e.Fornecedor = "fornecedor", e))(pk || {}), gk = ((e) => (e["="] = "=", e["!="] = "!=", e[">"] = ">", e[">="] = ">=", e["<"] = "<", e["<="] = "<=", e.like = "like", e.in = "in", e.isNull = "isNull", e))(gk || {}), hk = de.enum(["=", "!=", ">", ">=", "<", "<=", "like", "in", "isNull"]); -de.object({ coluna: de.string(), valor: de.any(), operador: hk, ou: de.boolean().optional() }); -var $k = de.enum([">", "<", ">=", "<=", "=", "!=", "in", "like", "∩"]), bk = /^\{[\w:]+\}$/, _k = /^\w+(\.\w+)*$/, yk = de.string().regex(_k, "Coluna inválida").describe("nome da coluna ou caminho aninhado do jsonb"), kk = de.object({ id: de.string().describe("id da condição do filtro").regex(bk, "O id deve seguir o formato {identificador}"), coluna: yk, operador: $k, valor: de.any().describe("valor de comparação") }), Sk = (e) => { +var qk = {}; +globalThis.cacheMemoria_cache = qk; +var Gk = ((e) => (e.codigo = "codigo", e.excluido = "excluido", e.data_hora_criacao = "data_hora_criacao", e.data_hora_atualizacao = "data_hora_atualizacao", e.codigo_usuario_criacao = "codigo_usuario_criacao", e.codigo_usuario_atualizacao = "codigo_usuario_atualizacao", e.versao = "versao", e))(Gk || {}), Kk = ((e) => (e.token = "token", e))(Kk || {}), Wk = ((e) => (e.Usuario = "usuario", e.Fornecedor = "fornecedor", e))(Wk || {}), Xk = ((e) => (e["="] = "=", e["!="] = "!=", e[">"] = ">", e[">="] = ">=", e["<"] = "<", e["<="] = "<=", e.like = "like", e.in = "in", e.isNull = "isNull", e))(Xk || {}), Hk = me.enum(["=", "!=", ">", ">=", "<", "<=", "like", "in", "isNull"]); +me.object({ coluna: me.string(), valor: me.any(), operador: Hk, ou: me.boolean().optional() }); +var Yk = me.enum([">", "<", ">=", "<=", "=", "!=", "in", "like", "∩"]), Qk = /^\{[\w:]+\}$/, eS = /^\w+(\.\w+)*$/, tS = me.string().regex(eS, "Coluna inválida").describe("nome da coluna ou caminho aninhado do jsonb"), nS = me.object({ id: me.string().describe("id da condição do filtro").regex(Qk, "O id deve seguir o formato {identificador}"), coluna: tS, operador: Yk, valor: me.any().describe("valor de comparação") }), rS = (e) => { let n = (e.match(/\{[\w:]+\}|\bNAO\b|\bE\b|\bOU\b|\(|\)/g) || []).join(""), r = e.replace(/\s+/g, ""), o = n.replace(/\s+/g, ""); if (r !== o) return !1; let t = e.replace(/\{[\w:]+\}/g, "true").replace(/\bNAO\b/g, "!").replace(/\bE\b/g, "&&").replace(/\bOU\b/g, "||"); @@ -15659,34 +16093,34 @@ var $k = de.enum([">", "<", ">=", "<=", "=", "!=", "in", "like", "∩"]), bk = / } catch { return !1; } -}, Ik = de.object({ condicoes: de.array(kk), formula: de.string().refine(Sk, { message: "Fórmula inválida. Use apenas referências de condições {id} ou {id:sufixo}, operadores E/OU/NAO e parênteses." }) }).superRefine((e, n) => { +}, iS = me.object({ condicoes: me.array(nS), formula: me.string().refine(rS, { message: "Fórmula inválida. Use apenas referências de condições {id} ou {id:sufixo}, operadores E/OU/NAO e parênteses." }) }).superRefine((e, n) => { let r = new Set(e.condicoes.map((t) => t.id)), o = e.formula.match(/\{[\w:]+\}/g) || []; for (let t of o) r.has(t) || n.addIssue({ code: "custom", path: ["formula"], message: `A referência ${t} não existe em condicoes.` }); -}), wk = (e) => Ik.parse(e), Wk = () => ({ criarFiltroDelta: wk }), zk = ((e) => (e["e-licencie"] = "e-licencie", e["gov.e-licencie"] = "gov.e-licencie", e))(zk || {}), Dk = ((e) => (e.modelo = "000_modelo", e.vencida = "100_vencida", e.expirado = "200_expirado", e.alerta = "300_alerta", e.protocoladafora = "350_protocoladafora", e.protocolada = "400_protocolada", e.protocoladaApenas = "430_protocolada", e.protocolada_alteracao = "450_protocolada", e.prazo = "500_prazo", e.emitida = "515_emitida", e.valida = "518_valida", e.novo = "520_novo", e.recebido = "521_recebido", e.em_andamento = "530_em_andamento", e.aguardando = "530_aguardando", e.aguardandoresposta = "540_aguardandoresposta", e.suspensaotemporaria = "540_suspensaotemporaria", e.cancelada = "550_cancelada", e.execucao = "560_execucao", e.pendente = "570_pendente", e.executadafora = "600_executadafora", e.executada = "700_executada", e.naoexecutada = "701_naoexecutada", e.concluida = "730_concluida", e.respondido_negado = "740_respondido_negado", e.respondido_aceito = "741_respondido_aceito", e.atendidoparcial = "742_atendidoparcial", e.naoatendido = "743_naoatendido", e.atendido = "744_atendido", e.renovada = "760_renovada", e.finalizada = "800_finalizada", e.emitirnota = "101_emitirnota", e.faturaatrasada = "301_faturaatrasada", e.pagarfatura = "302_pagarfatura", e.aguardandoconfirmacao = "531_aguardandoconfirmacao", e.agendado = "701_agendado", e.faturapaga = "801_faturapaga", e.excluida = "999_excluida", e.requerida = "401_requerida", e.vigente = "516_vigente", e.emrenovacao = "402_emrenovacao", e.arquivada = "801_arquivada", e.aguardando_sincronizacao = "999_aguardando_sincronizacao", e.nao_conforme = "710_nao_conforme", e.conforme = "720_conforme", e.nao_aplicavel = "730_nao_aplicavel", e.parcial = "715_parcial", e))(Dk || {}), jk = ((e) => (e.UN = "UN", e.KG = "KG", e.TON = "TON", e.g = "g", e["M³"] = "M³", e.Lt = "Lt", e))(jk || {}); -de.object({ formato: de.literal("decimal").default("decimal"), datum: de.literal("EPSG:4326").default("EPSG:4326"), latitude: de.number(), longitude: de.number() }); -var Ok = /^\d{2}\.\d{3}\.\d{3}\/\d{4}-\d{2}$/, xk = /^[A-Z0-9]{2}\.[A-Z0-9]{3}\.[A-Z0-9]{3}\/[A-Z0-9]{4}-\d{2}$/i, Ek = Number((/* @__PURE__ */ new Date()).toISOString().slice(0, 7).replace("-", "")), Uk = de.string().regex(Ek < 202407 ? Ok : xk).describe("Documento (CNPJ) no formato XX.XXX.XXX/XXXX-XX"), Tk = de.string().regex(/^\d{3}\.\d{3}\.\d{3}-\d{2}$/).describe("Documento (CPF) no formato XXX.XXX.XXX-XX"); -Tk.or(Uk).describe("CPF ou CNPJ"); -const Kk = { +}), oS = (e) => iS.parse(e), jS = () => ({ criarFiltroDelta: oS }), aS = ((e) => (e["e-licencie"] = "e-licencie", e["gov.e-licencie"] = "gov.e-licencie", e))(aS || {}), lS = ((e) => (e.modelo = "000_modelo", e.vencida = "100_vencida", e.expirado = "200_expirado", e.alerta = "300_alerta", e.protocoladafora = "350_protocoladafora", e.protocolada = "400_protocolada", e.protocoladaApenas = "430_protocolada", e.protocolada_alteracao = "450_protocolada", e.prazo = "500_prazo", e.emitida = "515_emitida", e.valida = "518_valida", e.novo = "520_novo", e.recebido = "521_recebido", e.em_andamento = "530_em_andamento", e.aguardando = "530_aguardando", e.aguardandoresposta = "540_aguardandoresposta", e.suspensaotemporaria = "540_suspensaotemporaria", e.cancelada = "550_cancelada", e.execucao = "560_execucao", e.pendente = "570_pendente", e.executadafora = "600_executadafora", e.executada = "700_executada", e.naoexecutada = "701_naoexecutada", e.concluida = "730_concluida", e.respondido_negado = "740_respondido_negado", e.respondido_aceito = "741_respondido_aceito", e.atendidoparcial = "742_atendidoparcial", e.naoatendido = "743_naoatendido", e.atendido = "744_atendido", e.renovada = "760_renovada", e.finalizada = "800_finalizada", e.emitirnota = "101_emitirnota", e.faturaatrasada = "301_faturaatrasada", e.pagarfatura = "302_pagarfatura", e.aguardandoconfirmacao = "531_aguardandoconfirmacao", e.agendado = "701_agendado", e.faturapaga = "801_faturapaga", e.excluida = "999_excluida", e.requerida = "401_requerida", e.vigente = "516_vigente", e.emrenovacao = "402_emrenovacao", e.arquivada = "801_arquivada", e.aguardando_sincronizacao = "999_aguardando_sincronizacao", e.nao_conforme = "710_nao_conforme", e.conforme = "720_conforme", e.nao_aplicavel = "730_nao_aplicavel", e.parcial = "715_parcial", e))(lS || {}), uS = ((e) => (e.UN = "UN", e.KG = "KG", e.TON = "TON", e.g = "g", e["M³"] = "M³", e.Lt = "Lt", e))(uS || {}); +me.object({ formato: me.literal("decimal").default("decimal"), datum: me.literal("EPSG:4326").default("EPSG:4326"), latitude: me.number(), longitude: me.number() }); +var sS = /^\d{2}\.\d{3}\.\d{3}\/\d{4}-\d{2}$/, cS = /^[A-Z0-9]{2}\.[A-Z0-9]{3}\.[A-Z0-9]{3}\/[A-Z0-9]{4}-\d{2}$/i, dS = Number((/* @__PURE__ */ new Date()).toISOString().slice(0, 7).replace("-", "")), mS = me.string().regex(dS < 202407 ? sS : cS).describe("Documento (CNPJ) no formato XX.XXX.XXX/XXXX-XX"), fS = me.string().regex(/^\d{3}\.\d{3}\.\d{3}-\d{2}$/).describe("Documento (CPF) no formato XXX.XXX.XXX-XX"); +fS.or(mS).describe("CPF ou CNPJ"); +const OS = { install(e) { - e.component("EliOlaMundo", P$), e.component("EliBotao", ha), e.component("EliBadge", _r), e.component("EliCartao", ef), e.component("EliTabela", i$), e.component("EliEntradaTexto", yr), e.component("EliEntradaNumero", Sa), e.component("EliEntradaDataHora", ka), e.component("EliEntradaParagrafo", Ia), e.component("EliEntradaSelecao", wa), e.component("EliEntradaSelecaoMultipla", za), e.component("EliEntradaCoordenadas", Df), e.component("EliFeedbackWidget", x$); + e.component("EliOlaMundo", p$), e.component("EliBotao", ba), e.component("EliBadge", Sr), e.component("EliCartao", nf), e.component("EliTabela", Zb), e.component("EliEntradaTexto", wr), e.component("EliEntradaNumero", Ia), e.component("EliEntradaDataHora", wa), e.component("EliEntradaParagrafo", za), e.component("EliEntradaSelecao", Da), e.component("EliEntradaSelecaoMultipla", ja), e.component("EliEntradaCoordenadas", Of), e.component("EliFeedbackWidget", c$); } }; export { - _r as EliBadge, - ha as EliBotao, - ef as EliCartao, - rf as EliEntradaConfirmacao, - Df as EliEntradaCoordenadas, - ka as EliEntradaDataHora, - Sa as EliEntradaNumero, - Ia as EliEntradaParagrafo, - wa as EliEntradaSelecao, - za as EliEntradaSelecaoMultipla, - yr as EliEntradaTexto, - x$ as EliFeedbackWidget, - P$ as EliOlaMundo, - i$ as EliTabela, - Gk as celulaTabela, - Kk as default, - Wk as iniciarFiltroDelta + Sr as EliBadge, + ba as EliBotao, + nf as EliCartao, + af as EliEntradaConfirmacao, + Of as EliEntradaCoordenadas, + wa as EliEntradaDataHora, + Ia as EliEntradaNumero, + za as EliEntradaParagrafo, + Da as EliEntradaSelecao, + ja as EliEntradaSelecaoMultipla, + wr as EliEntradaTexto, + c$ as EliFeedbackWidget, + p$ as EliOlaMundo, + Zb as EliTabela, + DS as celulaTabela, + OS as default, + jS as iniciarFiltroDelta }; diff --git a/dist/eli-vue.umd.js b/dist/eli-vue.umd.js index 5ad5c8a..352e16e 100644 --- a/dist/eli-vue.umd.js +++ b/dist/eli-vue.umd.js @@ -1,30 +1,30 @@ -(function(){"use strict";try{if(typeof document<"u"){var e=document.createElement("style");e.appendChild(document.createTextNode('@font-face{font-family:Google Sans;font-style:normal;font-weight:100 900;font-display:swap;src:url(https://paiol.idz.one/estaticos/GoogleSans/GoogleSans-VariableFont_GRAD,opsz,wght.ttf) format("truetype")}@font-face{font-family:Google Sans;font-style:italic;font-weight:100 900;font-display:swap;src:url(https://paiol.idz.one/estaticos/GoogleSans/GoogleSans-Italic-VariableFont_GRAD,opsz,wght.ttf) format("truetype")}:root{--eli-font-family: "Google Sans", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", "Liberation Sans", sans-serif;--v-font-family: var(--eli-font-family)}html,body{font-family:var(--eli-font-family)}:where([class^=eli-],[class*=" eli-"]){font-family:var(--eli-font-family);--v-font-family: var(--eli-font-family)}button,input,select,textarea{font-family:inherit}:root{--cor-eli-primaria-bg: #EEF3D0;--cor-eli-primaria-zebra: #F6F9E8;--cor-eli-primaria-suave: #BFC99C;--cor-eli-primaria-header: #ADCC44;--cor-eli-primaria-clara: #D4E290;--cor-eli-primaria-media: #ADCC44;--cor-eli-primaria-acao: #8AAF00;--cor-eli-primaria: #688C00;--cor-eli-primaria-escura: #4A6500;--cor-eli-primaria-texto: #2E3F00;--cor-eli-alerta-bg: #FAF3DF;--cor-eli-alerta-clara: #F5DC8A;--cor-eli-alerta: #DDB847;--cor-eli-alerta-forte: #8C6A00;--cor-eli-fundo: #F2F3EE;--cor-eli-borda: #D5D8CC;--cor-eli-borda-forte: #B5BAA8;--cor-eli-neutro: #5E6553;--cor-eli-neutro-escuro: #3E4436;--cor-eli-superficie: #FFFFFF;--cor-eli-sucesso: #2E7D32;--cor-eli-sucesso-bg: #E8F5E9;--cor-eli-erro: #C62828;--cor-eli-erro-bg: #FFEBEE;--cor-eli-info: #1565C0;--cor-eli-info-bg: #E3F2FD}.eli-badge .v-badge__badge,.eli-badge .v-badge__content{border-radius:var(--eli-badge-radius)!important}.eli-cartao{border-radius:12px}.eli-cartao__titulo{display:flex;align-items:center;justify-content:space-between;gap:12px}.eli-cartao__titulo-texto{min-width:0}.eli-cartao__conteudo{padding-top:8px}.eli-cartao__acoes{padding-top:0}.eli-cartao--cancelado{opacity:.85}.leaflet-pane,.leaflet-tile,.leaflet-marker-icon,.leaflet-marker-shadow,.leaflet-tile-container,.leaflet-pane>svg,.leaflet-pane>canvas,.leaflet-zoom-box,.leaflet-image-layer,.leaflet-layer{position:absolute;left:0;top:0}.leaflet-container{overflow:hidden}.leaflet-tile,.leaflet-marker-icon,.leaflet-marker-shadow{-webkit-user-select:none;-moz-user-select:none;user-select:none;-webkit-user-drag:none}.leaflet-tile::selection{background:transparent}.leaflet-safari .leaflet-tile{image-rendering:-webkit-optimize-contrast}.leaflet-safari .leaflet-tile-container{width:1600px;height:1600px;-webkit-transform-origin:0 0}.leaflet-marker-icon,.leaflet-marker-shadow{display:block}.leaflet-container .leaflet-overlay-pane svg{max-width:none!important;max-height:none!important}.leaflet-container .leaflet-marker-pane img,.leaflet-container .leaflet-shadow-pane img,.leaflet-container .leaflet-tile-pane img,.leaflet-container img.leaflet-image-layer,.leaflet-container .leaflet-tile{max-width:none!important;max-height:none!important;width:auto;padding:0}.leaflet-container img.leaflet-tile{mix-blend-mode:plus-lighter}.leaflet-container.leaflet-touch-zoom{-ms-touch-action:pan-x pan-y;touch-action:pan-x pan-y}.leaflet-container.leaflet-touch-drag{-ms-touch-action:pinch-zoom;touch-action:none;touch-action:pinch-zoom}.leaflet-container.leaflet-touch-drag.leaflet-touch-zoom{-ms-touch-action:none;touch-action:none}.leaflet-container{-webkit-tap-highlight-color:transparent}.leaflet-container a{-webkit-tap-highlight-color:rgba(51,181,229,.4)}.leaflet-tile{filter:inherit;visibility:hidden}.leaflet-tile-loaded{visibility:inherit}.leaflet-zoom-box{width:0;height:0;-moz-box-sizing:border-box;box-sizing:border-box;z-index:800}.leaflet-overlay-pane svg{-moz-user-select:none}.leaflet-pane{z-index:400}.leaflet-tile-pane{z-index:200}.leaflet-overlay-pane{z-index:400}.leaflet-shadow-pane{z-index:500}.leaflet-marker-pane{z-index:600}.leaflet-tooltip-pane{z-index:650}.leaflet-popup-pane{z-index:700}.leaflet-map-pane canvas{z-index:100}.leaflet-map-pane svg{z-index:200}.leaflet-vml-shape{width:1px;height:1px}.lvml{behavior:url(#default#VML);display:inline-block;position:absolute}.leaflet-control{position:relative;z-index:800;pointer-events:visiblePainted;pointer-events:auto}.leaflet-top,.leaflet-bottom{position:absolute;z-index:1000;pointer-events:none}.leaflet-top{top:0}.leaflet-right{right:0}.leaflet-bottom{bottom:0}.leaflet-left{left:0}.leaflet-control{float:left;clear:both}.leaflet-right .leaflet-control{float:right}.leaflet-top .leaflet-control{margin-top:10px}.leaflet-bottom .leaflet-control{margin-bottom:10px}.leaflet-left .leaflet-control{margin-left:10px}.leaflet-right .leaflet-control{margin-right:10px}.leaflet-fade-anim .leaflet-popup{opacity:0;-webkit-transition:opacity .2s linear;-moz-transition:opacity .2s linear;transition:opacity .2s linear}.leaflet-fade-anim .leaflet-map-pane .leaflet-popup{opacity:1}.leaflet-zoom-animated{-webkit-transform-origin:0 0;-ms-transform-origin:0 0;transform-origin:0 0}svg.leaflet-zoom-animated{will-change:transform}.leaflet-zoom-anim .leaflet-zoom-animated{-webkit-transition:-webkit-transform .25s cubic-bezier(0,0,.25,1);-moz-transition:-moz-transform .25s cubic-bezier(0,0,.25,1);transition:transform .25s cubic-bezier(0,0,.25,1)}.leaflet-zoom-anim .leaflet-tile,.leaflet-pan-anim .leaflet-tile{-webkit-transition:none;-moz-transition:none;transition:none}.leaflet-zoom-anim .leaflet-zoom-hide{visibility:hidden}.leaflet-interactive{cursor:pointer}.leaflet-grab{cursor:-webkit-grab;cursor:-moz-grab;cursor:grab}.leaflet-crosshair,.leaflet-crosshair .leaflet-interactive{cursor:crosshair}.leaflet-popup-pane,.leaflet-control{cursor:auto}.leaflet-dragging .leaflet-grab,.leaflet-dragging .leaflet-grab .leaflet-interactive,.leaflet-dragging .leaflet-marker-draggable{cursor:move;cursor:-webkit-grabbing;cursor:-moz-grabbing;cursor:grabbing}.leaflet-marker-icon,.leaflet-marker-shadow,.leaflet-image-layer,.leaflet-pane>svg path,.leaflet-tile-container{pointer-events:none}.leaflet-marker-icon.leaflet-interactive,.leaflet-image-layer.leaflet-interactive,.leaflet-pane>svg path.leaflet-interactive,svg.leaflet-image-layer.leaflet-interactive path{pointer-events:visiblePainted;pointer-events:auto}.leaflet-container{background:#ddd;outline-offset:1px}.leaflet-container a{color:#0078a8}.leaflet-zoom-box{border:2px dotted #38f;background:#ffffff80}.leaflet-container{font-family:Helvetica Neue,Arial,Helvetica,sans-serif;font-size:12px;font-size:.75rem;line-height:1.5}.leaflet-bar{box-shadow:0 1px 5px #000000a6;border-radius:4px}.leaflet-bar a{background-color:#fff;border-bottom:1px solid #ccc;width:26px;height:26px;line-height:26px;display:block;text-align:center;text-decoration:none;color:#000}.leaflet-bar a,.leaflet-control-layers-toggle{background-position:50% 50%;background-repeat:no-repeat;display:block}.leaflet-bar a:hover,.leaflet-bar a:focus{background-color:#f4f4f4}.leaflet-bar a:first-child{border-top-left-radius:4px;border-top-right-radius:4px}.leaflet-bar a:last-child{border-bottom-left-radius:4px;border-bottom-right-radius:4px;border-bottom:none}.leaflet-bar a.leaflet-disabled{cursor:default;background-color:#f4f4f4;color:#bbb}.leaflet-touch .leaflet-bar a{width:30px;height:30px;line-height:30px}.leaflet-touch .leaflet-bar a:first-child{border-top-left-radius:2px;border-top-right-radius:2px}.leaflet-touch .leaflet-bar a:last-child{border-bottom-left-radius:2px;border-bottom-right-radius:2px}.leaflet-control-zoom-in,.leaflet-control-zoom-out{font:700 18px Lucida Console,Monaco,monospace;text-indent:1px}.leaflet-touch .leaflet-control-zoom-in,.leaflet-touch .leaflet-control-zoom-out{font-size:22px}.leaflet-control-layers{box-shadow:0 1px 5px #0006;background:#fff;border-radius:5px}.leaflet-control-layers-toggle{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABoAAAAaCAQAAAADQ4RFAAACf0lEQVR4AY1UM3gkARTePdvdoTxXKc+qTl3aU5U6b2Kbkz3Gtq3Zw6ziLGNPzrYx7946Tr6/ee/XeCQ4D3ykPtL5tHno4n0d/h3+xfuWHGLX81cn7r0iTNzjr7LrlxCqPtkbTQEHeqOrTy4Yyt3VCi/IOB0v7rVC7q45Q3Gr5K6jt+3Gl5nCoDD4MtO+j96Wu8atmhGqcNGHObuf8OM/x3AMx38+4Z2sPqzCxRFK2aF2e5Jol56XTLyggAMTL56XOMoS1W4pOyjUcGGQdZxU6qRh7B9Zp+PfpOFlqt0zyDZckPi1ttmIp03jX8gyJ8a/PG2yutpS/Vol7peZIbZcKBAEEheEIAgFbDkz5H6Zrkm2hVWGiXKiF4Ycw0RWKdtC16Q7qe3X4iOMxruonzegJzWaXFrU9utOSsLUmrc0YjeWYjCW4PDMADElpJSSQ0vQvA1Tm6/JlKnqFs1EGyZiFCqnRZTEJJJiKRYzVYzJck2Rm6P4iH+cmSY0YzimYa8l0EtTODFWhcMIMVqdsI2uiTvKmTisIDHJ3od5GILVhBCarCfVRmo4uTjkhrhzkiBV7SsaqS+TzrzM1qpGGUFt28pIySQHR6h7F6KSwGWm97ay+Z+ZqMcEjEWebE7wxCSQwpkhJqoZA5ivCdZDjJepuJ9IQjGGUmuXJdBFUygxVqVsxFsLMbDe8ZbDYVCGKxs+W080max1hFCarCfV+C1KATwcnvE9gRRuMP2prdbWGowm1KB1y+zwMMENkM755cJ2yPDtqhTI6ED1M/82yIDtC/4j4BijjeObflpO9I9MwXTCsSX8jWAFeHr05WoLTJ5G8IQVS/7vwR6ohirYM7f6HzYpogfS3R2OAAAAAElFTkSuQmCC);width:36px;height:36px}.leaflet-retina .leaflet-control-layers-toggle{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADQAAAA0CAQAAABvcdNgAAAEsklEQVR4AWL4TydIhpZK1kpWOlg0w3ZXP6D2soBtG42jeI6ZmQTHzAxiTbSJsYLjO9HhP+WOmcuhciVnmHVQcJnp7DFvScowZorad/+V/fVzMdMT2g9Cv9guXGv/7pYOrXh2U+RRR3dSd9JRx6bIFc/ekqHI29JC6pJ5ZEh1yWkhkbcFeSjxgx3L2m1cb1C7bceyxA+CNjT/Ifff+/kDk2u/w/33/IeCMOSaWZ4glosqT3DNnNZQ7Cs58/3Ce5HL78iZH/vKVIaYlqzfdLu8Vi7dnvUbEza5Idt36tquZFldl6N5Z/POLof0XLK61mZCmJSWjVF9tEjUluu74IUXvgttuVIHE7YxSkaYhJZam7yiM9Pv82JYfl9nptxZaxMJE4YSPty+vF0+Y2up9d3wwijfjZbabqm/3bZ9ecKHsiGmRflnn1MW4pjHf9oLufyn2z3y1D6n8g8TZhxyzipLNPnAUpsOiuWimg52psrTZYnOWYNDTMuWBWa0tJb4rgq1UvmutpaYEbZlwU3CLJm/ayYjHW5/h7xWLn9Hh1vepDkyf7dE7MtT5LR4e7yYpHrkhOUpEfssBLq2pPhAqoSWKUkk7EDqkmK6RrCEzqDjhNDWNE+XSMvkJRDWlZTmCW0l0PHQGRZY5t1L83kT0Y3l2SItk5JAWHl2dCOBm+fPu3fo5/3v61RMCO9Jx2EEYYhb0rmNQMX/vm7gqOEJLcXTGw3CAuRNeyaPWwjR8PRqKQ1PDA/dpv+on9Shox52WFnx0KY8onHayrJzm87i5h9xGw/tfkev0jGsQizqezUKjk12hBMKJ4kbCqGPVNXudyyrShovGw5CgxsRICxF6aRmSjlBnHRzg7Gx8fKqEubI2rahQYdR1YgDIRQO7JvQyD52hoIQx0mxa0ODtW2Iozn1le2iIRdzwWewedyZzewidueOGqlsn1MvcnQpuVwLGG3/IR1hIKxCjelIDZ8ldqWz25jWAsnldEnK0Zxro19TGVb2ffIZEsIO89EIEDvKMPrzmBOQcKQ+rroye6NgRRxqR4U8EAkz0CL6uSGOm6KQCdWjvjRiSP1BPalCRS5iQYiEIvxuBMJEWgzSoHADcVMuN7IuqqTeyUPq22qFimFtxDyBBJEwNyt6TM88blFHao/6tWWhuuOM4SAK4EI4QmFHA+SEyWlp4EQoJ13cYGzMu7yszEIBOm2rVmHUNqwAIQabISNMRstmdhNWcFLsSm+0tjJH1MdRxO5Nx0WDMhCtgD6OKgZeljJqJKc9po8juskR9XN0Y1lZ3mWjLR9JCO1jRDMd0fpYC2VnvjBSEFg7wBENc0R9HFlb0xvF1+TBEpF68d+DHR6IOWVv2BECtxo46hOFUBd/APU57WIoEwJhIi2CdpyZX0m93BZicktMj1AS9dClteUFAUNUIEygRZCtik5zSxI9MubTBH1GOiHsiLJ3OCoSZkILa9PxiN0EbvhsAo8tdAf9Seepd36lGWHmtNANTv5Jd0z4QYyeo/UEJqxKRpg5LZx6btLPsOaEmdMyxYdlc8LMaJnikDlhclqmPiQnTEpLUIZEwkRagjYkEibQErwhkTAKCLQEbUgkzJQWc/0PstHHcfEdQ+UAAAAASUVORK5CYII=);background-size:26px 26px}.leaflet-touch .leaflet-control-layers-toggle{width:44px;height:44px}.leaflet-control-layers .leaflet-control-layers-list,.leaflet-control-layers-expanded .leaflet-control-layers-toggle{display:none}.leaflet-control-layers-expanded .leaflet-control-layers-list{display:block;position:relative}.leaflet-control-layers-expanded{padding:6px 10px 6px 6px;color:#333;background:#fff}.leaflet-control-layers-scrollbar{overflow-y:scroll;overflow-x:hidden;padding-right:5px}.leaflet-control-layers-selector{margin-top:2px;position:relative;top:1px}.leaflet-control-layers label{display:block;font-size:13px;font-size:1.08333em}.leaflet-control-layers-separator{height:0;border-top:1px solid #ddd;margin:5px -10px 5px -6px}.leaflet-default-icon-path{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABkAAAApCAYAAADAk4LOAAAFgUlEQVR4Aa1XA5BjWRTN2oW17d3YaZtr2962HUzbDNpjszW24mRt28p47v7zq/bXZtrp/lWnXr337j3nPCe85NcypgSFdugCpW5YoDAMRaIMqRi6aKq5E3YqDQO3qAwjVWrD8Ncq/RBpykd8oZUb/kaJutow8r1aP9II0WmLKLIsJyv1w/kqw9Ch2MYdB++12Onxee/QMwvf4/Dk/Lfp/i4nxTXtOoQ4pW5Aj7wpici1A9erdAN2OH64x8OSP9j3Ft3b7aWkTg/Fm91siTra0f9on5sQr9INejH6CUUUpavjFNq1B+Oadhxmnfa8RfEmN8VNAsQhPqF55xHkMzz3jSmChWU6f7/XZKNH+9+hBLOHYozuKQPxyMPUKkrX/K0uWnfFaJGS1QPRtZsOPtr3NsW0uyh6NNCOkU3Yz+bXbT3I8G3xE5EXLXtCXbbqwCO9zPQYPRTZ5vIDXD7U+w7rFDEoUUf7ibHIR4y6bLVPXrz8JVZEql13trxwue/uDivd3fkWRbS6/IA2bID4uk0UpF1N8qLlbBlXs4Ee7HLTfV1j54APvODnSfOWBqtKVvjgLKzF5YdEk5ewRkGlK0i33Eofffc7HT56jD7/6U+qH3Cx7SBLNntH5YIPvODnyfIXZYRVDPqgHtLs5ABHD3YzLuespb7t79FY34DjMwrVrcTuwlT55YMPvOBnRrJ4VXTdNnYug5ucHLBjEpt30701A3Ts+HEa73u6dT3FNWwflY86eMHPk+Yu+i6pzUpRrW7SNDg5JHR4KapmM5Wv2E8Tfcb1HoqqHMHU+uWDD7zg54mz5/2BSnizi9T1Dg4QQXLToGNCkb6tb1NU+QAlGr1++eADrzhn/u8Q2YZhQVlZ5+CAOtqfbhmaUCS1ezNFVm2imDbPmPng5wmz+gwh+oHDce0eUtQ6OGDIyR0uUhUsoO3vfDmmgOezH0mZN59x7MBi++WDL1g/eEiU3avlidO671bkLfwbw5XV2P8Pzo0ydy4t2/0eu33xYSOMOD8hTf4CrBtGMSoXfPLchX+J0ruSePw3LZeK0juPJbYzrhkH0io7B3k164hiGvawhOKMLkrQLyVpZg8rHFW7E2uHOL888IBPlNZ1FPzstSJM694fWr6RwpvcJK60+0HCILTBzZLFNdtAzJaohze60T8qBzyh5ZuOg5e7uwQppofEmf2++DYvmySqGBuKaicF1blQjhuHdvCIMvp8whTTfZzI7RldpwtSzL+F1+wkdZ2TBOW2gIF88PBTzD/gpeREAMEbxnJcaJHNHrpzji0gQCS6hdkEeYt9DF/2qPcEC8RM28Hwmr3sdNyht00byAut2k3gufWNtgtOEOFGUwcXWNDbdNbpgBGxEvKkOQsxivJx33iow0Vw5S6SVTrpVq11ysA2Rp7gTfPfktc6zhtXBBC+adRLshf6sG2RfHPZ5EAc4sVZ83yCN00Fk/4kggu40ZTvIEm5g24qtU4KjBrx/BTTH8ifVASAG7gKrnWxJDcU7x8X6Ecczhm3o6YicvsLXWfh3Ch1W0k8x0nXF+0fFxgt4phz8QvypiwCCFKMqXCnqXExjq10beH+UUA7+nG6mdG/Pu0f3LgFcGrl2s0kNNjpmoJ9o4B29CMO8dMT4Q5ox8uitF6fqsrJOr8qnwNbRzv6hSnG5wP+64C7h9lp30hKNtKdWjtdkbuPA19nJ7Tz3zR/ibgARbhb4AlhavcBebmTHcFl2fvYEnW0ox9xMxKBS8btJ+KiEbq9zA4RthQXDhPa0T9TEe69gWupwc6uBUphquXgf+/FrIjweHQS4/pduMe5ERUMHUd9xv8ZR98CxkS4F2n3EUrUZ10EYNw7BWm9x1GiPssi3GgiGRDKWRYZfXlON+dfNbM+GgIwYdwAAAAASUVORK5CYII=)}.leaflet-container .leaflet-control-attribution{background:#fff;background:#fffc;margin:0}.leaflet-control-attribution,.leaflet-control-scale-line{padding:0 5px;color:#333;line-height:1.4}.leaflet-control-attribution a{text-decoration:none}.leaflet-control-attribution a:hover,.leaflet-control-attribution a:focus{text-decoration:underline}.leaflet-attribution-flag{display:inline!important;vertical-align:baseline!important;width:1em;height:.6669em}.leaflet-left .leaflet-control-scale{margin-left:5px}.leaflet-bottom .leaflet-control-scale{margin-bottom:5px}.leaflet-control-scale-line{border:2px solid #777;border-top:none;line-height:1.1;padding:2px 5px 1px;white-space:nowrap;-moz-box-sizing:border-box;box-sizing:border-box;background:#fffc;text-shadow:1px 1px #fff}.leaflet-control-scale-line:not(:first-child){border-top:2px solid #777;border-bottom:none;margin-top:-2px}.leaflet-control-scale-line:not(:first-child):not(:last-child){border-bottom:2px solid #777}.leaflet-touch .leaflet-control-attribution,.leaflet-touch .leaflet-control-layers,.leaflet-touch .leaflet-bar{box-shadow:none}.leaflet-touch .leaflet-control-layers,.leaflet-touch .leaflet-bar{border:2px solid rgba(0,0,0,.2);background-clip:padding-box}.leaflet-popup{position:absolute;text-align:center;margin-bottom:20px}.leaflet-popup-content-wrapper{padding:1px;text-align:left;border-radius:12px}.leaflet-popup-content{margin:13px 24px 13px 20px;line-height:1.3;font-size:13px;font-size:1.08333em;min-height:1px}.leaflet-popup-content p{margin:1.3em 0}.leaflet-popup-tip-container{width:40px;height:20px;position:absolute;left:50%;margin-top:-1px;margin-left:-20px;overflow:hidden;pointer-events:none}.leaflet-popup-tip{width:17px;height:17px;padding:1px;margin:-10px auto 0;pointer-events:auto;-webkit-transform:rotate(45deg);-moz-transform:rotate(45deg);-ms-transform:rotate(45deg);transform:rotate(45deg)}.leaflet-popup-content-wrapper,.leaflet-popup-tip{background:#fff;color:#333;box-shadow:0 3px 14px #0006}.leaflet-container a.leaflet-popup-close-button{position:absolute;top:0;right:0;border:none;text-align:center;width:24px;height:24px;font:16px/24px Tahoma,Verdana,sans-serif;color:#757575;text-decoration:none;background:transparent}.leaflet-container a.leaflet-popup-close-button:hover,.leaflet-container a.leaflet-popup-close-button:focus{color:#585858}.leaflet-popup-scrolled{overflow:auto}.leaflet-oldie .leaflet-popup-content-wrapper{-ms-zoom:1}.leaflet-oldie .leaflet-popup-tip{width:24px;margin:0 auto;-ms-filter:"progid:DXImageTransform.Microsoft.Matrix(M11=0.70710678, M12=0.70710678, M21=-0.70710678, M22=0.70710678)";filter:progid:DXImageTransform.Microsoft.Matrix(M11=.70710678,M12=.70710678,M21=-.70710678,M22=.70710678)}.leaflet-oldie .leaflet-control-zoom,.leaflet-oldie .leaflet-control-layers,.leaflet-oldie .leaflet-popup-content-wrapper,.leaflet-oldie .leaflet-popup-tip{border:1px solid #999}.leaflet-div-icon{background:#fff;border:1px solid #666}.leaflet-tooltip{position:absolute;padding:6px;background-color:#fff;border:1px solid #fff;border-radius:3px;color:#222;white-space:nowrap;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;pointer-events:none;box-shadow:0 1px 3px #0006}.leaflet-tooltip.leaflet-interactive{cursor:pointer;pointer-events:auto}.leaflet-tooltip-top:before,.leaflet-tooltip-bottom:before,.leaflet-tooltip-left:before,.leaflet-tooltip-right:before{position:absolute;pointer-events:none;border:6px solid transparent;background:transparent;content:""}.leaflet-tooltip-bottom{margin-top:6px}.leaflet-tooltip-top{margin-top:-6px}.leaflet-tooltip-bottom:before,.leaflet-tooltip-top:before{left:50%;margin-left:-6px}.leaflet-tooltip-top:before{bottom:0;margin-bottom:-12px;border-top-color:#fff}.leaflet-tooltip-bottom:before{top:0;margin-top:-12px;margin-left:-6px;border-bottom-color:#fff}.leaflet-tooltip-left{margin-left:-6px}.leaflet-tooltip-right{margin-left:6px}.leaflet-tooltip-left:before,.leaflet-tooltip-right:before{top:50%;margin-top:-6px}.leaflet-tooltip-left:before{right:0;margin-right:-12px;border-left-color:#fff}.leaflet-tooltip-right:before{left:0;margin-left:-12px;border-right-color:#fff}@media print{.leaflet-control{-webkit-print-color-adjust:exact;print-color-adjust:exact}}.eli-coordenadas{width:100%;display:flex;flex-direction:column;gap:8px}.eli-coordenadas__mapa-container{width:100%;border-radius:8px;overflow:hidden;border:1px solid rgba(var(--v-border-color),var(--v-border-opacity));position:relative}.eli-coordenadas__mapa-container .leaflet-container{width:100%;height:100%;z-index:0}.eli-coordenadas__campos{display:flex;gap:12px;align-items:center}.eli-coordenadas__campo{flex:1}.eli-data-hora{width:100%}.eli-entrada__prefixo,.eli-entrada__sufixo{opacity:.75;font-size:.9em;white-space:nowrap}.eli-entrada__prefixo{margin-right:6px}.eli-entrada__sufixo{margin-left:6px}.eli-tabela__acoes-cabecalho{display:inline-flex;gap:8px;flex-wrap:wrap}.eli-tabela__acoes-cabecalho-botao{display:inline-flex;align-items:center;gap:6px;height:var(--eli-tabela-cabecalho-controle-altura);padding:0 14px;border-radius:var(--eli-tabela-cabecalho-controle-radius);border:none;background:var(--cor-eli-primaria-bg);color:var(--cor-eli-primaria-escura);font-size:.875rem;font-weight:500;line-height:1;cursor:pointer;transition:background-color .2s ease,color .2s ease}.eli-tabela__acoes-cabecalho-botao:hover,.eli-tabela__acoes-cabecalho-botao:focus-visible{background:var(--cor-eli-primaria-clara)}.eli-tabela__acoes-cabecalho-botao:focus-visible{outline:2px solid var(--cor-eli-primaria-clara);outline-offset:2px}.eli-tabela__acoes-cabecalho-icone{display:inline-block}.eli-tabela__acoes-cabecalho-rotulo{line-height:1}.eli-tabela__acoes-toggle{display:inline-flex;align-items:center;justify-content:center;width:32px;height:32px;border-radius:9999px;border:none;background:transparent;color:#0f172ab8;cursor:pointer;transition:background-color .2s ease,color .2s ease}.eli-tabela__acoes-toggle-icone{display:block}.eli-tabela__acoes-toggle:hover,.eli-tabela__acoes-toggle:focus-visible{background-color:#0f172a14;color:#0f172af2}.eli-tabela__acoes-toggle:focus-visible{outline:2px solid var(--cor-eli-primaria-clara);outline-offset:2px}.eli-tabela__acoes-toggle:disabled{cursor:default;color:#94a3b8cc;background:transparent}.eli-tabela__acoes-menu{min-width:180px;padding:6px 0;margin:0;list-style:none;background:var(--cor-eli-superficie);border:1px solid rgba(15,23,42,.08);border-radius:10px;box-shadow:0 12px 30px #0f172a2e;z-index:1000}.eli-tabela__acoes-item{margin:0}.eli-tabela__acoes-item-botao{display:flex;align-items:center;gap:8px;width:100%;padding:8px 12px;border:none;background:transparent;font-size:.9rem;cursor:pointer;transition:background-color .2s ease}.eli-tabela__acoes-item-botao:hover,.eli-tabela__acoes-item-botao:focus-visible{background-color:#0f172a0f}.eli-tabela__acoes-item-botao:focus-visible{outline:2px solid currentColor;outline-offset:-2px}.eli-tabela__acoes-item-icone{flex-shrink:0}.eli-tabela__acoes-item-texto{flex:1;text-align:left}.eli-tabela__th--expander,.eli-tabela__td--expander{width:42px;padding:6px 8px;text-align:center;vertical-align:middle}.eli-tabela__expander-botao{display:inline-flex;align-items:center;justify-content:center;width:28px;height:28px;border-radius:9999px;border:none;background:transparent;color:#0f172ab8;cursor:pointer;transition:background-color .2s ease,color .2s ease}.eli-tabela__expander-botao:hover,.eli-tabela__expander-botao:focus-visible{background-color:#0f172a14;color:#0f172af2}.eli-tabela__expander-botao:focus-visible{outline:2px solid var(--cor-eli-primaria-clara);outline-offset:2px}.eli-tabela__expander-botao--ativo{background-color:#0f172a0f;color:#0f172af2}.eli-tabela__td--detalhes{padding:12px}.eli-tabela__tr--detalhes .eli-tabela__td{border-bottom:1px solid rgba(0,0,0,.08)}.eli-tabela__detalhes{display:grid;gap:10px;padding-left:4px}.eli-tabela__detalhe{display:grid;grid-template-columns:180px 1fr;gap:10px;align-items:start}.eli-tabela__detalhe-rotulo{font-weight:600;color:#0f172ad9}.eli-tabela__detalhe-valor{min-width:0}@media(max-width:720px){.eli-tabela__detalhe{grid-template-columns:1fr}}.eli-tabela__th--selecao,.eli-tabela__td--selecao{width:48px;min-width:48px;max-width:48px;text-align:center;padding:0 8px;vertical-align:middle}.eli-tabela__checkbox{-moz-appearance:none;appearance:none;-webkit-appearance:none;width:15px;height:15px;cursor:pointer;border:2px solid rgba(0,0,0,.54);border-radius:2px;margin:0;vertical-align:middle;position:relative;transition:all .2s ease-in-out;background-color:transparent;outline:none}.eli-tabela__checkbox:hover{border-color:#000000de}.eli-tabela__checkbox:checked,.eli-tabela__checkbox:indeterminate{background-color:var(--cor-eli-primaria);border-color:var(--cor-eli-primaria)}.eli-tabela__checkbox:checked:after{content:"";position:absolute;top:0;left:4px;width:4px;height:9px;border:solid white;border-width:0 2px 2px 0;transform:rotate(45deg)}.eli-tabela__checkbox:indeterminate:after{content:"";position:absolute;top:5px;left:2px;width:8px;height:2px;background-color:#fff;border-radius:1px}.eli-tabela__checkbox:focus-visible{box-shadow:0 0 0 2px var(--cor-eli-primaria-clara)}.eli-tabela{width:100%}.eli-tabela__table-wrapper{width:100%;overflow-x:auto}.eli-tabela__td--estados{padding:0}.eli-tabela__estados-inline{border:none;border-radius:0}.eli-tabela__table{width:100%;border-collapse:separate;border-spacing:0;border:1px solid rgba(0,0,0,.12);border-radius:12px;overflow:visible}.eli-tabela__table thead tr:first-child th:first-child{border-top-left-radius:11px}.eli-tabela__table thead tr:first-child th:last-child{border-top-right-radius:11px}.eli-tabela__table tbody tr:last-child td:first-child{border-bottom-left-radius:11px}.eli-tabela__table tbody tr:last-child td:last-child{border-bottom-right-radius:11px}.eli-tabela__tbody{overflow:visible}.eli-tabela__tbody .eli-tabela__tr .eli-tabela__td{background:var(--cor-eli-superficie, #ffffff)}.eli-tabela__tbody .eli-tabela__tr--zebra .eli-tabela__td{background:var(--cor-eli-primaria-zebra, #F6F9E8)}.eli-tabela__th,.eli-tabela__td{padding:10px 12px;border-bottom:1px solid var(--cor-eli-borda);vertical-align:top}.eli-tabela__th{text-align:left;font-weight:600;font-size:.82rem;letter-spacing:.02em;text-transform:uppercase;color:var(--cor-eli-neutro-escuro, #3E4436);background:var(--cor-eli-primaria-suave, #BFC99C);border-bottom:2px solid var(--cor-eli-primaria-bg, #EEF3D0)}.eli-tabela__th--ordenavel{padding:0}.eli-tabela__th--ordenavel .eli-tabela__th-botao{padding:10px 12px}.eli-tabela__th-botao{display:inline-flex;align-items:center;justify-content:flex-start;gap:8px;width:100%;background:transparent;border:none;font:inherit;color:inherit;cursor:pointer;text-align:left;transition:color .2s ease}.eli-tabela__th-botao:hover,.eli-tabela__th-botao:focus-visible{color:var(--cor-eli-primaria-texto, #2E3F00)}.eli-tabela__th-botao:focus-visible{outline:2px solid var(--cor-eli-primaria, #688C00);outline-offset:2px}.eli-tabela__th-botao--ativo{color:var(--cor-eli-primaria-texto, #2E3F00)}.eli-tabela__th-texto{flex:1;min-width:0;white-space:nowrap}.eli-tabela__th-icone{flex-shrink:0}.eli-tabela__th-icone--oculto{opacity:0}.eli-tabela__tr:last-child .eli-tabela__td{border-bottom:none}.eli-tabela__td--clicavel{cursor:pointer}.eli-tabela__td--clicavel:hover{background:#00000008}.eli-tabela--erro{display:flex;align-items:flex-start;gap:10px;border:1px solid rgba(220,53,69,.35);border-radius:12px;padding:12px}.eli-tabela--carregando{display:flex;align-items:center;gap:10px;border:1px dashed rgba(0,0,0,.25);border-radius:12px;padding:12px;opacity:.8}.eli-tabela__erro-titulo{font-weight:700;margin-bottom:4px}.eli-tabela__erro-mensagem{opacity:.9}.eli-tabela--vazio{display:flex;align-items:center;gap:10px;border:1px dashed rgba(0,0,0,.25);border-radius:12px;padding:12px;opacity:.8}.eli-tabela__estado-icone{flex-shrink:0;color:#0f172a73}.eli-tabela__estado-icone--erro{color:var(--cor-eli-erro)}.eli-tabela__estado-icone--spin{animation:eli-tabela-spin 1s linear infinite}@keyframes eli-tabela-spin{0%{transform:rotate(0)}to{transform:rotate(360deg)}}.eli-tabela__th--acoes{text-align:right;white-space:nowrap}.eli-tabela__td--acoes{white-space:nowrap;overflow:visible}.eli-tabela__acoes-container{display:flex;justify-content:flex-end;position:relative;z-index:1}.eli-tabela__acoes-container--aberto{z-index:200}.eli-tabela__rodape{display:flex;align-items:center;justify-content:flex-end;gap:12px;margin-top:12px;flex-wrap:wrap}.eli-tabela__paginacao{display:flex;align-items:center;justify-content:flex-end;gap:12px;margin-top:0;flex-wrap:wrap}.eli-tabela__acoes-inferiores{display:inline-flex;gap:8px;align-items:center;flex-wrap:wrap}.eli-tabela__cabecalho{width:100%;box-sizing:border-box;display:flex;align-items:center;justify-content:flex-end;gap:12px;margin-bottom:12px;flex-wrap:wrap;--eli-tabela-cabecalho-controle-altura: 34px;--eli-tabela-cabecalho-controle-radius: 8px}.eli-tabela__celula-tags{display:flex;flex-wrap:wrap;gap:6px;align-items:center}.eli-tabela__celula-tag{cursor:default}.eli-tabela__celula-tag-icone{margin-right:6px}.eli-tabela__texto-truncado{display:inline-block;max-width:260px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;vertical-align:top}.eli-tabela__celula-link{all:unset;display:inline;color:#2563eb;cursor:pointer;text-decoration:underline;text-decoration-color:var(--cor-eli-primaria-clara);text-underline-offset:2px}.eli-tabela__celula-link:hover{color:#1d4ed8;text-decoration-color:#1d4ed8bf}.eli-tabela__celula-link:focus-visible{outline:2px solid var(--cor-eli-primaria-clara);outline-offset:2px;border-radius:4px}.eli-tabela__busca{display:flex;align-items:center;justify-content:flex-end;gap:8px;flex-wrap:wrap}.eli-tabela__busca-input-wrapper{display:inline-flex;align-items:stretch;border-radius:var(--eli-tabela-cabecalho-controle-radius, 8px);border:1px solid rgba(15,23,42,.15);overflow:hidden;background:var(--cor-eli-superficie);height:var(--eli-tabela-cabecalho-controle-altura, 34px)}.eli-tabela__busca-input{height:100%;padding:0 12px;border:none;outline:none;font-size:.875rem;color:#0f172ad9}.eli-tabela__busca-input::-webkit-search-cancel-button,.eli-tabela__busca-input::-webkit-search-decoration{-webkit-appearance:none}.eli-tabela__busca-input::placeholder{color:var(--cor-eli-neutro)}.eli-tabela__busca-botao{display:inline-flex;align-items:center;justify-content:center;border:none;background:var(--cor-eli-primaria-bg);color:var(--cor-eli-primaria-escura);height:100%;padding:0 12px;cursor:pointer;transition:background-color .2s ease,color .2s ease}.eli-tabela__busca-botao-icone{display:block}.eli-tabela__busca-botao:hover,.eli-tabela__busca-botao:focus-visible{background:var(--cor-eli-primaria-clara);color:var(--cor-eli-primaria-escura)}.eli-tabela__busca-botao:focus-visible{outline:2px solid var(--cor-eli-primaria-clara);outline-offset:2px}.eli-tabela__busca-grupo{display:inline-flex;align-items:center;gap:8px;flex-wrap:wrap}.eli-tabela__filtro-icone-container{position:relative;display:inline-flex;align-items:center}.eli-tabela__filtro-badge{position:absolute;top:-7px;right:-9px;min-width:16px;height:16px;padding:0 4px;border-radius:9999px;background:var(--cor-eli-erro, #dc3545);color:#fff;font-size:.65rem;font-weight:700;line-height:16px;text-align:center;pointer-events:none;box-shadow:0 1px 3px #0003}.eli-tabela-modal-colunas__item{display:flex;align-items:center;gap:8px;padding:9px 10px;border-radius:8px;border:1px solid var(--cor-eli-borda);background:var(--cor-eli-superficie);cursor:grab;-webkit-user-select:none;user-select:none;transition:box-shadow .15s ease,opacity .15s ease,border-color .15s ease}.eli-tabela-modal-colunas__item+.eli-tabela-modal-colunas__item{margin-top:6px}.eli-tabela-modal-colunas__item:hover{border-color:var(--cor-eli-borda-forte);box-shadow:0 2px 8px #0f172a14}.eli-tabela-modal-colunas__item:active{cursor:grabbing}.eli-tabela-modal-colunas__item--invisivel{opacity:.72}.eli-tabela-modal-colunas__item--arrastando{opacity:.15;border-style:dashed;border-color:var(--cor-eli-primaria-media)}.eli-tabela-modal-colunas__item-handle{color:var(--cor-eli-borda-forte);flex-shrink:0;transition:color .15s ease}.eli-tabela-modal-colunas__item:hover .eli-tabela-modal-colunas__item-handle{color:var(--cor-eli-neutro)}.eli-tabela-modal-colunas__item-texto{flex:1;min-width:0;font-size:.875rem;color:var(--cor-eli-neutro-escuro);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.eli-tabela-modal-colunas__item-badge-icone{flex-shrink:0}.eli-tabela-modal-colunas__item-badge-icone--visivel{color:var(--cor-eli-primaria-acao)}.eli-tabela-modal-colunas__item-badge-icone--invisivel{color:var(--cor-eli-borda-forte)}.eli-tabela-modal-colunas__vazio{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;padding:24px 12px;text-align:center;font-size:.8rem;color:var(--cor-eli-neutro);line-height:1.5}.eli-tabela-modal-colunas__vazio-icone{color:var(--cor-eli-borda-forte)}.eli-tabela-modal-colunas__vazio-icone--ok{color:var(--cor-eli-primaria-acao)}.list-move,.list-enter-active,.list-leave-active{transition:all .25s cubic-bezier(.4,0,.2,1)}.list-enter-from,.list-leave-to{opacity:0;transform:scale(.95)}.list-leave-active{position:absolute;width:calc(100% - 16px)}.eli-tabela-modal-colunas__footer{display:flex;justify-content:flex-end;gap:8px;padding:12px 16px;border-top:1px solid var(--cor-eli-borda);background:var(--cor-eli-fundo)}.eli-tabela-modal-colunas__botao{display:inline-flex;align-items:center;gap:6px;height:34px;padding:0 16px;border-radius:8px;border:1px solid var(--cor-eli-borda);background:var(--cor-eli-superficie);cursor:pointer;font-size:.875rem;font-weight:500;transition:background .2s ease,border-color .2s ease,color .2s ease}.eli-tabela-modal-colunas__botao--sec{color:var(--cor-eli-neutro-escuro)}.eli-tabela-modal-colunas__botao--sec:hover,.eli-tabela-modal-colunas__botao--sec:focus-visible{background:var(--cor-eli-fundo);border-color:var(--cor-eli-borda-forte)}.eli-tabela-modal-colunas__botao--sec:focus-visible{outline:2px solid var(--cor-eli-primaria-clara);outline-offset:2px}.eli-tabela-modal-colunas__botao--prim{border:none;background:var(--cor-eli-primaria);color:#fff}.eli-tabela-modal-colunas__botao--prim:hover,.eli-tabela-modal-colunas__botao--prim:focus-visible{background:var(--cor-eli-primaria-escura)}.eli-tabela-modal-colunas__botao--prim:focus-visible{outline:2px solid var(--cor-eli-primaria-clara);outline-offset:2px}@media(max-width:720px){.eli-tabela-modal-colunas__conteudo{grid-template-columns:1fr}.eli-tabela-modal-colunas__coluna+.eli-tabela-modal-colunas__coluna{border-left:none;border-top:1px solid var(--cor-eli-borda)}}.eli-tabela-modal-colunas__overlay{position:fixed;top:0;right:0;bottom:0;left:0;background:#0f172a73;-webkit-backdrop-filter:blur(2px);backdrop-filter:blur(2px);z-index:4000;display:flex;align-items:center;justify-content:center;padding:16px}.eli-tabela-modal-colunas__modal{width:min(820px,100%);background:var(--cor-eli-superficie);border-radius:16px;border:1px solid var(--cor-eli-borda);box-shadow:0 24px 64px #0f172a38;overflow:hidden;display:flex;flex-direction:column}.eli-tabela-modal-colunas__header{display:flex;align-items:center;justify-content:space-between;padding:14px 16px;border-bottom:1px solid var(--cor-eli-borda);background:var(--cor-eli-primaria-header, #ADCC44)}.eli-tabela-modal-colunas__header-info{display:flex;align-items:center;gap:8px}.eli-tabela-modal-colunas__header-icone{color:var(--cor-eli-primaria-escura);flex-shrink:0}.eli-tabela-modal-colunas__titulo{font-size:.95rem;font-weight:600;color:var(--cor-eli-primaria-texto);margin:0}.eli-tabela-modal-colunas__fechar{display:inline-flex;align-items:center;justify-content:center;width:30px;height:30px;border-radius:8px;border:none;background:transparent;cursor:pointer;color:var(--cor-eli-primaria-escura);transition:background .2s ease}.eli-tabela-modal-colunas__fechar:hover,.eli-tabela-modal-colunas__fechar:focus-visible{background:#0f172a1a}.eli-tabela-modal-colunas__fechar:focus-visible{outline:2px solid var(--cor-eli-primaria);outline-offset:2px}.eli-tabela-modal-colunas__instrucao{display:flex;align-items:center;gap:6px;padding:8px 16px;background:var(--cor-eli-fundo);border-bottom:1px solid var(--cor-eli-borda);font-size:.78rem;color:var(--cor-eli-neutro);line-height:1.4}.eli-tabela-modal-colunas__instrucao-icone{flex-shrink:0;color:var(--cor-eli-borda-forte)}.eli-tabela-modal-colunas__conteudo{display:grid;grid-template-columns:1fr 1fr;gap:0;flex:1}.eli-tabela-modal-colunas__coluna{display:flex;flex-direction:column;padding:12px}.eli-tabela-modal-colunas__coluna+.eli-tabela-modal-colunas__coluna{border-left:1px solid var(--cor-eli-borda)}.eli-tabela-modal-colunas__coluna-cabecalho{display:flex;align-items:center;gap:6px;font-size:.75rem;font-weight:700;letter-spacing:.06em;text-transform:uppercase;padding:6px 10px;border-radius:8px;margin-bottom:8px}.eli-tabela-modal-colunas__coluna-cabecalho--visiveis{color:var(--cor-eli-primaria-escura);background:var(--cor-eli-primaria-bg)}.eli-tabela-modal-colunas__coluna-cabecalho--invisiveis{color:var(--cor-eli-neutro-escuro);background:var(--cor-eli-fundo)}.eli-tabela-modal-colunas__coluna-contador{margin-left:auto;font-size:.72rem;font-weight:700;padding:1px 7px;border-radius:9999px;background:#0f172a14;color:inherit}.eli-tabela-modal-colunas__lista{flex:1;min-height:220px;border:1.5px dashed var(--cor-eli-borda);border-radius:10px;padding:8px;position:relative;overflow:hidden;transition:border-color .2s ease,background .2s ease}.eli-tabela-modal-colunas__lista--visiveis{background:#688c0005}.eli-tabela-modal-colunas__lista--invisiveis{background:var(--cor-eli-fundo)}.eli-tabela-modal-filtro__formula-container{display:flex;flex-direction:row;align-items:center;gap:8px;margin-left:auto}.eli-tabela-modal-filtro__formula-label{font-size:.82rem;font-weight:500;color:#0f172a8c;white-space:nowrap;flex-shrink:0}.eli-tabela-modal-filtro__formula-ajuda{position:relative;display:inline-flex;align-items:center;color:#0f172a59;cursor:help;transition:color .15s}.eli-tabela-modal-filtro__formula-ajuda:hover,.eli-tabela-modal-filtro__formula-ajuda:focus-visible{color:var(--cor-eli-primaria);outline:none}.eli-tabela-modal-filtro__formula-ajuda:hover .eli-tabela-modal-filtro__formula-tooltip,.eli-tabela-modal-filtro__formula-ajuda:focus-visible .eli-tabela-modal-filtro__formula-tooltip{opacity:1;pointer-events:auto;transform:translateY(0)}.eli-tabela-modal-filtro__formula-tooltip{position:absolute;bottom:calc(100% + 10px);right:0;width:280px;background:#0f172a;color:#e2e8f0;border-radius:10px;padding:14px 16px;font-size:.8rem;line-height:1.55;z-index:100;opacity:0;pointer-events:none;transform:translateY(4px);transition:opacity .18s ease,transform .18s ease;box-shadow:0 8px 30px #00000059}.eli-tabela-modal-filtro__formula-tooltip:after{content:"";position:absolute;top:100%;right:6px;border:6px solid transparent;border-top-color:#0f172a}.eli-tabela-modal-filtro__formula-tooltip strong{font-size:.82rem;color:var(--cor-eli-fundo);display:block;margin-bottom:6px}.eli-tabela-modal-filtro__formula-tooltip p{margin:6px 0 4px;color:#94a3b8}.eli-tabela-modal-filtro__formula-tooltip ul{margin:4px 0 8px 14px;padding:0}.eli-tabela-modal-filtro__formula-tooltip li{margin-bottom:3px;color:#cbd5e1}.eli-tabela-modal-filtro__formula-tooltip code{font-family:SFMono-Regular,Consolas,Liberation Mono,Menlo,monospace;color:#7dd3fc;font-size:.78rem;background:#ffffff12;border-radius:4px;padding:1px 4px}.eli-tabela-modal-filtro__formula-input{width:220px;height:36px;border-radius:10px;border:1px solid rgba(15,23,42,.12);padding:0 10px;font-family:SFMono-Regular,Consolas,Liberation Mono,Menlo,monospace;font-size:.85rem;background:var(--cor-eli-fundo);transition:border-color .15s,background .15s;box-sizing:border-box}.eli-tabela-modal-filtro__formula-input:focus{outline:none;border-color:var(--cor-eli-primaria);background:#fff}.eli-tabela-modal-filtro__formula-tooltip-nota{margin-top:8px;opacity:.75}.eli-tabela-modal-filtro__footer{display:flex;align-items:center;gap:8px;padding:14px 20px;border-top:1px solid rgba(15,23,42,.08)}.eli-tabela-modal-filtro__footer-spacer{flex:1}.eli-tabela-modal-filtro__botao{display:inline-flex;align-items:center;gap:5px;height:36px;padding:0 16px;border-radius:10px;border:1px solid rgba(15,23,42,.12);background:#fff;cursor:pointer;font-size:.875rem;font-weight:500;transition:background .15s,color .15s,border-color .15s}.eli-tabela-modal-filtro__botao:disabled{opacity:.45;cursor:not-allowed}.eli-tabela-modal-filtro__botao--sec:hover:not(:disabled),.eli-tabela-modal-filtro__botao--sec:focus-visible{background:#0f172a0d}.eli-tabela-modal-filtro__botao--prim{border:none;background:var(--cor-eli-primaria);color:#fff}.eli-tabela-modal-filtro__botao--prim:hover:not(:disabled),.eli-tabela-modal-filtro__botao--prim:focus-visible{background:var(--cor-eli-primaria-escura)}.eli-tabela-modal-filtro__botao--perigo{color:#dc2626d9;border-color:#dc26262e;background:#fff}.eli-tabela-modal-filtro__botao--perigo:hover:not(:disabled),.eli-tabela-modal-filtro__botao--perigo:focus-visible{background:#ef44440f;border-color:#dc26264d;color:#dc2626}@media(max-width:600px){.eli-tabela-modal-filtro__lista{grid-template-columns:1fr}.eli-tabela-modal-filtro__rodape-filtros{flex-direction:column;align-items:stretch}.eli-tabela-modal-filtro__acoes{flex-wrap:wrap}}.eli-tabela-modal-filtro-enter-active,.eli-tabela-modal-filtro-leave-active{transition:opacity .2s ease}.eli-tabela-modal-filtro-enter-active .eli-tabela-modal-filtro__modal,.eli-tabela-modal-filtro-leave-active .eli-tabela-modal-filtro__modal{transition:transform .2s ease,opacity .2s ease}.eli-tabela-modal-filtro-enter-from,.eli-tabela-modal-filtro-leave-to{opacity:0}.eli-tabela-modal-filtro-enter-from .eli-tabela-modal-filtro__modal,.eli-tabela-modal-filtro-leave-to .eli-tabela-modal-filtro__modal{transform:scale(.96);opacity:0}.eli-tabela-modal-filtro__overlay{position:fixed;top:0;right:0;bottom:0;left:0;background:#0f172a59;z-index:4000;display:flex;align-items:center;justify-content:center;padding:16px}.eli-tabela-modal-filtro__modal{width:min(980px,100%);background:#fff;border-radius:14px;border:1px solid rgba(15,23,42,.1);box-shadow:0 18px 60px #0f172a40;overflow:hidden}.eli-tabela-modal-filtro__header{display:flex;align-items:center;justify-content:space-between;padding:14px 20px;border-bottom:1px solid rgba(15,23,42,.08)}.eli-tabela-modal-filtro__header-titulo{display:flex;align-items:center;gap:10px}.eli-tabela-modal-filtro__titulo{font-size:1rem;font-weight:600;margin:0;color:#0f172ae6}.eli-tabela-modal-filtro__header-icone{color:var(--cor-eli-primaria);flex-shrink:0}.eli-tabela-modal-filtro__contador{font-size:.75rem;font-weight:500;color:var(--cor-eli-primaria);background:var(--cor-eli-primaria-bg);padding:2px 8px;border-radius:10px;letter-spacing:.01em}.eli-tabela-modal-filtro__fechar{display:inline-flex;align-items:center;justify-content:center;width:34px;height:34px;border-radius:10px;border:none;background:transparent;cursor:pointer;color:#0f172a8c;transition:background .15s,color .15s}.eli-tabela-modal-filtro__fechar:hover,.eli-tabela-modal-filtro__fechar:focus-visible{background:#0f172a0f;color:#0f172ae6}.eli-tabela-modal-filtro__conteudo{padding:20px}.eli-tabela-modal-filtro__vazio{opacity:.65;font-size:.85rem;padding:12px 0 4px}.eli-tabela-modal-filtro__estado-vazio{display:flex;flex-direction:column;align-items:center;gap:10px;padding:28px 16px;color:#0f172a59;border:1px dashed rgba(15,23,42,.12);border-radius:10px;background:#0f172a04}.eli-tabela-modal-filtro__estado-vazio span{font-size:.85rem;font-weight:500}.eli-tabela-modal-filtro__lista{display:grid;grid-template-columns:repeat(2,1fr);gap:8px}.eli-tabela-modal-filtro__linha{display:flex;flex-direction:column;gap:4px;padding:10px 12px;border:1px solid rgba(15,23,42,.08);border-radius:10px;background:#0f172a04;transition:border-color .15s}.eli-tabela-modal-filtro__linha:hover{border-color:var(--cor-eli-primaria-clara)}.eli-tabela-modal-filtro__linha-header{display:flex;align-items:center;gap:8px}.eli-tabela-modal-filtro__rotulo-filtro{font-size:.82rem;font-weight:500;color:#0f172aa6;flex:1;min-width:0}.eli-tabela-modal-filtro__id-badge{display:inline-flex;align-items:center;justify-content:center;width:32px;height:24px;border-radius:6px;background:var(--cor-eli-primaria-bg);color:var(--cor-eli-primaria);font-family:SFMono-Regular,Consolas,Liberation Mono,Menlo,monospace;font-size:.72rem;font-weight:600;letter-spacing:.01em;cursor:default;-webkit-user-select:none;user-select:none;flex-shrink:0}.eli-tabela-modal-filtro__entrada{min-width:0}.eli-tabela-modal-filtro__remover{display:inline-flex;align-items:center;justify-content:center;width:26px;height:26px;border-radius:8px;border:none;background:transparent;cursor:pointer;color:#0f172a59;transition:background .15s,color .15s;margin-left:auto;flex-shrink:0}.eli-tabela-modal-filtro__remover:hover,.eli-tabela-modal-filtro__remover:focus-visible{background:#ef444414;color:#dc2626e6;border-color:#ef444433}.eli-tabela-modal-filtro__rodape-filtros{margin-top:14px;padding-top:14px;border-top:1px solid rgba(15,23,42,.07);display:flex;gap:12px;align-items:flex-end}.eli-tabela-modal-filtro__acoes{display:flex;gap:8px;align-items:center;flex-shrink:0}.eli-tabela-modal-filtro__select{height:36px;border-radius:10px;border:1px solid rgba(15,23,42,.12);padding:0 10px;background:#fff;font-size:.875rem;color:#0f172ad9;transition:border-color .15s}.eli-tabela-modal-filtro__select:focus{outline:none;border-color:var(--cor-eli-primaria)}.eli-tabela__paginacao{display:flex;align-items:center;justify-content:flex-end;gap:12px;margin-top:12px;flex-wrap:wrap}.eli-tabela__pagina-botao{display:inline-flex;align-items:center;justify-content:center;gap:6px;padding:6px 14px;border-radius:9999px;border:1px solid rgba(15,23,42,.12);background:var(--cor-eli-superficie);font-size:.875rem;font-weight:500;color:#0f172ad1;cursor:pointer;transition:background-color .2s ease,border-color .2s ease,color .2s ease}.eli-tabela__pagina-botao:hover,.eli-tabela__pagina-botao:focus-visible{background-color:var(--cor-eli-primaria-bg);border-color:var(--cor-eli-primaria-clara);color:var(--cor-eli-primaria-escura)}.eli-tabela__pagina-botao:focus-visible{outline:2px solid var(--cor-eli-primaria-clara);outline-offset:2px}.eli-tabela__pagina-botao:disabled{cursor:default;opacity:.5;background:#94a3b814;border-color:#94a3b82e;color:#475569bf}.eli-tabela__pagina-botao--ativo{background:var(--cor-eli-primaria-bg);border-color:var(--cor-eli-primaria);color:var(--cor-eli-primaria-escura)}.eli-tabela__pagina-ellipsis{display:inline-flex;align-items:center;justify-content:center;width:32px;color:var(--cor-eli-neutro);font-size:.9rem}.eli-tabela__acao-inferior{display:inline-flex;align-items:center;gap:6px;height:34px;padding:0 14px;border-radius:8px;border:1px solid var(--cor-eli-primaria);background:var(--cor-eli-superficie);color:var(--cor-eli-primaria);font-size:.875rem;font-weight:500;line-height:1;cursor:pointer;transition:background-color .2s ease,color .2s ease}.eli-tabela__acao-inferior:hover,.eli-tabela__acao-inferior:focus-visible{background-color:var(--cor-eli-primaria-bg)}.eli-tabela__acao-inferior:focus-visible{outline:2px solid var(--cor-eli-primaria);outline-offset:2px}.eli-fb-painel{position:fixed;bottom:68px;right:24px;z-index:99999;width:360px;background:#fff;border-radius:14px;box-shadow:0 12px 40px #00000026,0 2px 8px #00000014;overflow:hidden;animation:eliFbSlideUp .25s ease;font-family:Inter,Segoe UI,system-ui,sans-serif}.eli-fb-painel-header{background:linear-gradient(135deg,#c62828,#e53935);color:#fff;padding:14px 18px;display:flex;align-items:center;justify-content:space-between}.eli-fb-painel-header h3{margin:0;font-size:14px;font-weight:700;letter-spacing:.02em}.eli-fb-painel-fechar{background:#ffffff26;border:none;color:#fff;width:28px;height:28px;border-radius:50%;cursor:pointer;display:flex;align-items:center;justify-content:center;font-size:14px;transition:background .15s}.eli-fb-painel-fechar:hover{background:#ffffff4d}.eli-fb-painel-corpo{padding:16px 18px}.eli-fb-el-info{background:#f5f5f5;border-radius:8px;padding:10px 12px;margin-bottom:14px;font-size:11px;color:#616161;line-height:1.6}.eli-fb-el-info code{background:#e0e0e0;padding:1px 5px;border-radius:3px;font-size:10.5px;font-family:SFMono-Regular,Consolas,monospace;color:#333}.eli-fb-el-info strong{color:#424242}.eli-fb-textarea{width:100%;min-height:80px;max-height:160px;border:1.5px solid #E0E0E0;border-radius:8px;padding:10px 12px;font-size:13px;font-family:Inter,Segoe UI,system-ui,sans-serif;resize:vertical;outline:none;transition:border-color .15s;color:#333;box-sizing:border-box}.eli-fb-textarea:focus{border-color:#c62828;box-shadow:0 0 0 3px #c6282814}.eli-fb-textarea::placeholder{color:#bdbdbd}.eli-fb-painel-acoes{display:flex;gap:8px;margin-top:12px;justify-content:flex-end}.eli-fb-btn-salvar{background:linear-gradient(135deg,#c62828,#e53935);color:#fff;border:none;border-radius:8px;padding:8px 18px;font-size:13px;font-weight:600;cursor:pointer;transition:all .15s}.eli-fb-btn-salvar:hover{transform:translateY(-1px);box-shadow:0 3px 10px #c628284d}.eli-fb-btn-salvar:disabled{opacity:.5;cursor:not-allowed;transform:none;box-shadow:none}.eli-fb-btn-cancelar{background:#f5f5f5;color:#616161;border:1px solid #E0E0E0;border-radius:8px;padding:8px 14px;font-size:13px;font-weight:500;cursor:pointer;transition:background .15s}.eli-fb-btn-cancelar:hover{background:#eee}.eli-feedback-fab{position:fixed;bottom:24px;right:24px;z-index:99999;display:flex;flex-direction:column;align-items:flex-end;gap:8px;font-family:Inter,Segoe UI,system-ui,sans-serif}.eli-fb-botao-principal{width:34px;height:34px;border-radius:50%;border:none;background:linear-gradient(135deg,#c62828,#e53935);color:#fff;font-size:14px;cursor:pointer;box-shadow:0 2px 8px #c6282859,0 1px 3px #0000001f;transition:all .2s ease;display:flex;align-items:center;justify-content:center;position:relative}.eli-fb-botao-principal:hover{transform:scale(1.08);box-shadow:0 6px 20px #c6282873,0 2px 6px #00000026}.eli-fb-botao-principal:active{transform:scale(.95)}.eli-fb-badge{position:absolute;top:-5px;right:-5px;background:#1565c0;color:#fff;font-size:9px;font-weight:700;min-width:16px;height:16px;border-radius:8px;display:flex;align-items:center;justify-content:center;padding:0 3px;line-height:1;box-shadow:0 1px 4px #0003}.eli-fb-acoes{display:flex;flex-direction:column;align-items:flex-end;gap:6px;animation:eliFbSlideUp .2s ease}.eli-fb-botao-ico{width:34px;height:34px;border-radius:50%;border:none;font-size:14px;cursor:pointer;display:flex;align-items:center;justify-content:center;transition:all .15s ease;box-shadow:0 2px 8px #00000026}.eli-fb-botao-ico:hover{transform:scale(1.1);box-shadow:0 3px 12px #00000038}.eli-fb-botao-exportar{background:#1565c0;color:#fff}.eli-fb-botao-feedback{background:linear-gradient(135deg,#c62828,#e53935);color:#fff}.eli-fb-botao-copiar{background:#2e7d32;color:#fff}.eli-fb-botao-limpar{background:#424242;color:#fff}.eli-fb-tooltip-selecao{position:absolute;bottom:14px;right:64px;background:linear-gradient(135deg,#c62828,#b71c1c);color:#fff;padding:8px 14px;border-radius:10px;font-size:12px;font-weight:500;white-space:nowrap;display:flex;flex-direction:column;gap:2px;box-shadow:0 4px 16px #c6282859;animation:eliFbSlideUp .2s ease;pointer-events:none}.eli-fb-tooltip-selecao:after{content:"";position:absolute;right:-6px;top:50%;transform:translateY(-50%);border:6px solid transparent;border-left-color:#b71c1c;border-right:none}.eli-fb-tooltip-esc{font-size:10px;opacity:.7}.eli-fb-tooltip-esc kbd{background:#fff3;border-radius:3px;padding:1px 5px;font-size:10px;font-weight:700;font-family:inherit}@keyframes eliFbSlideUp{0%{opacity:0;transform:translateY(12px)}to{opacity:1;transform:translateY(0)}}@keyframes eliFbSlideDown{0%{opacity:0;transform:translateY(-100%)}to{opacity:1;transform:translateY(0)}}')),document.head.appendChild(e)}}catch(a){console.error("vite-plugin-css-injected-by-js",a)}})(); -(function(J,l){typeof exports=="object"&&typeof module<"u"?l(exports,require("vue"),require("vuetify/components/VBtn"),require("vuetify/components/VBadge"),require("vuetify/components/VCard"),require("vuetify/components"),require("vuetify/components/VSwitch"),require("leaflet"),require("vuetify/components/VIcon"),require("vuetify/components/VTextField"),require("vuetify/components/VTextarea"),require("vuetify/components/VSelect"),require("vuetify/components/VChip"),require("vuetify/components/VGrid")):typeof define=="function"&&define.amd?define(["exports","vue","vuetify/components/VBtn","vuetify/components/VBadge","vuetify/components/VCard","vuetify/components","vuetify/components/VSwitch","leaflet","vuetify/components/VIcon","vuetify/components/VTextField","vuetify/components/VTextarea","vuetify/components/VSelect","vuetify/components/VChip","vuetify/components/VGrid"],l):(J=typeof globalThis<"u"?globalThis:J||self,l(J.eli_vue={},J.Vue,J.VBtn,J.VBadge,J.VCard,J.components,J.VSwitch,J.L,J.VIcon,J.VTextField,J.VTextarea,J.VSelect,J.VChip,J.VGrid))})(this,(function(J,l,Rn,am,ze,et,lm,be,oi,tt,cm,ii,sm,um){"use strict";const dm=l.defineComponent({name:"EliBotao",inheritAttrs:!1,props:{color:{type:String,default:"primary"},variant:{type:String,default:"elevated"},size:{type:String,default:"default"},disabled:{type:Boolean,default:!1},loading:{type:Boolean,default:!1}}}),q=(e,n)=>{const r=e.__vccOpts||e;for(const[i,t]of n)r[i]=t;return r};function mm(e,n,r,i,t,o){return l.openBlock(),l.createBlock(Rn.VBtn,l.mergeProps({color:e.color,variant:e.variant,size:e.size,disabled:e.disabled,loading:e.loading},e.$attrs,{class:"eli-botao text-none pt-1"}),{default:l.withCtx(()=>[l.renderSlot(e.$slots,"default")]),_:3},16,["color","variant","size","disabled","loading"])}const Jn=q(dm,[["render",mm]]),ai={suave:"4px",pill:"10px"},fm=l.defineComponent({name:"EliBadge",inheritAttrs:!1,props:{color:{type:String,default:"primary"},location:{type:String,default:"top right"},offsetX:{type:String,default:"0"},offsetY:{type:String,default:"0"},dot:{type:Boolean,default:!1},visible:{type:Boolean,default:!0},badge:{type:[String,Number],default:void 0},radius:{type:String,default:"suave"}},setup(e){const n=l.computed(()=>e.radius in ai?ai[e.radius]:e.radius),r=l.computed(()=>e.dot||e.badge!==void 0?e.visible:!1),i=l.computed(()=>({"--eli-badge-radius":n.value}));return{showBadge:r,badgeStyle:i}}});function pm(e,n,r,i,t,o){return e.showBadge?(l.openBlock(),l.createBlock(am.VBadge,l.mergeProps({key:0,color:e.color},e.$attrs,{location:e.location,"offset-x":e.offsetX,"offset-y":e.offsetY,dot:e.dot,content:e.badge,style:e.badgeStyle,class:"eli-badge"}),{default:l.withCtx(()=>[l.renderSlot(e.$slots,"default")]),_:3},16,["color","location","offset-x","offset-y","dot","content","style"])):l.renderSlot(e.$slots,"default",{key:1})}const Pt=q(fm,[["render",pm]]),gm=l.defineComponent({name:"EliCartao",components:{EliBadge:Pt},inheritAttrs:!1,props:{titulo:{type:String,default:""},status:{type:String,required:!0},variant:{type:String,default:"outlined"}},emits:{clicar:e=>!0},setup(e,{emit:n}){const r=l.computed(()=>e.status),i=l.computed(()=>{switch(e.status){case"novo":return"primary";case"rascunho":return"secondary";case"vendido":return"success";case"cancelado":return"error"}}),t=l.computed(()=>`eli-cartao--${e.status}`);function o(){n("clicar",e.status)}return{rotuloStatus:r,corStatus:i,classeStatus:t,onClick:o}}}),vm={class:"eli-cartao__titulo-texto"},hm={class:"eli-cartao__status"};function $m(e,n,r,i,t,o){const a=l.resolveComponent("EliBadge");return l.openBlock(),l.createBlock(ze.VCard,l.mergeProps({class:["eli-cartao",e.classeStatus],variant:e.variant},e.$attrs),{default:l.withCtx(()=>[l.createVNode(ze.VCardTitle,{class:"eli-cartao__titulo"},{default:l.withCtx(()=>[l.createElementVNode("div",vm,[l.renderSlot(e.$slots,"titulo",{},()=>[l.createTextVNode(l.toDisplayString(e.titulo),1)])]),l.createElementVNode("div",hm,[l.createVNode(a,{badge:e.rotuloStatus,radius:"pill",color:e.corStatus},{default:l.withCtx(()=>[...n[0]||(n[0]=[l.createElementVNode("span",null,null,-1)])]),_:1},8,["badge","color"])])]),_:3}),l.createVNode(ze.VCardText,{class:"eli-cartao__conteudo"},{default:l.withCtx(()=>[l.renderSlot(e.$slots,"default")]),_:3}),e.$slots.acoes?(l.openBlock(),l.createBlock(ze.VCardActions,{key:0,class:"eli-cartao__acoes"},{default:l.withCtx(()=>[l.renderSlot(e.$slots,"acoes")]),_:3})):l.createCommentVNode("",!0)]),_:3},16,["variant","class"])}const li=q(gm,[["render",$m]]),bm=l.defineComponent({name:"EliEntradaConfirmacao",components:{VSwitch:et.VSwitch},inheritAttrs:!1,props:{value:{type:Boolean,default:!1},opcoes:{type:Object,required:!0}},emits:{"update:value":e=>!0,input:e=>!0,change:e=>!0,focus:()=>!0,blur:()=>!0},setup(e,{attrs:n,emit:r}){const i=l.computed({get:()=>e.value,set:o=>{r("update:value",o),r("input",o),r("change",o)}}),t=l.computed(()=>{var o,a,c;return i.value&&((o=e.opcoes)!=null&&o.rotuloAtivo)?e.opcoes.rotuloAtivo:!i.value&&((a=e.opcoes)!=null&&a.rotuloInativo)?e.opcoes.rotuloInativo:((c=e.opcoes)==null?void 0:c.rotulo)??""});return{attrs:n,emit:r,localValue:i,rotuloExibido:t}}});function _m(e,n,r,i,t,o){var a,c,u,s;return l.openBlock(),l.createBlock(lm.VSwitch,l.mergeProps({modelValue:e.localValue,"onUpdate:modelValue":n[0]||(n[0]=m=>e.localValue=m),label:e.rotuloExibido,color:((a=e.opcoes)==null?void 0:a.cor)??"primary",disabled:!!((c=e.opcoes)!=null&&c.desabilitado)||!!((u=e.opcoes)!=null&&u.apenasLeitura),density:((s=e.opcoes)==null?void 0:s.densidade)??"comfortable","hide-details":""},e.attrs,{onFocus:n[1]||(n[1]=()=>e.emit("focus")),onBlur:n[2]||(n[2]=()=>e.emit("blur"))}),null,16,["modelValue","label","color","disabled","density"])}const ci=q(bm,[["render",_m]]),si="https://paiol.idz.one/geo",ym=7,km=10,Sm=13,ui=new Map;async function di(e){const n=ui.get(e);if(n)return n;try{const r=await fetch(e);if(!r.ok)return null;const i=await r.json();return ui.set(e,i),i}catch{return null}}function wm(){return{color:"#1565C0",weight:1.5,fillColor:"#42A5F5",fillOpacity:.05,dashArray:"4 4"}}function Im(){return{color:"#78909C",weight:.8,fillColor:"#B0BEC5",fillOpacity:.03}}function zm(e){return e>=Sm?"municipios_uhd":e>=km?"municipios_hd":"municipios"}function Em(e,n){!n.estados&&!n.municipios||Nm(e,n)}async function Nm(e,n){const r=await di(`${si}/estados.geojson`);if(!r)return;const i=[],t=be.geoJSON(r,{style:wm,onEachFeature:(o,a)=>{var u;const c=String(((u=o.properties)==null?void 0:u.codarea)??"");c&&i.push({codigo:c,bounds:a.getBounds()})}});n.estados&&t.addTo(e),n.municipios&&Dm(e,i)}function Dm(e,n){const r={municipios:be.layerGroup(),municipios_hd:be.layerGroup(),municipios_uhd:be.layerGroup()},i={municipios:new Set,municipios_hd:new Set,municipios_uhd:new Set};let t=null;const o=()=>{const a=e.getZoom();if(a=-90&&e<=90&&n>=-180&&n<=180}function mi(e){return e.toFixed(6).replace(".",",")}function fi(e){if(typeof e=="number")return Number.isNaN(e)?null:e;const n=e.replace(",","."),r=Number.parseFloat(n);return Number.isNaN(r)?null:r}async function pi(){try{return await Tm()}catch{return await Cm()}}function Tm(){return new Promise((e,n)=>{if(!navigator.geolocation)return n(new Error("Geolocation indisponível"));navigator.geolocation.getCurrentPosition(r=>e({latitude:r.coords.latitude,longitude:r.coords.longitude}),r=>n(r),{enableHighAccuracy:!0,timeout:1e4})})}async function Cm(){const e=await fetch("https://ipapi.co/json/");if(!e.ok)throw new Error(`GeoIP falhou: ${e.status}`);const n=await e.json();return{latitude:n.latitude,longitude:n.longitude}}function Pm({value:e,opcoes:n,emit:r,mapaRef:i}){const t=l.ref(!1);let o=null,a=null;const c=l.computed(()=>{var h;return((h=n())==null?void 0:h.alturaMapa)??Om}),u=l.computed(()=>{var h;return((h=n())==null?void 0:h.zoom)??jm}),s=l.computed(()=>{var h;return!!((h=n())!=null&&h.apenasLeitura)}),m=l.computed(()=>e()!=null),d=l.computed(()=>{const h=e();return h?mi(h.latitude):""}),f=l.computed(()=>{const h=e();return h?mi(h.longitude):""});function p(h,$){if(!Um(h,$))return;const k={formato:"decimal",datum:"EPSG:4326",latitude:Number.parseFloat(h.toFixed(6)),longitude:Number.parseFloat($.toFixed(6))};r("update:value",k),r("input",k),r("change",k)}function v(){r("update:value",null),r("input",null),r("change",null),b()}function b(){a&&o&&(o.removeLayer(a),a=null)}function N(h,$){o&&(a=be.marker([h,$],{draggable:!s.value}).addTo(o),a.on("dragend",()=>{if(!a)return;const k=a.getLatLng();p(k.lat,k.lng)}),o.setView([h,$],o.getZoom()))}function S(h){var k;const $=fi(h);$!==null&&p($,((k=e())==null?void 0:k.longitude)??At.longitude)}function w(h){var k;const $=fi(h);$!==null&&p(((k=e())==null?void 0:k.latitude)??At.latitude,$)}function P(h,$){if(!o)return;if(!a){N(h,$);return}const k=a.getLatLng();k.lat===h&&k.lng===$||(a.setLatLng([h,$]),o.setView([h,$],o.getZoom()))}async function U(){t.value=!0;try{const h=await pi();p(h.latitude,h.longitude)}finally{t.value=!1}}async function T(){var z;if(!i.value)return;const h=e(),$=h!=null;let k,M,I=u.value;if($)k=h.latitude,M=h.longitude,I=Math.max(I,13);else try{const E=await pi();k=E.latitude,M=E.longitude,I=13}catch{k=At.latitude,M=At.longitude}o=be.map(i.value).setView([k,M],I);const C=be.tileLayer("https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png",{attribution:"© OpenStreetMap",maxZoom:19}),ie=be.tileLayer("https://server.arcgisonline.com/ArcGIS/rest/services/World_Imagery/MapServer/tile/{z}/{y}/{x}",{attribution:"© Esri",maxZoom:19});C.addTo(o),be.control.layers({Mapa:C,Satélite:ie}).addTo(o),$&&N(h.latitude,h.longitude),o.on("click",E=>{s.value||p(E.latlng.lat,E.latlng.lng)});const $e=(z=n())==null?void 0:z.camadas;$e&&Em(o,$e)}return l.watch(e,h=>{if(!h){b();return}P(h.latitude,h.longitude)},{deep:!0}),l.onMounted(()=>{if(T(),i.value){const h=new ResizeObserver(()=>o==null?void 0:o.invalidateSize());h.observe(i.value),l.onBeforeUnmount(()=>h.disconnect())}}),l.onBeforeUnmount(()=>{o&&(o.remove(),o=null,a=null)}),{alturaEfetiva:c,geolocalizando:t,possuiValor:m,latDisplay:d,lngDisplay:f,onLatChange:S,onLngChange:w,usarMinhaLocalizacao:U,limpar:v}}const Am=l.defineComponent({name:"EliEntradaCoordenadas",inheritAttrs:!1,props:{value:{type:Object,default:null},opcoes:{type:Object,required:!0}},emits:{"update:value":e=>!0,input:e=>!0,change:e=>!0,focus:()=>!0,blur:()=>!0},setup(e,{attrs:n,emit:r}){const i=l.ref(null),t=Pm({value:()=>e.value,opcoes:()=>e.opcoes,emit:r,mapaRef:i});return{attrs:n,mapaRef:i,...t}}}),Vm={class:"eli-coordenadas"},Zm={key:0,class:"v-label",style:{"margin-bottom":"4px"}},Bm={ref:"mapaRef",style:{width:"100%",height:"100%"}},Mm={class:"eli-coordenadas__campos"};function Fm(e,n,r,i,t,o){var a,c,u,s,m;return l.openBlock(),l.createElementBlock("div",Vm,[(a=e.opcoes)!=null&&a.rotulo?(l.openBlock(),l.createElementBlock("div",Zm,l.toDisplayString(e.opcoes.rotulo),1)):l.createCommentVNode("",!0),l.createElementVNode("div",{class:"eli-coordenadas__mapa-container",style:l.normalizeStyle({height:`${e.alturaEfetiva}px`})},[l.createElementVNode("div",Bm,null,512)],4),l.createElementVNode("div",Mm,[l.createVNode(tt.VTextField,l.mergeProps({"model-value":e.latDisplay,label:"Latitude",type:"text",inputmode:"decimal",readonly:!!((c=e.opcoes)!=null&&c.apenasLeitura),density:"comfortable",variant:"outlined",class:"eli-coordenadas__campo","hide-details":""},e.attrs,{"onUpdate:modelValue":e.onLatChange}),null,16,["model-value","readonly","onUpdate:modelValue"]),l.createVNode(tt.VTextField,l.mergeProps({"model-value":e.lngDisplay,label:"Longitude",type:"text",inputmode:"decimal",readonly:!!((u=e.opcoes)!=null&&u.apenasLeitura),density:"comfortable",variant:"outlined",class:"eli-coordenadas__campo","hide-details":""},e.attrs,{"onUpdate:modelValue":e.onLngChange}),null,16,["model-value","readonly","onUpdate:modelValue"]),l.createVNode(Rn.VBtn,{icon:"",variant:"tonal",color:"primary",size:"small",title:"Usar minha localização",loading:e.geolocalizando,disabled:!!((s=e.opcoes)!=null&&s.apenasLeitura),onClick:e.usarMinhaLocalizacao},{default:l.withCtx(()=>[l.createVNode(oi.VIcon,null,{default:l.withCtx(()=>[...n[0]||(n[0]=[l.createTextVNode("mdi-crosshairs-gps",-1)])]),_:1})]),_:1},8,["loading","disabled","onClick"]),e.possuiValor&&!((m=e.opcoes)!=null&&m.apenasLeitura)?(l.openBlock(),l.createBlock(Rn.VBtn,{key:0,icon:"",variant:"tonal",color:"error",size:"small",title:"Limpar localização",onClick:e.limpar},{default:l.withCtx(()=>[l.createVNode(oi.VIcon,null,{default:l.withCtx(()=>[...n[1]||(n[1]=[l.createTextVNode("mdi-close",-1)])]),_:1})]),_:1},8,["onClick"])):l.createCommentVNode("",!0)])])}const gi=q(Am,[["render",Fm]]);function vi(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Vt={exports:{}},Lm=Vt.exports,hi;function $i(){return hi||(hi=1,(function(e,n){(function(r,i){e.exports=i()})(Lm,(function(){var r=1e3,i=6e4,t=36e5,o="millisecond",a="second",c="minute",u="hour",s="day",m="week",d="month",f="quarter",p="year",v="date",b="Invalid Date",N=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,S=/\[([^\]]+)]|YYYY|YY|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,w={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(z){var E=["th","st","nd","rd"],D=z%100;return"["+z+(E[(D-20)%10]||E[D]||E[0])+"]"}},P=function(z,E,D){var O=String(z);return!O||O.length>=E?z:""+Array(E+1-O.length).join(D)+z},U={s:P,z:function(z){var E=-z.utcOffset(),D=Math.abs(E),O=Math.floor(D/60),j=D%60;return(E<=0?"+":"-")+P(O,2,"0")+":"+P(j,2,"0")},m:function z(E,D){if(E.date()1)return z(F[0])}else{var G=E.name;h[G]=E,j=G}return!O&&j&&(T=j),j||!O&&T},I=function(z,E){if(k(z))return z.clone();var D=typeof E=="object"?E:{};return D.date=z,D.args=arguments,new ie(D)},C=U;C.l=M,C.i=k,C.w=function(z,E){return I(z,{locale:E.$L,utc:E.$u,x:E.$x,$offset:E.$offset})};var ie=(function(){function z(D){this.$L=M(D.locale,null,!0),this.parse(D),this.$x=this.$x||D.x||{},this[$]=!0}var E=z.prototype;return E.parse=function(D){this.$d=(function(O){var j=O.date,Z=O.utc;if(j===null)return new Date(NaN);if(C.u(j))return new Date;if(j instanceof Date)return new Date(j);if(typeof j=="string"&&!/Z$/i.test(j)){var F=j.match(N);if(F){var G=F[2]-1||0,Y=(F[7]||"0").substring(0,3);return Z?new Date(Date.UTC(F[1],G,F[3]||1,F[4]||0,F[5]||0,F[6]||0,Y)):new Date(F[1],G,F[3]||1,F[4]||0,F[5]||0,F[6]||0,Y)}}return new Date(j)})(D),this.init()},E.init=function(){var D=this.$d;this.$y=D.getFullYear(),this.$M=D.getMonth(),this.$D=D.getDate(),this.$W=D.getDay(),this.$H=D.getHours(),this.$m=D.getMinutes(),this.$s=D.getSeconds(),this.$ms=D.getMilliseconds()},E.$utils=function(){return C},E.isValid=function(){return this.$d.toString()!==b},E.isSame=function(D,O){var j=I(D);return this.startOf(O)<=j&&j<=this.endOf(O)},E.isAfter=function(D,O){return I(D)!0,input:e=>!0,change:e=>!0,"update:modelValue":e=>!0,alterar:e=>!0,foco:()=>!0,desfoco:()=>!0,focus:()=>!0,blur:()=>!0},setup(e,{emit:n,attrs:r}){const i=l.computed(()=>e.opcoes?e.opcoes:{rotulo:e.rotulo??"Data e hora",placeholder:e.placeholder??"",modo:e.modo??"dataHora",limpavel:e.limpavel,erro:e.erro,mensagensErro:e.mensagensErro,dica:e.dica,dicaPersistente:e.dicaPersistente,densidade:e.densidade,variante:e.variante,min:e.min,max:e.max}),t=l.computed(()=>i.value.modo??"dataHora"),o=l.computed(()=>!!e.desabilitado),a=l.computed(()=>t.value==="data"?"date":"datetime-local");function c(b){return t.value==="data"?Se(b).format("YYYY-MM-DD"):Se(b).format("YYYY-MM-DDTHH:mm")}function u(b){return t.value==="data"?Se(`${b}T00:00`).format():Se(b).format()}const s=l.computed(()=>e.value!==void 0?e.value??null:e.modelValue),m=l.computed({get:()=>s.value?c(s.value):"",set:b=>{const N=b&&b.length>0?b:null;if(!N){n("update:value",null),n("input",null),n("change",null),n("update:modelValue",null),n("alterar",null);return}const S=u(N);n("update:value",S),n("input",S),n("change",S),n("update:modelValue",S),n("alterar",S)}}),d=l.computed(()=>{const b=i.value.min;if(b)return c(b)}),f=l.computed(()=>{const b=i.value.max;if(b)return c(b)});function p(){n("foco"),n("focus")}function v(){n("desfoco"),n("blur")}return{attrs:r,valor:m,tipoInput:a,minLocal:d,maxLocal:f,opcoesEfetivas:i,desabilitadoEfetivo:o,emitCompatFocus:p,emitCompatBlur:v}}}),qm={class:"eli-data-hora"};function Gm(e,n,r,i,t,o){return l.openBlock(),l.createElementBlock("div",qm,[l.createVNode(tt.VTextField,l.mergeProps({modelValue:e.valor,"onUpdate:modelValue":n[0]||(n[0]=a=>e.valor=a),lang:"pt-BR",type:e.tipoInput,label:e.opcoesEfetivas.rotulo,placeholder:e.opcoesEfetivas.placeholder,disabled:e.desabilitadoEfetivo,clearable:!!e.opcoesEfetivas.limpavel,error:!!e.opcoesEfetivas.erro,"error-messages":e.opcoesEfetivas.mensagensErro,hint:e.opcoesEfetivas.dica,"persistent-hint":!!e.opcoesEfetivas.dicaPersistente,density:e.opcoesEfetivas.densidade??"comfortable",variant:e.opcoesEfetivas.variante??"outlined",min:e.minLocal,max:e.maxLocal,readonly:!!e.opcoesEfetivas.apenasLeitura},e.attrs,{onFocus:e.emitCompatFocus,onBlur:e.emitCompatBlur}),null,16,["modelValue","type","label","placeholder","disabled","clearable","error","error-messages","hint","persistent-hint","density","variant","min","max","readonly","onFocus","onBlur"])])}const qn=q(Jm,[["render",Gm]]);function Wm(e){if(!Number.isFinite(e)||e<=0||e>=1)return 0;const n=e.toString();if(n.includes("e-")){const[,t]=n.split("e-"),o=Number(t);return Number.isFinite(o)?o:0}const r=n.indexOf(".");return r===-1?0:n.slice(r+1).replace(/0+$/,"").length}function Km(e){const n=(e??"").trim().replace(/,/g,".");if(!n)return null;const r=Number(n);return Number.isNaN(r)?null:r}function Gn(e,n){return e==null?"":n===null?String(e).replace(/\./g,","):Number(e).toFixed(Math.max(0,n)).replace(/\./g,",")}function bi(e){return(e??"").replace(/\D+/g,"")}function Xm(e){const n=(e??"").replace(/[^0-9.,]+/g,""),r=n.match(/[.,]/);if(!r)return n;const i=r[0],t=n.indexOf(i),o=n.slice(0,t).replace(/[.,]/g,""),a=n.slice(t+1).replace(/[.,]/g,"");return`${o.length?o:"0"}${i}${a}`}function Ym(e,n){if(n===null)return e;if(n<=0)return e.replace(/[.,]/g,"");const r=e.match(/[.,]/);if(!r)return e;const i=r[0],t=e.indexOf(i),o=e.slice(0,t),a=e.slice(t+1);return`${o}${i}${a.slice(0,n)}`}function Hm(e){const n=e.match(/^(\d+)[.,]$/);if(!n)return null;const r=Number(n[1]);return Number.isNaN(r)?null:r}const Qm=l.defineComponent({name:"EliEntradaNumero",inheritAttrs:!1,props:{value:{type:[Number,null],default:void 0},opcoes:{type:Object,required:!0}},emits:{"update:value":e=>!0,input:e=>!0,change:e=>!0,focus:()=>!0,blur:()=>!0},setup(e,{attrs:n,emit:r}){const i=l.computed(()=>{var m;const s=(m=e.opcoes)==null?void 0:m.precisao;return s==null?null:Wm(s)}),t=l.computed(()=>i.value===0),o=l.computed(()=>{const s=i.value;return s!==null&&s>0}),a=l.ref(""),c=l.ref(void 0);l.watch(()=>e.value,s=>{s!==c.value&&(a.value=Gn(s,i.value),c.value=s)},{immediate:!0});function u(s){if(o.value){const p=i.value??0,v=bi(s),b=v?Number(v):0,N=10**p,S=v?b/N:null,w=S===null?null:S;c.value=w,r("update:value",w),r("input",w),r("change",w),a.value=Gn(w,p);return}const m=t.value?bi(s):Xm(s),d=t.value?m:Ym(m,i.value);let f=null;if(d){const v=(t.value?null:Hm(d))??Km(d);f=v===null?null:v}c.value=f,r("update:value",f),r("input",f),r("change",f),i.value===null&&d?a.value=d.replace(/\./g,","):a.value=Gn(f,i.value)}return{attrs:n,emit:r,displayValue:a,isInteiro:t,onUpdateModelValue:u}}}),ef={class:"eli-entrada__prefixo"},tf={class:"eli-entrada__sufixo"};function nf(e,n,r,i,t,o){var a,c,u,s,m;return l.openBlock(),l.createBlock(tt.VTextField,l.mergeProps({"model-value":e.displayValue,label:(a=e.opcoes)==null?void 0:a.rotulo,placeholder:(c=e.opcoes)==null?void 0:c.placeholder,type:e.isInteiro?"number":"text",inputmode:e.isInteiro?"numeric":"decimal",pattern:e.isInteiro?"[0-9]*":"[0-9.,]*",readonly:!!((u=e.opcoes)!=null&&u.apenasLeitura)},e.attrs,{"onUpdate:modelValue":e.onUpdateModelValue,onFocus:n[0]||(n[0]=()=>e.emit("focus")),onBlur:n[1]||(n[1]=()=>e.emit("blur"))}),l.createSlots({_:2},[(s=e.opcoes)!=null&&s.prefixo?{name:"prepend-inner",fn:l.withCtx(()=>[l.createElementVNode("span",ef,l.toDisplayString(e.opcoes.prefixo),1)]),key:"0"}:void 0,(m=e.opcoes)!=null&&m.sufixo?{name:"append-inner",fn:l.withCtx(()=>[l.createElementVNode("span",tf,l.toDisplayString(e.opcoes.sufixo),1)]),key:"1"}:void 0]),1040,["model-value","label","placeholder","type","inputmode","pattern","readonly","onUpdate:modelValue"])}const Wn=q(Qm,[["render",nf]]),rf=l.defineComponent({name:"EliEntradaParagrafo",components:{VTextarea:et.VTextarea},inheritAttrs:!1,props:{value:{type:[String,null],default:void 0},opcoes:{type:Object,required:!0}},emits:{"update:value":e=>!0,input:e=>!0,change:e=>!0,focus:()=>!0,blur:()=>!0},setup(e,{attrs:n,emit:r}){const i=l.computed({get:()=>e.value,set:t=>{r("update:value",t),r("input",t),r("change",t)}});return{attrs:n,emit:r,localValue:i}}});function of(e,n,r,i,t,o){var a,c,u,s,m,d,f,p,v,b,N,S,w;return l.openBlock(),l.createBlock(cm.VTextarea,l.mergeProps({modelValue:e.localValue,"onUpdate:modelValue":n[0]||(n[0]=P=>e.localValue=P),label:(a=e.opcoes)==null?void 0:a.rotulo,placeholder:(c=e.opcoes)==null?void 0:c.placeholder,rows:((u=e.opcoes)==null?void 0:u.linhas)??4,counter:(s=e.opcoes)==null?void 0:s.limiteCaracteres,maxlength:(m=e.opcoes)==null?void 0:m.limiteCaracteres,clearable:!!((d=e.opcoes)!=null&&d.limpavel),error:!!((f=e.opcoes)!=null&&f.erro),"error-messages":(p=e.opcoes)==null?void 0:p.mensagensErro,hint:(v=e.opcoes)==null?void 0:v.dica,"persistent-hint":!!((b=e.opcoes)!=null&&b.dicaPersistente),density:((N=e.opcoes)==null?void 0:N.densidade)??"comfortable",variant:((S=e.opcoes)==null?void 0:S.variante)??"outlined",readonly:!!((w=e.opcoes)!=null&&w.apenasLeitura),"auto-grow":""},e.attrs,{onFocus:n[1]||(n[1]=()=>e.emit("focus")),onBlur:n[2]||(n[2]=()=>e.emit("blur"))}),null,16,["modelValue","label","placeholder","rows","counter","maxlength","clearable","error","error-messages","hint","persistent-hint","density","variant","readonly"])}const Kn=q(rf,[["render",of]]),af=l.defineComponent({name:"EliEntradaSelecao",components:{VSelect:et.VSelect},inheritAttrs:!1,props:{value:{type:[String,null],default:void 0},opcoes:{type:Object,required:!0}},emits:{"update:value":e=>!0,input:e=>!0,change:e=>!0,focus:()=>!0,blur:()=>!0},setup(e,{attrs:n,emit:r}){const i=l.ref([]),t=l.ref(!1),o=l.computed({get:()=>e.value,set:u=>{r("update:value",u),r("input",u),r("change",u)}});async function a(){t.value=!0;try{const u=await e.opcoes.itens(),s=Array.isArray(u)?u:[];i.value=[...s]}finally{t.value=!1}}l.watch(()=>e.opcoes.itens,()=>{a()}),l.onMounted(()=>{a()}),l.watch(i,u=>{console.debug("[EliEntradaSelecao] itens:",u)},{deep:!0});const c=l.computed(()=>{var s;const u=(s=e.opcoes)==null?void 0:s.desativado;if(!(!u||u.length===0))return m=>({disabled:u.includes(m.chave)})});return{attrs:n,emit:r,localValue:o,itens:i,carregando:t,itemProps:c}}});function lf(e,n,r,i,t,o){var a,c,u,s,m,d,f,p,v,b;return l.openBlock(),l.createBlock(ii.VSelect,l.mergeProps({modelValue:e.localValue,"onUpdate:modelValue":n[0]||(n[0]=N=>e.localValue=N),label:(a=e.opcoes)==null?void 0:a.rotulo,placeholder:(c=e.opcoes)==null?void 0:c.placeholder,items:e.itens,"item-title":"rotulo","item-value":"chave","item-props":e.itemProps,loading:e.carregando,disabled:e.carregando,"menu-props":{maxHeight:320,zIndex:99999},clearable:!!((u=e.opcoes)!=null&&u.limpavel),error:!!((s=e.opcoes)!=null&&s.erro),"error-messages":(m=e.opcoes)==null?void 0:m.mensagensErro,hint:(d=e.opcoes)==null?void 0:d.dica,"persistent-hint":!!((f=e.opcoes)!=null&&f.dicaPersistente),density:((p=e.opcoes)==null?void 0:p.densidade)??"comfortable",variant:((v=e.opcoes)==null?void 0:v.variante)??"outlined",readonly:!!((b=e.opcoes)!=null&&b.apenasLeitura)},e.attrs,{onFocus:n[1]||(n[1]=()=>e.emit("focus")),onBlur:n[2]||(n[2]=()=>e.emit("blur"))}),null,16,["modelValue","label","placeholder","items","item-props","loading","disabled","clearable","error","error-messages","hint","persistent-hint","density","variant","readonly"])}const Xn=q(af,[["render",lf]]),cf=l.defineComponent({name:"EliEntradaSelecaoMultipla",components:{VSelect:et.VSelect},inheritAttrs:!1,props:{value:{type:[Array,null],default:()=>[]},opcoes:{type:Object,required:!0}},emits:{"update:value":e=>!0,input:e=>!0,change:e=>!0,focus:()=>!0,blur:()=>!0},setup(e,{attrs:n,emit:r}){const i=l.ref([]),t=l.ref(!1),o=l.computed({get:()=>e.value??[],set:u=>{const s=Array.isArray(u)?u:[];r("update:value",s),r("input",s),r("change",s)}});async function a(){t.value=!0;try{const u=await e.opcoes.itens();i.value=[...Array.isArray(u)?u:[]]}finally{t.value=!1}}l.watch(()=>e.opcoes.itens,()=>{a()}),l.onMounted(()=>{a()});const c=l.computed(()=>{var s;const u=(s=e.opcoes)==null?void 0:s.desativado;if(!(!u||u.length===0))return m=>({disabled:u.includes(m.chave)})});return{attrs:n,emit:r,localValue:o,itens:i,carregando:t,itemProps:c}}});function sf(e,n,r,i,t,o){var a,c,u,s,m,d,f,p,v,b;return l.openBlock(),l.createBlock(ii.VSelect,l.mergeProps({modelValue:e.localValue,"onUpdate:modelValue":n[0]||(n[0]=N=>e.localValue=N),label:(a=e.opcoes)==null?void 0:a.rotulo,placeholder:(c=e.opcoes)==null?void 0:c.placeholder,items:e.itens,"item-title":"rotulo","item-value":"chave","item-props":e.itemProps,loading:e.carregando,disabled:e.carregando,"menu-props":{maxHeight:320,zIndex:99999},clearable:!!((u=e.opcoes)!=null&&u.limpavel),error:!!((s=e.opcoes)!=null&&s.erro),"error-messages":(m=e.opcoes)==null?void 0:m.mensagensErro,hint:(d=e.opcoes)==null?void 0:d.dica,"persistent-hint":!!((f=e.opcoes)!=null&&f.dicaPersistente),density:((p=e.opcoes)==null?void 0:p.densidade)??"comfortable",variant:((v=e.opcoes)==null?void 0:v.variante)??"outlined",multiple:"",chips:"","closable-chips":"",readonly:!!((b=e.opcoes)!=null&&b.apenasLeitura)},e.attrs,{onFocus:n[1]||(n[1]=()=>e.emit("focus")),onBlur:n[2]||(n[2]=()=>e.emit("blur"))}),null,16,["modelValue","label","placeholder","items","item-props","loading","disabled","clearable","error","error-messages","hint","persistent-hint","density","variant","readonly"])}const Yn=q(cf,[["render",sf]]);function uf(e){return e.replace(/\D+/g,"")}function df(e){const n=uf(e);return n?n.replace(/^(\d{5})(\d)/,"$1-$2").slice(0,9):""}function mf(e){return e.replace(/\D+/g,"")}function ff(e){const n=mf(e);return n.length<=11?n.replace(/(\d{3})(\d)/,"$1.$2").replace(/(\d{3})(\d)/,"$1.$2").replace(/(\d{3})(\d{1,2})$/,"$1-$2").slice(0,14):n.replace(/^(\d{2})(\d)/,"$1.$2").replace(/^(\d{2})\.(\d{3})(\d)/,"$1.$2.$3").replace(/\.(\d{3})(\d)/,".$1/$2").replace(/(\d{4})(\d)/,"$1-$2").slice(0,18)}function pf(e){return e.replace(/\D+/g,"")}function gf(e){const n=pf(e);return n?n.length<=10?n.replace(/^(\d{2})(\d)/,"($1) $2").replace(/(\d{4})(\d)/,"$1-$2").slice(0,14):n.replace(/^(\d{2})(\d)/,"($1) $2").replace(/(\d{5})(\d)/,"$1-$2").slice(0,15):""}const vf=l.defineComponent({name:"EliEntradaTexto",inheritAttrs:!1,props:{value:{type:[String,null],default:void 0},opcoes:{type:Object,required:!0}},emits:{"update:value":e=>!0,input:e=>!0,change:e=>!0,focus:()=>!0,blur:()=>!0},setup(e,{attrs:n,emit:r}){const i=l.computed(()=>{var s;return((s=e.opcoes)==null?void 0:s.formato)??"texto"}),t=l.computed({get:()=>e.value,set:s=>{r("update:value",s),r("input",s),r("change",s)}}),o=l.computed(()=>i.value==="email"?"email":i.value==="url"?"url":"text"),a=l.computed(()=>{if(i.value==="telefone")return"tel";if(i.value==="cpfCnpj"||i.value==="cep")return"numeric"});function c(s){switch(i.value){case"telefone":return gf(s);case"cpfCnpj":return ff(s);case"cep":return df(s);default:return s}}function u(s){const m=s.target,d=c(m.value);m.value=d,t.value=d}return{attrs:n,emit:r,localValue:t,inputHtmlType:o,inputMode:a,onInput:u}}});function hf(e,n,r,i,t,o){var a,c,u,s,m;return l.openBlock(),l.createBlock(tt.VTextField,l.mergeProps({modelValue:e.localValue,"onUpdate:modelValue":n[0]||(n[0]=d=>e.localValue=d),type:e.inputHtmlType,inputmode:e.inputMode,label:(a=e.opcoes)==null?void 0:a.rotulo,placeholder:(c=e.opcoes)==null?void 0:c.placeholder,counter:(u=e.opcoes)==null?void 0:u.limiteCaracteres,maxlength:(s=e.opcoes)==null?void 0:s.limiteCaracteres,readonly:!!((m=e.opcoes)!=null&&m.apenasLeitura)},e.attrs,{onFocus:n[1]||(n[1]=()=>e.emit("focus")),onBlur:n[2]||(n[2]=()=>e.emit("blur")),onInput:e.onInput}),null,16,["modelValue","type","inputmode","label","placeholder","counter","maxlength","readonly","onInput"])}const Zt=q(vf,[["render",hf]]);/** +(function(){"use strict";try{if(typeof document<"u"){var e=document.createElement("style");e.appendChild(document.createTextNode('@font-face{font-family:Google Sans;font-style:normal;font-weight:100 900;font-display:swap;src:url(https://paiol.idz.one/estaticos/GoogleSans/GoogleSans-VariableFont_GRAD,opsz,wght.ttf) format("truetype")}@font-face{font-family:Google Sans;font-style:italic;font-weight:100 900;font-display:swap;src:url(https://paiol.idz.one/estaticos/GoogleSans/GoogleSans-Italic-VariableFont_GRAD,opsz,wght.ttf) format("truetype")}:root{--eli-font-family: "Google Sans", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", "Liberation Sans", sans-serif;--v-font-family: var(--eli-font-family)}html,body{font-family:var(--eli-font-family)}:where([class^=eli-],[class*=" eli-"]){font-family:var(--eli-font-family);--v-font-family: var(--eli-font-family)}button,input,select,textarea{font-family:inherit}:root{--cor-eli-primaria-bg: #EEF3D0;--cor-eli-primaria-zebra: #F6F9E8;--cor-eli-primaria-suave: #BFC99C;--cor-eli-primaria-header: #ADCC44;--cor-eli-primaria-clara: #D4E290;--cor-eli-primaria-media: #ADCC44;--cor-eli-primaria-acao: #8AAF00;--cor-eli-primaria: #688C00;--cor-eli-primaria-escura: #4A6500;--cor-eli-primaria-texto: #2E3F00;--cor-eli-alerta-bg: #FAF3DF;--cor-eli-alerta-clara: #F5DC8A;--cor-eli-alerta: #DDB847;--cor-eli-alerta-forte: #8C6A00;--cor-eli-fundo: #F2F3EE;--cor-eli-borda: #D5D8CC;--cor-eli-borda-forte: #B5BAA8;--cor-eli-neutro: #5E6553;--cor-eli-neutro-escuro: #3E4436;--cor-eli-superficie: #FFFFFF;--cor-eli-sucesso: #2E7D32;--cor-eli-sucesso-bg: #E8F5E9;--cor-eli-erro: #C62828;--cor-eli-erro-bg: #FFEBEE;--cor-eli-info: #1565C0;--cor-eli-info-bg: #E3F2FD}.eli-badge .v-badge__badge,.eli-badge .v-badge__content{border-radius:var(--eli-badge-radius)!important}.eli-cartao{border-radius:12px}.eli-cartao__titulo{display:flex;align-items:center;justify-content:space-between;gap:12px}.eli-cartao__titulo-texto{min-width:0}.eli-cartao__conteudo{padding-top:8px}.eli-cartao__acoes{padding-top:0}.eli-cartao--cancelado{opacity:.85}.leaflet-pane,.leaflet-tile,.leaflet-marker-icon,.leaflet-marker-shadow,.leaflet-tile-container,.leaflet-pane>svg,.leaflet-pane>canvas,.leaflet-zoom-box,.leaflet-image-layer,.leaflet-layer{position:absolute;left:0;top:0}.leaflet-container{overflow:hidden}.leaflet-tile,.leaflet-marker-icon,.leaflet-marker-shadow{-webkit-user-select:none;-moz-user-select:none;user-select:none;-webkit-user-drag:none}.leaflet-tile::selection{background:transparent}.leaflet-safari .leaflet-tile{image-rendering:-webkit-optimize-contrast}.leaflet-safari .leaflet-tile-container{width:1600px;height:1600px;-webkit-transform-origin:0 0}.leaflet-marker-icon,.leaflet-marker-shadow{display:block}.leaflet-container .leaflet-overlay-pane svg{max-width:none!important;max-height:none!important}.leaflet-container .leaflet-marker-pane img,.leaflet-container .leaflet-shadow-pane img,.leaflet-container .leaflet-tile-pane img,.leaflet-container img.leaflet-image-layer,.leaflet-container .leaflet-tile{max-width:none!important;max-height:none!important;width:auto;padding:0}.leaflet-container img.leaflet-tile{mix-blend-mode:plus-lighter}.leaflet-container.leaflet-touch-zoom{-ms-touch-action:pan-x pan-y;touch-action:pan-x pan-y}.leaflet-container.leaflet-touch-drag{-ms-touch-action:pinch-zoom;touch-action:none;touch-action:pinch-zoom}.leaflet-container.leaflet-touch-drag.leaflet-touch-zoom{-ms-touch-action:none;touch-action:none}.leaflet-container{-webkit-tap-highlight-color:transparent}.leaflet-container a{-webkit-tap-highlight-color:rgba(51,181,229,.4)}.leaflet-tile{filter:inherit;visibility:hidden}.leaflet-tile-loaded{visibility:inherit}.leaflet-zoom-box{width:0;height:0;-moz-box-sizing:border-box;box-sizing:border-box;z-index:800}.leaflet-overlay-pane svg{-moz-user-select:none}.leaflet-pane{z-index:400}.leaflet-tile-pane{z-index:200}.leaflet-overlay-pane{z-index:400}.leaflet-shadow-pane{z-index:500}.leaflet-marker-pane{z-index:600}.leaflet-tooltip-pane{z-index:650}.leaflet-popup-pane{z-index:700}.leaflet-map-pane canvas{z-index:100}.leaflet-map-pane svg{z-index:200}.leaflet-vml-shape{width:1px;height:1px}.lvml{behavior:url(#default#VML);display:inline-block;position:absolute}.leaflet-control{position:relative;z-index:800;pointer-events:visiblePainted;pointer-events:auto}.leaflet-top,.leaflet-bottom{position:absolute;z-index:1000;pointer-events:none}.leaflet-top{top:0}.leaflet-right{right:0}.leaflet-bottom{bottom:0}.leaflet-left{left:0}.leaflet-control{float:left;clear:both}.leaflet-right .leaflet-control{float:right}.leaflet-top .leaflet-control{margin-top:10px}.leaflet-bottom .leaflet-control{margin-bottom:10px}.leaflet-left .leaflet-control{margin-left:10px}.leaflet-right .leaflet-control{margin-right:10px}.leaflet-fade-anim .leaflet-popup{opacity:0;-webkit-transition:opacity .2s linear;-moz-transition:opacity .2s linear;transition:opacity .2s linear}.leaflet-fade-anim .leaflet-map-pane .leaflet-popup{opacity:1}.leaflet-zoom-animated{-webkit-transform-origin:0 0;-ms-transform-origin:0 0;transform-origin:0 0}svg.leaflet-zoom-animated{will-change:transform}.leaflet-zoom-anim .leaflet-zoom-animated{-webkit-transition:-webkit-transform .25s cubic-bezier(0,0,.25,1);-moz-transition:-moz-transform .25s cubic-bezier(0,0,.25,1);transition:transform .25s cubic-bezier(0,0,.25,1)}.leaflet-zoom-anim .leaflet-tile,.leaflet-pan-anim .leaflet-tile{-webkit-transition:none;-moz-transition:none;transition:none}.leaflet-zoom-anim .leaflet-zoom-hide{visibility:hidden}.leaflet-interactive{cursor:pointer}.leaflet-grab{cursor:-webkit-grab;cursor:-moz-grab;cursor:grab}.leaflet-crosshair,.leaflet-crosshair .leaflet-interactive{cursor:crosshair}.leaflet-popup-pane,.leaflet-control{cursor:auto}.leaflet-dragging .leaflet-grab,.leaflet-dragging .leaflet-grab .leaflet-interactive,.leaflet-dragging .leaflet-marker-draggable{cursor:move;cursor:-webkit-grabbing;cursor:-moz-grabbing;cursor:grabbing}.leaflet-marker-icon,.leaflet-marker-shadow,.leaflet-image-layer,.leaflet-pane>svg path,.leaflet-tile-container{pointer-events:none}.leaflet-marker-icon.leaflet-interactive,.leaflet-image-layer.leaflet-interactive,.leaflet-pane>svg path.leaflet-interactive,svg.leaflet-image-layer.leaflet-interactive path{pointer-events:visiblePainted;pointer-events:auto}.leaflet-container{background:#ddd;outline-offset:1px}.leaflet-container a{color:#0078a8}.leaflet-zoom-box{border:2px dotted #38f;background:#ffffff80}.leaflet-container{font-family:Helvetica Neue,Arial,Helvetica,sans-serif;font-size:12px;font-size:.75rem;line-height:1.5}.leaflet-bar{box-shadow:0 1px 5px #000000a6;border-radius:4px}.leaflet-bar a{background-color:#fff;border-bottom:1px solid #ccc;width:26px;height:26px;line-height:26px;display:block;text-align:center;text-decoration:none;color:#000}.leaflet-bar a,.leaflet-control-layers-toggle{background-position:50% 50%;background-repeat:no-repeat;display:block}.leaflet-bar a:hover,.leaflet-bar a:focus{background-color:#f4f4f4}.leaflet-bar a:first-child{border-top-left-radius:4px;border-top-right-radius:4px}.leaflet-bar a:last-child{border-bottom-left-radius:4px;border-bottom-right-radius:4px;border-bottom:none}.leaflet-bar a.leaflet-disabled{cursor:default;background-color:#f4f4f4;color:#bbb}.leaflet-touch .leaflet-bar a{width:30px;height:30px;line-height:30px}.leaflet-touch .leaflet-bar a:first-child{border-top-left-radius:2px;border-top-right-radius:2px}.leaflet-touch .leaflet-bar a:last-child{border-bottom-left-radius:2px;border-bottom-right-radius:2px}.leaflet-control-zoom-in,.leaflet-control-zoom-out{font:700 18px Lucida Console,Monaco,monospace;text-indent:1px}.leaflet-touch .leaflet-control-zoom-in,.leaflet-touch .leaflet-control-zoom-out{font-size:22px}.leaflet-control-layers{box-shadow:0 1px 5px #0006;background:#fff;border-radius:5px}.leaflet-control-layers-toggle{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABoAAAAaCAQAAAADQ4RFAAACf0lEQVR4AY1UM3gkARTePdvdoTxXKc+qTl3aU5U6b2Kbkz3Gtq3Zw6ziLGNPzrYx7946Tr6/ee/XeCQ4D3ykPtL5tHno4n0d/h3+xfuWHGLX81cn7r0iTNzjr7LrlxCqPtkbTQEHeqOrTy4Yyt3VCi/IOB0v7rVC7q45Q3Gr5K6jt+3Gl5nCoDD4MtO+j96Wu8atmhGqcNGHObuf8OM/x3AMx38+4Z2sPqzCxRFK2aF2e5Jol56XTLyggAMTL56XOMoS1W4pOyjUcGGQdZxU6qRh7B9Zp+PfpOFlqt0zyDZckPi1ttmIp03jX8gyJ8a/PG2yutpS/Vol7peZIbZcKBAEEheEIAgFbDkz5H6Zrkm2hVWGiXKiF4Ycw0RWKdtC16Q7qe3X4iOMxruonzegJzWaXFrU9utOSsLUmrc0YjeWYjCW4PDMADElpJSSQ0vQvA1Tm6/JlKnqFs1EGyZiFCqnRZTEJJJiKRYzVYzJck2Rm6P4iH+cmSY0YzimYa8l0EtTODFWhcMIMVqdsI2uiTvKmTisIDHJ3od5GILVhBCarCfVRmo4uTjkhrhzkiBV7SsaqS+TzrzM1qpGGUFt28pIySQHR6h7F6KSwGWm97ay+Z+ZqMcEjEWebE7wxCSQwpkhJqoZA5ivCdZDjJepuJ9IQjGGUmuXJdBFUygxVqVsxFsLMbDe8ZbDYVCGKxs+W080max1hFCarCfV+C1KATwcnvE9gRRuMP2prdbWGowm1KB1y+zwMMENkM755cJ2yPDtqhTI6ED1M/82yIDtC/4j4BijjeObflpO9I9MwXTCsSX8jWAFeHr05WoLTJ5G8IQVS/7vwR6ohirYM7f6HzYpogfS3R2OAAAAAElFTkSuQmCC);width:36px;height:36px}.leaflet-retina .leaflet-control-layers-toggle{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADQAAAA0CAQAAABvcdNgAAAEsklEQVR4AWL4TydIhpZK1kpWOlg0w3ZXP6D2soBtG42jeI6ZmQTHzAxiTbSJsYLjO9HhP+WOmcuhciVnmHVQcJnp7DFvScowZorad/+V/fVzMdMT2g9Cv9guXGv/7pYOrXh2U+RRR3dSd9JRx6bIFc/ekqHI29JC6pJ5ZEh1yWkhkbcFeSjxgx3L2m1cb1C7bceyxA+CNjT/Ifff+/kDk2u/w/33/IeCMOSaWZ4glosqT3DNnNZQ7Cs58/3Ce5HL78iZH/vKVIaYlqzfdLu8Vi7dnvUbEza5Idt36tquZFldl6N5Z/POLof0XLK61mZCmJSWjVF9tEjUluu74IUXvgttuVIHE7YxSkaYhJZam7yiM9Pv82JYfl9nptxZaxMJE4YSPty+vF0+Y2up9d3wwijfjZbabqm/3bZ9ecKHsiGmRflnn1MW4pjHf9oLufyn2z3y1D6n8g8TZhxyzipLNPnAUpsOiuWimg52psrTZYnOWYNDTMuWBWa0tJb4rgq1UvmutpaYEbZlwU3CLJm/ayYjHW5/h7xWLn9Hh1vepDkyf7dE7MtT5LR4e7yYpHrkhOUpEfssBLq2pPhAqoSWKUkk7EDqkmK6RrCEzqDjhNDWNE+XSMvkJRDWlZTmCW0l0PHQGRZY5t1L83kT0Y3l2SItk5JAWHl2dCOBm+fPu3fo5/3v61RMCO9Jx2EEYYhb0rmNQMX/vm7gqOEJLcXTGw3CAuRNeyaPWwjR8PRqKQ1PDA/dpv+on9Shox52WFnx0KY8onHayrJzm87i5h9xGw/tfkev0jGsQizqezUKjk12hBMKJ4kbCqGPVNXudyyrShovGw5CgxsRICxF6aRmSjlBnHRzg7Gx8fKqEubI2rahQYdR1YgDIRQO7JvQyD52hoIQx0mxa0ODtW2Iozn1le2iIRdzwWewedyZzewidueOGqlsn1MvcnQpuVwLGG3/IR1hIKxCjelIDZ8ldqWz25jWAsnldEnK0Zxro19TGVb2ffIZEsIO89EIEDvKMPrzmBOQcKQ+rroye6NgRRxqR4U8EAkz0CL6uSGOm6KQCdWjvjRiSP1BPalCRS5iQYiEIvxuBMJEWgzSoHADcVMuN7IuqqTeyUPq22qFimFtxDyBBJEwNyt6TM88blFHao/6tWWhuuOM4SAK4EI4QmFHA+SEyWlp4EQoJ13cYGzMu7yszEIBOm2rVmHUNqwAIQabISNMRstmdhNWcFLsSm+0tjJH1MdRxO5Nx0WDMhCtgD6OKgZeljJqJKc9po8juskR9XN0Y1lZ3mWjLR9JCO1jRDMd0fpYC2VnvjBSEFg7wBENc0R9HFlb0xvF1+TBEpF68d+DHR6IOWVv2BECtxo46hOFUBd/APU57WIoEwJhIi2CdpyZX0m93BZicktMj1AS9dClteUFAUNUIEygRZCtik5zSxI9MubTBH1GOiHsiLJ3OCoSZkILa9PxiN0EbvhsAo8tdAf9Seepd36lGWHmtNANTv5Jd0z4QYyeo/UEJqxKRpg5LZx6btLPsOaEmdMyxYdlc8LMaJnikDlhclqmPiQnTEpLUIZEwkRagjYkEibQErwhkTAKCLQEbUgkzJQWc/0PstHHcfEdQ+UAAAAASUVORK5CYII=);background-size:26px 26px}.leaflet-touch .leaflet-control-layers-toggle{width:44px;height:44px}.leaflet-control-layers .leaflet-control-layers-list,.leaflet-control-layers-expanded .leaflet-control-layers-toggle{display:none}.leaflet-control-layers-expanded .leaflet-control-layers-list{display:block;position:relative}.leaflet-control-layers-expanded{padding:6px 10px 6px 6px;color:#333;background:#fff}.leaflet-control-layers-scrollbar{overflow-y:scroll;overflow-x:hidden;padding-right:5px}.leaflet-control-layers-selector{margin-top:2px;position:relative;top:1px}.leaflet-control-layers label{display:block;font-size:13px;font-size:1.08333em}.leaflet-control-layers-separator{height:0;border-top:1px solid #ddd;margin:5px -10px 5px -6px}.leaflet-default-icon-path{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABkAAAApCAYAAADAk4LOAAAFgUlEQVR4Aa1XA5BjWRTN2oW17d3YaZtr2962HUzbDNpjszW24mRt28p47v7zq/bXZtrp/lWnXr337j3nPCe85NcypgSFdugCpW5YoDAMRaIMqRi6aKq5E3YqDQO3qAwjVWrD8Ncq/RBpykd8oZUb/kaJutow8r1aP9II0WmLKLIsJyv1w/kqw9Ch2MYdB++12Onxee/QMwvf4/Dk/Lfp/i4nxTXtOoQ4pW5Aj7wpici1A9erdAN2OH64x8OSP9j3Ft3b7aWkTg/Fm91siTra0f9on5sQr9INejH6CUUUpavjFNq1B+Oadhxmnfa8RfEmN8VNAsQhPqF55xHkMzz3jSmChWU6f7/XZKNH+9+hBLOHYozuKQPxyMPUKkrX/K0uWnfFaJGS1QPRtZsOPtr3NsW0uyh6NNCOkU3Yz+bXbT3I8G3xE5EXLXtCXbbqwCO9zPQYPRTZ5vIDXD7U+w7rFDEoUUf7ibHIR4y6bLVPXrz8JVZEql13trxwue/uDivd3fkWRbS6/IA2bID4uk0UpF1N8qLlbBlXs4Ee7HLTfV1j54APvODnSfOWBqtKVvjgLKzF5YdEk5ewRkGlK0i33Eofffc7HT56jD7/6U+qH3Cx7SBLNntH5YIPvODnyfIXZYRVDPqgHtLs5ABHD3YzLuespb7t79FY34DjMwrVrcTuwlT55YMPvOBnRrJ4VXTdNnYug5ucHLBjEpt30701A3Ts+HEa73u6dT3FNWwflY86eMHPk+Yu+i6pzUpRrW7SNDg5JHR4KapmM5Wv2E8Tfcb1HoqqHMHU+uWDD7zg54mz5/2BSnizi9T1Dg4QQXLToGNCkb6tb1NU+QAlGr1++eADrzhn/u8Q2YZhQVlZ5+CAOtqfbhmaUCS1ezNFVm2imDbPmPng5wmz+gwh+oHDce0eUtQ6OGDIyR0uUhUsoO3vfDmmgOezH0mZN59x7MBi++WDL1g/eEiU3avlidO671bkLfwbw5XV2P8Pzo0ydy4t2/0eu33xYSOMOD8hTf4CrBtGMSoXfPLchX+J0ruSePw3LZeK0juPJbYzrhkH0io7B3k164hiGvawhOKMLkrQLyVpZg8rHFW7E2uHOL888IBPlNZ1FPzstSJM694fWr6RwpvcJK60+0HCILTBzZLFNdtAzJaohze60T8qBzyh5ZuOg5e7uwQppofEmf2++DYvmySqGBuKaicF1blQjhuHdvCIMvp8whTTfZzI7RldpwtSzL+F1+wkdZ2TBOW2gIF88PBTzD/gpeREAMEbxnJcaJHNHrpzji0gQCS6hdkEeYt9DF/2qPcEC8RM28Hwmr3sdNyht00byAut2k3gufWNtgtOEOFGUwcXWNDbdNbpgBGxEvKkOQsxivJx33iow0Vw5S6SVTrpVq11ysA2Rp7gTfPfktc6zhtXBBC+adRLshf6sG2RfHPZ5EAc4sVZ83yCN00Fk/4kggu40ZTvIEm5g24qtU4KjBrx/BTTH8ifVASAG7gKrnWxJDcU7x8X6Ecczhm3o6YicvsLXWfh3Ch1W0k8x0nXF+0fFxgt4phz8QvypiwCCFKMqXCnqXExjq10beH+UUA7+nG6mdG/Pu0f3LgFcGrl2s0kNNjpmoJ9o4B29CMO8dMT4Q5ox8uitF6fqsrJOr8qnwNbRzv6hSnG5wP+64C7h9lp30hKNtKdWjtdkbuPA19nJ7Tz3zR/ibgARbhb4AlhavcBebmTHcFl2fvYEnW0ox9xMxKBS8btJ+KiEbq9zA4RthQXDhPa0T9TEe69gWupwc6uBUphquXgf+/FrIjweHQS4/pduMe5ERUMHUd9xv8ZR98CxkS4F2n3EUrUZ10EYNw7BWm9x1GiPssi3GgiGRDKWRYZfXlON+dfNbM+GgIwYdwAAAAASUVORK5CYII=)}.leaflet-container .leaflet-control-attribution{background:#fff;background:#fffc;margin:0}.leaflet-control-attribution,.leaflet-control-scale-line{padding:0 5px;color:#333;line-height:1.4}.leaflet-control-attribution a{text-decoration:none}.leaflet-control-attribution a:hover,.leaflet-control-attribution a:focus{text-decoration:underline}.leaflet-attribution-flag{display:inline!important;vertical-align:baseline!important;width:1em;height:.6669em}.leaflet-left .leaflet-control-scale{margin-left:5px}.leaflet-bottom .leaflet-control-scale{margin-bottom:5px}.leaflet-control-scale-line{border:2px solid #777;border-top:none;line-height:1.1;padding:2px 5px 1px;white-space:nowrap;-moz-box-sizing:border-box;box-sizing:border-box;background:#fffc;text-shadow:1px 1px #fff}.leaflet-control-scale-line:not(:first-child){border-top:2px solid #777;border-bottom:none;margin-top:-2px}.leaflet-control-scale-line:not(:first-child):not(:last-child){border-bottom:2px solid #777}.leaflet-touch .leaflet-control-attribution,.leaflet-touch .leaflet-control-layers,.leaflet-touch .leaflet-bar{box-shadow:none}.leaflet-touch .leaflet-control-layers,.leaflet-touch .leaflet-bar{border:2px solid rgba(0,0,0,.2);background-clip:padding-box}.leaflet-popup{position:absolute;text-align:center;margin-bottom:20px}.leaflet-popup-content-wrapper{padding:1px;text-align:left;border-radius:12px}.leaflet-popup-content{margin:13px 24px 13px 20px;line-height:1.3;font-size:13px;font-size:1.08333em;min-height:1px}.leaflet-popup-content p{margin:1.3em 0}.leaflet-popup-tip-container{width:40px;height:20px;position:absolute;left:50%;margin-top:-1px;margin-left:-20px;overflow:hidden;pointer-events:none}.leaflet-popup-tip{width:17px;height:17px;padding:1px;margin:-10px auto 0;pointer-events:auto;-webkit-transform:rotate(45deg);-moz-transform:rotate(45deg);-ms-transform:rotate(45deg);transform:rotate(45deg)}.leaflet-popup-content-wrapper,.leaflet-popup-tip{background:#fff;color:#333;box-shadow:0 3px 14px #0006}.leaflet-container a.leaflet-popup-close-button{position:absolute;top:0;right:0;border:none;text-align:center;width:24px;height:24px;font:16px/24px Tahoma,Verdana,sans-serif;color:#757575;text-decoration:none;background:transparent}.leaflet-container a.leaflet-popup-close-button:hover,.leaflet-container a.leaflet-popup-close-button:focus{color:#585858}.leaflet-popup-scrolled{overflow:auto}.leaflet-oldie .leaflet-popup-content-wrapper{-ms-zoom:1}.leaflet-oldie .leaflet-popup-tip{width:24px;margin:0 auto;-ms-filter:"progid:DXImageTransform.Microsoft.Matrix(M11=0.70710678, M12=0.70710678, M21=-0.70710678, M22=0.70710678)";filter:progid:DXImageTransform.Microsoft.Matrix(M11=.70710678,M12=.70710678,M21=-.70710678,M22=.70710678)}.leaflet-oldie .leaflet-control-zoom,.leaflet-oldie .leaflet-control-layers,.leaflet-oldie .leaflet-popup-content-wrapper,.leaflet-oldie .leaflet-popup-tip{border:1px solid #999}.leaflet-div-icon{background:#fff;border:1px solid #666}.leaflet-tooltip{position:absolute;padding:6px;background-color:#fff;border:1px solid #fff;border-radius:3px;color:#222;white-space:nowrap;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;pointer-events:none;box-shadow:0 1px 3px #0006}.leaflet-tooltip.leaflet-interactive{cursor:pointer;pointer-events:auto}.leaflet-tooltip-top:before,.leaflet-tooltip-bottom:before,.leaflet-tooltip-left:before,.leaflet-tooltip-right:before{position:absolute;pointer-events:none;border:6px solid transparent;background:transparent;content:""}.leaflet-tooltip-bottom{margin-top:6px}.leaflet-tooltip-top{margin-top:-6px}.leaflet-tooltip-bottom:before,.leaflet-tooltip-top:before{left:50%;margin-left:-6px}.leaflet-tooltip-top:before{bottom:0;margin-bottom:-12px;border-top-color:#fff}.leaflet-tooltip-bottom:before{top:0;margin-top:-12px;margin-left:-6px;border-bottom-color:#fff}.leaflet-tooltip-left{margin-left:-6px}.leaflet-tooltip-right{margin-left:6px}.leaflet-tooltip-left:before,.leaflet-tooltip-right:before{top:50%;margin-top:-6px}.leaflet-tooltip-left:before{right:0;margin-right:-12px;border-left-color:#fff}.leaflet-tooltip-right:before{left:0;margin-left:-12px;border-right-color:#fff}@media print{.leaflet-control{-webkit-print-color-adjust:exact;print-color-adjust:exact}}.eli-coordenadas{width:100%;display:flex;flex-direction:column;gap:8px}.eli-coordenadas__mapa-container{width:100%;border-radius:8px;overflow:hidden;border:1px solid rgba(var(--v-border-color),var(--v-border-opacity));position:relative}.eli-coordenadas__mapa-container .leaflet-container{width:100%;height:100%;z-index:0}.eli-coordenadas__campos{display:flex;gap:12px;align-items:center}.eli-coordenadas__campo{flex:1}.eli-dh{position:relative;width:100%;font-family:var(--eli-font-family, "Google Sans", system-ui, sans-serif)}.eli-dh__campo{display:flex;align-items:center;gap:8px;padding:0 14px;height:56px;border:1.5px solid var(--cor-eli-borda, #D5D8CC);border-radius:8px;background:var(--cor-eli-superficie, #fff);cursor:pointer;transition:border-color .18s,box-shadow .18s;-webkit-user-select:none;user-select:none;position:relative}.eli-dh__campo:hover:not(.eli-dh__campo--desabilitado){border-color:var(--cor-eli-primaria-media, #ADCC44)}.eli-dh__campo--focado{border-color:var(--cor-eli-primaria, #688C00);box-shadow:0 0 0 3px color-mix(in srgb,var(--cor-eli-primaria, #688C00) 14%,transparent);outline:none}.eli-dh__campo--erro{border-color:var(--cor-eli-erro, #C62828);box-shadow:0 0 0 3px color-mix(in srgb,var(--cor-eli-erro, #C62828) 12%,transparent)}.eli-dh__campo--desabilitado{background:var(--cor-eli-fundo, #F2F3EE);cursor:not-allowed;opacity:.6}.eli-dh__icone{flex-shrink:0;width:20px;height:20px;color:var(--cor-eli-neutro, #5E6553);transition:color .18s}.eli-dh__campo--focado .eli-dh__icone{color:var(--cor-eli-primaria, #688C00)}.eli-dh__conteudo{flex:1;display:flex;flex-direction:column;min-width:0;gap:1px}.eli-dh__rotulo{font-size:11px;font-weight:600;color:var(--cor-eli-neutro, #5E6553);line-height:1.2;letter-spacing:.02em;text-transform:uppercase;transition:color .18s}.eli-dh__campo--focado .eli-dh__rotulo{color:var(--cor-eli-primaria, #688C00)}.eli-dh__campo--erro .eli-dh__rotulo{color:var(--cor-eli-erro, #C62828)}.eli-dh__valor{font-size:15px;font-weight:500;color:var(--cor-eli-neutro-escuro, #3E4436);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.eli-dh__valor--vazio{color:var(--cor-eli-borda-forte, #B5BAA8);font-weight:400}.eli-dh__limpar{flex-shrink:0;display:flex;align-items:center;justify-content:center;width:24px;height:24px;border:none;background:none;border-radius:50%;cursor:pointer;color:var(--cor-eli-borda-forte, #B5BAA8);transition:color .15s,background .15s;padding:0}.eli-dh__limpar:hover{color:var(--cor-eli-erro, #C62828);background:var(--cor-eli-erro-bg, #FFEBEE)}.eli-dh__mensagem{margin-top:4px;padding:0 14px;font-size:12px;line-height:1.4}.eli-dh__mensagem--erro{color:var(--cor-eli-erro, #C62828)}.eli-dh__mensagem--dica{color:var(--cor-eli-neutro, #5E6553)}.eli-dh__popover{position:absolute;top:calc(100% + 6px);left:0;z-index:2000;background:var(--cor-eli-superficie, #fff);border:1.5px solid var(--cor-eli-borda, #D5D8CC);border-radius:14px;box-shadow:0 4px 6px -1px #0000000f,0 10px 30px -4px #0000001f;overflow:hidden;min-width:300px;transform-origin:top left}.eli-dh-pop-enter-active,.eli-dh-pop-leave-active{transition:opacity .16s ease,transform .16s ease}.eli-dh-pop-enter-from,.eli-dh-pop-leave-to{opacity:0;transform:translateY(-6px) scale(.97)}.eli-dh__cal-header{display:flex;align-items:center;justify-content:space-between;padding:14px 16px 10px;background:linear-gradient(135deg,var(--cor-eli-primaria, #688C00) 0%,var(--cor-eli-primaria-acao, #8AAF00) 100%)}.eli-dh__cal-nav{display:flex;align-items:center;justify-content:center;width:32px;height:32px;border:none;background:#ffffff2e;border-radius:8px;cursor:pointer;color:#fff;transition:background .15s;padding:0}.eli-dh__cal-nav:hover{background:#ffffff4d}.eli-dh__cal-nav svg{width:18px;height:18px}.eli-dh__cal-titulo{display:flex;flex-direction:column;align-items:center;gap:2px}.eli-dh__seletores{display:flex;align-items:center;gap:6px}.eli-dh__select{border:none;background:#ffffff24;color:#fff;font-family:inherit;font-size:14px;font-weight:700;padding:4px 8px;border-radius:6px;cursor:pointer;outline:none;transition:background .15s;-moz-appearance:none;appearance:none;-webkit-appearance:none}.eli-dh__select:hover{background:#ffffff42}.eli-dh__select option{background:var(--cor-eli-superficie, #fff);color:var(--cor-eli-neutro-escuro, #3E4436);font-weight:600}.eli-dh__cal-body{padding:12px 14px 14px}.eli-dh__cal-semana{display:grid;grid-template-columns:repeat(7,1fr);gap:2px;margin-bottom:6px}.eli-dh__cal-dia-sem{display:flex;align-items:center;justify-content:center;font-size:11px;font-weight:700;color:var(--cor-eli-neutro, #5E6553);text-transform:uppercase;letter-spacing:.04em;height:28px}.eli-dh__cal-grade{display:grid;grid-template-columns:repeat(7,1fr);gap:2px}.eli-dh__cal-dia{display:flex;align-items:center;justify-content:center;height:36px;border:none;border-radius:8px;background:none;font-size:13px;font-weight:500;color:var(--cor-eli-neutro-escuro, #3E4436);cursor:pointer;transition:background .12s,color .12s;padding:0;font-family:inherit}.eli-dh__cal-dia:hover:not(:disabled):not(.eli-dh__cal-dia--fora):not(.eli-dh__cal-dia--selecionado){background:var(--cor-eli-primaria-bg, #EEF3D0);color:var(--cor-eli-primaria, #688C00)}.eli-dh__cal-dia--fora{color:var(--cor-eli-borda-forte, #B5BAA8);cursor:default}.eli-dh__cal-dia--hoje{color:var(--cor-eli-primaria, #688C00);font-weight:700;position:relative}.eli-dh__cal-dia--hoje:after{content:"";position:absolute;bottom:4px;left:50%;transform:translate(-50%);width:4px;height:4px;border-radius:50%;background:var(--cor-eli-primaria, #688C00)}.eli-dh__cal-dia--selecionado{background:var(--cor-eli-primaria, #688C00);color:#fff;font-weight:700}.eli-dh__cal-dia--selecionado.eli-dh__cal-dia--hoje:after{background:#fff}.eli-dh__cal-dia--desabilitado{opacity:.32;cursor:not-allowed}.eli-dh__hora-secao{border-top:1px solid var(--cor-eli-borda, #D5D8CC);padding:12px 16px 14px;display:flex;align-items:center;gap:10px}.eli-dh__hora-icone{width:16px;height:16px;color:var(--cor-eli-neutro, #5E6553);flex-shrink:0}.eli-dh__hora-campos{display:flex;align-items:center;gap:6px;flex:1}.eli-dh__hora-input{width:52px;padding:6px 8px;border:1.5px solid var(--cor-eli-borda, #D5D8CC);border-radius:6px;background:var(--cor-eli-superficie, #fff);text-align:center;font-size:16px;font-weight:600;font-family:inherit;color:var(--cor-eli-neutro-escuro, #3E4436);transition:border-color .15s;outline:none;-moz-appearance:textfield}.eli-dh__hora-input::-webkit-inner-spin-button,.eli-dh__hora-input::-webkit-outer-spin-button{-webkit-appearance:none}.eli-dh__hora-input:focus{border-color:var(--cor-eli-primaria, #688C00);box-shadow:0 0 0 2px color-mix(in srgb,var(--cor-eli-primaria, #688C00) 14%,transparent)}.eli-dh__hora-sep{font-size:20px;font-weight:700;color:var(--cor-eli-neutro, #5E6553);line-height:1;margin-bottom:2px}.eli-dh__rodape{padding:10px 14px 12px;display:flex;justify-content:flex-end;gap:8px;border-top:1px solid var(--cor-eli-borda, #D5D8CC)}.eli-dh__btn{display:inline-flex;align-items:center;gap:5px;padding:7px 16px;border:none;border-radius:8px;font-size:13px;font-weight:600;font-family:inherit;cursor:pointer;transition:background .14s,opacity .14s}.eli-dh__btn--cancelar{background:var(--cor-eli-fundo, #F2F3EE);color:var(--cor-eli-neutro, #5E6553)}.eli-dh__btn--cancelar:hover{background:var(--cor-eli-borda, #D5D8CC)}.eli-dh__btn--confirmar{background:var(--cor-eli-primaria, #688C00);color:#fff}.eli-dh__btn--confirmar:hover{background:var(--cor-eli-primaria-escura, #4A6500)}.eli-entrada__prefixo,.eli-entrada__sufixo{opacity:.75;font-size:.9em;white-space:nowrap}.eli-entrada__prefixo{margin-right:6px}.eli-entrada__sufixo{margin-left:6px}.eli-tabela__acoes-cabecalho{display:inline-flex;gap:8px;flex-wrap:wrap}.eli-tabela__acoes-cabecalho-botao{display:inline-flex;align-items:center;gap:6px;height:var(--eli-tabela-cabecalho-controle-altura);padding:0 14px;border-radius:var(--eli-tabela-cabecalho-controle-radius);border:none;background:var(--cor-eli-primaria-bg);color:var(--cor-eli-primaria-escura);font-size:.875rem;font-weight:500;line-height:1;cursor:pointer;transition:background-color .2s ease,color .2s ease}.eli-tabela__acoes-cabecalho-botao:hover,.eli-tabela__acoes-cabecalho-botao:focus-visible{background:var(--cor-eli-primaria-clara)}.eli-tabela__acoes-cabecalho-botao:focus-visible{outline:2px solid var(--cor-eli-primaria-clara);outline-offset:2px}.eli-tabela__acoes-cabecalho-icone{display:inline-block}.eli-tabela__acoes-cabecalho-rotulo{line-height:1}.eli-tabela__acoes-toggle{display:inline-flex;align-items:center;justify-content:center;width:32px;height:32px;border-radius:9999px;border:none;background:transparent;color:#0f172ab8;cursor:pointer;transition:background-color .2s ease,color .2s ease}.eli-tabela__acoes-toggle-icone{display:block}.eli-tabela__acoes-toggle:hover,.eli-tabela__acoes-toggle:focus-visible{background-color:#0f172a14;color:#0f172af2}.eli-tabela__acoes-toggle:focus-visible{outline:2px solid var(--cor-eli-primaria-clara);outline-offset:2px}.eli-tabela__acoes-toggle:disabled{cursor:default;color:#94a3b8cc;background:transparent}.eli-tabela__acoes-menu{min-width:180px;padding:6px 0;margin:0;list-style:none;background:var(--cor-eli-superficie);border:1px solid rgba(15,23,42,.08);border-radius:10px;box-shadow:0 12px 30px #0f172a2e;z-index:1000}.eli-tabela__acoes-item{margin:0}.eli-tabela__acoes-item-botao{display:flex;align-items:center;gap:8px;width:100%;padding:8px 12px;border:none;background:transparent;font-size:.9rem;cursor:pointer;transition:background-color .2s ease}.eli-tabela__acoes-item-botao:hover,.eli-tabela__acoes-item-botao:focus-visible{background-color:#0f172a0f}.eli-tabela__acoes-item-botao:focus-visible{outline:2px solid currentColor;outline-offset:-2px}.eli-tabela__acoes-item-icone{flex-shrink:0}.eli-tabela__acoes-item-texto{flex:1;text-align:left}.eli-tabela__th--expander,.eli-tabela__td--expander{width:42px;padding:6px 8px;text-align:center;vertical-align:middle}.eli-tabela__expander-botao{display:inline-flex;align-items:center;justify-content:center;width:28px;height:28px;border-radius:9999px;border:none;background:transparent;color:#0f172ab8;cursor:pointer;transition:background-color .2s ease,color .2s ease}.eli-tabela__expander-botao:hover,.eli-tabela__expander-botao:focus-visible{background-color:#0f172a14;color:#0f172af2}.eli-tabela__expander-botao:focus-visible{outline:2px solid var(--cor-eli-primaria-clara);outline-offset:2px}.eli-tabela__expander-botao--ativo{background-color:#0f172a0f;color:#0f172af2}.eli-tabela__td--detalhes{padding:12px}.eli-tabela__tr--detalhes .eli-tabela__td{border-bottom:1px solid rgba(0,0,0,.08)}.eli-tabela__detalhes{display:grid;gap:10px;padding-left:4px}.eli-tabela__detalhe{display:grid;grid-template-columns:180px 1fr;gap:10px;align-items:start}.eli-tabela__detalhe-rotulo{font-weight:600;color:#0f172ad9}.eli-tabela__detalhe-valor{min-width:0}@media(max-width:720px){.eli-tabela__detalhe{grid-template-columns:1fr}}.eli-tabela__th--selecao,.eli-tabela__td--selecao{width:48px;min-width:48px;max-width:48px;text-align:center;padding:0 8px;vertical-align:middle}.eli-tabela__checkbox{-moz-appearance:none;appearance:none;-webkit-appearance:none;width:15px;height:15px;cursor:pointer;border:2px solid rgba(0,0,0,.54);border-radius:2px;margin:0;vertical-align:middle;position:relative;transition:all .2s ease-in-out;background-color:transparent;outline:none}.eli-tabela__checkbox:hover{border-color:#000000de}.eli-tabela__checkbox:checked,.eli-tabela__checkbox:indeterminate{background-color:var(--cor-eli-primaria);border-color:var(--cor-eli-primaria)}.eli-tabela__checkbox:checked:after{content:"";position:absolute;top:0;left:4px;width:4px;height:9px;border:solid white;border-width:0 2px 2px 0;transform:rotate(45deg)}.eli-tabela__checkbox:indeterminate:after{content:"";position:absolute;top:5px;left:2px;width:8px;height:2px;background-color:#fff;border-radius:1px}.eli-tabela__checkbox:focus-visible{box-shadow:0 0 0 2px var(--cor-eli-primaria-clara)}.eli-tabela{width:100%}.eli-tabela__table-wrapper{width:100%;overflow-x:auto}.eli-tabela__td--estados{padding:0}.eli-tabela__estados-inline{border:none;border-radius:0}.eli-tabela__table{width:100%;border-collapse:separate;border-spacing:0;border:1px solid rgba(0,0,0,.12);border-radius:12px;overflow:visible}.eli-tabela__table thead tr:first-child th:first-child{border-top-left-radius:11px}.eli-tabela__table thead tr:first-child th:last-child{border-top-right-radius:11px}.eli-tabela__table tbody tr:last-child td:first-child{border-bottom-left-radius:11px}.eli-tabela__table tbody tr:last-child td:last-child{border-bottom-right-radius:11px}.eli-tabela__tbody{overflow:visible}.eli-tabela__tbody .eli-tabela__tr .eli-tabela__td{background:var(--cor-eli-superficie, #ffffff)}.eli-tabela__tbody .eli-tabela__tr--zebra .eli-tabela__td{background:var(--cor-eli-primaria-zebra, #F6F9E8)}.eli-tabela__th,.eli-tabela__td{padding:10px 12px;border-bottom:1px solid var(--cor-eli-borda);vertical-align:top}.eli-tabela__th{text-align:left;font-weight:600;font-size:.82rem;letter-spacing:.02em;text-transform:uppercase;color:var(--cor-eli-neutro-escuro, #3E4436);background:var(--cor-eli-primaria-suave, #BFC99C);border-bottom:2px solid var(--cor-eli-primaria-bg, #EEF3D0)}.eli-tabela__th--ordenavel{padding:0}.eli-tabela__th--ordenavel .eli-tabela__th-botao{padding:10px 12px}.eli-tabela__th-botao{display:inline-flex;align-items:center;justify-content:flex-start;gap:8px;width:100%;background:transparent;border:none;font:inherit;color:inherit;cursor:pointer;text-align:left;transition:color .2s ease}.eli-tabela__th-botao:hover,.eli-tabela__th-botao:focus-visible{color:var(--cor-eli-primaria-texto, #2E3F00)}.eli-tabela__th-botao:focus-visible{outline:2px solid var(--cor-eli-primaria, #688C00);outline-offset:2px}.eli-tabela__th-botao--ativo{color:var(--cor-eli-primaria-texto, #2E3F00)}.eli-tabela__th-texto{flex:1;min-width:0;white-space:nowrap}.eli-tabela__th-icone{flex-shrink:0}.eli-tabela__th-icone--oculto{opacity:0}.eli-tabela__tr:last-child .eli-tabela__td{border-bottom:none}.eli-tabela__td--clicavel{cursor:pointer}.eli-tabela__td--clicavel:hover{background:#00000008}.eli-tabela--erro{display:flex;align-items:flex-start;gap:10px;border:1px solid rgba(220,53,69,.35);border-radius:12px;padding:12px}.eli-tabela--carregando{display:flex;align-items:center;gap:10px;border:1px dashed rgba(0,0,0,.25);border-radius:12px;padding:12px;opacity:.8}.eli-tabela__erro-titulo{font-weight:700;margin-bottom:4px}.eli-tabela__erro-mensagem{opacity:.9}.eli-tabela--vazio{display:flex;align-items:center;gap:10px;border:1px dashed rgba(0,0,0,.25);border-radius:12px;padding:12px;opacity:.8}.eli-tabela__estado-icone{flex-shrink:0;color:#0f172a73}.eli-tabela__estado-icone--erro{color:var(--cor-eli-erro)}.eli-tabela__estado-icone--spin{animation:eli-tabela-spin 1s linear infinite}@keyframes eli-tabela-spin{0%{transform:rotate(0)}to{transform:rotate(360deg)}}.eli-tabela__th--acoes{text-align:right;white-space:nowrap}.eli-tabela__td--acoes{white-space:nowrap;overflow:visible}.eli-tabela__acoes-container{display:flex;justify-content:flex-end;position:relative;z-index:1}.eli-tabela__acoes-container--aberto{z-index:200}.eli-tabela__rodape{display:flex;align-items:center;justify-content:flex-end;gap:12px;margin-top:12px;flex-wrap:wrap}.eli-tabela__paginacao{display:flex;align-items:center;justify-content:flex-end;gap:12px;margin-top:0;flex-wrap:wrap}.eli-tabela__acoes-inferiores{display:inline-flex;gap:8px;align-items:center;flex-wrap:wrap}.eli-tabela__cabecalho{width:100%;box-sizing:border-box;display:flex;align-items:center;justify-content:flex-end;gap:12px;margin-bottom:12px;flex-wrap:wrap;--eli-tabela-cabecalho-controle-altura: 34px;--eli-tabela-cabecalho-controle-radius: 8px}.eli-tabela__celula-tags{display:flex;flex-wrap:wrap;gap:6px;align-items:center}.eli-tabela__celula-tag{cursor:default}.eli-tabela__celula-tag-icone{margin-right:6px}.eli-tabela__texto-truncado{display:inline-block;max-width:260px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;vertical-align:top}.eli-tabela__celula-link{all:unset;display:inline;color:#2563eb;cursor:pointer;text-decoration:underline;text-decoration-color:var(--cor-eli-primaria-clara);text-underline-offset:2px}.eli-tabela__celula-link:hover{color:#1d4ed8;text-decoration-color:#1d4ed8bf}.eli-tabela__celula-link:focus-visible{outline:2px solid var(--cor-eli-primaria-clara);outline-offset:2px;border-radius:4px}.eli-tabela__busca{display:flex;align-items:center;justify-content:flex-end;gap:8px;flex-wrap:wrap}.eli-tabela__busca-input-wrapper{display:inline-flex;align-items:stretch;border-radius:var(--eli-tabela-cabecalho-controle-radius, 8px);border:1px solid rgba(15,23,42,.15);overflow:hidden;background:var(--cor-eli-superficie);height:var(--eli-tabela-cabecalho-controle-altura, 34px)}.eli-tabela__busca-input{height:100%;padding:0 12px;border:none;outline:none;font-size:.875rem;color:#0f172ad9}.eli-tabela__busca-input::-webkit-search-cancel-button,.eli-tabela__busca-input::-webkit-search-decoration{-webkit-appearance:none}.eli-tabela__busca-input::placeholder{color:var(--cor-eli-neutro)}.eli-tabela__busca-botao{display:inline-flex;align-items:center;justify-content:center;border:none;background:var(--cor-eli-primaria-bg);color:var(--cor-eli-primaria-escura);height:100%;padding:0 12px;cursor:pointer;transition:background-color .2s ease,color .2s ease}.eli-tabela__busca-botao-icone{display:block}.eli-tabela__busca-botao:hover,.eli-tabela__busca-botao:focus-visible{background:var(--cor-eli-primaria-clara);color:var(--cor-eli-primaria-escura)}.eli-tabela__busca-botao:focus-visible{outline:2px solid var(--cor-eli-primaria-clara);outline-offset:2px}.eli-tabela__busca-grupo{display:inline-flex;align-items:center;gap:8px;flex-wrap:wrap}.eli-tabela__filtro-icone-container{position:relative;display:inline-flex;align-items:center}.eli-tabela__filtro-badge{position:absolute;top:-7px;right:-9px;min-width:16px;height:16px;padding:0 4px;border-radius:9999px;background:var(--cor-eli-erro, #dc3545);color:#fff;font-size:.65rem;font-weight:700;line-height:16px;text-align:center;pointer-events:none;box-shadow:0 1px 3px #0003}.eli-tabela-modal-colunas__item{display:flex;align-items:center;gap:8px;padding:9px 10px;border-radius:8px;border:1px solid var(--cor-eli-borda);background:var(--cor-eli-superficie);cursor:grab;-webkit-user-select:none;user-select:none;transition:box-shadow .15s ease,opacity .15s ease,border-color .15s ease}.eli-tabela-modal-colunas__item+.eli-tabela-modal-colunas__item{margin-top:6px}.eli-tabela-modal-colunas__item:hover{border-color:var(--cor-eli-borda-forte);box-shadow:0 2px 8px #0f172a14}.eli-tabela-modal-colunas__item:active{cursor:grabbing}.eli-tabela-modal-colunas__item--invisivel{opacity:.72}.eli-tabela-modal-colunas__item--arrastando{opacity:.15;border-style:dashed;border-color:var(--cor-eli-primaria-media)}.eli-tabela-modal-colunas__item-handle{color:var(--cor-eli-borda-forte);flex-shrink:0;transition:color .15s ease}.eli-tabela-modal-colunas__item:hover .eli-tabela-modal-colunas__item-handle{color:var(--cor-eli-neutro)}.eli-tabela-modal-colunas__item-texto{flex:1;min-width:0;font-size:.875rem;color:var(--cor-eli-neutro-escuro);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.eli-tabela-modal-colunas__item-badge-icone{flex-shrink:0}.eli-tabela-modal-colunas__item-badge-icone--visivel{color:var(--cor-eli-primaria-acao)}.eli-tabela-modal-colunas__item-badge-icone--invisivel{color:var(--cor-eli-borda-forte)}.eli-tabela-modal-colunas__vazio{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;padding:24px 12px;text-align:center;font-size:.8rem;color:var(--cor-eli-neutro);line-height:1.5}.eli-tabela-modal-colunas__vazio-icone{color:var(--cor-eli-borda-forte)}.eli-tabela-modal-colunas__vazio-icone--ok{color:var(--cor-eli-primaria-acao)}.list-move,.list-enter-active,.list-leave-active{transition:all .25s cubic-bezier(.4,0,.2,1)}.list-enter-from,.list-leave-to{opacity:0;transform:scale(.95)}.list-leave-active{position:absolute;width:calc(100% - 16px)}.eli-tabela-modal-colunas__footer{display:flex;justify-content:flex-end;gap:8px;padding:12px 16px;border-top:1px solid var(--cor-eli-borda);background:var(--cor-eli-fundo)}.eli-tabela-modal-colunas__botao{display:inline-flex;align-items:center;gap:6px;height:34px;padding:0 16px;border-radius:8px;border:1px solid var(--cor-eli-borda);background:var(--cor-eli-superficie);cursor:pointer;font-size:.875rem;font-weight:500;transition:background .2s ease,border-color .2s ease,color .2s ease}.eli-tabela-modal-colunas__botao--sec{color:var(--cor-eli-neutro-escuro)}.eli-tabela-modal-colunas__botao--sec:hover,.eli-tabela-modal-colunas__botao--sec:focus-visible{background:var(--cor-eli-fundo);border-color:var(--cor-eli-borda-forte)}.eli-tabela-modal-colunas__botao--sec:focus-visible{outline:2px solid var(--cor-eli-primaria-clara);outline-offset:2px}.eli-tabela-modal-colunas__botao--prim{border:none;background:var(--cor-eli-primaria);color:#fff}.eli-tabela-modal-colunas__botao--prim:hover,.eli-tabela-modal-colunas__botao--prim:focus-visible{background:var(--cor-eli-primaria-escura)}.eli-tabela-modal-colunas__botao--prim:focus-visible{outline:2px solid var(--cor-eli-primaria-clara);outline-offset:2px}@media(max-width:720px){.eli-tabela-modal-colunas__conteudo{grid-template-columns:1fr}.eli-tabela-modal-colunas__coluna+.eli-tabela-modal-colunas__coluna{border-left:none;border-top:1px solid var(--cor-eli-borda)}}.eli-tabela-modal-colunas__overlay{position:fixed;top:0;right:0;bottom:0;left:0;background:#0f172a73;-webkit-backdrop-filter:blur(2px);backdrop-filter:blur(2px);z-index:4000;display:flex;align-items:center;justify-content:center;padding:16px}.eli-tabela-modal-colunas__modal{width:min(820px,100%);background:var(--cor-eli-superficie);border-radius:16px;border:1px solid var(--cor-eli-borda);box-shadow:0 24px 64px #0f172a38;overflow:hidden;display:flex;flex-direction:column}.eli-tabela-modal-colunas__header{display:flex;align-items:center;justify-content:space-between;padding:14px 16px;border-bottom:1px solid var(--cor-eli-borda);background:var(--cor-eli-primaria-header, #ADCC44)}.eli-tabela-modal-colunas__header-info{display:flex;align-items:center;gap:8px}.eli-tabela-modal-colunas__header-icone{color:var(--cor-eli-primaria-escura);flex-shrink:0}.eli-tabela-modal-colunas__titulo{font-size:.95rem;font-weight:600;color:var(--cor-eli-primaria-texto);margin:0}.eli-tabela-modal-colunas__fechar{display:inline-flex;align-items:center;justify-content:center;width:30px;height:30px;border-radius:8px;border:none;background:transparent;cursor:pointer;color:var(--cor-eli-primaria-escura);transition:background .2s ease}.eli-tabela-modal-colunas__fechar:hover,.eli-tabela-modal-colunas__fechar:focus-visible{background:#0f172a1a}.eli-tabela-modal-colunas__fechar:focus-visible{outline:2px solid var(--cor-eli-primaria);outline-offset:2px}.eli-tabela-modal-colunas__instrucao{display:flex;align-items:center;gap:6px;padding:8px 16px;background:var(--cor-eli-fundo);border-bottom:1px solid var(--cor-eli-borda);font-size:.78rem;color:var(--cor-eli-neutro);line-height:1.4}.eli-tabela-modal-colunas__instrucao-icone{flex-shrink:0;color:var(--cor-eli-borda-forte)}.eli-tabela-modal-colunas__conteudo{display:grid;grid-template-columns:1fr 1fr;gap:0;flex:1}.eli-tabela-modal-colunas__coluna{display:flex;flex-direction:column;padding:12px}.eli-tabela-modal-colunas__coluna+.eli-tabela-modal-colunas__coluna{border-left:1px solid var(--cor-eli-borda)}.eli-tabela-modal-colunas__coluna-cabecalho{display:flex;align-items:center;gap:6px;font-size:.75rem;font-weight:700;letter-spacing:.06em;text-transform:uppercase;padding:6px 10px;border-radius:8px;margin-bottom:8px}.eli-tabela-modal-colunas__coluna-cabecalho--visiveis{color:var(--cor-eli-primaria-escura);background:var(--cor-eli-primaria-bg)}.eli-tabela-modal-colunas__coluna-cabecalho--invisiveis{color:var(--cor-eli-neutro-escuro);background:var(--cor-eli-fundo)}.eli-tabela-modal-colunas__coluna-contador{margin-left:auto;font-size:.72rem;font-weight:700;padding:1px 7px;border-radius:9999px;background:#0f172a14;color:inherit}.eli-tabela-modal-colunas__lista{flex:1;min-height:220px;border:1.5px dashed var(--cor-eli-borda);border-radius:10px;padding:8px;position:relative;overflow:hidden;transition:border-color .2s ease,background .2s ease}.eli-tabela-modal-colunas__lista--visiveis{background:#688c0005}.eli-tabela-modal-colunas__lista--invisiveis{background:var(--cor-eli-fundo)}.eli-tabela-modal-filtro__formula-container{display:flex;flex-direction:row;align-items:center;gap:8px;margin-left:auto}.eli-tabela-modal-filtro__formula-label{font-size:.82rem;font-weight:500;color:#0f172a8c;white-space:nowrap;flex-shrink:0}.eli-tabela-modal-filtro__formula-ajuda{position:relative;display:inline-flex;align-items:center;color:#0f172a59;cursor:help;transition:color .15s}.eli-tabela-modal-filtro__formula-ajuda:hover,.eli-tabela-modal-filtro__formula-ajuda:focus-visible{color:var(--cor-eli-primaria);outline:none}.eli-tabela-modal-filtro__formula-ajuda:hover .eli-tabela-modal-filtro__formula-tooltip,.eli-tabela-modal-filtro__formula-ajuda:focus-visible .eli-tabela-modal-filtro__formula-tooltip{opacity:1;pointer-events:auto;transform:translateY(0)}.eli-tabela-modal-filtro__formula-tooltip{position:absolute;bottom:calc(100% + 10px);right:0;width:280px;background:#0f172a;color:#e2e8f0;border-radius:10px;padding:14px 16px;font-size:.8rem;line-height:1.55;z-index:100;opacity:0;pointer-events:none;transform:translateY(4px);transition:opacity .18s ease,transform .18s ease;box-shadow:0 8px 30px #00000059}.eli-tabela-modal-filtro__formula-tooltip:after{content:"";position:absolute;top:100%;right:6px;border:6px solid transparent;border-top-color:#0f172a}.eli-tabela-modal-filtro__formula-tooltip strong{font-size:.82rem;color:var(--cor-eli-fundo);display:block;margin-bottom:6px}.eli-tabela-modal-filtro__formula-tooltip p{margin:6px 0 4px;color:#94a3b8}.eli-tabela-modal-filtro__formula-tooltip ul{margin:4px 0 8px 14px;padding:0}.eli-tabela-modal-filtro__formula-tooltip li{margin-bottom:3px;color:#cbd5e1}.eli-tabela-modal-filtro__formula-tooltip code{font-family:SFMono-Regular,Consolas,Liberation Mono,Menlo,monospace;color:#7dd3fc;font-size:.78rem;background:#ffffff12;border-radius:4px;padding:1px 4px}.eli-tabela-modal-filtro__formula-input{width:220px;height:36px;border-radius:10px;border:1px solid rgba(15,23,42,.12);padding:0 10px;font-family:SFMono-Regular,Consolas,Liberation Mono,Menlo,monospace;font-size:.85rem;background:var(--cor-eli-fundo);transition:border-color .15s,background .15s;box-sizing:border-box}.eli-tabela-modal-filtro__formula-input:focus{outline:none;border-color:var(--cor-eli-primaria);background:#fff}.eli-tabela-modal-filtro__formula-tooltip-nota{margin-top:8px;opacity:.75}.eli-tabela-modal-filtro__footer{display:flex;align-items:center;gap:8px;padding:14px 20px;border-top:1px solid rgba(15,23,42,.08)}.eli-tabela-modal-filtro__footer-spacer{flex:1}.eli-tabela-modal-filtro__botao{display:inline-flex;align-items:center;gap:5px;height:36px;padding:0 16px;border-radius:10px;border:1px solid rgba(15,23,42,.12);background:#fff;cursor:pointer;font-size:.875rem;font-weight:500;transition:background .15s,color .15s,border-color .15s}.eli-tabela-modal-filtro__botao:disabled{opacity:.45;cursor:not-allowed}.eli-tabela-modal-filtro__botao--sec:hover:not(:disabled),.eli-tabela-modal-filtro__botao--sec:focus-visible{background:#0f172a0d}.eli-tabela-modal-filtro__botao--prim{border:none;background:var(--cor-eli-primaria);color:#fff}.eli-tabela-modal-filtro__botao--prim:hover:not(:disabled),.eli-tabela-modal-filtro__botao--prim:focus-visible{background:var(--cor-eli-primaria-escura)}.eli-tabela-modal-filtro__botao--perigo{color:#dc2626d9;border-color:#dc26262e;background:#fff}.eli-tabela-modal-filtro__botao--perigo:hover:not(:disabled),.eli-tabela-modal-filtro__botao--perigo:focus-visible{background:#ef44440f;border-color:#dc26264d;color:#dc2626}@media(max-width:600px){.eli-tabela-modal-filtro__lista{grid-template-columns:1fr}.eli-tabela-modal-filtro__rodape-filtros{flex-direction:column;align-items:stretch}.eli-tabela-modal-filtro__acoes{flex-wrap:wrap}}.eli-tabela-modal-filtro-enter-active,.eli-tabela-modal-filtro-leave-active{transition:opacity .2s ease}.eli-tabela-modal-filtro-enter-active .eli-tabela-modal-filtro__modal,.eli-tabela-modal-filtro-leave-active .eli-tabela-modal-filtro__modal{transition:transform .2s ease,opacity .2s ease}.eli-tabela-modal-filtro-enter-from,.eli-tabela-modal-filtro-leave-to{opacity:0}.eli-tabela-modal-filtro-enter-from .eli-tabela-modal-filtro__modal,.eli-tabela-modal-filtro-leave-to .eli-tabela-modal-filtro__modal{transform:scale(.96);opacity:0}.eli-tabela-modal-filtro__overlay{position:fixed;top:0;right:0;bottom:0;left:0;background:#0f172a59;z-index:4000;display:flex;align-items:center;justify-content:center;padding:16px}.eli-tabela-modal-filtro__modal{width:min(980px,100%);background:#fff;border-radius:14px;border:1px solid rgba(15,23,42,.1);box-shadow:0 18px 60px #0f172a40;overflow:hidden}.eli-tabela-modal-filtro__header{display:flex;align-items:center;justify-content:space-between;padding:14px 20px;border-bottom:1px solid rgba(15,23,42,.08)}.eli-tabela-modal-filtro__header-titulo{display:flex;align-items:center;gap:10px}.eli-tabela-modal-filtro__titulo{font-size:1rem;font-weight:600;margin:0;color:#0f172ae6}.eli-tabela-modal-filtro__header-icone{color:var(--cor-eli-primaria);flex-shrink:0}.eli-tabela-modal-filtro__contador{font-size:.75rem;font-weight:500;color:var(--cor-eli-primaria);background:var(--cor-eli-primaria-bg);padding:2px 8px;border-radius:10px;letter-spacing:.01em}.eli-tabela-modal-filtro__fechar{display:inline-flex;align-items:center;justify-content:center;width:34px;height:34px;border-radius:10px;border:none;background:transparent;cursor:pointer;color:#0f172a8c;transition:background .15s,color .15s}.eli-tabela-modal-filtro__fechar:hover,.eli-tabela-modal-filtro__fechar:focus-visible{background:#0f172a0f;color:#0f172ae6}.eli-tabela-modal-filtro__conteudo{padding:20px}.eli-tabela-modal-filtro__vazio{opacity:.65;font-size:.85rem;padding:12px 0 4px}.eli-tabela-modal-filtro__estado-vazio{display:flex;flex-direction:column;align-items:center;gap:10px;padding:28px 16px;color:#0f172a59;border:1px dashed rgba(15,23,42,.12);border-radius:10px;background:#0f172a04}.eli-tabela-modal-filtro__estado-vazio span{font-size:.85rem;font-weight:500}.eli-tabela-modal-filtro__lista{display:grid;grid-template-columns:repeat(2,1fr);gap:8px}.eli-tabela-modal-filtro__linha{display:flex;flex-direction:column;gap:4px;padding:10px 12px;border:1px solid rgba(15,23,42,.08);border-radius:10px;background:#0f172a04;transition:border-color .15s}.eli-tabela-modal-filtro__linha:hover{border-color:var(--cor-eli-primaria-clara)}.eli-tabela-modal-filtro__linha-header{display:flex;align-items:center;gap:8px}.eli-tabela-modal-filtro__rotulo-filtro{font-size:.82rem;font-weight:500;color:#0f172aa6;flex:1;min-width:0}.eli-tabela-modal-filtro__id-badge{display:inline-flex;align-items:center;justify-content:center;width:32px;height:24px;border-radius:6px;background:var(--cor-eli-primaria-bg);color:var(--cor-eli-primaria);font-family:SFMono-Regular,Consolas,Liberation Mono,Menlo,monospace;font-size:.72rem;font-weight:600;letter-spacing:.01em;cursor:default;-webkit-user-select:none;user-select:none;flex-shrink:0}.eli-tabela-modal-filtro__entrada{min-width:0}.eli-tabela-modal-filtro__remover{display:inline-flex;align-items:center;justify-content:center;width:26px;height:26px;border-radius:8px;border:none;background:transparent;cursor:pointer;color:#0f172a59;transition:background .15s,color .15s;margin-left:auto;flex-shrink:0}.eli-tabela-modal-filtro__remover:hover,.eli-tabela-modal-filtro__remover:focus-visible{background:#ef444414;color:#dc2626e6;border-color:#ef444433}.eli-tabela-modal-filtro__rodape-filtros{margin-top:14px;padding-top:14px;border-top:1px solid rgba(15,23,42,.07);display:flex;gap:12px;align-items:flex-end}.eli-tabela-modal-filtro__acoes{display:flex;gap:8px;align-items:center;flex-shrink:0}.eli-tabela-modal-filtro__select{height:36px;border-radius:10px;border:1px solid rgba(15,23,42,.12);padding:0 10px;background:#fff;font-size:.875rem;color:#0f172ad9;transition:border-color .15s}.eli-tabela-modal-filtro__select:focus{outline:none;border-color:var(--cor-eli-primaria)}.eli-tabela__paginacao{display:flex;align-items:center;justify-content:flex-end;gap:12px;margin-top:12px;flex-wrap:wrap}.eli-tabela__pagina-botao{display:inline-flex;align-items:center;justify-content:center;gap:6px;padding:6px 14px;border-radius:9999px;border:1px solid rgba(15,23,42,.12);background:var(--cor-eli-superficie);font-size:.875rem;font-weight:500;color:#0f172ad1;cursor:pointer;transition:background-color .2s ease,border-color .2s ease,color .2s ease}.eli-tabela__pagina-botao:hover,.eli-tabela__pagina-botao:focus-visible{background-color:var(--cor-eli-primaria-bg);border-color:var(--cor-eli-primaria-clara);color:var(--cor-eli-primaria-escura)}.eli-tabela__pagina-botao:focus-visible{outline:2px solid var(--cor-eli-primaria-clara);outline-offset:2px}.eli-tabela__pagina-botao:disabled{cursor:default;opacity:.5;background:#94a3b814;border-color:#94a3b82e;color:#475569bf}.eli-tabela__pagina-botao--ativo{background:var(--cor-eli-primaria-bg);border-color:var(--cor-eli-primaria);color:var(--cor-eli-primaria-escura)}.eli-tabela__pagina-ellipsis{display:inline-flex;align-items:center;justify-content:center;width:32px;color:var(--cor-eli-neutro);font-size:.9rem}.eli-tabela__acao-inferior{display:inline-flex;align-items:center;gap:6px;height:34px;padding:0 14px;border-radius:8px;border:1px solid var(--cor-eli-primaria);background:var(--cor-eli-superficie);color:var(--cor-eli-primaria);font-size:.875rem;font-weight:500;line-height:1;cursor:pointer;transition:background-color .2s ease,color .2s ease}.eli-tabela__acao-inferior:hover,.eli-tabela__acao-inferior:focus-visible{background-color:var(--cor-eli-primaria-bg)}.eli-tabela__acao-inferior:focus-visible{outline:2px solid var(--cor-eli-primaria);outline-offset:2px}.eli-fb-painel{position:fixed;bottom:68px;right:24px;z-index:99999;width:360px;background:#fff;border-radius:14px;box-shadow:0 12px 40px #00000026,0 2px 8px #00000014;overflow:hidden;animation:eliFbSlideUp .25s ease;font-family:Inter,Segoe UI,system-ui,sans-serif}.eli-fb-painel-header{background:linear-gradient(135deg,#c62828,#e53935);color:#fff;padding:14px 18px;display:flex;align-items:center;justify-content:space-between}.eli-fb-painel-header h3{margin:0;font-size:14px;font-weight:700;letter-spacing:.02em}.eli-fb-painel-fechar{background:#ffffff26;border:none;color:#fff;width:28px;height:28px;border-radius:50%;cursor:pointer;display:flex;align-items:center;justify-content:center;font-size:14px;transition:background .15s}.eli-fb-painel-fechar:hover{background:#ffffff4d}.eli-fb-painel-corpo{padding:16px 18px}.eli-fb-el-info{background:#f5f5f5;border-radius:8px;padding:10px 12px;margin-bottom:14px;font-size:11px;color:#616161;line-height:1.6}.eli-fb-el-info code{background:#e0e0e0;padding:1px 5px;border-radius:3px;font-size:10.5px;font-family:SFMono-Regular,Consolas,monospace;color:#333}.eli-fb-el-info strong{color:#424242}.eli-fb-textarea{width:100%;min-height:80px;max-height:160px;border:1.5px solid #E0E0E0;border-radius:8px;padding:10px 12px;font-size:13px;font-family:Inter,Segoe UI,system-ui,sans-serif;resize:vertical;outline:none;transition:border-color .15s;color:#333;box-sizing:border-box}.eli-fb-textarea:focus{border-color:#c62828;box-shadow:0 0 0 3px #c6282814}.eli-fb-textarea::placeholder{color:#bdbdbd}.eli-fb-painel-acoes{display:flex;gap:8px;margin-top:12px;justify-content:flex-end}.eli-fb-btn-salvar{background:linear-gradient(135deg,#c62828,#e53935);color:#fff;border:none;border-radius:8px;padding:8px 18px;font-size:13px;font-weight:600;cursor:pointer;transition:all .15s}.eli-fb-btn-salvar:hover{transform:translateY(-1px);box-shadow:0 3px 10px #c628284d}.eli-fb-btn-salvar:disabled{opacity:.5;cursor:not-allowed;transform:none;box-shadow:none}.eli-fb-btn-cancelar{background:#f5f5f5;color:#616161;border:1px solid #E0E0E0;border-radius:8px;padding:8px 14px;font-size:13px;font-weight:500;cursor:pointer;transition:background .15s}.eli-fb-btn-cancelar:hover{background:#eee}.eli-feedback-fab{position:fixed;bottom:24px;right:24px;z-index:99999;display:flex;flex-direction:column;align-items:flex-end;gap:8px;font-family:Inter,Segoe UI,system-ui,sans-serif}.eli-fb-botao-principal{width:34px;height:34px;border-radius:50%;border:none;background:linear-gradient(135deg,#c62828,#e53935);color:#fff;font-size:14px;cursor:pointer;box-shadow:0 2px 8px #c6282859,0 1px 3px #0000001f;transition:all .2s ease;display:flex;align-items:center;justify-content:center;position:relative}.eli-fb-botao-principal:hover{transform:scale(1.08);box-shadow:0 6px 20px #c6282873,0 2px 6px #00000026}.eli-fb-botao-principal:active{transform:scale(.95)}.eli-fb-badge{position:absolute;top:-5px;right:-5px;background:#1565c0;color:#fff;font-size:9px;font-weight:700;min-width:16px;height:16px;border-radius:8px;display:flex;align-items:center;justify-content:center;padding:0 3px;line-height:1;box-shadow:0 1px 4px #0003}.eli-fb-acoes{display:flex;flex-direction:column;align-items:flex-end;gap:6px;animation:eliFbSlideUp .2s ease}.eli-fb-botao-ico{width:34px;height:34px;border-radius:50%;border:none;font-size:14px;cursor:pointer;display:flex;align-items:center;justify-content:center;transition:all .15s ease;box-shadow:0 2px 8px #00000026}.eli-fb-botao-ico:hover{transform:scale(1.1);box-shadow:0 3px 12px #00000038}.eli-fb-botao-exportar{background:#1565c0;color:#fff}.eli-fb-botao-feedback{background:linear-gradient(135deg,#c62828,#e53935);color:#fff}.eli-fb-botao-copiar{background:#2e7d32;color:#fff}.eli-fb-botao-limpar{background:#424242;color:#fff}.eli-fb-tooltip-selecao{position:absolute;bottom:14px;right:64px;background:linear-gradient(135deg,#c62828,#b71c1c);color:#fff;padding:8px 14px;border-radius:10px;font-size:12px;font-weight:500;white-space:nowrap;display:flex;flex-direction:column;gap:2px;box-shadow:0 4px 16px #c6282859;animation:eliFbSlideUp .2s ease;pointer-events:none}.eli-fb-tooltip-selecao:after{content:"";position:absolute;right:-6px;top:50%;transform:translateY(-50%);border:6px solid transparent;border-left-color:#b71c1c;border-right:none}.eli-fb-tooltip-esc{font-size:10px;opacity:.7}.eli-fb-tooltip-esc kbd{background:#fff3;border-radius:3px;padding:1px 5px;font-size:10px;font-weight:700;font-family:inherit}@keyframes eliFbSlideUp{0%{opacity:0;transform:translateY(12px)}to{opacity:1;transform:translateY(0)}}@keyframes eliFbSlideDown{0%{opacity:0;transform:translateY(-100%)}to{opacity:1;transform:translateY(0)}}')),document.head.appendChild(e)}}catch(a){console.error("vite-plugin-css-injected-by-js",a)}})(); +(function(J,l){typeof exports=="object"&&typeof module<"u"?l(exports,require("vue"),require("vuetify/components/VBtn"),require("vuetify/components/VBadge"),require("vuetify/components/VCard"),require("vuetify/components"),require("vuetify/components/VSwitch"),require("leaflet"),require("vuetify/components/VIcon"),require("vuetify/components/VTextField"),require("vuetify/components/VTextarea"),require("vuetify/components/VSelect"),require("vuetify/components/VChip"),require("vuetify/components/VGrid")):typeof define=="function"&&define.amd?define(["exports","vue","vuetify/components/VBtn","vuetify/components/VBadge","vuetify/components/VCard","vuetify/components","vuetify/components/VSwitch","leaflet","vuetify/components/VIcon","vuetify/components/VTextField","vuetify/components/VTextarea","vuetify/components/VSelect","vuetify/components/VChip","vuetify/components/VGrid"],l):(J=typeof globalThis<"u"?globalThis:J||self,l(J.eli_vue={},J.Vue,J.VBtn,J.VBadge,J.VCard,J.components,J.VSwitch,J.L,J.VIcon,J.VTextField,J.VTextarea,J.VSelect,J.VChip,J.VGrid))})(this,(function(J,l,Rn,lm,ze,et,cm,_e,oi,Ct,sm,ii,um,dm){"use strict";const mm=l.defineComponent({name:"EliBotao",inheritAttrs:!1,props:{color:{type:String,default:"primary"},variant:{type:String,default:"elevated"},size:{type:String,default:"default"},disabled:{type:Boolean,default:!1},loading:{type:Boolean,default:!1}}}),q=(e,n)=>{const r=e.__vccOpts||e;for(const[i,t]of n)r[i]=t;return r};function fm(e,n,r,i,t,o){return l.openBlock(),l.createBlock(Rn.VBtn,l.mergeProps({color:e.color,variant:e.variant,size:e.size,disabled:e.disabled,loading:e.loading},e.$attrs,{class:"eli-botao text-none pt-1"}),{default:l.withCtx(()=>[l.renderSlot(e.$slots,"default")]),_:3},16,["color","variant","size","disabled","loading"])}const Jn=q(mm,[["render",fm]]),ai={suave:"4px",pill:"10px"},pm=l.defineComponent({name:"EliBadge",inheritAttrs:!1,props:{color:{type:String,default:"primary"},location:{type:String,default:"top right"},offsetX:{type:String,default:"0"},offsetY:{type:String,default:"0"},dot:{type:Boolean,default:!1},visible:{type:Boolean,default:!0},badge:{type:[String,Number],default:void 0},radius:{type:String,default:"suave"}},setup(e){const n=l.computed(()=>e.radius in ai?ai[e.radius]:e.radius),r=l.computed(()=>e.dot||e.badge!==void 0?e.visible:!1),i=l.computed(()=>({"--eli-badge-radius":n.value}));return{showBadge:r,badgeStyle:i}}});function gm(e,n,r,i,t,o){return e.showBadge?(l.openBlock(),l.createBlock(lm.VBadge,l.mergeProps({key:0,color:e.color},e.$attrs,{location:e.location,"offset-x":e.offsetX,"offset-y":e.offsetY,dot:e.dot,content:e.badge,style:e.badgeStyle,class:"eli-badge"}),{default:l.withCtx(()=>[l.renderSlot(e.$slots,"default")]),_:3},16,["color","location","offset-x","offset-y","dot","content","style"])):l.renderSlot(e.$slots,"default",{key:1})}const Pt=q(pm,[["render",gm]]),vm=l.defineComponent({name:"EliCartao",components:{EliBadge:Pt},inheritAttrs:!1,props:{titulo:{type:String,default:""},status:{type:String,required:!0},variant:{type:String,default:"outlined"}},emits:{clicar:e=>!0},setup(e,{emit:n}){const r=l.computed(()=>e.status),i=l.computed(()=>{switch(e.status){case"novo":return"primary";case"rascunho":return"secondary";case"vendido":return"success";case"cancelado":return"error"}}),t=l.computed(()=>`eli-cartao--${e.status}`);function o(){n("clicar",e.status)}return{rotuloStatus:r,corStatus:i,classeStatus:t,onClick:o}}}),hm={class:"eli-cartao__titulo-texto"},$m={class:"eli-cartao__status"};function bm(e,n,r,i,t,o){const a=l.resolveComponent("EliBadge");return l.openBlock(),l.createBlock(ze.VCard,l.mergeProps({class:["eli-cartao",e.classeStatus],variant:e.variant},e.$attrs),{default:l.withCtx(()=>[l.createVNode(ze.VCardTitle,{class:"eli-cartao__titulo"},{default:l.withCtx(()=>[l.createElementVNode("div",hm,[l.renderSlot(e.$slots,"titulo",{},()=>[l.createTextVNode(l.toDisplayString(e.titulo),1)])]),l.createElementVNode("div",$m,[l.createVNode(a,{badge:e.rotuloStatus,radius:"pill",color:e.corStatus},{default:l.withCtx(()=>[...n[0]||(n[0]=[l.createElementVNode("span",null,null,-1)])]),_:1},8,["badge","color"])])]),_:3}),l.createVNode(ze.VCardText,{class:"eli-cartao__conteudo"},{default:l.withCtx(()=>[l.renderSlot(e.$slots,"default")]),_:3}),e.$slots.acoes?(l.openBlock(),l.createBlock(ze.VCardActions,{key:0,class:"eli-cartao__acoes"},{default:l.withCtx(()=>[l.renderSlot(e.$slots,"acoes")]),_:3})):l.createCommentVNode("",!0)]),_:3},16,["variant","class"])}const li=q(vm,[["render",bm]]),_m=l.defineComponent({name:"EliEntradaConfirmacao",components:{VSwitch:et.VSwitch},inheritAttrs:!1,props:{value:{type:Boolean,default:!1},opcoes:{type:Object,required:!0}},emits:{"update:value":e=>!0,input:e=>!0,change:e=>!0,focus:()=>!0,blur:()=>!0},setup(e,{attrs:n,emit:r}){const i=l.computed({get:()=>e.value,set:o=>{r("update:value",o),r("input",o),r("change",o)}}),t=l.computed(()=>{var o,a,c;return i.value&&((o=e.opcoes)!=null&&o.rotuloAtivo)?e.opcoes.rotuloAtivo:!i.value&&((a=e.opcoes)!=null&&a.rotuloInativo)?e.opcoes.rotuloInativo:((c=e.opcoes)==null?void 0:c.rotulo)??""});return{attrs:n,emit:r,localValue:i,rotuloExibido:t}}});function ym(e,n,r,i,t,o){var a,c,u,s;return l.openBlock(),l.createBlock(cm.VSwitch,l.mergeProps({modelValue:e.localValue,"onUpdate:modelValue":n[0]||(n[0]=m=>e.localValue=m),label:e.rotuloExibido,color:((a=e.opcoes)==null?void 0:a.cor)??"primary",disabled:!!((c=e.opcoes)!=null&&c.desabilitado)||!!((u=e.opcoes)!=null&&u.apenasLeitura),density:((s=e.opcoes)==null?void 0:s.densidade)??"comfortable","hide-details":""},e.attrs,{onFocus:n[1]||(n[1]=()=>e.emit("focus")),onBlur:n[2]||(n[2]=()=>e.emit("blur"))}),null,16,["modelValue","label","color","disabled","density"])}const ci=q(_m,[["render",ym]]),si="https://paiol.idz.one/geo",km=7,Sm=10,wm=13,ui=new Map;async function di(e){const n=ui.get(e);if(n)return n;try{const r=await fetch(e);if(!r.ok)return null;const i=await r.json();return ui.set(e,i),i}catch{return null}}function Im(){return{color:"#1565C0",weight:1.5,fillColor:"#42A5F5",fillOpacity:.05,dashArray:"4 4"}}function zm(){return{color:"#78909C",weight:.8,fillColor:"#B0BEC5",fillOpacity:.03}}function Em(e){return e>=wm?"municipios_uhd":e>=Sm?"municipios_hd":"municipios"}function Nm(e,n){!n.estados&&!n.municipios||Dm(e,n)}async function Dm(e,n){const r=await di(`${si}/estados.geojson`);if(!r)return;const i=[],t=_e.geoJSON(r,{style:Im,onEachFeature:(o,a)=>{var u;const c=String(((u=o.properties)==null?void 0:u.codarea)??"");c&&i.push({codigo:c,bounds:a.getBounds()})}});n.estados&&t.addTo(e),n.municipios&&jm(e,i)}function jm(e,n){const r={municipios:_e.layerGroup(),municipios_hd:_e.layerGroup(),municipios_uhd:_e.layerGroup()},i={municipios:new Set,municipios_hd:new Set,municipios_uhd:new Set};let t=null;const o=()=>{const a=e.getZoom();if(a=-90&&e<=90&&n>=-180&&n<=180}function mi(e){return e.toFixed(6).replace(".",",")}function fi(e){if(typeof e=="number")return Number.isNaN(e)?null:e;const n=e.replace(",","."),r=Number.parseFloat(n);return Number.isNaN(r)?null:r}async function pi(){try{return await Cm()}catch{return await Pm()}}function Cm(){return new Promise((e,n)=>{if(!navigator.geolocation)return n(new Error("Geolocation indisponível"));navigator.geolocation.getCurrentPosition(r=>e({latitude:r.coords.latitude,longitude:r.coords.longitude}),r=>n(r),{enableHighAccuracy:!0,timeout:1e4})})}async function Pm(){const e=await fetch("https://ipapi.co/json/");if(!e.ok)throw new Error(`GeoIP falhou: ${e.status}`);const n=await e.json();return{latitude:n.latitude,longitude:n.longitude}}function Am({value:e,opcoes:n,emit:r,mapaRef:i}){const t=l.ref(!1);let o=null,a=null;const c=l.computed(()=>{var h;return((h=n())==null?void 0:h.alturaMapa)??Tm}),u=l.computed(()=>{var h;return((h=n())==null?void 0:h.zoom)??xm}),s=l.computed(()=>{var h;return!!((h=n())!=null&&h.apenasLeitura)}),m=l.computed(()=>e()!=null),d=l.computed(()=>{const h=e();return h?mi(h.latitude):""}),f=l.computed(()=>{const h=e();return h?mi(h.longitude):""});function p(h,$){if(!Um(h,$))return;const S={formato:"decimal",datum:"EPSG:4326",latitude:Number.parseFloat(h.toFixed(6)),longitude:Number.parseFloat($.toFixed(6))};r("update:value",S),r("input",S),r("change",S)}function v(){r("update:value",null),r("input",null),r("change",null),_()}function _(){a&&o&&(o.removeLayer(a),a=null)}function O(h,$){o&&(a=_e.marker([h,$],{draggable:!s.value}).addTo(o),a.on("dragend",()=>{if(!a)return;const S=a.getLatLng();p(S.lat,S.lng)}),o.setView([h,$],o.getZoom()))}function N(h){var S;const $=fi(h);$!==null&&p($,((S=e())==null?void 0:S.longitude)??At.longitude)}function w(h){var S;const $=fi(h);$!==null&&p(((S=e())==null?void 0:S.latitude)??At.latitude,$)}function P(h,$){if(!o)return;if(!a){O(h,$);return}const S=a.getLatLng();S.lat===h&&S.lng===$||(a.setLatLng([h,$]),o.setView([h,$],o.getZoom()))}async function T(){t.value=!0;try{const h=await pi();p(h.latitude,h.longitude)}finally{t.value=!1}}async function U(){var E;if(!i.value)return;const h=e(),$=h!=null;let S,M,I=u.value;if($)S=h.latitude,M=h.longitude,I=Math.max(I,13);else try{const z=await pi();S=z.latitude,M=z.longitude,I=13}catch{S=At.latitude,M=At.longitude}o=_e.map(i.value).setView([S,M],I);const C=_e.tileLayer("https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png",{attribution:"© OpenStreetMap",maxZoom:19}),ne=_e.tileLayer("https://server.arcgisonline.com/ArcGIS/rest/services/World_Imagery/MapServer/tile/{z}/{y}/{x}",{attribution:"© Esri",maxZoom:19});C.addTo(o),_e.control.layers({Mapa:C,Satélite:ne}).addTo(o),$&&O(h.latitude,h.longitude),o.on("click",z=>{s.value||p(z.latlng.lat,z.latlng.lng)});const de=(E=n())==null?void 0:E.camadas;de&&Nm(o,de)}return l.watch(e,h=>{if(!h){_();return}P(h.latitude,h.longitude)},{deep:!0}),l.onMounted(()=>{if(U(),i.value){const h=new ResizeObserver(()=>o==null?void 0:o.invalidateSize());h.observe(i.value),l.onBeforeUnmount(()=>h.disconnect())}}),l.onBeforeUnmount(()=>{o&&(o.remove(),o=null,a=null)}),{alturaEfetiva:c,geolocalizando:t,possuiValor:m,latDisplay:d,lngDisplay:f,onLatChange:N,onLngChange:w,usarMinhaLocalizacao:T,limpar:v}}const Vm=l.defineComponent({name:"EliEntradaCoordenadas",inheritAttrs:!1,props:{value:{type:Object,default:null},opcoes:{type:Object,required:!0}},emits:{"update:value":e=>!0,input:e=>!0,change:e=>!0,focus:()=>!0,blur:()=>!0},setup(e,{attrs:n,emit:r}){const i=l.ref(null),t=Am({value:()=>e.value,opcoes:()=>e.opcoes,emit:r,mapaRef:i});return{attrs:n,mapaRef:i,...t}}}),Bm={class:"eli-coordenadas"},Zm={key:0,class:"v-label",style:{"margin-bottom":"4px"}},Mm={ref:"mapaRef",style:{width:"100%",height:"100%"}},Fm={class:"eli-coordenadas__campos"};function Lm(e,n,r,i,t,o){var a,c,u,s,m;return l.openBlock(),l.createElementBlock("div",Bm,[(a=e.opcoes)!=null&&a.rotulo?(l.openBlock(),l.createElementBlock("div",Zm,l.toDisplayString(e.opcoes.rotulo),1)):l.createCommentVNode("",!0),l.createElementVNode("div",{class:"eli-coordenadas__mapa-container",style:l.normalizeStyle({height:`${e.alturaEfetiva}px`})},[l.createElementVNode("div",Mm,null,512)],4),l.createElementVNode("div",Fm,[l.createVNode(Ct.VTextField,l.mergeProps({"model-value":e.latDisplay,label:"Latitude",type:"text",inputmode:"decimal",readonly:!!((c=e.opcoes)!=null&&c.apenasLeitura),density:"comfortable",variant:"outlined",class:"eli-coordenadas__campo","hide-details":""},e.attrs,{"onUpdate:modelValue":e.onLatChange}),null,16,["model-value","readonly","onUpdate:modelValue"]),l.createVNode(Ct.VTextField,l.mergeProps({"model-value":e.lngDisplay,label:"Longitude",type:"text",inputmode:"decimal",readonly:!!((u=e.opcoes)!=null&&u.apenasLeitura),density:"comfortable",variant:"outlined",class:"eli-coordenadas__campo","hide-details":""},e.attrs,{"onUpdate:modelValue":e.onLngChange}),null,16,["model-value","readonly","onUpdate:modelValue"]),l.createVNode(Rn.VBtn,{icon:"",variant:"tonal",color:"primary",size:"small",title:"Usar minha localização",loading:e.geolocalizando,disabled:!!((s=e.opcoes)!=null&&s.apenasLeitura),onClick:e.usarMinhaLocalizacao},{default:l.withCtx(()=>[l.createVNode(oi.VIcon,null,{default:l.withCtx(()=>[...n[0]||(n[0]=[l.createTextVNode("mdi-crosshairs-gps",-1)])]),_:1})]),_:1},8,["loading","disabled","onClick"]),e.possuiValor&&!((m=e.opcoes)!=null&&m.apenasLeitura)?(l.openBlock(),l.createBlock(Rn.VBtn,{key:0,icon:"",variant:"tonal",color:"error",size:"small",title:"Limpar localização",onClick:e.limpar},{default:l.withCtx(()=>[l.createVNode(oi.VIcon,null,{default:l.withCtx(()=>[...n[1]||(n[1]=[l.createTextVNode("mdi-close",-1)])]),_:1})]),_:1},8,["onClick"])):l.createCommentVNode("",!0)])])}const gi=q(Vm,[["render",Lm]]);function vi(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Vt={exports:{}},Rm=Vt.exports,hi;function $i(){return hi||(hi=1,(function(e,n){(function(r,i){e.exports=i()})(Rm,(function(){var r=1e3,i=6e4,t=36e5,o="millisecond",a="second",c="minute",u="hour",s="day",m="week",d="month",f="quarter",p="year",v="date",_="Invalid Date",O=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,N=/\[([^\]]+)]|YYYY|YY|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,w={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(E){var z=["th","st","nd","rd"],y=E%100;return"["+E+(z[(y-20)%10]||z[y]||z[0])+"]"}},P=function(E,z,y){var D=String(E);return!D||D.length>=z?E:""+Array(z+1-D.length).join(y)+E},T={s:P,z:function(E){var z=-E.utcOffset(),y=Math.abs(z),D=Math.floor(y/60),j=y%60;return(z<=0?"+":"-")+P(D,2,"0")+":"+P(j,2,"0")},m:function E(z,y){if(z.date()1)return E(Z[0])}else{var G=z.name;h[G]=z,j=G}return!D&&j&&(U=j),j||!D&&U},I=function(E,z){if(S(E))return E.clone();var y=typeof z=="object"?z:{};return y.date=E,y.args=arguments,new ne(y)},C=T;C.l=M,C.i=S,C.w=function(E,z){return I(E,{locale:z.$L,utc:z.$u,x:z.$x,$offset:z.$offset})};var ne=(function(){function E(y){this.$L=M(y.locale,null,!0),this.parse(y),this.$x=this.$x||y.x||{},this[$]=!0}var z=E.prototype;return z.parse=function(y){this.$d=(function(D){var j=D.date,A=D.utc;if(j===null)return new Date(NaN);if(C.u(j))return new Date;if(j instanceof Date)return new Date(j);if(typeof j=="string"&&!/Z$/i.test(j)){var Z=j.match(O);if(Z){var G=Z[2]-1||0,H=(Z[7]||"0").substring(0,3);return A?new Date(Date.UTC(Z[1],G,Z[3]||1,Z[4]||0,Z[5]||0,Z[6]||0,H)):new Date(Z[1],G,Z[3]||1,Z[4]||0,Z[5]||0,Z[6]||0,H)}}return new Date(j)})(y),this.init()},z.init=function(){var y=this.$d;this.$y=y.getFullYear(),this.$M=y.getMonth(),this.$D=y.getDate(),this.$W=y.getDay(),this.$H=y.getHours(),this.$m=y.getMinutes(),this.$s=y.getSeconds(),this.$ms=y.getMilliseconds()},z.$utils=function(){return C},z.isValid=function(){return this.$d.toString()!==_},z.isSame=function(y,D){var j=I(y);return this.startOf(D)<=j&&j<=this.endOf(D)},z.isAfter=function(y,D){return I(y)=0;d--){const f=t.subtract(d+1,"day");s.push({dia:f.date(),data:f,atual:!1,hoje:!1,selecionado:!1,desabilitado:!0})}for(let d=t;d.isBefore(o)||d.isSame(o,"day");d=d.add(1,"day"))s.push({dia:d.date(),data:d,atual:!0,hoje:d.isSame(a,"day"),selecionado:n!==null&&d.isSame(n,"day"),desabilitado:c!==null&&d.isBefore(c)||u!==null&&d.isAfter(u)});let m=1;for(;s.length<42;){const d=o.add(m++,"day");s.push({dia:d.date(),data:d,atual:!1,hoje:!1,selecionado:!1,desabilitado:!0})}return s}function Wm(e,n){return e?n==="data"?oe(e).format("DD/MM/YYYY"):oe(e).format("DD/MM/YYYY HH:mm"):""}oe.locale("pt-br");const _i=Array.from({length:12},(e,n)=>{const r=oe().month(n).format("MMMM");return r.charAt(0).toUpperCase()+r.slice(1)}),Xm=["Dom","Seg","Ter","Qua","Qui","Sex","Sáb"];let Hm=0;function Ym(e,n){const r=++Hm,i=l.ref(!1),t=l.ref({}),o=l.ref(oe()),a=l.ref(null),c=l.ref("00"),u=l.ref("00"),s=l.computed(()=>e.opcoes??{rotulo:e.rotulo??"Data",placeholder:e.placeholder??"",modo:e.modo??"dataHora",limpavel:e.limpavel,erro:e.erro,mensagensErro:e.mensagensErro,dica:e.dica,dicaPersistente:e.dicaPersistente,densidade:e.densidade,variante:e.variante,min:e.min,max:e.max}),m=l.computed(()=>s.value.modo??"dataHora"),d=l.computed(()=>!!e.desabilitado),f=l.computed(()=>e.value!==void 0?e.value??null:e.modelValue??null),p=l.computed(()=>f.value),v=l.computed(()=>{const y=s.value.erro?s.value.mensagensErro:null;return y?Array.isArray(y)?y:[y]:[]}),_=l.computed(()=>Wm(p.value,m.value)),O=l.computed(()=>_i[o.value.month()]),N=l.computed(()=>o.value.year()),w=l.computed(()=>o.value.month()),P=l.computed(()=>{const y=o.value.year(),D=s.value.min?oe(s.value.min).year():oe().year()-80,j=s.value.max?oe(s.value.max).year():oe().year()+20,A=[];for(let Z=Math.min(D,y);Z<=Math.max(j,y);Z++)A.push(Z);return A}),T=l.computed(()=>Km(o.value,a.value,s.value.min,s.value.max));l.watch(f,y=>{if(y){const D=oe(y);a.value=D.startOf("day"),o.value=D.startOf("month"),c.value=D.format("HH"),u.value=D.format("mm")}else a.value=null,c.value="00",u.value="00"},{immediate:!0});function U(){const y=document.getElementById(`eli-dh-campo-${r}`);if(!y)return;const D=y.getBoundingClientRect(),j=D.bottom+window.scrollY+6;let A=D.left+window.scrollX;A+316>window.innerWidth+window.scrollX-8&&(A=D.right+window.scrollX-316),t.value={position:"absolute",top:`${j}px`,left:`${A}px`}}function h(){d.value||(i.value=!i.value,i.value&&(n("foco"),n("focus"),l.nextTick(U)))}function $(){i.value&&(i.value=!1,n("desfoco"),n("blur"))}function S(y){o.value=o.value.add(y,"month")}function M(y){o.value=o.value.month(y)}function I(y){o.value=o.value.year(y)}function C(y){y.desabilitado||(a.value=y.data.startOf("day"),m.value==="data"&&de())}function ne(y){["update:value","input","change","update:modelValue","alterar"].forEach(D=>{n(D,y)})}function de(){if(!a.value)return;const y=Number.parseInt(c.value,10)||0,D=Number.parseInt(u.value,10)||0,j=m.value==="data"?a.value.startOf("day"):a.value.hour(y).minute(D).second(0);ne(j.format()),$()}function E(){ne(null)}function z(y){var j,A;if(!i.value)return;const D=y.target;!((j=document.getElementById(`eli-dh-campo-${r}`))!=null&&j.contains(D))&&!((A=document.getElementById(`eli-dh-popover-${r}`))!=null&&A.contains(D))&&$()}return l.onMounted(()=>document.addEventListener("click",z,!0)),l.onBeforeUnmount(()=>document.removeEventListener("click",z,!0)),{uid:r,aberto:i,estiloPopover:t,referencia:o,diaSelecionado:a,horaTemp:c,minutoTemp:u,opcoesEfetivas:s,modoEfetivo:m,desabilitadoEfetivo:d,valor:p,valorFormatado:_,mensagensVisiveis:v,nomeMesAtual:O,anoAtual:N,mesAtual:w,listaAnos:P,mudarMes:M,mudarAno:I,celulas:T,abrirSeHabilitado:h,fechar:$,navegarMes:S,selecionarDia:C,confirmar:de,limpar:E}}const Qm=l.defineComponent({name:"EliDhCalendario",props:{uid:{type:Number,required:!0},aberto:{type:Boolean,required:!0},estiloPopover:{type:Object,required:!0},rotulo:{type:String,required:!0},modo:{type:String,required:!0},nomeMesAtual:{type:String,required:!0},anoAtual:{type:Number,required:!0},mesAtual:{type:Number,required:!0},listaAnos:{type:Array,required:!0},celulas:{type:Array,required:!0},diaSelecionado:{type:Object,default:null},horaTemp:{type:String,required:!0},minutoTemp:{type:String,required:!0}},emits:{fechar:()=>!0,confirmar:()=>!0,navegarMes:e=>!0,selecionarDia:e=>!0,mudarMes:e=>!0,mudarAno:e=>!0,"update:horaTemp":e=>!0,"update:minutoTemp":e=>!0},setup(e,{emit:n}){function r(m){const d=Number.parseInt(m.target.value,10);n("mudarMes",d)}function i(m){const d=Number.parseInt(m.target.value,10);n("mudarAno",d)}function t(m){const d=m.target.value.replace(/\D/g,"").slice(0,2);n("update:horaTemp",d)}function o(){const m=Number.parseInt(e.horaTemp,10);n("update:horaTemp",Number.isNaN(m)?"00":String(Math.min(23,Math.max(0,m))).padStart(2,"0"))}function a(m){m.key==="ArrowUp"?(m.preventDefault(),n("update:horaTemp",String(((Number.parseInt(e.horaTemp,10)||0)+1)%24).padStart(2,"0"))):m.key==="ArrowDown"&&(m.preventDefault(),n("update:horaTemp",String(((Number.parseInt(e.horaTemp,10)||0)-1+24)%24).padStart(2,"0")))}function c(m){const d=m.target.value.replace(/\D/g,"").slice(0,2);n("update:minutoTemp",d)}function u(){const m=Number.parseInt(e.minutoTemp,10);n("update:minutoTemp",Number.isNaN(m)?"00":String(Math.min(59,Math.max(0,m))).padStart(2,"0"))}function s(m){m.key==="ArrowUp"?(m.preventDefault(),n("update:minutoTemp",String(((Number.parseInt(e.minutoTemp,10)||0)+1)%60).padStart(2,"0"))):m.key==="ArrowDown"&&(m.preventDefault(),n("update:minutoTemp",String(((Number.parseInt(e.minutoTemp,10)||0)-1+60)%60).padStart(2,"0")))}return{diasSemana:Xm,MESES:_i,onMesSelectChange:r,onAnoSelectChange:i,onHoraInput:t,onHoraBlur:o,onHoraKeydown:a,onMinutoInput:c,onMinutoBlur:u,onMinutoKeydown:s}}}),ef=["id","aria-label"],tf={class:"eli-dh__cal-header"},nf={class:"eli-dh__cal-titulo"},rf={class:"eli-dh__seletores"},of=["value"],af=["value"],lf=["value"],cf=["value"],sf={class:"eli-dh__cal-body"},uf={class:"eli-dh__cal-semana",role:"row"},df={class:"eli-dh__cal-grade",role:"grid"},mf=["disabled","tabindex","aria-selected","aria-label","onClick"],ff={key:0,class:"eli-dh__hora-secao"},pf={class:"eli-dh__hora-campos"},gf=["id","value","aria-label"],vf=["id","value","aria-label"],hf={class:"eli-dh__rodape"},$f=["disabled"];function bf(e,n,r,i,t,o){return l.openBlock(),l.createBlock(l.Teleport,{to:"body"},[l.createVNode(l.Transition,{name:"eli-dh-pop"},{default:l.withCtx(()=>[e.aberto?(l.openBlock(),l.createElementBlock("div",{key:0,id:`eli-dh-popover-${e.uid}`,class:"eli-dh__popover",style:l.normalizeStyle(e.estiloPopover),role:"dialog","aria-label":`Selecionar ${e.rotulo}`,onKeydown:n[12]||(n[12]=l.withKeys(a=>e.$emit("fechar"),["escape"])),onMousedown:n[13]||(n[13]=l.withModifiers(()=>{},["stop"]))},[l.createElementVNode("div",tf,[l.createElementVNode("button",{class:"eli-dh__cal-nav",type:"button",title:"Mês anterior","aria-label":"Mês anterior",onClick:n[0]||(n[0]=a=>e.$emit("navegarMes",-1))},[...n[14]||(n[14]=[l.createElementVNode("svg",{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2.5","stroke-linecap":"round","stroke-linejoin":"round","aria-hidden":"true"},[l.createElementVNode("polyline",{points:"15 18 9 12 15 6"})],-1)])]),l.createElementVNode("div",nf,[l.createElementVNode("div",rf,[l.createElementVNode("select",{value:e.mesAtual,class:"eli-dh__select","aria-label":"Selecionar mês",onChange:n[1]||(n[1]=(...a)=>e.onMesSelectChange&&e.onMesSelectChange(...a))},[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(e.MESES,(a,c)=>(l.openBlock(),l.createElementBlock("option",{key:c,value:c},l.toDisplayString(a),9,af))),128))],40,of),l.createElementVNode("select",{value:e.anoAtual,class:"eli-dh__select","aria-label":"Selecionar ano",onChange:n[2]||(n[2]=(...a)=>e.onAnoSelectChange&&e.onAnoSelectChange(...a))},[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(e.listaAnos,a=>(l.openBlock(),l.createElementBlock("option",{key:a,value:a},l.toDisplayString(a),9,cf))),128))],40,lf)])]),l.createElementVNode("button",{class:"eli-dh__cal-nav",type:"button",title:"Próximo mês","aria-label":"Próximo mês",onClick:n[3]||(n[3]=a=>e.$emit("navegarMes",1))},[...n[15]||(n[15]=[l.createElementVNode("svg",{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2.5","stroke-linecap":"round","stroke-linejoin":"round","aria-hidden":"true"},[l.createElementVNode("polyline",{points:"9 18 15 12 9 6"})],-1)])])]),l.createElementVNode("div",sf,[l.createElementVNode("div",uf,[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(e.diasSemana,a=>(l.openBlock(),l.createElementBlock("div",{key:a,class:"eli-dh__cal-dia-sem",role:"columnheader"},l.toDisplayString(a),1))),128))]),l.createElementVNode("div",df,[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(e.celulas,(a,c)=>(l.openBlock(),l.createElementBlock("button",{key:c,class:l.normalizeClass(["eli-dh__cal-dia",{"eli-dh__cal-dia--fora":!a.atual,"eli-dh__cal-dia--hoje":a.hoje,"eli-dh__cal-dia--selecionado":a.selecionado,"eli-dh__cal-dia--desabilitado":a.desabilitado}]),type:"button",disabled:a.desabilitado,tabindex:a.selecionado?0:-1,"aria-selected":a.selecionado,"aria-label":`${a.dia} de ${e.nomeMesAtual} de ${e.anoAtual}`,onClick:u=>e.$emit("selecionarDia",a)},l.toDisplayString(a.dia),11,mf))),128))])]),e.modo==="dataHora"?(l.openBlock(),l.createElementBlock("div",ff,[n[17]||(n[17]=l.createElementVNode("svg",{class:"eli-dh__hora-icone",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round","aria-hidden":"true"},[l.createElementVNode("circle",{cx:"12",cy:"12",r:"10"}),l.createElementVNode("polyline",{points:"12 6 12 12 16 14"})],-1)),l.createElementVNode("div",pf,[l.createElementVNode("input",{id:`eli-dh-hora-${e.uid}`,value:e.horaTemp,class:"eli-dh__hora-input",type:"text",inputmode:"numeric",maxlength:"2",placeholder:"HH","aria-label":`Hora de ${e.rotulo}`,onInput:n[4]||(n[4]=(...a)=>e.onHoraInput&&e.onHoraInput(...a)),onBlur:n[5]||(n[5]=(...a)=>e.onHoraBlur&&e.onHoraBlur(...a)),onKeydown:n[6]||(n[6]=(...a)=>e.onHoraKeydown&&e.onHoraKeydown(...a))},null,40,gf),n[16]||(n[16]=l.createElementVNode("span",{class:"eli-dh__hora-sep","aria-hidden":"true"},":",-1)),l.createElementVNode("input",{id:`eli-dh-min-${e.uid}`,value:e.minutoTemp,class:"eli-dh__hora-input",type:"text",inputmode:"numeric",maxlength:"2",placeholder:"MM","aria-label":`Minuto de ${e.rotulo}`,onInput:n[7]||(n[7]=(...a)=>e.onMinutoInput&&e.onMinutoInput(...a)),onBlur:n[8]||(n[8]=(...a)=>e.onMinutoBlur&&e.onMinutoBlur(...a)),onKeydown:n[9]||(n[9]=(...a)=>e.onMinutoKeydown&&e.onMinutoKeydown(...a))},null,40,vf)])])):l.createCommentVNode("",!0),l.createElementVNode("div",hf,[l.createElementVNode("button",{class:"eli-dh__btn eli-dh__btn--cancelar",type:"button",onClick:n[10]||(n[10]=a=>e.$emit("fechar"))},"Cancelar"),l.createElementVNode("button",{class:"eli-dh__btn eli-dh__btn--confirmar",type:"button",disabled:!e.diaSelecionado,onClick:n[11]||(n[11]=a=>e.$emit("confirmar"))},"✓ Confirmar",8,$f)])],44,ef)):l.createCommentVNode("",!0)]),_:1})])}const _f=q(Qm,[["render",bf]]),yf=l.defineComponent({name:"EliEntradaDataHora",components:{Calendario:_f},inheritAttrs:!1,props:{value:{type:String,default:void 0},opcoes:{type:Object,required:!1,default:void 0},modelValue:{type:String,default:null},modo:{type:String,default:void 0},rotulo:{type:String,default:void 0},placeholder:{type:String,default:void 0},desabilitado:{type:Boolean,default:void 0},limpavel:{type:Boolean,default:void 0},erro:{type:Boolean,default:void 0},mensagensErro:{type:[String,Array],default:void 0},dica:{type:String,default:void 0},dicaPersistente:{type:Boolean,default:void 0},densidade:{type:String,default:void 0},variante:{type:String,default:void 0},min:{type:String,default:void 0},max:{type:String,default:void 0}},emits:{"update:value":e=>!0,input:e=>!0,change:e=>!0,"update:modelValue":e=>!0,alterar:e=>!0,foco:()=>!0,desfoco:()=>!0,focus:()=>!0,blur:()=>!0},setup(e,{emit:n}){return Ym(e,(i,t)=>n(i,t))}}),kf={class:"eli-dh"},Sf=["id","tabindex","aria-expanded","aria-label"],wf={class:"eli-dh__conteudo"},If={class:"eli-dh__rotulo"},zf=["aria-label"],Ef={key:0,class:"eli-dh__mensagem eli-dh__mensagem--erro",role:"alert"},Nf={key:1,class:"eli-dh__mensagem eli-dh__mensagem--dica"};function Df(e,n,r,i,t,o){const a=l.resolveComponent("Calendario");return l.openBlock(),l.createElementBlock("div",kf,[l.createElementVNode("div",{id:`eli-dh-campo-${e.uid}`,class:l.normalizeClass(["eli-dh__campo",{"eli-dh__campo--focado":e.aberto,"eli-dh__campo--erro":!!e.opcoesEfetivas.erro,"eli-dh__campo--desabilitado":e.desabilitadoEfetivo}]),role:"button",tabindex:e.desabilitadoEfetivo?-1:0,"aria-haspopup":!0,"aria-expanded":e.aberto,"aria-label":e.opcoesEfetivas.rotulo,onClick:n[1]||(n[1]=(...c)=>e.abrirSeHabilitado&&e.abrirSeHabilitado(...c)),onKeydown:[n[2]||(n[2]=l.withKeys(l.withModifiers((...c)=>e.abrirSeHabilitado&&e.abrirSeHabilitado(...c),["prevent"]),["enter"])),n[3]||(n[3]=l.withKeys(l.withModifiers((...c)=>e.abrirSeHabilitado&&e.abrirSeHabilitado(...c),["prevent"]),["space"])),n[4]||(n[4]=l.withKeys((...c)=>e.fechar&&e.fechar(...c),["escape"]))]},[n[8]||(n[8]=l.createStaticVNode('',1)),l.createElementVNode("div",wf,[l.createElementVNode("span",If,l.toDisplayString(e.opcoesEfetivas.rotulo),1),l.createElementVNode("span",{class:l.normalizeClass(["eli-dh__valor",{"eli-dh__valor--vazio":!e.valorFormatado}])},l.toDisplayString(e.valorFormatado||e.opcoesEfetivas.placeholder||"Selecione..."),3)]),e.opcoesEfetivas.limpavel&&e.valor&&!e.desabilitadoEfetivo?(l.openBlock(),l.createElementBlock("button",{key:0,class:"eli-dh__limpar",type:"button",title:"Limpar","aria-label":`Limpar ${e.opcoesEfetivas.rotulo}`,onClick:n[0]||(n[0]=l.withModifiers((...c)=>e.limpar&&e.limpar(...c),["stop"]))},[...n[7]||(n[7]=[l.createElementVNode("svg",{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2.5","stroke-linecap":"round",width:"14",height:"14","aria-hidden":"true"},[l.createElementVNode("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),l.createElementVNode("line",{x1:"6",y1:"6",x2:"18",y2:"18"})],-1)])],8,zf)):l.createCommentVNode("",!0)],42,Sf),e.mensagensVisiveis.length?(l.openBlock(),l.createElementBlock("div",Ef,l.toDisplayString(e.mensagensVisiveis[0]),1)):e.opcoesEfetivas.dica&&(e.opcoesEfetivas.dicaPersistente||e.aberto)?(l.openBlock(),l.createElementBlock("div",Nf,l.toDisplayString(e.opcoesEfetivas.dica),1)):l.createCommentVNode("",!0),l.createVNode(a,{uid:e.uid,aberto:e.aberto,"estilo-popover":e.estiloPopover,rotulo:e.opcoesEfetivas.rotulo,modo:e.modoEfetivo,"nome-mes-atual":e.nomeMesAtual,"ano-atual":e.anoAtual,"mes-atual":e.mesAtual,"lista-anos":e.listaAnos,celulas:e.celulas,"dia-selecionado":e.diaSelecionado,"hora-temp":e.horaTemp,"minuto-temp":e.minutoTemp,onFechar:e.fechar,onConfirmar:e.confirmar,onNavegarMes:e.navegarMes,onSelecionarDia:e.selecionarDia,onMudarMes:e.mudarMes,onMudarAno:e.mudarAno,"onUpdate:horaTemp":n[5]||(n[5]=c=>e.horaTemp=c),"onUpdate:minutoTemp":n[6]||(n[6]=c=>e.minutoTemp=c)},null,8,["uid","aberto","estilo-popover","rotulo","modo","nome-mes-atual","ano-atual","mes-atual","lista-anos","celulas","dia-selecionado","hora-temp","minuto-temp","onFechar","onConfirmar","onNavegarMes","onSelecionarDia","onMudarMes","onMudarAno"])])}const qn=q(yf,[["render",Df]]);function jf(e){if(!Number.isFinite(e)||e<=0||e>=1)return 0;const n=e.toString();if(n.includes("e-")){const[,t]=n.split("e-"),o=Number(t);return Number.isFinite(o)?o:0}const r=n.indexOf(".");return r===-1?0:n.slice(r+1).replace(/0+$/,"").length}function Of(e){const n=(e??"").trim().replace(/,/g,".");if(!n)return null;const r=Number(n);return Number.isNaN(r)?null:r}function Gn(e,n){return e==null?"":n===null?String(e).replace(/\./g,","):Number(e).toFixed(Math.max(0,n)).replace(/\./g,",")}function yi(e){return(e??"").replace(/\D+/g,"")}function xf(e){const n=(e??"").replace(/[^0-9.,]+/g,""),r=n.match(/[.,]/);if(!r)return n;const i=r[0],t=n.indexOf(i),o=n.slice(0,t).replace(/[.,]/g,""),a=n.slice(t+1).replace(/[.,]/g,"");return`${o.length?o:"0"}${i}${a}`}function Tf(e,n){if(n===null)return e;if(n<=0)return e.replace(/[.,]/g,"");const r=e.match(/[.,]/);if(!r)return e;const i=r[0],t=e.indexOf(i),o=e.slice(0,t),a=e.slice(t+1);return`${o}${i}${a.slice(0,n)}`}function Uf(e){const n=e.match(/^(\d+)[.,]$/);if(!n)return null;const r=Number(n[1]);return Number.isNaN(r)?null:r}const Cf=l.defineComponent({name:"EliEntradaNumero",inheritAttrs:!1,props:{value:{type:[Number,null],default:void 0},opcoes:{type:Object,required:!0}},emits:{"update:value":e=>!0,input:e=>!0,change:e=>!0,focus:()=>!0,blur:()=>!0},setup(e,{attrs:n,emit:r}){const i=l.computed(()=>{var m;const s=(m=e.opcoes)==null?void 0:m.precisao;return s==null?null:jf(s)}),t=l.computed(()=>i.value===0),o=l.computed(()=>{const s=i.value;return s!==null&&s>0}),a=l.ref(""),c=l.ref(void 0);l.watch(()=>e.value,s=>{s!==c.value&&(a.value=Gn(s,i.value),c.value=s)},{immediate:!0});function u(s){if(o.value){const p=i.value??0,v=yi(s),_=v?Number(v):0,O=10**p,N=v?_/O:null,w=N===null?null:N;c.value=w,r("update:value",w),r("input",w),r("change",w),a.value=Gn(w,p);return}const m=t.value?yi(s):xf(s),d=t.value?m:Tf(m,i.value);let f=null;if(d){const v=(t.value?null:Uf(d))??Of(d);f=v===null?null:v}c.value=f,r("update:value",f),r("input",f),r("change",f),i.value===null&&d?a.value=d.replace(/\./g,","):a.value=Gn(f,i.value)}return{attrs:n,emit:r,displayValue:a,isInteiro:t,onUpdateModelValue:u}}}),Pf={class:"eli-entrada__prefixo"},Af={class:"eli-entrada__sufixo"};function Vf(e,n,r,i,t,o){var a,c,u,s,m;return l.openBlock(),l.createBlock(Ct.VTextField,l.mergeProps({"model-value":e.displayValue,label:(a=e.opcoes)==null?void 0:a.rotulo,placeholder:(c=e.opcoes)==null?void 0:c.placeholder,type:e.isInteiro?"number":"text",inputmode:e.isInteiro?"numeric":"decimal",pattern:e.isInteiro?"[0-9]*":"[0-9.,]*",readonly:!!((u=e.opcoes)!=null&&u.apenasLeitura)},e.attrs,{"onUpdate:modelValue":e.onUpdateModelValue,onFocus:n[0]||(n[0]=()=>e.emit("focus")),onBlur:n[1]||(n[1]=()=>e.emit("blur"))}),l.createSlots({_:2},[(s=e.opcoes)!=null&&s.prefixo?{name:"prepend-inner",fn:l.withCtx(()=>[l.createElementVNode("span",Pf,l.toDisplayString(e.opcoes.prefixo),1)]),key:"0"}:void 0,(m=e.opcoes)!=null&&m.sufixo?{name:"append-inner",fn:l.withCtx(()=>[l.createElementVNode("span",Af,l.toDisplayString(e.opcoes.sufixo),1)]),key:"1"}:void 0]),1040,["model-value","label","placeholder","type","inputmode","pattern","readonly","onUpdate:modelValue"])}const Kn=q(Cf,[["render",Vf]]),Bf=l.defineComponent({name:"EliEntradaParagrafo",components:{VTextarea:et.VTextarea},inheritAttrs:!1,props:{value:{type:[String,null],default:void 0},opcoes:{type:Object,required:!0}},emits:{"update:value":e=>!0,input:e=>!0,change:e=>!0,focus:()=>!0,blur:()=>!0},setup(e,{attrs:n,emit:r}){const i=l.computed({get:()=>e.value,set:t=>{r("update:value",t),r("input",t),r("change",t)}});return{attrs:n,emit:r,localValue:i}}});function Zf(e,n,r,i,t,o){var a,c,u,s,m,d,f,p,v,_,O,N,w;return l.openBlock(),l.createBlock(sm.VTextarea,l.mergeProps({modelValue:e.localValue,"onUpdate:modelValue":n[0]||(n[0]=P=>e.localValue=P),label:(a=e.opcoes)==null?void 0:a.rotulo,placeholder:(c=e.opcoes)==null?void 0:c.placeholder,rows:((u=e.opcoes)==null?void 0:u.linhas)??4,counter:(s=e.opcoes)==null?void 0:s.limiteCaracteres,maxlength:(m=e.opcoes)==null?void 0:m.limiteCaracteres,clearable:!!((d=e.opcoes)!=null&&d.limpavel),error:!!((f=e.opcoes)!=null&&f.erro),"error-messages":(p=e.opcoes)==null?void 0:p.mensagensErro,hint:(v=e.opcoes)==null?void 0:v.dica,"persistent-hint":!!((_=e.opcoes)!=null&&_.dicaPersistente),density:((O=e.opcoes)==null?void 0:O.densidade)??"comfortable",variant:((N=e.opcoes)==null?void 0:N.variante)??"outlined",readonly:!!((w=e.opcoes)!=null&&w.apenasLeitura),"auto-grow":""},e.attrs,{onFocus:n[1]||(n[1]=()=>e.emit("focus")),onBlur:n[2]||(n[2]=()=>e.emit("blur"))}),null,16,["modelValue","label","placeholder","rows","counter","maxlength","clearable","error","error-messages","hint","persistent-hint","density","variant","readonly"])}const Wn=q(Bf,[["render",Zf]]),Mf=l.defineComponent({name:"EliEntradaSelecao",components:{VSelect:et.VSelect},inheritAttrs:!1,props:{value:{type:[String,null],default:void 0},opcoes:{type:Object,required:!0}},emits:{"update:value":e=>!0,input:e=>!0,change:e=>!0,focus:()=>!0,blur:()=>!0},setup(e,{attrs:n,emit:r}){const i=l.ref([]),t=l.ref(!1),o=l.computed({get:()=>e.value,set:u=>{r("update:value",u),r("input",u),r("change",u)}});async function a(){t.value=!0;try{const u=await e.opcoes.itens(),s=Array.isArray(u)?u:[];i.value=[...s]}finally{t.value=!1}}l.watch(()=>e.opcoes.itens,()=>{a()}),l.onMounted(()=>{a()}),l.watch(i,u=>{console.debug("[EliEntradaSelecao] itens:",u)},{deep:!0});const c=l.computed(()=>{var s;const u=(s=e.opcoes)==null?void 0:s.desativado;if(!(!u||u.length===0))return m=>({disabled:u.includes(m.chave)})});return{attrs:n,emit:r,localValue:o,itens:i,carregando:t,itemProps:c}}});function Ff(e,n,r,i,t,o){var a,c,u,s,m,d,f,p,v,_;return l.openBlock(),l.createBlock(ii.VSelect,l.mergeProps({modelValue:e.localValue,"onUpdate:modelValue":n[0]||(n[0]=O=>e.localValue=O),label:(a=e.opcoes)==null?void 0:a.rotulo,placeholder:(c=e.opcoes)==null?void 0:c.placeholder,items:e.itens,"item-title":"rotulo","item-value":"chave","item-props":e.itemProps,loading:e.carregando,disabled:e.carregando,"menu-props":{maxHeight:320,zIndex:99999},clearable:!!((u=e.opcoes)!=null&&u.limpavel),error:!!((s=e.opcoes)!=null&&s.erro),"error-messages":(m=e.opcoes)==null?void 0:m.mensagensErro,hint:(d=e.opcoes)==null?void 0:d.dica,"persistent-hint":!!((f=e.opcoes)!=null&&f.dicaPersistente),density:((p=e.opcoes)==null?void 0:p.densidade)??"comfortable",variant:((v=e.opcoes)==null?void 0:v.variante)??"outlined",readonly:!!((_=e.opcoes)!=null&&_.apenasLeitura)},e.attrs,{onFocus:n[1]||(n[1]=()=>e.emit("focus")),onBlur:n[2]||(n[2]=()=>e.emit("blur"))}),null,16,["modelValue","label","placeholder","items","item-props","loading","disabled","clearable","error","error-messages","hint","persistent-hint","density","variant","readonly"])}const Xn=q(Mf,[["render",Ff]]),Lf=l.defineComponent({name:"EliEntradaSelecaoMultipla",components:{VSelect:et.VSelect},inheritAttrs:!1,props:{value:{type:[Array,null],default:()=>[]},opcoes:{type:Object,required:!0}},emits:{"update:value":e=>!0,input:e=>!0,change:e=>!0,focus:()=>!0,blur:()=>!0},setup(e,{attrs:n,emit:r}){const i=l.ref([]),t=l.ref(!1),o=l.computed({get:()=>e.value??[],set:u=>{const s=Array.isArray(u)?u:[];r("update:value",s),r("input",s),r("change",s)}});async function a(){t.value=!0;try{const u=await e.opcoes.itens();i.value=[...Array.isArray(u)?u:[]]}finally{t.value=!1}}l.watch(()=>e.opcoes.itens,()=>{a()}),l.onMounted(()=>{a()});const c=l.computed(()=>{var s;const u=(s=e.opcoes)==null?void 0:s.desativado;if(!(!u||u.length===0))return m=>({disabled:u.includes(m.chave)})});return{attrs:n,emit:r,localValue:o,itens:i,carregando:t,itemProps:c}}});function Rf(e,n,r,i,t,o){var a,c,u,s,m,d,f,p,v,_;return l.openBlock(),l.createBlock(ii.VSelect,l.mergeProps({modelValue:e.localValue,"onUpdate:modelValue":n[0]||(n[0]=O=>e.localValue=O),label:(a=e.opcoes)==null?void 0:a.rotulo,placeholder:(c=e.opcoes)==null?void 0:c.placeholder,items:e.itens,"item-title":"rotulo","item-value":"chave","item-props":e.itemProps,loading:e.carregando,disabled:e.carregando,"menu-props":{maxHeight:320,zIndex:99999},clearable:!!((u=e.opcoes)!=null&&u.limpavel),error:!!((s=e.opcoes)!=null&&s.erro),"error-messages":(m=e.opcoes)==null?void 0:m.mensagensErro,hint:(d=e.opcoes)==null?void 0:d.dica,"persistent-hint":!!((f=e.opcoes)!=null&&f.dicaPersistente),density:((p=e.opcoes)==null?void 0:p.densidade)??"comfortable",variant:((v=e.opcoes)==null?void 0:v.variante)??"outlined",multiple:"",chips:"","closable-chips":"",readonly:!!((_=e.opcoes)!=null&&_.apenasLeitura)},e.attrs,{onFocus:n[1]||(n[1]=()=>e.emit("focus")),onBlur:n[2]||(n[2]=()=>e.emit("blur"))}),null,16,["modelValue","label","placeholder","items","item-props","loading","disabled","clearable","error","error-messages","hint","persistent-hint","density","variant","readonly"])}const Hn=q(Lf,[["render",Rf]]);function Jf(e){return e.replace(/\D+/g,"")}function qf(e){const n=Jf(e);return n?n.replace(/^(\d{5})(\d)/,"$1-$2").slice(0,9):""}function Gf(e){return e.replace(/\D+/g,"")}function Kf(e){const n=Gf(e);return n.length<=11?n.replace(/(\d{3})(\d)/,"$1.$2").replace(/(\d{3})(\d)/,"$1.$2").replace(/(\d{3})(\d{1,2})$/,"$1-$2").slice(0,14):n.replace(/^(\d{2})(\d)/,"$1.$2").replace(/^(\d{2})\.(\d{3})(\d)/,"$1.$2.$3").replace(/\.(\d{3})(\d)/,".$1/$2").replace(/(\d{4})(\d)/,"$1-$2").slice(0,18)}function Wf(e){return e.replace(/\D+/g,"")}function Xf(e){const n=Wf(e);return n?n.length<=10?n.replace(/^(\d{2})(\d)/,"($1) $2").replace(/(\d{4})(\d)/,"$1-$2").slice(0,14):n.replace(/^(\d{2})(\d)/,"($1) $2").replace(/(\d{5})(\d)/,"$1-$2").slice(0,15):""}const Hf=l.defineComponent({name:"EliEntradaTexto",inheritAttrs:!1,props:{value:{type:[String,null],default:void 0},opcoes:{type:Object,required:!0}},emits:{"update:value":e=>!0,input:e=>!0,change:e=>!0,focus:()=>!0,blur:()=>!0},setup(e,{attrs:n,emit:r}){const i=l.computed(()=>{var s;return((s=e.opcoes)==null?void 0:s.formato)??"texto"}),t=l.computed({get:()=>e.value,set:s=>{r("update:value",s),r("input",s),r("change",s)}}),o=l.computed(()=>i.value==="email"?"email":i.value==="url"?"url":"text"),a=l.computed(()=>{if(i.value==="telefone")return"tel";if(i.value==="cpfCnpj"||i.value==="cep")return"numeric"});function c(s){switch(i.value){case"telefone":return Xf(s);case"cpfCnpj":return Kf(s);case"cep":return qf(s);default:return s}}function u(s){const m=s.target,d=c(m.value);m.value=d,t.value=d}return{attrs:n,emit:r,localValue:t,inputHtmlType:o,inputMode:a,onInput:u}}});function Yf(e,n,r,i,t,o){var a,c,u,s,m;return l.openBlock(),l.createBlock(Ct.VTextField,l.mergeProps({modelValue:e.localValue,"onUpdate:modelValue":n[0]||(n[0]=d=>e.localValue=d),type:e.inputHtmlType,inputmode:e.inputMode,label:(a=e.opcoes)==null?void 0:a.rotulo,placeholder:(c=e.opcoes)==null?void 0:c.placeholder,counter:(u=e.opcoes)==null?void 0:u.limiteCaracteres,maxlength:(s=e.opcoes)==null?void 0:s.limiteCaracteres,readonly:!!((m=e.opcoes)!=null&&m.apenasLeitura)},e.attrs,{onFocus:n[1]||(n[1]=()=>e.emit("focus")),onBlur:n[2]||(n[2]=()=>e.emit("blur")),onInput:e.onInput}),null,16,["modelValue","type","inputmode","label","placeholder","counter","maxlength","readonly","onInput"])}const Zt=q(Hf,[["render",Yf]]);/** * @license @lucide/vue v1.17.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. - */const _i=e=>e==="";/** + */const ki=e=>e==="";/** * @license @lucide/vue v1.17.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. - */const $f=(...e)=>e.filter((n,r,i)=>!!n&&n.trim()!==""&&i.indexOf(n)===r).join(" ").trim();/** + */const Qf=(...e)=>e.filter((n,r,i)=>!!n&&n.trim()!==""&&i.indexOf(n)===r).join(" ").trim();/** * @license @lucide/vue v1.17.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. - */const yi=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase();/** + */const Si=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase();/** * @license @lucide/vue v1.17.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. - */const bf=e=>e.replace(/^([A-Z])|[\s-_]+(\w)/g,(n,r,i)=>i?i.toUpperCase():r.toLowerCase());/** + */const ep=e=>e.replace(/^([A-Z])|[\s-_]+(\w)/g,(n,r,i)=>i?i.toUpperCase():r.toLowerCase());/** * @license @lucide/vue v1.17.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. - */const _f=e=>{const n=bf(e);return n.charAt(0).toUpperCase()+n.slice(1)};/** + */const tp=e=>{const n=ep(e);return n.charAt(0).toUpperCase()+n.slice(1)};/** * @license @lucide/vue v1.17.0 - ISC * * This source code is licensed under the ISC license. @@ -34,119 +34,119 @@ * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. - */const yf=Symbol("lucide-icons");function kf(){return l.inject(yf,{})}/** + */const np=Symbol("lucide-icons");function rp(){return l.inject(np,{})}/** * @license @lucide/vue v1.17.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. - */const Sf=({name:e,iconNode:n,absoluteStrokeWidth:r,"absolute-stroke-width":i,strokeWidth:t,"stroke-width":o,size:a,color:c,...u},{slots:s})=>{const{size:m,color:d,strokeWidth:f=2,absoluteStrokeWidth:p=!1,class:v=""}=kf(),b=l.computed(()=>{const N=_i(r)||_i(i)||r===!0||i===!0||p===!0,S=t||o||f||Me["stroke-width"];return N?Number(S)*24/Number(a??m??Me.width):S});return l.h("svg",{...Me,...u,width:a??m??Me.width,height:a??m??Me.height,stroke:c??d??Me.stroke,"stroke-width":b.value,class:$f("lucide",v,...e?[`lucide-${yi(_f(e))}-icon`,`lucide-${yi(e)}`]:["lucide-icon"])},[...n.map(N=>l.h(...N)),...s.default?[s.default()]:[]])};/** + */const op=({name:e,iconNode:n,absoluteStrokeWidth:r,"absolute-stroke-width":i,strokeWidth:t,"stroke-width":o,size:a,color:c,...u},{slots:s})=>{const{size:m,color:d,strokeWidth:f=2,absoluteStrokeWidth:p=!1,class:v=""}=rp(),_=l.computed(()=>{const O=ki(r)||ki(i)||r===!0||i===!0||p===!0,N=t||o||f||Me["stroke-width"];return O?Number(N)*24/Number(a??m??Me.width):N});return l.h("svg",{...Me,...u,width:a??m??Me.width,height:a??m??Me.height,stroke:c??d??Me.stroke,"stroke-width":_.value,class:Qf("lucide",v,...e?[`lucide-${Si(tp(e))}-icon`,`lucide-${Si(e)}`]:["lucide-icon"])},[...n.map(O=>l.h(...O)),...s.default?[s.default()]:[]])};/** * @license @lucide/vue v1.17.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. - */const Q=(e,n)=>(r,{slots:i,attrs:t})=>l.h(Sf,{...t,...r,iconNode:n,name:e},i.default?{default:i.default}:void 0);/** + */const Q=(e,n)=>(r,{slots:i,attrs:t})=>l.h(op,{...t,...r,iconNode:n,name:e},i.default?{default:i.default}:void 0);/** * @license @lucide/vue v1.17.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. - */const ki=Q("arrow-down",[["path",{d:"M12 5v14",key:"s699le"}],["path",{d:"m19 12-7 7-7-7",key:"1idqje"}]]);/** + */const wi=Q("arrow-down",[["path",{d:"M12 5v14",key:"s699le"}],["path",{d:"m19 12-7 7-7-7",key:"1idqje"}]]);/** * @license @lucide/vue v1.17.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. - */const Si=Q("arrow-up",[["path",{d:"m5 12 7-7 7 7",key:"hav0vg"}],["path",{d:"M12 19V5",key:"x0mq9r"}]]);/** + */const Ii=Q("arrow-up",[["path",{d:"m5 12 7-7 7 7",key:"hav0vg"}],["path",{d:"M12 19V5",key:"x0mq9r"}]]);/** * @license @lucide/vue v1.17.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. - */const wf=Q("check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]]);/** + */const ip=Q("check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]]);/** * @license @lucide/vue v1.17.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. - */const wi=Q("chevron-down",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]]);/** + */const zi=Q("chevron-down",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]]);/** * @license @lucide/vue v1.17.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. - */const Ii=Q("chevron-right",[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]]);/** + */const Ei=Q("chevron-right",[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]]);/** * @license @lucide/vue v1.17.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. - */const If=Q("circle-alert",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["line",{x1:"12",x2:"12",y1:"8",y2:"12",key:"1pkeuh"}],["line",{x1:"12",x2:"12.01",y1:"16",y2:"16",key:"4dfq90"}]]);/** + */const ap=Q("circle-alert",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["line",{x1:"12",x2:"12",y1:"8",y2:"12",key:"1pkeuh"}],["line",{x1:"12",x2:"12.01",y1:"16",y2:"16",key:"4dfq90"}]]);/** * @license @lucide/vue v1.17.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. - */const zf=Q("circle-question-mark",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M9.09 9a3 3 0 0 1 5.83 1c0 2-3 3-3 3",key:"1u773s"}],["path",{d:"M12 17h.01",key:"p32p05"}]]);/** + */const lp=Q("circle-question-mark",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M9.09 9a3 3 0 0 1 5.83 1c0 2-3 3-3 3",key:"1u773s"}],["path",{d:"M12 17h.01",key:"p32p05"}]]);/** * @license @lucide/vue v1.17.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. - */const Ef=Q("columns-2",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M12 3v18",key:"108xh3"}]]);/** + */const cp=Q("columns-2",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M12 3v18",key:"108xh3"}]]);/** * @license @lucide/vue v1.17.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. - */const Nf=Q("columns-3",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M9 3v18",key:"fh3hqa"}],["path",{d:"M15 3v18",key:"14nvp0"}]]);/** + */const sp=Q("columns-3",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M9 3v18",key:"fh3hqa"}],["path",{d:"M15 3v18",key:"14nvp0"}]]);/** * @license @lucide/vue v1.17.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. - */const Df=Q("ellipsis-vertical",[["circle",{cx:"12",cy:"12",r:"1",key:"41hilf"}],["circle",{cx:"12",cy:"5",r:"1",key:"gxeob9"}],["circle",{cx:"12",cy:"19",r:"1",key:"lyex9k"}]]);/** + */const up=Q("ellipsis-vertical",[["circle",{cx:"12",cy:"12",r:"1",key:"41hilf"}],["circle",{cx:"12",cy:"5",r:"1",key:"gxeob9"}],["circle",{cx:"12",cy:"19",r:"1",key:"lyex9k"}]]);/** * @license @lucide/vue v1.17.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. - */const xf=Q("eye-off",[["path",{d:"M10.733 5.076a10.744 10.744 0 0 1 11.205 6.575 1 1 0 0 1 0 .696 10.747 10.747 0 0 1-1.444 2.49",key:"ct8e1f"}],["path",{d:"M14.084 14.158a3 3 0 0 1-4.242-4.242",key:"151rxh"}],["path",{d:"M17.479 17.499a10.75 10.75 0 0 1-15.417-5.151 1 1 0 0 1 0-.696 10.75 10.75 0 0 1 4.446-5.143",key:"13bj9a"}],["path",{d:"m2 2 20 20",key:"1ooewy"}]]);/** + */const dp=Q("eye-off",[["path",{d:"M10.733 5.076a10.744 10.744 0 0 1 11.205 6.575 1 1 0 0 1 0 .696 10.747 10.747 0 0 1-1.444 2.49",key:"ct8e1f"}],["path",{d:"M14.084 14.158a3 3 0 0 1-4.242-4.242",key:"151rxh"}],["path",{d:"M17.479 17.499a10.75 10.75 0 0 1-15.417-5.151 1 1 0 0 1 0-.696 10.75 10.75 0 0 1 4.446-5.143",key:"13bj9a"}],["path",{d:"m2 2 20 20",key:"1ooewy"}]]);/** * @license @lucide/vue v1.17.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. - */const jf=Q("eye",[["path",{d:"M2.062 12.348a1 1 0 0 1 0-.696 10.75 10.75 0 0 1 19.876 0 1 1 0 0 1 0 .696 10.75 10.75 0 0 1-19.876 0",key:"1nclc0"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]]);/** + */const mp=Q("eye",[["path",{d:"M2.062 12.348a1 1 0 0 1 0-.696 10.75 10.75 0 0 1 19.876 0 1 1 0 0 1 0 .696 10.75 10.75 0 0 1-19.876 0",key:"1nclc0"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]]);/** * @license @lucide/vue v1.17.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. - */const zi=Q("funnel",[["path",{d:"M10 20a1 1 0 0 0 .553.895l2 1A1 1 0 0 0 14 21v-7a2 2 0 0 1 .517-1.341L21.74 4.67A1 1 0 0 0 21 3H3a1 1 0 0 0-.742 1.67l7.225 7.989A2 2 0 0 1 10 14z",key:"sc7q7i"}]]);/** + */const Ni=Q("funnel",[["path",{d:"M10 20a1 1 0 0 0 .553.895l2 1A1 1 0 0 0 14 21v-7a2 2 0 0 1 .517-1.341L21.74 4.67A1 1 0 0 0 21 3H3a1 1 0 0 0-.742 1.67l7.225 7.989A2 2 0 0 1 10 14z",key:"sc7q7i"}]]);/** * @license @lucide/vue v1.17.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. - */const Of=Q("grip-vertical",[["circle",{cx:"9",cy:"12",r:"1",key:"1vctgf"}],["circle",{cx:"9",cy:"5",r:"1",key:"hp0tcf"}],["circle",{cx:"9",cy:"19",r:"1",key:"fkjjf6"}],["circle",{cx:"15",cy:"12",r:"1",key:"1tmaij"}],["circle",{cx:"15",cy:"5",r:"1",key:"19l28e"}],["circle",{cx:"15",cy:"19",r:"1",key:"f4zoj3"}]]);/** + */const fp=Q("grip-vertical",[["circle",{cx:"9",cy:"12",r:"1",key:"1vctgf"}],["circle",{cx:"9",cy:"5",r:"1",key:"hp0tcf"}],["circle",{cx:"9",cy:"19",r:"1",key:"fkjjf6"}],["circle",{cx:"15",cy:"12",r:"1",key:"1tmaij"}],["circle",{cx:"15",cy:"5",r:"1",key:"19l28e"}],["circle",{cx:"15",cy:"19",r:"1",key:"f4zoj3"}]]);/** * @license @lucide/vue v1.17.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. - */const Uf=Q("inbox",[["polyline",{points:"22 12 16 12 14 15 10 15 8 12 2 12",key:"o97t9d"}],["path",{d:"M5.45 5.11 2 12v6a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-6l-3.45-6.89A2 2 0 0 0 16.76 4H7.24a2 2 0 0 0-1.79 1.11z",key:"oot6mr"}]]);/** + */const pp=Q("inbox",[["polyline",{points:"22 12 16 12 14 15 10 15 8 12 2 12",key:"o97t9d"}],["path",{d:"M5.45 5.11 2 12v6a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-6l-3.45-6.89A2 2 0 0 0 16.76 4H7.24a2 2 0 0 0-1.79 1.11z",key:"oot6mr"}]]);/** * @license @lucide/vue v1.17.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. - */const Tf=Q("loader-circle",[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]]);/** + */const gp=Q("loader-circle",[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]]);/** * @license @lucide/vue v1.17.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. - */const Cf=Q("plus",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]]);/** + */const vp=Q("plus",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]]);/** * @license @lucide/vue v1.17.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. - */const Pf=Q("search",[["path",{d:"m21 21-4.34-4.34",key:"14j7rj"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}]]);/** + */const hp=Q("search",[["path",{d:"m21 21-4.34-4.34",key:"14j7rj"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}]]);/** * @license @lucide/vue v1.17.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. - */const Af=Q("trash-2",[["path",{d:"M10 11v6",key:"nco0om"}],["path",{d:"M14 11v6",key:"outv1u"}],["path",{d:"M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6",key:"miytrc"}],["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M8 6V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2",key:"e791ji"}]]);/** + */const $p=Q("trash-2",[["path",{d:"M10 11v6",key:"nco0om"}],["path",{d:"M14 11v6",key:"outv1u"}],["path",{d:"M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6",key:"miytrc"}],["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M8 6V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2",key:"e791ji"}]]);/** * @license @lucide/vue v1.17.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. - */const Ei=Q("x",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]),Vf=l.defineComponent({name:"EliTabelaCelulaComponente",props:{dados:{type:Object}},setup(e){const n=l.ref(void 0);return l.onMounted(async()=>{var i;if(!((i=e.dados)!=null&&i.props))return;const r=e.dados.props();n.value=r instanceof Promise?await r:r}),{propsResolvidas:n}}});function Zf(e,n,r,i,t,o){var a;return e.propsResolvidas?(l.openBlock(),l.createBlock(l.resolveDynamicComponent((a=e.dados)==null?void 0:a.componente),l.normalizeProps(l.mergeProps({key:0},e.propsResolvidas)),null,16)):l.createCommentVNode("",!0)}const Bf=q(Vf,[["render",Zf]]);var Bt={exports:{}},Mf=Bt.exports,Ni;function Ff(){return Ni||(Ni=1,(function(e,n){(function(r,i){e.exports=i()})(Mf,(function(){return function(r,i,t){r=r||{};var o=i.prototype,a={future:"in %s",past:"%s ago",s:"a few seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"};function c(s,m,d,f){return o.fromToBase(s,m,d,f)}t.en.relativeTime=a,o.fromToBase=function(s,m,d,f,p){for(var v,b,N,S=d.$locale().relativeTime||a,w=r.thresholds||[{l:"s",r:44,d:"second"},{l:"m",r:89},{l:"mm",r:44,d:"minute"},{l:"h",r:89},{l:"hh",r:21,d:"hour"},{l:"d",r:35},{l:"dd",r:25,d:"day"},{l:"M",r:45},{l:"MM",r:10,d:"month"},{l:"y",r:17},{l:"yy",d:"year"}],P=w.length,U=0;U0,h<=T.r||!T.r){h<=1&&U>0&&(T=w[U-1]);var $=S[T.l];p&&(h=p(""+h)),b=typeof $=="string"?$.replace("%d",h):$(h,m,T.l,N);break}}if(m)return b;var k=N?S.future:S.past;return typeof k=="function"?k(b):k.replace("%s",b)},o.to=function(s,m){return c(s,m,this,!0)},o.from=function(s,m){return c(s,m,this)};var u=function(s){return s.$u?t.utc():t()};o.toNow=function(s){return this.to(u(this),s)},o.fromNow=function(s){return this.from(u(this),s)}}}))})(Bt)),Bt.exports}var Lf=Ff();const Rf=vi(Lf);var Mt={exports:{}},Jf=Mt.exports,Di;function qf(){return Di||(Di=1,(function(e,n){(function(r,i){e.exports=i($i())})(Jf,(function(r){function i(a){return a&&typeof a=="object"&&"default"in a?a:{default:a}}var t=i(r),o={name:"pt-br",weekdays:"domingo_segunda-feira_terça-feira_quarta-feira_quinta-feira_sexta-feira_sábado".split("_"),weekdaysShort:"dom_seg_ter_qua_qui_sex_sáb".split("_"),weekdaysMin:"Do_2ª_3ª_4ª_5ª_6ª_Sá".split("_"),months:"janeiro_fevereiro_março_abril_maio_junho_julho_agosto_setembro_outubro_novembro_dezembro".split("_"),monthsShort:"jan_fev_mar_abr_mai_jun_jul_ago_set_out_nov_dez".split("_"),ordinal:function(a){return a+"º"},formats:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY [às] HH:mm",LLLL:"dddd, D [de] MMMM [de] YYYY [às] HH:mm"},relativeTime:{future:"em %s",past:"há %s",s:"poucos segundos",m:"um minuto",mm:"%d minutos",h:"uma hora",hh:"%d horas",d:"um dia",dd:"%d dias",M:"um mês",MM:"%d meses",y:"um ano",yy:"%d anos"}};return t.default.locale(o,null,!0),o}))})(Mt)),Mt.exports}qf(),Se.extend(Rf),Se.locale("pt-br");const Gf=l.defineComponent({name:"EliTabelaCelulaData",props:{dados:{type:Object,required:!1}},setup(e){return{textoData:l.computed(()=>{var t,o;const r=(t=e.dados)==null?void 0:t.valor;if(!r)return"";const i=((o=e.dados)==null?void 0:o.formato)??"data";return i==="relativo"?Se(r).fromNow():i==="data_hora"?Se(r).format("DD/MM/YYYY HH:mm"):Se(r).format("DD/MM/YYYY")})}}}),Wf={key:1};function Kf(e,n,r,i,t,o){var a;return(a=e.dados)!=null&&a.acao?(l.openBlock(),l.createElementBlock("button",{key:0,type:"button",class:"eli-tabela__celula-link",onClick:n[0]||(n[0]=l.withModifiers(c=>e.dados.acao(),["stop","prevent"]))},l.toDisplayString(e.textoData),1)):(l.openBlock(),l.createElementBlock("span",Wf,l.toDisplayString(e.textoData),1))}const Xf=q(Gf,[["render",Kf]]),Yf=l.defineComponent({name:"EliTabelaCelulaNumero",components:{},props:{dados:{type:Object}},setup(e){return{textoNumero:l.computed(()=>{var c,u,s,m,d;const r=String((c=e.dados)==null?void 0:c.numero).replace(".",","),i=(s=(u=e.dados)==null?void 0:u.prefixo)==null?void 0:s.trim(),t=(d=(m=e.dados)==null?void 0:m.sufixo)==null?void 0:d.trim(),o=i?`${i} `:"",a=t?` ${t}`:"";return`${o}${r}${a}`})}}}),Hf={key:1};function Qf(e,n,r,i,t,o){var a;return(a=e.dados)!=null&&a.acao?(l.openBlock(),l.createElementBlock("button",{key:0,type:"button",class:"eli-tabela__celula-link",onClick:n[0]||(n[0]=l.withModifiers(c=>e.dados.acao(),["stop","prevent"]))},l.toDisplayString(e.textoNumero),1)):(l.openBlock(),l.createElementBlock("span",Hf,l.toDisplayString(e.textoNumero),1))}const ep=q(Yf,[["render",Qf]]),tp=l.defineComponent({name:"EliTabelaCelulaTags",components:{VChip:et.VChip},props:{dados:{type:Object,required:!1}}}),np={class:"eli-tabela__celula-tags"};function rp(e,n,r,i,t,o){var a;return l.openBlock(),l.createElementBlock("div",np,[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(((a=e.dados)==null?void 0:a.opcoes)??[],(c,u)=>(l.openBlock(),l.createBlock(sm.VChip,{key:u,class:"eli-tabela__celula-tag",size:"small",variant:"tonal",color:c.cor,clickable:!!c.acao,onClick:l.withModifiers(s=>{var m;return(m=c.acao)==null?void 0:m.call(c)},["stop","prevent"])},{default:l.withCtx(()=>[c.icone?(l.openBlock(),l.createBlock(l.resolveDynamicComponent(c.icone),{key:0,class:"eli-tabela__celula-tag-icone",size:14})):l.createCommentVNode("",!0),l.createElementVNode("span",null,l.toDisplayString(c.rotulo),1)]),_:2},1032,["color","clickable","onClick"]))),128))])}const op=q(tp,[["render",rp]]),ip=l.defineComponent({name:"EliTabelaCelulaTextoSimples",components:{},props:{dados:{type:Object}},data(){return{}},methods:{}}),ap={key:1};function lp(e,n,r,i,t,o){var a,c,u;return(a=e.dados)!=null&&a.acao?(l.openBlock(),l.createElementBlock("button",{key:0,type:"button",class:"eli-tabela__celula-link",onClick:n[0]||(n[0]=l.withModifiers(s=>e.dados.acao(),["stop","prevent"]))},l.toDisplayString((c=e.dados)==null?void 0:c.texto),1)):(l.openBlock(),l.createElementBlock("span",ap,l.toDisplayString((u=e.dados)==null?void 0:u.texto),1))}const cp=q(ip,[["render",lp]]),sp=l.defineComponent({name:"EliTabelaCelulaTextoTruncado",props:{dados:{type:Object}}}),up=["title"],dp=["title"];function mp(e,n,r,i,t,o){var a,c,u,s,m;return(a=e.dados)!=null&&a.acao?(l.openBlock(),l.createElementBlock("button",{key:0,type:"button",class:"eli-tabela__texto-truncado eli-tabela__celula-link",title:(c=e.dados)==null?void 0:c.texto,onClick:n[0]||(n[0]=l.withModifiers(d=>{var f,p;return(p=(f=e.dados)==null?void 0:f.acao)==null?void 0:p.call(f)},["stop","prevent"]))},l.toDisplayString((u=e.dados)==null?void 0:u.texto),9,up)):(l.openBlock(),l.createElementBlock("span",{key:1,class:"eli-tabela__texto-truncado",title:(s=e.dados)==null?void 0:s.texto},l.toDisplayString((m=e.dados)==null?void 0:m.texto),9,dp))}const fp={textoSimples:cp,textoTruncado:q(sp,[["render",mp]]),numero:ep,tags:op,data:Xf,componente:Bf},pp=l.defineComponent({name:"EliTabelaCelula",props:{celula:{type:Array,required:!0}},setup(e){const n=l.computed(()=>e.celula[0]),r=l.computed(()=>e.celula[1]),i=l.computed(()=>fp[n.value]),t=l.computed(()=>r.value);return{Componente:i,dadosParaComponente:t}}});function gp(e,n,r,i,t,o){return l.openBlock(),l.createBlock(l.resolveDynamicComponent(e.Componente),{dados:e.dadosParaComponente},null,8,["dados"])}const xi=q(pp,[["render",gp]]),vp=l.defineComponent({name:"EliTabelaDetalhesLinha",components:{EliTabelaCelula:xi},props:{linha:{type:[Object,String,Number,Array],required:!0},colunasInvisiveis:{type:Array,required:!0}}}),hp={class:"eli-tabela__detalhes"},$p={class:"eli-tabela__detalhe-rotulo"},bp={class:"eli-tabela__detalhe-valor"};function _p(e,n,r,i,t,o){const a=l.resolveComponent("EliTabelaCelula");return l.openBlock(),l.createElementBlock("div",hp,[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(e.colunasInvisiveis,(c,u)=>(l.openBlock(),l.createElementBlock("div",{key:`det-${u}-${c.rotulo}`,class:"eli-tabela__detalhe"},[l.createElementVNode("div",$p,l.toDisplayString(c.rotulo),1),l.createElementVNode("div",bp,[l.createVNode(a,{celula:c.celula(e.linha)},null,8,["celula"])])]))),128))])}const yp=q(vp,[["render",_p]]),kp=l.defineComponent({name:"EliTabelaBody",components:{EliTabelaCelula:xi,EliTabelaDetalhesLinha:yp,MoreVertical:Df,ChevronRight:Ii,ChevronDown:wi},props:{colunas:{type:Array,required:!0},colunasInvisiveis:{type:Array,required:!0},temColunasInvisiveis:{type:Boolean,required:!0},linhasExpandidas:{type:Object,required:!0},linhas:{type:Array,required:!0},temAcoes:{type:Boolean,required:!0},menuAberto:{type:Number,required:!0},possuiAcoes:{type:Function,required:!0},toggleMenu:{type:Function,required:!0},alternarLinhaExpandida:{type:Function,required:!0},mostrarSelecao:{type:Boolean,default:!1},isSelecionado:{type:Function,required:!0},alternarSelecao:{type:Function,required:!0}},setup(){return{ChevronRight:Ii,ChevronDown:wi}}}),Sp={class:"eli-tabela__tbody"},wp=["aria-expanded","aria-label","title","onClick"],Ip=["checked","onChange"],zp=["id","disabled","aria-expanded","aria-controls","aria-label","title","onClick"],Ep=["colspan"];function Np(e,n,r,i,t,o){const a=l.resolveComponent("EliTabelaCelula"),c=l.resolveComponent("MoreVertical"),u=l.resolveComponent("EliTabelaDetalhesLinha");return l.openBlock(),l.createElementBlock("tbody",Sp,[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(e.linhas,(s,m)=>{var d,f,p,v,b,N;return l.openBlock(),l.createElementBlock(l.Fragment,{key:`grp-${m}`},[l.createElementVNode("tr",{class:l.normalizeClass(["eli-tabela__tr",[m%2===1?"eli-tabela__tr--zebra":void 0]])},[e.temColunasInvisiveis?(l.openBlock(),l.createElementBlock("td",{class:"eli-tabela__td eli-tabela__td--expander",key:`td-${m}-exp`},[l.createElementVNode("button",{type:"button",class:l.normalizeClass(["eli-tabela__expander-botao",[(d=e.linhasExpandidas)!=null&&d[m]?"eli-tabela__expander-botao--ativo":void 0]]),"aria-expanded":(f=e.linhasExpandidas)!=null&&f[m]?"true":"false","aria-label":(p=e.linhasExpandidas)!=null&&p[m]?"Ocultar colunas ocultas":"Mostrar colunas ocultas",title:(v=e.linhasExpandidas)!=null&&v[m]?"Ocultar detalhes":"Mostrar detalhes",onClick:l.withModifiers(S=>e.alternarLinhaExpandida(m),["stop"])},[(l.openBlock(),l.createBlock(l.resolveDynamicComponent((b=e.linhasExpandidas)!=null&&b[m]?e.ChevronDown:e.ChevronRight),{class:"eli-tabela__expander-icone",size:16,"stroke-width":2,"aria-hidden":"true"}))],10,wp)])):l.createCommentVNode("",!0),e.mostrarSelecao?(l.openBlock(),l.createElementBlock("td",{class:"eli-tabela__td eli-tabela__td--selecao",key:`td-${m}-selecao`},[l.createElementVNode("input",{type:"checkbox",class:"eli-tabela__checkbox",checked:e.isSelecionado(s),onChange:S=>e.alternarSelecao(s),onClick:n[0]||(n[0]=l.withModifiers(()=>{},["stop"])),"aria-label":"Selecionar linha"},null,40,Ip)])):l.createCommentVNode("",!0),(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(e.colunas,(S,w)=>(l.openBlock(),l.createElementBlock("td",{key:`td-${m}-${w}`,class:"eli-tabela__td"},[l.createVNode(a,{celula:S.celula(s)},null,8,["celula"])]))),128)),e.temAcoes?(l.openBlock(),l.createElementBlock("td",{class:"eli-tabela__td eli-tabela__td--acoes",key:`td-${m}-acoes`},[l.createElementVNode("div",{class:l.normalizeClass(["eli-tabela__acoes-container",[e.menuAberto===m?"eli-tabela__acoes-container--aberto":void 0]])},[l.createElementVNode("button",{class:"eli-tabela__acoes-toggle",type:"button",id:`eli-tabela-acoes-toggle-${m}`,disabled:!e.possuiAcoes(m),"aria-haspopup":"menu","aria-expanded":e.menuAberto===m?"true":"false","aria-controls":e.possuiAcoes(m)?`eli-tabela-acoes-menu-${m}`:void 0,"aria-label":e.possuiAcoes(m)?"Ações da linha":"Nenhuma ação disponível",title:e.possuiAcoes(m)?"Ações":"Nenhuma ação disponível",onClick:l.withModifiers(S=>e.toggleMenu(m,S),["stop"])},[l.createVNode(c,{class:"eli-tabela__acoes-toggle-icone",size:18,"stroke-width":2})],8,zp)],2)])):l.createCommentVNode("",!0)],2),e.temColunasInvisiveis&&((N=e.linhasExpandidas)!=null&&N[m])?(l.openBlock(),l.createElementBlock("tr",{key:0,class:l.normalizeClass(["eli-tabela__tr eli-tabela__tr--detalhes",[m%2===1?"eli-tabela__tr--zebra":void 0]])},[l.createElementVNode("td",{class:"eli-tabela__td eli-tabela__td--detalhes",colspan:(e.temColunasInvisiveis?1:0)+(e.mostrarSelecao?1:0)+e.colunas.length+(e.temAcoes?1:0)},[l.createVNode(u,{linha:s,colunasInvisiveis:e.colunasInvisiveis},null,8,["linha","colunasInvisiveis"])],8,Ep)],2)):l.createCommentVNode("",!0)],64)}),128))])}const Dp=q(kp,[["render",Np]]),xp=l.defineComponent({name:"EliTabelaCaixaDeBusca",components:{Search:Pf},props:{modelo:{type:String,required:!1,default:""}},emits:{buscar(e){return typeof e=="string"}},setup(e,{emit:n}){const r=l.ref(e.modelo??"");l.watch(()=>e.modelo,t=>{t!==void 0&&t!==r.value&&(r.value=t)});function i(){n("buscar",r.value.trim())}return{texto:r,emitirBusca:i}}}),jp={class:"eli-tabela__busca"},Op={class:"eli-tabela__busca-input-wrapper"};function Up(e,n,r,i,t,o){const a=l.resolveComponent("Search");return l.openBlock(),l.createElementBlock("div",jp,[l.createElementVNode("div",Op,[l.withDirectives(l.createElementVNode("input",{id:"eli-tabela-busca","onUpdate:modelValue":n[0]||(n[0]=c=>e.texto=c),type:"search",class:"eli-tabela__busca-input",placeholder:"Digite termos para filtrar",onKeyup:n[1]||(n[1]=l.withKeys((...c)=>e.emitirBusca&&e.emitirBusca(...c),["enter"]))},null,544),[[l.vModelText,e.texto]]),l.createElementVNode("button",{type:"button",class:"eli-tabela__busca-botao","aria-label":"Buscar",title:"Buscar",onClick:n[2]||(n[2]=(...c)=>e.emitirBusca&&e.emitirBusca(...c))},[l.createVNode(a,{class:"eli-tabela__busca-botao-icone",size:16,"stroke-width":2,"aria-hidden":"true"})])])])}const Tp=q(xp,[["render",Up]]),Cp=l.defineComponent({name:"EliTabelaCabecalho",components:{Columns3:Nf,EliTabelaCaixaDeBusca:Tp,Filter:zi},props:{exibirBusca:{type:Boolean,required:!0},exibirBotaoColunas:{type:Boolean,required:!1,default:!0},exibirBotaoFiltroAvancado:{type:Boolean,required:!1,default:!1},filtrosAtivosResumo:{type:Object,required:!1,default:()=>({quantidade:0,rotulos:[]})},valorBusca:{type:String,required:!0},parametrosConsulta:{type:Object,required:!1},acoesCabecalho:{type:Array,required:!0}},emits:{buscar(e){return typeof e=="string"},colunas(){return!0},filtroAvancado(){return!0}},setup(e,{emit:n}){const r=l.computed(()=>e.acoesCabecalho.length>0),i=l.computed(()=>{const{quantidade:c,rotulos:u}=e.filtrosAtivosResumo;return c===0?"Filtro avançado":`Filtros ativos (${c}): + */const Di=Q("x",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]),bp=l.defineComponent({name:"EliTabelaCelulaComponente",props:{dados:{type:Object}},setup(e){const n=l.ref(void 0);return l.onMounted(async()=>{var i;if(!((i=e.dados)!=null&&i.props))return;const r=e.dados.props();n.value=r instanceof Promise?await r:r}),{propsResolvidas:n}}});function _p(e,n,r,i,t,o){var a;return e.propsResolvidas?(l.openBlock(),l.createBlock(l.resolveDynamicComponent((a=e.dados)==null?void 0:a.componente),l.normalizeProps(l.mergeProps({key:0},e.propsResolvidas)),null,16)):l.createCommentVNode("",!0)}const yp=q(bp,[["render",_p]]);var Mt={exports:{}},kp=Mt.exports,ji;function Sp(){return ji||(ji=1,(function(e,n){(function(r,i){e.exports=i()})(kp,(function(){return function(r,i,t){r=r||{};var o=i.prototype,a={future:"in %s",past:"%s ago",s:"a few seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"};function c(s,m,d,f){return o.fromToBase(s,m,d,f)}t.en.relativeTime=a,o.fromToBase=function(s,m,d,f,p){for(var v,_,O,N=d.$locale().relativeTime||a,w=r.thresholds||[{l:"s",r:44,d:"second"},{l:"m",r:89},{l:"mm",r:44,d:"minute"},{l:"h",r:89},{l:"hh",r:21,d:"hour"},{l:"d",r:35},{l:"dd",r:25,d:"day"},{l:"M",r:45},{l:"MM",r:10,d:"month"},{l:"y",r:17},{l:"yy",d:"year"}],P=w.length,T=0;T0,h<=U.r||!U.r){h<=1&&T>0&&(U=w[T-1]);var $=N[U.l];p&&(h=p(""+h)),_=typeof $=="string"?$.replace("%d",h):$(h,m,U.l,O);break}}if(m)return _;var S=O?N.future:N.past;return typeof S=="function"?S(_):S.replace("%s",_)},o.to=function(s,m){return c(s,m,this,!0)},o.from=function(s,m){return c(s,m,this)};var u=function(s){return s.$u?t.utc():t()};o.toNow=function(s){return this.to(u(this),s)},o.fromNow=function(s){return this.from(u(this),s)}}}))})(Mt)),Mt.exports}var wp=Sp();const Ip=vi(wp);oe.extend(Ip),oe.locale("pt-br");const zp=l.defineComponent({name:"EliTabelaCelulaData",props:{dados:{type:Object,required:!1}},setup(e){return{textoData:l.computed(()=>{var t,o;const r=(t=e.dados)==null?void 0:t.valor;if(!r)return"";const i=((o=e.dados)==null?void 0:o.formato)??"data";return i==="relativo"?oe(r).fromNow():i==="data_hora"?oe(r).format("DD/MM/YYYY HH:mm"):oe(r).format("DD/MM/YYYY")})}}}),Ep={key:1};function Np(e,n,r,i,t,o){var a;return(a=e.dados)!=null&&a.acao?(l.openBlock(),l.createElementBlock("button",{key:0,type:"button",class:"eli-tabela__celula-link",onClick:n[0]||(n[0]=l.withModifiers(c=>e.dados.acao(),["stop","prevent"]))},l.toDisplayString(e.textoData),1)):(l.openBlock(),l.createElementBlock("span",Ep,l.toDisplayString(e.textoData),1))}const Dp=q(zp,[["render",Np]]),jp=l.defineComponent({name:"EliTabelaCelulaNumero",components:{},props:{dados:{type:Object}},setup(e){return{textoNumero:l.computed(()=>{var c,u,s,m,d;const r=String((c=e.dados)==null?void 0:c.numero).replace(".",","),i=(s=(u=e.dados)==null?void 0:u.prefixo)==null?void 0:s.trim(),t=(d=(m=e.dados)==null?void 0:m.sufixo)==null?void 0:d.trim(),o=i?`${i} `:"",a=t?` ${t}`:"";return`${o}${r}${a}`})}}}),Op={key:1};function xp(e,n,r,i,t,o){var a;return(a=e.dados)!=null&&a.acao?(l.openBlock(),l.createElementBlock("button",{key:0,type:"button",class:"eli-tabela__celula-link",onClick:n[0]||(n[0]=l.withModifiers(c=>e.dados.acao(),["stop","prevent"]))},l.toDisplayString(e.textoNumero),1)):(l.openBlock(),l.createElementBlock("span",Op,l.toDisplayString(e.textoNumero),1))}const Tp=q(jp,[["render",xp]]),Up=l.defineComponent({name:"EliTabelaCelulaTags",components:{VChip:et.VChip},props:{dados:{type:Object,required:!1}}}),Cp={class:"eli-tabela__celula-tags"};function Pp(e,n,r,i,t,o){var a;return l.openBlock(),l.createElementBlock("div",Cp,[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(((a=e.dados)==null?void 0:a.opcoes)??[],(c,u)=>(l.openBlock(),l.createBlock(um.VChip,{key:u,class:"eli-tabela__celula-tag",size:"small",variant:"tonal",color:c.cor,clickable:!!c.acao,onClick:l.withModifiers(s=>{var m;return(m=c.acao)==null?void 0:m.call(c)},["stop","prevent"])},{default:l.withCtx(()=>[c.icone?(l.openBlock(),l.createBlock(l.resolveDynamicComponent(c.icone),{key:0,class:"eli-tabela__celula-tag-icone",size:14})):l.createCommentVNode("",!0),l.createElementVNode("span",null,l.toDisplayString(c.rotulo),1)]),_:2},1032,["color","clickable","onClick"]))),128))])}const Ap=q(Up,[["render",Pp]]),Vp=l.defineComponent({name:"EliTabelaCelulaTextoSimples",components:{},props:{dados:{type:Object}},data(){return{}},methods:{}}),Bp={key:1};function Zp(e,n,r,i,t,o){var a,c,u;return(a=e.dados)!=null&&a.acao?(l.openBlock(),l.createElementBlock("button",{key:0,type:"button",class:"eli-tabela__celula-link",onClick:n[0]||(n[0]=l.withModifiers(s=>e.dados.acao(),["stop","prevent"]))},l.toDisplayString((c=e.dados)==null?void 0:c.texto),1)):(l.openBlock(),l.createElementBlock("span",Bp,l.toDisplayString((u=e.dados)==null?void 0:u.texto),1))}const Mp=q(Vp,[["render",Zp]]),Fp=l.defineComponent({name:"EliTabelaCelulaTextoTruncado",props:{dados:{type:Object}}}),Lp=["title"],Rp=["title"];function Jp(e,n,r,i,t,o){var a,c,u,s,m;return(a=e.dados)!=null&&a.acao?(l.openBlock(),l.createElementBlock("button",{key:0,type:"button",class:"eli-tabela__texto-truncado eli-tabela__celula-link",title:(c=e.dados)==null?void 0:c.texto,onClick:n[0]||(n[0]=l.withModifiers(d=>{var f,p;return(p=(f=e.dados)==null?void 0:f.acao)==null?void 0:p.call(f)},["stop","prevent"]))},l.toDisplayString((u=e.dados)==null?void 0:u.texto),9,Lp)):(l.openBlock(),l.createElementBlock("span",{key:1,class:"eli-tabela__texto-truncado",title:(s=e.dados)==null?void 0:s.texto},l.toDisplayString((m=e.dados)==null?void 0:m.texto),9,Rp))}const qp={textoSimples:Mp,textoTruncado:q(Fp,[["render",Jp]]),numero:Tp,tags:Ap,data:Dp,componente:yp},Gp=l.defineComponent({name:"EliTabelaCelula",props:{celula:{type:Array,required:!0}},setup(e){const n=l.computed(()=>e.celula[0]),r=l.computed(()=>e.celula[1]),i=l.computed(()=>qp[n.value]),t=l.computed(()=>r.value);return{Componente:i,dadosParaComponente:t}}});function Kp(e,n,r,i,t,o){return l.openBlock(),l.createBlock(l.resolveDynamicComponent(e.Componente),{dados:e.dadosParaComponente},null,8,["dados"])}const Oi=q(Gp,[["render",Kp]]),Wp=l.defineComponent({name:"EliTabelaDetalhesLinha",components:{EliTabelaCelula:Oi},props:{linha:{type:[Object,String,Number,Array],required:!0},colunasInvisiveis:{type:Array,required:!0}}}),Xp={class:"eli-tabela__detalhes"},Hp={class:"eli-tabela__detalhe-rotulo"},Yp={class:"eli-tabela__detalhe-valor"};function Qp(e,n,r,i,t,o){const a=l.resolveComponent("EliTabelaCelula");return l.openBlock(),l.createElementBlock("div",Xp,[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(e.colunasInvisiveis,(c,u)=>(l.openBlock(),l.createElementBlock("div",{key:`det-${u}-${c.rotulo}`,class:"eli-tabela__detalhe"},[l.createElementVNode("div",Hp,l.toDisplayString(c.rotulo),1),l.createElementVNode("div",Yp,[l.createVNode(a,{celula:c.celula(e.linha)},null,8,["celula"])])]))),128))])}const eg=q(Wp,[["render",Qp]]),tg=l.defineComponent({name:"EliTabelaBody",components:{EliTabelaCelula:Oi,EliTabelaDetalhesLinha:eg,MoreVertical:up,ChevronRight:Ei,ChevronDown:zi},props:{colunas:{type:Array,required:!0},colunasInvisiveis:{type:Array,required:!0},temColunasInvisiveis:{type:Boolean,required:!0},linhasExpandidas:{type:Object,required:!0},linhas:{type:Array,required:!0},temAcoes:{type:Boolean,required:!0},menuAberto:{type:Number,required:!0},possuiAcoes:{type:Function,required:!0},toggleMenu:{type:Function,required:!0},alternarLinhaExpandida:{type:Function,required:!0},mostrarSelecao:{type:Boolean,default:!1},isSelecionado:{type:Function,required:!0},alternarSelecao:{type:Function,required:!0}},setup(){return{ChevronRight:Ei,ChevronDown:zi}}}),ng={class:"eli-tabela__tbody"},rg=["aria-expanded","aria-label","title","onClick"],og=["checked","onChange"],ig=["id","disabled","aria-expanded","aria-controls","aria-label","title","onClick"],ag=["colspan"];function lg(e,n,r,i,t,o){const a=l.resolveComponent("EliTabelaCelula"),c=l.resolveComponent("MoreVertical"),u=l.resolveComponent("EliTabelaDetalhesLinha");return l.openBlock(),l.createElementBlock("tbody",ng,[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(e.linhas,(s,m)=>{var d,f,p,v,_,O;return l.openBlock(),l.createElementBlock(l.Fragment,{key:`grp-${m}`},[l.createElementVNode("tr",{class:l.normalizeClass(["eli-tabela__tr",[m%2===1?"eli-tabela__tr--zebra":void 0]])},[e.temColunasInvisiveis?(l.openBlock(),l.createElementBlock("td",{class:"eli-tabela__td eli-tabela__td--expander",key:`td-${m}-exp`},[l.createElementVNode("button",{type:"button",class:l.normalizeClass(["eli-tabela__expander-botao",[(d=e.linhasExpandidas)!=null&&d[m]?"eli-tabela__expander-botao--ativo":void 0]]),"aria-expanded":(f=e.linhasExpandidas)!=null&&f[m]?"true":"false","aria-label":(p=e.linhasExpandidas)!=null&&p[m]?"Ocultar colunas ocultas":"Mostrar colunas ocultas",title:(v=e.linhasExpandidas)!=null&&v[m]?"Ocultar detalhes":"Mostrar detalhes",onClick:l.withModifiers(N=>e.alternarLinhaExpandida(m),["stop"])},[(l.openBlock(),l.createBlock(l.resolveDynamicComponent((_=e.linhasExpandidas)!=null&&_[m]?e.ChevronDown:e.ChevronRight),{class:"eli-tabela__expander-icone",size:16,"stroke-width":2,"aria-hidden":"true"}))],10,rg)])):l.createCommentVNode("",!0),e.mostrarSelecao?(l.openBlock(),l.createElementBlock("td",{class:"eli-tabela__td eli-tabela__td--selecao",key:`td-${m}-selecao`},[l.createElementVNode("input",{type:"checkbox",class:"eli-tabela__checkbox",checked:e.isSelecionado(s),onChange:N=>e.alternarSelecao(s),onClick:n[0]||(n[0]=l.withModifiers(()=>{},["stop"])),"aria-label":"Selecionar linha"},null,40,og)])):l.createCommentVNode("",!0),(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(e.colunas,(N,w)=>(l.openBlock(),l.createElementBlock("td",{key:`td-${m}-${w}`,class:"eli-tabela__td"},[l.createVNode(a,{celula:N.celula(s)},null,8,["celula"])]))),128)),e.temAcoes?(l.openBlock(),l.createElementBlock("td",{class:"eli-tabela__td eli-tabela__td--acoes",key:`td-${m}-acoes`},[l.createElementVNode("div",{class:l.normalizeClass(["eli-tabela__acoes-container",[e.menuAberto===m?"eli-tabela__acoes-container--aberto":void 0]])},[l.createElementVNode("button",{class:"eli-tabela__acoes-toggle",type:"button",id:`eli-tabela-acoes-toggle-${m}`,disabled:!e.possuiAcoes(m),"aria-haspopup":"menu","aria-expanded":e.menuAberto===m?"true":"false","aria-controls":e.possuiAcoes(m)?`eli-tabela-acoes-menu-${m}`:void 0,"aria-label":e.possuiAcoes(m)?"Ações da linha":"Nenhuma ação disponível",title:e.possuiAcoes(m)?"Ações":"Nenhuma ação disponível",onClick:l.withModifiers(N=>e.toggleMenu(m,N),["stop"])},[l.createVNode(c,{class:"eli-tabela__acoes-toggle-icone",size:18,"stroke-width":2})],8,ig)],2)])):l.createCommentVNode("",!0)],2),e.temColunasInvisiveis&&((O=e.linhasExpandidas)!=null&&O[m])?(l.openBlock(),l.createElementBlock("tr",{key:0,class:l.normalizeClass(["eli-tabela__tr eli-tabela__tr--detalhes",[m%2===1?"eli-tabela__tr--zebra":void 0]])},[l.createElementVNode("td",{class:"eli-tabela__td eli-tabela__td--detalhes",colspan:(e.temColunasInvisiveis?1:0)+(e.mostrarSelecao?1:0)+e.colunas.length+(e.temAcoes?1:0)},[l.createVNode(u,{linha:s,colunasInvisiveis:e.colunasInvisiveis},null,8,["linha","colunasInvisiveis"])],8,ag)],2)):l.createCommentVNode("",!0)],64)}),128))])}const cg=q(tg,[["render",lg]]),sg=l.defineComponent({name:"EliTabelaCaixaDeBusca",components:{Search:hp},props:{modelo:{type:String,required:!1,default:""}},emits:{buscar(e){return typeof e=="string"}},setup(e,{emit:n}){const r=l.ref(e.modelo??"");l.watch(()=>e.modelo,t=>{t!==void 0&&t!==r.value&&(r.value=t)});function i(){n("buscar",r.value.trim())}return{texto:r,emitirBusca:i}}}),ug={class:"eli-tabela__busca"},dg={class:"eli-tabela__busca-input-wrapper"};function mg(e,n,r,i,t,o){const a=l.resolveComponent("Search");return l.openBlock(),l.createElementBlock("div",ug,[l.createElementVNode("div",dg,[l.withDirectives(l.createElementVNode("input",{id:"eli-tabela-busca","onUpdate:modelValue":n[0]||(n[0]=c=>e.texto=c),type:"search",class:"eli-tabela__busca-input",placeholder:"Digite termos para filtrar",onKeyup:n[1]||(n[1]=l.withKeys((...c)=>e.emitirBusca&&e.emitirBusca(...c),["enter"]))},null,544),[[l.vModelText,e.texto]]),l.createElementVNode("button",{type:"button",class:"eli-tabela__busca-botao","aria-label":"Buscar",title:"Buscar",onClick:n[2]||(n[2]=(...c)=>e.emitirBusca&&e.emitirBusca(...c))},[l.createVNode(a,{class:"eli-tabela__busca-botao-icone",size:16,"stroke-width":2,"aria-hidden":"true"})])])])}const fg=q(sg,[["render",mg]]),pg=l.defineComponent({name:"EliTabelaCabecalho",components:{Columns3:sp,EliTabelaCaixaDeBusca:fg,Filter:Ni},props:{exibirBusca:{type:Boolean,required:!0},exibirBotaoColunas:{type:Boolean,required:!1,default:!0},exibirBotaoFiltroAvancado:{type:Boolean,required:!1,default:!1},filtrosAtivosResumo:{type:Object,required:!1,default:()=>({quantidade:0,rotulos:[]})},valorBusca:{type:String,required:!0},parametrosConsulta:{type:Object,required:!1},acoesCabecalho:{type:Array,required:!0}},emits:{buscar(e){return typeof e=="string"},colunas(){return!0},filtroAvancado(){return!0}},setup(e,{emit:n}){const r=l.computed(()=>e.acoesCabecalho.length>0),i=l.computed(()=>{const{quantidade:c,rotulos:u}=e.filtrosAtivosResumo;return c===0?"Filtro avançado":`Filtros ativos (${c}): ${u.map(s=>`• ${s}`).join(` -`)}`});function t(c){n("buscar",c)}function o(){n("colunas")}function a(){n("filtroAvancado")}return{temAcoesCabecalho:r,tooltipFiltro:i,emitBuscar:t,emitColunas:o,emitFiltroAvancado:a}}}),Pp={class:"eli-tabela__cabecalho"},Ap={key:0,class:"eli-tabela__busca-grupo"},Vp=["title"],Zp={class:"eli-tabela__filtro-icone-container"},Bp={key:0,class:"eli-tabela__filtro-badge"},Mp={key:1,class:"eli-tabela__acoes-cabecalho"},Fp=["onClick"],Lp={class:"eli-tabela__acoes-cabecalho-rotulo"};function Rp(e,n,r,i,t,o){const a=l.resolveComponent("Columns3"),c=l.resolveComponent("Filter"),u=l.resolveComponent("EliTabelaCaixaDeBusca");return l.openBlock(),l.createElementBlock("div",Pp,[e.exibirBusca?(l.openBlock(),l.createElementBlock("div",Ap,[e.exibirBotaoColunas?(l.openBlock(),l.createElementBlock("button",{key:0,type:"button",class:"eli-tabela__acoes-cabecalho-botao eli-tabela__acoes-cabecalho-botao--colunas",onClick:n[0]||(n[0]=(...s)=>e.emitColunas&&e.emitColunas(...s))},[l.createVNode(a,{size:15,"stroke-width":2}),n[2]||(n[2]=l.createTextVNode(" Colunas ",-1))])):l.createCommentVNode("",!0),e.exibirBotaoFiltroAvancado?(l.openBlock(),l.createElementBlock("button",{key:1,type:"button",class:"eli-tabela__acoes-cabecalho-botao eli-tabela__acoes-cabecalho-botao--filtro",title:e.tooltipFiltro,onClick:n[1]||(n[1]=(...s)=>e.emitFiltroAvancado&&e.emitFiltroAvancado(...s))},[l.createElementVNode("span",Zp,[l.createVNode(c,{size:15,"stroke-width":2}),e.filtrosAtivosResumo.quantidade>0?(l.openBlock(),l.createElementBlock("span",Bp,l.toDisplayString(e.filtrosAtivosResumo.quantidade),1)):l.createCommentVNode("",!0)]),n[3]||(n[3]=l.createTextVNode(" Filtro ",-1))],8,Vp)):l.createCommentVNode("",!0),l.createVNode(u,{modelo:e.valorBusca,onBuscar:e.emitBuscar},null,8,["modelo","onBuscar"])])):l.createCommentVNode("",!0),e.temAcoesCabecalho?(l.openBlock(),l.createElementBlock("div",Mp,[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(e.acoesCabecalho,(s,m)=>(l.openBlock(),l.createElementBlock("button",{key:`${s.rotulo}-${m}`,type:"button",class:"eli-tabela__acoes-cabecalho-botao",style:l.normalizeStyle(s.cor?{backgroundColor:s.cor,color:"#fff"}:void 0),onClick:d=>s.acao(e.parametrosConsulta)},[s.icone?(l.openBlock(),l.createBlock(l.resolveDynamicComponent(s.icone),{key:0,class:"eli-tabela__acoes-cabecalho-icone",size:16,"stroke-width":2})):l.createCommentVNode("",!0),l.createElementVNode("span",Lp,l.toDisplayString(s.rotulo),1)],12,Fp))),128))])):l.createCommentVNode("",!0)])}const Jp=q(Cp,[["render",Rp]]),qp=l.defineComponent({name:"EliTabelaDebug",props:{isDev:{type:Boolean,required:!0},menuAberto:{type:[Number,Object],default:null},menuPopupPos:{type:Object,required:!0}},setup(e){const n=()=>{let r=document.getElementById("eli-tabela-debug-style");e.isDev?r||(r=document.createElement("style"),r.id="eli-tabela-debug-style",r.textContent=` +`)}`});function t(c){n("buscar",c)}function o(){n("colunas")}function a(){n("filtroAvancado")}return{temAcoesCabecalho:r,tooltipFiltro:i,emitBuscar:t,emitColunas:o,emitFiltroAvancado:a}}}),gg={class:"eli-tabela__cabecalho"},vg={key:0,class:"eli-tabela__busca-grupo"},hg=["title"],$g={class:"eli-tabela__filtro-icone-container"},bg={key:0,class:"eli-tabela__filtro-badge"},_g={key:1,class:"eli-tabela__acoes-cabecalho"},yg=["onClick"],kg={class:"eli-tabela__acoes-cabecalho-rotulo"};function Sg(e,n,r,i,t,o){const a=l.resolveComponent("Columns3"),c=l.resolveComponent("Filter"),u=l.resolveComponent("EliTabelaCaixaDeBusca");return l.openBlock(),l.createElementBlock("div",gg,[e.exibirBusca?(l.openBlock(),l.createElementBlock("div",vg,[e.exibirBotaoColunas?(l.openBlock(),l.createElementBlock("button",{key:0,type:"button",class:"eli-tabela__acoes-cabecalho-botao eli-tabela__acoes-cabecalho-botao--colunas",onClick:n[0]||(n[0]=(...s)=>e.emitColunas&&e.emitColunas(...s))},[l.createVNode(a,{size:15,"stroke-width":2}),n[2]||(n[2]=l.createTextVNode(" Colunas ",-1))])):l.createCommentVNode("",!0),e.exibirBotaoFiltroAvancado?(l.openBlock(),l.createElementBlock("button",{key:1,type:"button",class:"eli-tabela__acoes-cabecalho-botao eli-tabela__acoes-cabecalho-botao--filtro",title:e.tooltipFiltro,onClick:n[1]||(n[1]=(...s)=>e.emitFiltroAvancado&&e.emitFiltroAvancado(...s))},[l.createElementVNode("span",$g,[l.createVNode(c,{size:15,"stroke-width":2}),e.filtrosAtivosResumo.quantidade>0?(l.openBlock(),l.createElementBlock("span",bg,l.toDisplayString(e.filtrosAtivosResumo.quantidade),1)):l.createCommentVNode("",!0)]),n[3]||(n[3]=l.createTextVNode(" Filtro ",-1))],8,hg)):l.createCommentVNode("",!0),l.createVNode(u,{modelo:e.valorBusca,onBuscar:e.emitBuscar},null,8,["modelo","onBuscar"])])):l.createCommentVNode("",!0),e.temAcoesCabecalho?(l.openBlock(),l.createElementBlock("div",_g,[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(e.acoesCabecalho,(s,m)=>(l.openBlock(),l.createElementBlock("button",{key:`${s.rotulo}-${m}`,type:"button",class:"eli-tabela__acoes-cabecalho-botao",style:l.normalizeStyle(s.cor?{backgroundColor:s.cor,color:"#fff"}:void 0),onClick:d=>s.acao(e.parametrosConsulta)},[s.icone?(l.openBlock(),l.createBlock(l.resolveDynamicComponent(s.icone),{key:0,class:"eli-tabela__acoes-cabecalho-icone",size:16,"stroke-width":2})):l.createCommentVNode("",!0),l.createElementVNode("span",kg,l.toDisplayString(s.rotulo),1)],12,yg))),128))])):l.createCommentVNode("",!0)])}const wg=q(pg,[["render",Sg]]),Ig=l.defineComponent({name:"EliTabelaDebug",props:{isDev:{type:Boolean,required:!0},menuAberto:{type:[Number,Object],default:null},menuPopupPos:{type:Object,required:!0}},setup(e){const n=()=>{let r=document.getElementById("eli-tabela-debug-style");e.isDev?r||(r=document.createElement("style"),r.id="eli-tabela-debug-style",r.textContent=` html, body { overflow-x: auto !important; } @@ -158,12 +158,12 @@ ${u.map(s=>`• ${s}`).join(` overflow-x: auto !important; max-width: 100% !important; } - `,document.head.appendChild(r)):r&&r.remove()};l.watch(()=>e.isDev,n),l.onMounted(n),l.onUnmounted(()=>{const r=document.getElementById("eli-tabela-debug-style");r&&r.remove()})}}),Gp={key:0,style:{position:"fixed",right:"0",top:"0",bottom:"0",width:"360px","z-index":"999999",background:"rgba(20, 20, 20, 0.95)",color:"#32CD32",padding:"20px 16px","font-family":"'Courier New', Courier, monospace","font-size":"12px","overflow-y":"auto","border-left":"1px solid #333",display:"flex","flex-direction":"column",gap:"6px"}},Wp={style:{color:"#bbb"}},Kp={style:{color:"#fff"}},Xp={style:{color:"#bbb"}},Yp={style:{color:"#fff"}},Hp={style:{color:"#fff"}},Qp={style:{"margin-top":"8px","white-space":"pre-wrap","word-break":"break-all"}};function eg(e,n,r,i,t,o){return e.isDev?(l.openBlock(),l.createElementBlock("div",Gp,[n[3]||(n[3]=l.createElementVNode("div",{style:{"font-weight":"bold",color:"#fff","margin-bottom":"8px","text-transform":"uppercase","letter-spacing":"1px","border-bottom":"1px solid #333","padding-bottom":"8px"}}," EliTabela // Log Terminal ",-1)),l.createElementVNode("div",Wp,[n[0]||(n[0]=l.createTextVNode("menuAberto: ",-1)),l.createElementVNode("span",Kp,l.toDisplayString(e.menuAberto),1)]),l.createElementVNode("div",Xp,[n[1]||(n[1]=l.createTextVNode("menuPos: top=",-1)),l.createElementVNode("span",Yp,l.toDisplayString(e.menuPopupPos.top),1),n[2]||(n[2]=l.createTextVNode(", left=",-1)),l.createElementVNode("span",Hp,l.toDisplayString(e.menuPopupPos.left),1)]),l.createElementVNode("div",Qp,[l.renderSlot(e.$slots,"default")])])):l.createCommentVNode("",!0)}const tg=q(qp,[["render",eg]]),ng=l.defineComponent({name:"EliTabelaEstados",components:{AlertCircle:If,Inbox:Uf,LoaderCircle:Tf},props:{carregando:{type:Boolean,required:!0},erro:{type:[String,Object],default:null},mensagemVazio:{type:String,required:!1,default:void 0}}}),rg={key:0,class:"eli-tabela eli-tabela--carregando","aria-busy":"true"},og={key:1,class:"eli-tabela eli-tabela--erro",role:"alert"},ig={class:"eli-tabela__erro-mensagem"},ag={key:2,class:"eli-tabela eli-tabela--vazio"};function lg(e,n,r,i,t,o){const a=l.resolveComponent("LoaderCircle"),c=l.resolveComponent("AlertCircle"),u=l.resolveComponent("Inbox");return e.carregando?(l.openBlock(),l.createElementBlock("div",rg,[l.createVNode(a,{class:"eli-tabela__estado-icone eli-tabela__estado-icone--spin",size:22,"stroke-width":2}),n[0]||(n[0]=l.createElementVNode("span",null,"Carregando…",-1))])):e.erro?(l.openBlock(),l.createElementBlock("div",og,[l.createVNode(c,{class:"eli-tabela__estado-icone eli-tabela__estado-icone--erro",size:18,"stroke-width":2}),l.createElementVNode("div",null,[n[1]||(n[1]=l.createElementVNode("div",{class:"eli-tabela__erro-titulo"},"Erro",-1)),l.createElementVNode("div",ig,l.toDisplayString(e.erro),1)])])):(l.openBlock(),l.createElementBlock("div",ag,[l.createVNode(u,{class:"eli-tabela__estado-icone",size:22,"stroke-width":1.5}),l.createElementVNode("span",null,l.toDisplayString(e.mensagemVazio??"Nenhum registro encontrado."),1)]))}const cg=q(ng,[["render",lg]]),sg=l.defineComponent({name:"EliTabelaHead",components:{ArrowUp:Si,ArrowDown:ki},props:{colunas:{type:Array,required:!0},temAcoes:{type:Boolean,required:!0},temColunasInvisiveis:{type:Boolean,required:!0},colunaOrdenacao:{type:[String,Object],default:null},direcaoOrdenacao:{type:String,required:!0},mostrarSelecao:{type:Boolean,default:!1},todosSelecionados:{type:Boolean,default:!1},algunsSelecionados:{type:Boolean,default:!1}},emits:{alternarOrdenacao(e){return typeof e=="string"&&e.length>0},"alternar-selecao-todos":()=>!0},setup(e,{emit:n}){function r(t){return t.coluna_ordem!==void 0&&t.coluna_ordem!==null}function i(t){n("alternarOrdenacao",t)}return{ArrowUp:Si,ArrowDown:ki,isOrdenavel:r,emitAlternarOrdenacao:i}}}),ug={class:"eli-tabela__thead"},dg={class:"eli-tabela__tr eli-tabela__tr--header"},mg={key:0,class:"eli-tabela__th eli-tabela__th--expander",scope:"col"},fg={key:1,class:"eli-tabela__th eli-tabela__th--selecao",scope:"col"},pg=["checked","indeterminate"],gg=["onClick"],vg={class:"eli-tabela__th-texto"},hg={key:1,class:"eli-tabela__th-label"},$g={key:2,class:"eli-tabela__th eli-tabela__th--acoes",scope:"col"};function bg(e,n,r,i,t,o){const a=l.resolveComponent("ArrowUp");return l.openBlock(),l.createElementBlock("thead",ug,[l.createElementVNode("tr",dg,[e.temColunasInvisiveis?(l.openBlock(),l.createElementBlock("th",mg)):l.createCommentVNode("",!0),e.mostrarSelecao?(l.openBlock(),l.createElementBlock("th",fg,[l.createElementVNode("input",{type:"checkbox",class:"eli-tabela__checkbox",checked:e.todosSelecionados,indeterminate:e.algunsSelecionados,onChange:n[0]||(n[0]=c=>e.$emit("alternar-selecao-todos")),"aria-label":"Selecionar todos os itens da página"},null,40,pg)])):l.createCommentVNode("",!0),(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(e.colunas,(c,u)=>(l.openBlock(),l.createElementBlock("th",{key:`th-${u}`,class:l.normalizeClass(["eli-tabela__th",[e.isOrdenavel(c)?"eli-tabela__th--ordenavel":void 0]]),scope:"col"},[e.isOrdenavel(c)?(l.openBlock(),l.createElementBlock("button",{key:0,type:"button",class:l.normalizeClass(["eli-tabela__th-botao",[e.colunaOrdenacao===String(c.coluna_ordem)?"eli-tabela__th-botao--ativo":void 0]]),onClick:s=>e.emitAlternarOrdenacao(String(c.coluna_ordem))},[l.createElementVNode("span",vg,l.toDisplayString(c.rotulo),1),e.colunaOrdenacao===String(c.coluna_ordem)?(l.openBlock(),l.createBlock(l.resolveDynamicComponent(e.direcaoOrdenacao==="asc"?e.ArrowUp:e.ArrowDown),{key:0,class:"eli-tabela__th-icone",size:16,"stroke-width":2,"aria-hidden":"true"})):(l.openBlock(),l.createBlock(a,{key:1,class:"eli-tabela__th-icone eli-tabela__th-icone--oculto",size:16,"stroke-width":2,"aria-hidden":"true"}))],10,gg)):(l.openBlock(),l.createElementBlock("span",hg,l.toDisplayString(c.rotulo),1))],2))),128)),e.temAcoes?(l.openBlock(),l.createElementBlock("th",$g," Ações ")):l.createCommentVNode("",!0)])])}const _g=q(sg,[["render",bg]]),yg=l.defineComponent({name:"EliTabelaMenuAcoes",props:{menuAberto:{type:[Number,Object],default:null},posicao:{type:Object,required:!0},acoes:{type:Array,required:!0},linha:{type:[Object,String,Number,Array],default:null}},emits:{executar(e){return e!==null&&typeof e=="object"}},setup(e,{emit:n}){const r=l.ref(null),i=l.computed(()=>e.acoes.length>0);function t(o){e.linha&&n("executar",{acao:o.acao,linha:e.linha})}return{menuEl:r,possuiAcoes:i,emitExecutar:t}}}),kg={class:"eli-teleport-container"},Sg=["id","aria-labelledby"],wg=["aria-label","title","onClick"],Ig={class:"eli-tabela__acoes-item-texto"};function zg(e,n,r,i,t,o){return l.openBlock(),l.createElementBlock("div",kg,[(l.openBlock(),l.createBlock(l.Teleport,{to:"body"},[e.menuAberto!==null&&e.possuiAcoes?(l.openBlock(),l.createElementBlock("ul",{key:0,id:`eli-tabela-acoes-menu-${e.menuAberto}`,ref:"menuEl",class:"eli-tabela__acoes-menu",role:"menu","aria-labelledby":`eli-tabela-acoes-toggle-${e.menuAberto}`,style:l.normalizeStyle({position:"fixed",top:`${e.posicao.top}px`,left:`${e.posicao.left}px`,zIndex:999999})},[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(e.acoes,a=>(l.openBlock(),l.createElementBlock("li",{key:`acao-${e.menuAberto}-${a.indice}`,class:"eli-tabela__acoes-item",role:"none"},[l.createElementVNode("button",{type:"button",class:"eli-tabela__acoes-item-botao",style:l.normalizeStyle({color:a.acao.cor}),role:"menuitem","aria-label":a.acao.rotulo,title:a.acao.rotulo,onClick:l.withModifiers(c=>e.emitExecutar(a),["stop"])},[(l.openBlock(),l.createBlock(l.resolveDynamicComponent(a.acao.icone),{class:"eli-tabela__acoes-item-icone",size:16,"stroke-width":2})),l.createElementVNode("span",Ig,l.toDisplayString(a.acao.rotulo),1)],12,wg)]))),128))],12,Sg)):l.createCommentVNode("",!0)]))])}const Eg=q(yg,[["render",zg]]);function Ng({aberto:e,rotulosColunas:n,configInicial:r,colunas:i}){const t=l.ref([]),o=l.ref([]),a=l.ref(null);function c(){var U,T;const f=n.value,p=(((U=r.value.visiveis)==null?void 0:U.length)??0)>0||(((T=r.value.invisiveis)==null?void 0:T.length)??0)>0,v=new Set(i.value.filter(h=>h.visivel===!1).map(h=>h.rotulo)),b=p?new Set(r.value.invisiveis??[]):v,N=f.filter(h=>!b.has(h)),S=r.value.visiveis??[],w=new Set(N),P=[];for(const h of S)w.has(h)&&P.push(h);for(const h of N)P.includes(h)||P.push(h);t.value=P,o.value=f.filter(h=>b.has(h))}l.watch(()=>[e.value,n.value,r.value,i.value],()=>{e.value&&c()},{deep:!0,immediate:!0});function u(f,p){a.value=p,f.dataTransfer&&(f.dataTransfer.setData("text/plain",p),f.dataTransfer.effectAllowed="move")}function s(){a.value=null}function m(f,p){const v=a.value;if(!v||v===f)return;const b=t.value.indexOf(v),N=o.value.indexOf(v),S=b>=0?"visiveis":N>=0?"invisiveis":null;if(!S)return;const w=S==="visiveis"?t.value:o.value,P=p==="visiveis"?t.value:o.value,U=w.indexOf(v),T=P.indexOf(f);w.splice(U,1),P.splice(T,0,v)}function d(f){const p=a.value;if(!p)return;const v=f==="visiveis"?t.value:o.value;if(v[v.length-1]===p)return;const b=t.value.indexOf(p),N=o.value.indexOf(p);b>=0&&t.value.splice(b,1),N>=0&&o.value.splice(N,1),v.push(p)}return{visiveisLocal:t,invisiveisLocal:o,itemSendoArrastado:a,onDragStart:u,onDragEnd:s,onDragOverItem:m,onDragOverLista:d}}const Dg=l.defineComponent({name:"EliTabelaModalColunas",components:{Columns2:Ef,Eye:jf,EyeOff:xf,GripVertical:Of,X:Ei,Check:wf},props:{aberto:{type:Boolean,required:!0},rotulosColunas:{type:Array,required:!0},configInicial:{type:Object,required:!0},colunas:{type:Array,required:!0}},emits:{fechar(){return!0},salvar(e){return!0}},setup(e,{emit:n}){const r=Ng({aberto:l.computed(()=>e.aberto),rotulosColunas:l.computed(()=>e.rotulosColunas),configInicial:l.computed(()=>e.configInicial),colunas:l.computed(()=>e.colunas)});function i(){n("fechar")}function t(){n("salvar",{visiveis:[...r.visiveisLocal.value],invisiveis:[...r.invisiveisLocal.value]})}return{...r,emitFechar:i,emitSalvar:t}}}),xg={class:"eli-tabela-modal-colunas__modal",role:"dialog","aria-modal":"true","aria-labelledby":"eli-modal-colunas-titulo"},jg={class:"eli-tabela-modal-colunas__header"},Og={class:"eli-tabela-modal-colunas__header-info"},Ug={class:"eli-tabela-modal-colunas__instrucao"},Tg={class:"eli-tabela-modal-colunas__conteudo"},Cg={class:"eli-tabela-modal-colunas__coluna"},Pg={class:"eli-tabela-modal-colunas__coluna-cabecalho eli-tabela-modal-colunas__coluna-cabecalho--visiveis"},Ag={class:"eli-tabela-modal-colunas__coluna-contador"},Vg=["title","onDragstart","onDragover"],Zg={class:"eli-tabela-modal-colunas__item-texto"},Bg={key:"vazio-visiveis",class:"eli-tabela-modal-colunas__vazio"},Mg={class:"eli-tabela-modal-colunas__coluna"},Fg={class:"eli-tabela-modal-colunas__coluna-cabecalho eli-tabela-modal-colunas__coluna-cabecalho--invisiveis"},Lg={class:"eli-tabela-modal-colunas__coluna-contador"},Rg=["title","onDragstart","onDragover"],Jg={class:"eli-tabela-modal-colunas__item-texto"},qg={key:"vazio-invisiveis",class:"eli-tabela-modal-colunas__vazio"},Gg={class:"eli-tabela-modal-colunas__footer"};function Wg(e,n,r,i,t,o){const a=l.resolveComponent("Columns2"),c=l.resolveComponent("X"),u=l.resolveComponent("GripVertical"),s=l.resolveComponent("Eye"),m=l.resolveComponent("EyeOff"),d=l.resolveComponent("Check");return l.openBlock(),l.createBlock(l.Teleport,{to:"body"},[e.aberto?(l.openBlock(),l.createElementBlock("div",{key:0,class:"eli-tabela-modal-colunas__overlay",role:"presentation",onClick:n[9]||(n[9]=l.withModifiers((...f)=>e.emitFechar&&e.emitFechar(...f),["self"]))},[l.createElementVNode("div",xg,[l.createElementVNode("header",jg,[l.createElementVNode("div",Og,[l.createVNode(a,{size:18,"stroke-width":2,class:"eli-tabela-modal-colunas__header-icone"}),n[10]||(n[10]=l.createElementVNode("h3",{id:"eli-modal-colunas-titulo",class:"eli-tabela-modal-colunas__titulo"},"Configurar colunas",-1))]),l.createElementVNode("button",{type:"button",class:"eli-tabela-modal-colunas__fechar","aria-label":"Fechar modal de colunas",onClick:n[0]||(n[0]=(...f)=>e.emitFechar&&e.emitFechar(...f))},[l.createVNode(c,{size:16,"stroke-width":2.5})])]),l.createElementVNode("div",Ug,[l.createVNode(u,{size:14,"stroke-width":2,class:"eli-tabela-modal-colunas__instrucao-icone"}),n[11]||(n[11]=l.createTextVNode(" Arraste para reordenar ou mover entre as listas ",-1))]),l.createElementVNode("div",Tg,[l.createElementVNode("div",Cg,[l.createElementVNode("div",Pg,[l.createVNode(s,{size:14,"stroke-width":2}),n[12]||(n[12]=l.createElementVNode("span",null,"Visíveis",-1)),l.createElementVNode("span",Ag,l.toDisplayString(e.visiveisLocal.length),1)]),l.createVNode(l.TransitionGroup,{name:"list",tag:"div",class:"eli-tabela-modal-colunas__lista eli-tabela-modal-colunas__lista--visiveis",onDragover:n[3]||(n[3]=l.withModifiers(f=>e.onDragOverLista("visiveis"),["prevent"])),onDrop:e.onDragEnd},{default:l.withCtx(()=>[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(e.visiveisLocal,f=>(l.openBlock(),l.createElementBlock("div",{key:`vis-${f}`,class:l.normalizeClass(["eli-tabela-modal-colunas__item eli-tabela-modal-colunas__item--visivel",{"eli-tabela-modal-colunas__item--arrastando":e.itemSendoArrastado===f}]),draggable:"true",title:`Arraste para mover '${f}'`,onDragstart:p=>e.onDragStart(p,f),onDragend:n[1]||(n[1]=(...p)=>e.onDragEnd&&e.onDragEnd(...p)),onDragover:l.withModifiers(p=>e.onDragOverItem(f,"visiveis"),["stop","prevent"]),onDrop:n[2]||(n[2]=l.withModifiers((...p)=>e.onDragEnd&&e.onDragEnd(...p),["stop","prevent"]))},[l.createVNode(u,{size:15,"stroke-width":2,class:"eli-tabela-modal-colunas__item-handle","aria-hidden":"true"}),l.createElementVNode("span",Zg,l.toDisplayString(f),1),l.createVNode(s,{size:13,"stroke-width":2,class:"eli-tabela-modal-colunas__item-badge-icone eli-tabela-modal-colunas__item-badge-icone--visivel","aria-hidden":"true"})],42,Vg))),128)),e.visiveisLocal.length===0?(l.openBlock(),l.createElementBlock("div",Bg,[l.createVNode(m,{size:28,"stroke-width":1.5,class:"eli-tabela-modal-colunas__vazio-icone"}),n[13]||(n[13]=l.createElementVNode("span",null,[l.createTextVNode("Nenhuma coluna visível."),l.createElementVNode("br"),l.createTextVNode("Arraste itens da lista ao lado.")],-1))])):l.createCommentVNode("",!0)]),_:1},8,["onDrop"])]),l.createElementVNode("div",Mg,[l.createElementVNode("div",Fg,[l.createVNode(m,{size:14,"stroke-width":2}),n[14]||(n[14]=l.createElementVNode("span",null,"Ocultas",-1)),l.createElementVNode("span",Lg,l.toDisplayString(e.invisiveisLocal.length),1)]),l.createVNode(l.TransitionGroup,{name:"list",tag:"div",class:"eli-tabela-modal-colunas__lista eli-tabela-modal-colunas__lista--invisiveis",onDragover:n[6]||(n[6]=l.withModifiers(f=>e.onDragOverLista("invisiveis"),["prevent"])),onDrop:e.onDragEnd},{default:l.withCtx(()=>[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(e.invisiveisLocal,f=>(l.openBlock(),l.createElementBlock("div",{key:`inv-${f}`,class:l.normalizeClass(["eli-tabela-modal-colunas__item eli-tabela-modal-colunas__item--invisivel",{"eli-tabela-modal-colunas__item--arrastando":e.itemSendoArrastado===f}]),draggable:"true",title:`Arraste para mover '${f}'`,onDragstart:p=>e.onDragStart(p,f),onDragend:n[4]||(n[4]=(...p)=>e.onDragEnd&&e.onDragEnd(...p)),onDragover:l.withModifiers(p=>e.onDragOverItem(f,"invisiveis"),["stop","prevent"]),onDrop:n[5]||(n[5]=l.withModifiers((...p)=>e.onDragEnd&&e.onDragEnd(...p),["stop","prevent"]))},[l.createVNode(u,{size:15,"stroke-width":2,class:"eli-tabela-modal-colunas__item-handle","aria-hidden":"true"}),l.createElementVNode("span",Jg,l.toDisplayString(f),1),l.createVNode(m,{size:13,"stroke-width":2,class:"eli-tabela-modal-colunas__item-badge-icone eli-tabela-modal-colunas__item-badge-icone--invisivel","aria-hidden":"true"})],42,Rg))),128)),e.invisiveisLocal.length===0?(l.openBlock(),l.createElementBlock("div",qg,[l.createVNode(s,{size:28,"stroke-width":1.5,class:"eli-tabela-modal-colunas__vazio-icone eli-tabela-modal-colunas__vazio-icone--ok"}),n[15]||(n[15]=l.createElementVNode("span",null,"Todas as colunas estão visíveis.",-1))])):l.createCommentVNode("",!0)]),_:1},8,["onDrop"])])]),l.createElementVNode("footer",Gg,[l.createElementVNode("button",{type:"button",class:"eli-tabela-modal-colunas__botao eli-tabela-modal-colunas__botao--sec",onClick:n[7]||(n[7]=(...f)=>e.emitFechar&&e.emitFechar(...f))},[l.createVNode(c,{size:14,"stroke-width":2.5}),n[16]||(n[16]=l.createTextVNode(" Cancelar ",-1))]),l.createElementVNode("button",{type:"button",class:"eli-tabela-modal-colunas__botao eli-tabela-modal-colunas__botao--prim",onClick:n[8]||(n[8]=(...f)=>e.emitSalvar&&e.emitSalvar(...f))},[l.createVNode(d,{size:14,"stroke-width":2.5}),n[17]||(n[17]=l.createTextVNode(" Salvar ",-1))])])])])):l.createCommentVNode("",!0)])}const Kg=q(Dg,[["render",Wg]]);function ji(e){return e.rotulo}function Xg({aberto:e,filtrosBase:n,modelo:r,modeloFormula:i,emit:t}){const o=l.ref([]),a=l.ref(""),c=l.ref(""),u=l.computed(()=>o.value.map(($,k)=>`{c${k+1}}`).join(" E "));function s($){let k=$;return o.value.forEach((M,I)=>{k=k.replace(new RegExp(`\\{${M.chave}\\}`,"g"),`{c${I+1}}`)}),k}function m($){var M;let k=$;for(let I=o.value.length;I>=1;I--){const C=(M=o.value[I-1])==null?void 0:M.chave;C&&(k=k.replace(new RegExp(`\\{c${I}\\}`,"g"),`{${C}}`))}return k}const d=l.computed(()=>(n.value??[]).map($=>String($.chave))),f=l.computed(()=>{const $=new Set(o.value.map(k=>String(k.chave)));return(n.value??[]).filter(k=>!$.has(String(k.chave)))});function p($){const k=$==null?void 0:$[0];return k==="numero"?Wn:k==="dataHora"?qn:k==="selecao"?Xn:k==="selecaoMultipla"?Yn:k==="paragrafo"?Kn:k==="confirmacao"?ci:Zt}function v($){return{...typeof($==null?void 0:$[1])=="object"&&$[1]!==null?{...$[1]}:{},rotulo:""}}function b($){return($==null?void 0:$[0])==="numero"||($==null?void 0:$[0])==="dataHora"||($==null?void 0:$[0])==="selecao"?null:($==null?void 0:$[0])==="selecaoMultipla"?[]:($==null?void 0:$[0])==="confirmacao"?!1:""}function N(){const $=n.value??[],k=Array.isArray(r.value)?r.value:[];o.value=k.map(M=>{if(!M||typeof M!="object")return null;const I=M,C=$.find(E=>String(E.chave)===String(I.chave))??$[0];if(!C)return null;const ie=C.entrada??I.entrada,$e=String(C.chave??I.chave),z=I.valor??b(ie);return{chave:$e,entrada:ie,valor:z}}).filter(Boolean),o.value=o.value.filter(M=>d.value.includes(String(M.chave))),i.value?c.value=s(i.value):c.value=u.value}l.watch(()=>[e.value,n.value,r.value],()=>{e.value&&N()},{deep:!0,immediate:!0});function S(){if(!a.value)return;const $=(n.value??[]).find(k=>String(k.chave)===String(a.value));$&&(o.value.some(k=>String(k.chave)===String($.chave))||(o.value.push({chave:String($.chave),entrada:$.entrada,valor:b($.entrada)}),c.value=u.value,a.value=""))}function w($){o.value.splice($,1),c.value=u.value}function P(){t("fechar")}function U(){t("limpar")}function T(){const $=m(c.value);t("salvar",o.value.map(k=>({chave:k.chave,valor:k.valor})),$)}function h($){const k=(n.value??[]).find(M=>String(M.chave)===$);return k?ji(k):$}return{linhas:o,opcoesParaAdicionar:f,chaveParaAdicionar:a,formulaCustomizada:c,formulaGerada:u,componenteEntrada:p,opcoesEntrada:v,adicionar:S,remover:w,emitFechar:P,emitSalvar:T,emitLimpar:U,rotuloDoFiltro:ji,rotuloDoFiltroAtivo:h}}const Yg=l.defineComponent({name:"EliTabelaModalFiltroAvancado",components:{CircleHelp:zf,Filter:zi,Plus:Cf,Trash2:Af,X:Ei},props:{aberto:{type:Boolean,required:!0},filtrosBase:{type:Array,required:!0},modelo:{type:Array,required:!0},modeloFormula:{type:String,default:""}},emits:{fechar:()=>!0,limpar:()=>!0,salvar:(e,n)=>!0},setup(e,{emit:n}){return Xg({aberto:l.computed(()=>e.aberto),filtrosBase:l.computed(()=>e.filtrosBase),modelo:l.computed(()=>e.modelo),modeloFormula:l.computed(()=>e.modeloFormula),emit:n})}}),Hg={class:"eli-tabela-modal-filtro__modal",role:"dialog","aria-modal":"true","aria-label":"Filtro avançado"},Qg={class:"eli-tabela-modal-filtro__header"},ev={class:"eli-tabela-modal-filtro__header-titulo"},tv={key:0,class:"eli-tabela-modal-filtro__contador"},nv={class:"eli-tabela-modal-filtro__conteudo"},rv={key:0,class:"eli-tabela-modal-filtro__vazio"},ov={key:1},iv={key:0,class:"eli-tabela-modal-filtro__lista"},av={class:"eli-tabela-modal-filtro__linha-header"},lv=["title"],cv={class:"eli-tabela-modal-filtro__rotulo-filtro"},sv=["onClick"],uv={class:"eli-tabela-modal-filtro__entrada"},dv={key:1,class:"eli-tabela-modal-filtro__estado-vazio"},mv={class:"eli-tabela-modal-filtro__rodape-filtros"},fv={class:"eli-tabela-modal-filtro__acoes"},pv=["disabled"],gv=["value"],vv=["disabled"],hv={key:0,class:"eli-tabela-modal-filtro__formula-container"},$v=["placeholder"],bv={class:"eli-tabela-modal-filtro__formula-ajuda",tabindex:"0","aria-label":"Ajuda sobre fórmulas"},_v={class:"eli-tabela-modal-filtro__footer"},yv=["disabled"];function kv(e,n,r,i,t,o){const a=l.resolveComponent("Filter"),c=l.resolveComponent("X"),u=l.resolveComponent("Trash2"),s=l.resolveComponent("Plus"),m=l.resolveComponent("CircleHelp");return l.openBlock(),l.createBlock(l.Transition,{name:"eli-tabela-modal-filtro"},{default:l.withCtx(()=>[e.aberto?(l.openBlock(),l.createElementBlock("div",{key:0,class:"eli-tabela-modal-filtro__overlay",role:"presentation",onClick:n[7]||(n[7]=l.withModifiers((...d)=>e.emitFechar&&e.emitFechar(...d),["self"]))},[l.createElementVNode("div",Hg,[l.createElementVNode("header",Qg,[l.createElementVNode("div",ev,[l.createVNode(a,{class:"eli-tabela-modal-filtro__header-icone",size:18,"stroke-width":2}),n[8]||(n[8]=l.createElementVNode("h3",{class:"eli-tabela-modal-filtro__titulo"},"Filtro avançado",-1)),e.linhas.length?(l.openBlock(),l.createElementBlock("span",tv,l.toDisplayString(e.linhas.length)+" "+l.toDisplayString(e.linhas.length===1?"filtro":"filtros"),1)):l.createCommentVNode("",!0)]),l.createElementVNode("button",{type:"button",class:"eli-tabela-modal-filtro__fechar","aria-label":"Fechar",onClick:n[0]||(n[0]=(...d)=>e.emitFechar&&e.emitFechar(...d))},[l.createVNode(c,{size:18,"stroke-width":2})])]),l.createElementVNode("div",nv,[e.filtrosBase.length?(l.openBlock(),l.createElementBlock("div",ov,[e.linhas.length?(l.openBlock(),l.createElementBlock("div",iv,[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(e.linhas,(d,f)=>(l.openBlock(),l.createElementBlock("div",{key:String(d.chave),class:"eli-tabela-modal-filtro__linha"},[l.createElementVNode("div",av,[l.createElementVNode("span",{class:"eli-tabela-modal-filtro__id-badge",title:`Identificador na fórmula: {c${f+1}}`}," c"+l.toDisplayString(f+1),9,lv),l.createElementVNode("span",cv,l.toDisplayString(e.rotuloDoFiltroAtivo(d.chave)),1),l.createElementVNode("button",{type:"button",class:"eli-tabela-modal-filtro__remover",title:"Remover filtro","aria-label":"Remover filtro",onClick:p=>e.remover(f)},[l.createVNode(u,{size:14,"stroke-width":2})],8,sv)]),l.createElementVNode("div",uv,[(l.openBlock(),l.createBlock(l.resolveDynamicComponent(e.componenteEntrada(d.entrada)),l.mergeProps({ref_for:!0},{value:d.valor,opcoes:e.opcoesEntrada(d.entrada),density:"compact"},{"onUpdate:value":p=>d.valor=p,onInput:p=>d.valor=p}),null,16,["onUpdate:value","onInput"]))])]))),128))])):(l.openBlock(),l.createElementBlock("div",dv,[l.createVNode(a,{size:32,"stroke-width":1.5}),n[9]||(n[9]=l.createElementVNode("span",null,"Selecione um filtro abaixo para começar",-1))])),l.createElementVNode("div",mv,[l.createElementVNode("div",fv,[l.withDirectives(l.createElementVNode("select",{"onUpdate:modelValue":n[1]||(n[1]=d=>e.chaveParaAdicionar=d),class:"eli-tabela-modal-filtro__select",disabled:!e.opcoesParaAdicionar.length},[n[10]||(n[10]=l.createElementVNode("option",{disabled:"",value:""},"Selecione um filtro…",-1)),(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(e.opcoesParaAdicionar,d=>(l.openBlock(),l.createElementBlock("option",{key:String(d.chave),value:String(d.chave)},l.toDisplayString(e.rotuloDoFiltro(d)),9,gv))),128))],8,pv),[[l.vModelSelect,e.chaveParaAdicionar]]),l.createElementVNode("button",{type:"button",class:"eli-tabela-modal-filtro__botao eli-tabela-modal-filtro__botao--prim",onClick:n[2]||(n[2]=(...d)=>e.adicionar&&e.adicionar(...d)),disabled:!e.chaveParaAdicionar},[l.createVNode(s,{size:15,"stroke-width":2.5}),n[11]||(n[11]=l.createTextVNode(" Adicionar ",-1))],8,vv)]),e.linhas.length>=2?(l.openBlock(),l.createElementBlock("div",hv,[n[13]||(n[13]=l.createElementVNode("label",{class:"eli-tabela-modal-filtro__formula-label"},"Fórmula",-1)),l.withDirectives(l.createElementVNode("input",{"onUpdate:modelValue":n[3]||(n[3]=d=>e.formulaCustomizada=d),type:"text",class:"eli-tabela-modal-filtro__formula-input",placeholder:"Ex: "+e.formulaGerada},null,8,$v),[[l.vModelText,e.formulaCustomizada]]),l.createElementVNode("span",bv,[l.createVNode(m,{size:15,"stroke-width":2}),n[12]||(n[12]=l.createElementVNode("div",{class:"eli-tabela-modal-filtro__formula-tooltip",role:"tooltip"},[l.createElementVNode("strong",null,"Como usar a fórmula"),l.createElementVNode("p",null,[l.createTextVNode("Use os identificadores "),l.createElementVNode("code",null,"{c1}"),l.createTextVNode(", "),l.createElementVNode("code",null,"{c2}"),l.createTextVNode(", "),l.createElementVNode("code",null,"{c3}"),l.createTextVNode("… correspondentes a cada filtro acima:")]),l.createElementVNode("ul",null,[l.createElementVNode("li",null,[l.createElementVNode("code",null,"E"),l.createTextVNode(" — ambos devem ser verdadeiros")]),l.createElementVNode("li",null,[l.createElementVNode("code",null,"OU"),l.createTextVNode(" — pelo menos um deve ser verdadeiro")]),l.createElementVNode("li",null,[l.createElementVNode("code",null,"NAO"),l.createTextVNode(" — negação de uma condição")]),l.createElementVNode("li",null,[l.createElementVNode("code",null,"( )"),l.createTextVNode(" — agrupa condições")])]),l.createElementVNode("p",null,[l.createElementVNode("strong",null,"Exemplo:")]),l.createElementVNode("code",null,"{c1} OU ({c2} E NAO {c3})"),l.createElementVNode("p",{class:"eli-tabela-modal-filtro__formula-tooltip-nota"},"Deixe em branco para combinar todos com E.")],-1))])])):l.createCommentVNode("",!0)])])):(l.openBlock(),l.createElementBlock("div",rv," Nenhum filtro configurado na tabela. "))]),l.createElementVNode("footer",_v,[l.createElementVNode("button",{type:"button",class:"eli-tabela-modal-filtro__botao eli-tabela-modal-filtro__botao--perigo",disabled:!e.linhas.length,onClick:n[4]||(n[4]=(...d)=>e.emitLimpar&&e.emitLimpar(...d))}," Limpar ",8,yv),n[14]||(n[14]=l.createElementVNode("div",{class:"eli-tabela-modal-filtro__footer-spacer"},null,-1)),l.createElementVNode("button",{type:"button",class:"eli-tabela-modal-filtro__botao eli-tabela-modal-filtro__botao--sec",onClick:n[5]||(n[5]=(...d)=>e.emitFechar&&e.emitFechar(...d))}," Cancelar "),l.createElementVNode("button",{type:"button",class:"eli-tabela-modal-filtro__botao eli-tabela-modal-filtro__botao--prim",onClick:n[6]||(n[6]=(...d)=>e.emitSalvar&&e.emitSalvar(...d))}," Aplicar ")])])])):l.createCommentVNode("",!0)]),_:1})}const Sv=q(Yg,[["render",kv]]),wv=l.defineComponent({name:"EliTabelaPaginacao",props:{pagina:{type:Number,required:!0},totalPaginas:{type:Number,required:!0},maximoBotoes:{type:Number,required:!1},acoes:{type:Array,required:!1,default:()=>[]},parametrosConsulta:{type:Object,required:!1}},emits:{alterar(e){return Number.isFinite(e)}},setup(e,{emit:n}){const r=l.computed(()=>{const s=e.maximoBotoes;return typeof s=="number"&&s>=5?Math.floor(s):7}),i=l.computed(()=>{const s=e.totalPaginas,m=e.pagina,d=r.value,f=[],p=w=>{f.push({label:String(w),pagina:w,ativo:w===m})},v=()=>{f.push({label:"…",ehEllipsis:!0})};if(s<=d){for(let w=1;w<=s;w+=1)p(w);return f}const b=Math.max(3,d-2);let N=Math.max(2,m-Math.floor(b/2)),S=N+b-1;S>=s&&(S=s-1,N=S-b+1),p(1),N>2&&v();for(let w=N;w<=S;w+=1)p(w);return Se.pagina<=1),a=l.computed(()=>e.pagina>=e.totalPaginas),c=l.computed(()=>e.pagina),u=l.computed(()=>e.totalPaginas);return{botoes:i,irParaPagina:t,anteriorDesabilitado:o,proximaDesabilitada:a,paginaAtual:c,totalPaginasExibidas:u}}}),Iv={class:"eli-tabela__rodape"},zv={key:0,class:"eli-tabela__acoes-inferiores",style:{"margin-right":"auto"}},Ev=["onClick"],Nv={class:"eli-tabela__acoes-cabecalho-rotulo"},Dv={key:1,class:"eli-tabela__paginacao",role:"navigation","aria-label":"Paginação de resultados"},xv=["disabled"],jv={key:0,class:"eli-tabela__pagina-ellipsis","aria-hidden":"true"},Ov=["disabled","aria-current","aria-label","onClick"],Uv=["disabled"];function Tv(e,n,r,i,t,o){return l.openBlock(),l.createElementBlock("div",Iv,[e.acoes.length>0?(l.openBlock(),l.createElementBlock("div",zv,[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(e.acoes,(a,c)=>(l.openBlock(),l.createElementBlock("button",{key:`${a.rotulo}-${c}`,type:"button",class:"eli-tabela__acao-inferior",style:l.normalizeStyle(a.cor?{borderColor:a.cor,color:a.cor}:void 0),onClick:u=>a.acao(e.parametrosConsulta)},[a.icone?(l.openBlock(),l.createBlock(l.resolveDynamicComponent(a.icone),{key:0,class:"eli-tabela__acoes-cabecalho-icone",size:16,"stroke-width":2})):l.createCommentVNode("",!0),l.createElementVNode("span",Nv,l.toDisplayString(a.rotulo),1)],12,Ev))),128))])):l.createCommentVNode("",!0),e.totalPaginasExibidas>1?(l.openBlock(),l.createElementBlock("nav",Dv,[l.createElementVNode("button",{type:"button",class:"eli-tabela__pagina-botao",disabled:e.anteriorDesabilitado,"aria-label":"Página anterior",onClick:n[0]||(n[0]=a=>e.irParaPagina(e.paginaAtual-1))}," << ",8,xv),(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(e.botoes,(a,c)=>(l.openBlock(),l.createElementBlock(l.Fragment,{key:`${a.label}-${c}`},[a.ehEllipsis?(l.openBlock(),l.createElementBlock("span",jv,l.toDisplayString(a.label),1)):(l.openBlock(),l.createElementBlock("button",{key:1,type:"button",class:l.normalizeClass(["eli-tabela__pagina-botao",a.ativo?"eli-tabela__pagina-botao--ativo":void 0]),disabled:a.ativo,"aria-current":a.ativo?"page":void 0,"aria-label":`Ir para página ${a.label}`,onClick:u=>e.irParaPagina(a.pagina)},l.toDisplayString(a.label),11,Ov))],64))),128)),l.createElementVNode("button",{type:"button",class:"eli-tabela__pagina-botao",disabled:e.proximaDesabilitada,"aria-label":"Próxima página",onClick:n[1]||(n[1]=a=>e.irParaPagina(e.paginaAtual+1))}," >> ",8,Uv)])):l.createCommentVNode("",!0)])}const Cv=q(wv,[["render",Tv]]),Pv="eli:tabela";function Oi(e){return`${Pv}:${e}:colunas`}function Ui(e){if(!e||typeof e!="object")return{visiveis:[],invisiveis:[]};const n=e,r=Array.isArray(n.visiveis)?n.visiveis.filter(t=>typeof t=="string"):[],i=Array.isArray(n.invisiveis)?n.invisiveis.filter(t=>typeof t=="string"):[];return{visiveis:r,invisiveis:i}}function Ti(e){try{const n=window.localStorage.getItem(Oi(e));return n?Ui(JSON.parse(n)):{visiveis:[],invisiveis:[]}}catch{return{visiveis:[],invisiveis:[]}}}function Av(e,n){try{window.localStorage.setItem(Oi(e),JSON.stringify(Ui(n)))}catch{}}function Hn(e){return`eli_tabela:${e}:filtro_avancado`}function Ci(e){const n={linhas:[],formula:""};try{const r=localStorage.getItem(Hn(e));if(!r)return n;const i=JSON.parse(r);return Array.isArray(i)?{linhas:i,formula:""}:i&&typeof i=="object"?{linhas:Array.isArray(i.linhas)?i.linhas:[],formula:typeof i.formula=="string"?i.formula:""}:n}catch{return n}}function Vv(e,n){try{localStorage.setItem(Hn(e),JSON.stringify(n??{linhas:[]}))}catch{}}function Zv(e){try{localStorage.removeItem(Hn(e))}catch{}}function Bv(e,n){const r=l.ref(!1),i=l.ref(Ti(e.tabela.nome)),t=l.ref({}),o=l.computed(()=>e.tabela.colunas.map(v=>v.rotulo)),a=l.computed(()=>{var T,h;const v=e.tabela.colunas,N=(((T=i.value.visiveis)==null?void 0:T.length)??0)>0||(((h=i.value.invisiveis)==null?void 0:h.length)??0)>0?i.value.invisiveis??[]:v.filter($=>$.visivel===!1).map($=>$.rotulo),S=new Set(N),w=v.filter($=>S.has($.rotulo)),P=new Map;for(const $ of w)P.has($.rotulo)||P.set($.rotulo,$);const U=[];for(const $ of N){const k=P.get($);k&&U.push(k)}for(const $ of w)U.includes($)||U.push($);return U}),c=l.computed(()=>a.value.length>0),u=l.computed(()=>{var k,M;const v=e.tabela.colunas,b=o.value,N=(((k=i.value.visiveis)==null?void 0:k.length)??0)>0||(((M=i.value.invisiveis)==null?void 0:M.length)??0)>0,S=N?i.value.invisiveis??[]:e.tabela.colunas.filter(I=>I.visivel===!1).map(I=>I.rotulo),w=new Set(S),P=b.filter(I=>!w.has(I)),U=new Set(P),T=N?i.value.visiveis??[]:[],h=[];for(const I of T)U.has(I)&&h.push(I);for(const I of P)h.includes(I)||h.push(I);const $=new Map;for(const I of v)$.has(I.rotulo)||$.set(I.rotulo,I);return h.map(I=>$.get(I)).filter(Boolean)}),s=l.computed(()=>u.value.length+(n.value?1:0)+(c.value?1:0));function m(){r.value=!0}function d(){r.value=!1}function f(v){i.value=v,Av(e.tabela.nome,v),r.value=!1,t.value={}}function p(v){const b=!!t.value[v];t.value={...t.value,[v]:!b}}return{modalColunasAberto:r,configColunas:i,linhasExpandidas:t,rotulosColunas:o,colunasEfetivas:u,colunasInvisiveisEfetivas:a,temColunasInvisiveis:c,totalColunas:s,abrirModalColunas:m,fecharModalColunas:d,salvarModalColunas:f,alternarLinhaExpandida:p}}var Pi=(e=>(e[e.sucesso=200]="sucesso",e[e.erroConhecido=400]="erroConhecido",e[e.erroPermissao=401]="erroPermissao",e[e.erroNaoEncontrado=404]="erroNaoEncontrado",e[e.erroDesconhecido=500]="erroDesconhecido",e[e.tempoEsgotado=504]="tempoEsgotado",e))(Pi||{});function Mv(e,n,r,i,t){const a=l.ref(!1),c=l.ref(null),u=l.ref([]),s=l.ref(0),m=l.ref([]),d=l.ref(null),f=l.ref("asc"),p=l.computed(()=>e.tabela),v=l.computed(()=>{const z=e.tabela.registros_por_consulta;return typeof z=="number"&&z>0?Math.floor(z):10}),b=l.computed(()=>{const z=v.value;if(!z||z<=0)return 1;const E=s.value??0;return E?Math.max(1,Math.ceil(E/z)):1}),N=l.computed(()=>u.value??[]),S=l.computed(()=>s.value??0),w=l.computed(()=>(e.tabela.acoesLinha??[]).length>0),P=l.computed(()=>!!e.tabela.mostrarCaixaDeBusca),U=l.computed(()=>(e.tabela.acoesTabela??[]).filter(z=>z.posicao==="superior")),T=l.computed(()=>(e.tabela.acoesTabela??[]).filter(z=>z.posicao==="inferior")),h=l.computed(()=>U.value.length>0),$=l.computed(()=>T.value.length>0),k=l.computed(()=>{const z=Math.max(1,v.value),D={offSet:(r.value-1)*z,limit:z},O=(i.value??"").trim();if(O)D.texto_busca=O;else{const j=n.value;j.length&&(D.filtros=j)}return d.value&&(D.coluna_ordem=d.value,D.direcao_ordem=f.value),{...D,atualizarConsulta:async()=>{await I()},editarLista:async j=>(u.value=j,j)}});let M=0;async function I(){var E,D;const z=++M;a.value=!0,c.value=null;try{m.value=[],t.value={};const O=Math.max(1,v.value),Z={offSet:(r.value-1)*O,limit:O},F=(i.value??"").trim();if(F)Z.texto_busca=F;else{const le=n.value;le.length&&(Z.filtros=le)}d.value&&(Z.coluna_ordem=d.value,Z.direcao_ordem=f.value);const G=await e.tabela.consulta(Z);if(z!==M)return;if(G.cod!==Pi.sucesso){u.value=[],s.value=0,c.value=G.mensagem;return}const Y=((E=G.valor)==null?void 0:E.valores)??[],te=((D=G.valor)==null?void 0:D.quantidade)??Y.length;u.value=Y,s.value=Number(te)||0;const ne=Math.max(1,Math.ceil((s.value||0)/O));r.value>ne&&(r.value=ne);const ae=e.tabela.acoesLinha??[];if(!ae.length){m.value=[];return}m.value=Y.map(()=>ae.map(le=>le.exibir===void 0?!0:typeof le.exibir=="boolean"?le.exibir:!1));const je=await Promise.all(Y.map(le=>Promise.all(ae.map(async ke=>{if(ke.exibir===void 0)return!0;if(typeof ke.exibir=="boolean")return ke.exibir;try{return!!await Promise.resolve(ke.exibir(le))}catch{return!1}}))));z===M&&(m.value=je)}catch(O){if(console.error("[EliTabela] Erro capturado em carregar():",O),z!==M)return;u.value=[],s.value=0,c.value=O instanceof Error?O.message:"Erro ao carregar dados."}finally{z===M&&(a.value=!1)}}function C(z){if(z){if(d.value===z){f.value=f.value==="asc"?"desc":"asc",I();return}d.value=z,f.value="asc",r.value!==1?r.value=1:I()}}function ie(z){i.value!==z&&(i.value=z,r.value!==1?r.value=1:I())}function $e(z){const E=Math.min(Math.max(1,z),b.value);E!==r.value&&(r.value=E)}return l.watch(r,(z,E)=>{z!==E&&I()}),l.watch(u,()=>{t.value={}}),l.watch(()=>e.tabela.mostrarCaixaDeBusca,z=>{!z&&i.value&&(i.value="",r.value!==1?r.value=1:I())}),l.watch(()=>e.tabela.registros_por_consulta,()=>{r.value!==1?r.value=1:I()}),{isDev:!1,tabela:p,carregando:a,erro:c,linhas:u,linhasPaginadas:N,quantidade:s,quantidadeFiltrada:S,acoesVisiveis:m,colunaOrdenacao:d,direcaoOrdenacao:f,registrosPorConsulta:v,totalPaginas:b,temAcoes:w,exibirBusca:P,acoesSuperiores:U,acoesInferiores:T,temAcoesSuperiores:h,temAcoesInferiores:$,parametrosConsultaAtuais:k,carregar:I,alternarOrdenacao:C,atualizarBusca:ie,irParaPagina:$e}}function Fv(e,n,r,i){const t=Ci(e.tabela.nome),o=l.ref(t.linhas),a=l.ref(t.formula??""),c=l.ref(!1),u=l.computed(()=>(e.tabela.filtroAvancado??[]).length>0),s=l.computed(()=>{const S=e.tabela.filtroAvancado??[],w=(o.value??[]).filter(h=>h&&h.chave!==void 0);if(w.length===0)return[];const P=w.map(h=>{const $=S.find(M=>String(M.chave)===String(h.chave));if(!$)return null;const k=$.filtro(h.valor);return k?{chave:h.chave,condicao:k}:null}).filter(h=>h!==null);if(P.length===0)return[];if(a.value&&P.length>1){const h=[];let $=a.value;return P.forEach(({chave:k},M)=>{$=$.replace(new RegExp(`\\{${k}\\}`,"g"),`{c${M+1}}`)}),P.forEach(({condicao:k},M)=>{const I=`{c${M+1}}`;h.push({...k,id:I})}),[{condicoes:h,formula:$}]}const U=P.map(({condicao:h},$)=>({...h,id:`{c${$+1}}`})),T=U.map(h=>h.id).join(" E ");return[{condicoes:U,formula:T}]});function m(){c.value=!0}function d(){c.value=!1}function f(){o.value=[],a.value="",Zv(e.tabela.nome),c.value=!1,r.value="",n.value!==1?n.value=1:i()}function p(S,w){o.value=S??[],a.value=w??"",Vv(e.tabela.nome,{linhas:o.value,formula:a.value}),c.value=!1,r.value="",n.value!==1?n.value=1:i()}const v={"=":"igual a","!=":"diferente de",">":"maior que","<":"menor que",">=":"maior ou igual a","<=":"menor ou igual a",like:"contém",in:"em","∩":"possui"};function b(S,w){const[P,U]=Array.isArray(S)?S:[S,{}];if(P==="confirmacao"){const T=U||{};return w===!0?T.rotuloAtivo||"Sim":w===!1?T.rotuloInativo||"Não":String(w)}if((P==="selecao"||P==="selecaoMultipla")&&typeof(U==null?void 0:U.itens)=="function")try{const T=U.itens();if(Array.isArray(T)){const h=$=>{const k=T.find(M=>String(M.chave)===String($));return k?k.rotulo:$};return Array.isArray(w)?w.map($=>h(String($))).join(", "):h(String(w))}}catch{}return Array.isArray(w)?w.map(String).join(", "):String(w)}const N=l.computed(()=>{const S=e.tabela.filtroAvancado??[],w=(o.value??[]).filter(U=>U&&U.chave!==void 0),P=[];for(const U of w){const T=S.find(h=>String(h.chave)===String(U.chave));if(T){const h=T.filtro(U.valor);if(h){const $=v[h.operador]||h.operador,k=b(T.entrada,h.valor);P.push(`${T.rotulo} ${$} "${k}"`)}}}return{quantidade:P.length,rotulos:P}});return{filtrosUi:o,filtrosFormula:a,modalFiltroAberto:c,exibirFiltroAvancado:u,filtrosAvancadosAtivos:s,filtrosAtivosResumo:N,abrirModalFiltro:m,fecharModalFiltro:d,limparFiltrosAvancados:f,salvarFiltrosAvancados:p}}function Lv(e,n){const r=l.ref(null),i=l.ref(null),t=l.ref({top:0,left:0});function o(m){var S,w,P,U;const d=m.getBoundingClientRect(),f=8,p=((w=(S=i.value)==null?void 0:S.menuEl)==null?void 0:w.offsetHeight)??0,v=((U=(P=i.value)==null?void 0:P.menuEl)==null?void 0:U.offsetWidth)??180;let b=d.bottom+f;const N=d.right-v;p&&b+p>window.innerHeight-f&&(b=d.top-f-p),t.value={top:Math.max(f,Math.round(b)),left:Math.max(f,Math.round(N))}}function a(m){var f,p;if(r.value===null)return;const d=m.target;(p=(f=i.value)==null?void 0:f.menuEl)!=null&&p.contains(d)||(r.value=null)}function c(m){const d=e.tabela.acoesLinha??[],f=n.value[m]??[];return d.map((p,v)=>{const b=p.exibir===void 0?!0:typeof p.exibir=="boolean"?p.exibir:!1;return{acao:p,indice:v,visivel:f[v]??b}}).filter(p=>p.visivel)}function u(m){return c(m).length>0}function s(m,d){if(!u(m))return;if(r.value===m){r.value=null;return}r.value=m;const f=(d==null?void 0:d.currentTarget)??null;f&&(o(f),l.nextTick(()=>{r.value!==null&&o(f)}))}return l.onMounted(()=>document.addEventListener("click",a)),l.onBeforeUnmount(()=>document.removeEventListener("click",a)),{menuAberto:r,menuPopup:i,menuPopupPos:t,possuiAcoes:u,toggleMenu:s,acoesDisponiveisPorLinha:c}}function Rv(e,n,r){const i=l.computed(()=>!!e.tabela.mostrar_selecao),t=l.computed(()=>e.tabela.chave_selecao);function o(d){return t.value&&d&&typeof d=="object"?d[t.value]:d}function a(d){const f=o(d);return t.value?e.selecionados.some(p=>o(p)===f):e.selecionados.includes(d)}function c(d){const f=[...e.selecionados],p=o(d);let v=-1;t.value?v=f.findIndex(b=>o(b)===p):v=f.indexOf(d),v===-1?f.push(d):f.splice(v,1),n("update:selecionados",f)}const u=l.computed(()=>r.value.length===0?!1:r.value.every(d=>a(d))),s=l.computed(()=>r.value.length===0?!1:r.value.some(d=>a(d))&&!u.value);function m(d){const f=d??!u.value;let p=[...e.selecionados];if(f)for(const v of r.value)a(v)||p.push(v);else{const v=r.value.map(o);t.value?p=p.filter(b=>!v.includes(o(b))):p=p.filter(b=>!v.includes(b))}n("update:selecionados",p)}return{mostrarSelecao:i,isSelecionado:a,alternarSelecao:c,todosSelecionados:u,algunsSelecionados:s,alternarSelecaoTodos:m}}function Jv(e,n){const r=l.ref(1),i=l.ref("");let t=async()=>{};const a=Fv(e,r,i,()=>t()),c=l.ref(!1),u=Bv(e,c),s=Mv(e,a.filtrosAvancadosAtivos,r,i,u.linhasExpandidas);t=s.carregar,c.value=s.temAcoes.value,l.watch(s.temAcoes,f=>{c.value=f});const m=Rv(e,n,s.linhasPaginadas),d=Lv(e,s.acoesVisiveis);return l.watch(()=>e.tabela,()=>{d.menuAberto.value=null,s.colunaOrdenacao.value=null,s.direcaoOrdenacao.value="asc",i.value="",u.modalColunasAberto.value=!1,a.modalFiltroAberto.value=!1,u.configColunas.value=Ti(e.tabela.nome);const f=Ci(e.tabela.nome);a.filtrosUi.value=f.linhas,u.linhasExpandidas.value={},r.value!==1?r.value=1:s.carregar()}),l.onMounted(()=>void s.carregar()),{...s,...a,...m,...u,menuAberto:d.menuAberto,menuPopup:d.menuPopup,menuPopupPos:d.menuPopupPos,possuiAcoes:d.possuiAcoes,toggleMenu:d.toggleMenu,acoesDisponiveisPorLinha:d.acoesDisponiveisPorLinha,paginaAtual:r,valorBusca:i}}const qv=l.defineComponent({name:"EliTabela",inheritAttrs:!1,components:{EliTabelaCabecalho:Jp,EliTabelaEstados:cg,EliTabelaDebug:tg,EliTabelaHead:_g,EliTabelaBody:Dp,EliTabelaMenuAcoes:Eg,EliTabelaPaginacao:Cv,EliTabelaModalColunas:Kg,EliTabelaModalFiltroAvancado:Sv},props:{tabela:{type:Object,required:!0},selecionados:{type:Array,default:()=>[]},esconderDebug:{type:Boolean,default:!1}},emits:["update:selecionados"],setup(e,{emit:n}){return Jv(e,n)}}),Gv={class:"eli-tabela"},Wv={class:"eli-tabela__table-wrapper"},Kv={class:"eli-tabela__table"},Xv={key:0},Yv=["colspan"];function Hv(e,n,r,i,t,o){const a=l.resolveComponent("EliTabelaDebug"),c=l.resolveComponent("EliTabelaCabecalho"),u=l.resolveComponent("EliTabelaModalColunas"),s=l.resolveComponent("EliTabelaModalFiltroAvancado"),m=l.resolveComponent("EliTabelaHead"),d=l.resolveComponent("EliTabelaEstados"),f=l.resolveComponent("EliTabelaBody"),p=l.resolveComponent("EliTabelaMenuAcoes"),v=l.resolveComponent("EliTabelaPaginacao");return l.openBlock(),l.createElementBlock("div",Gv,[l.createVNode(a,{isDev:e.isDev,menuAberto:e.menuAberto,menuPopupPos:e.menuPopupPos},{default:l.withCtx(()=>[l.createElementVNode("div",null,"paginaAtual: "+l.toDisplayString(e.paginaAtual),1),l.createElementVNode("div",null,"limit: "+l.toDisplayString(e.registrosPorConsulta),1),l.createElementVNode("div",null,"texto_busca: "+l.toDisplayString((e.valorBusca||"").trim()),1),l.createElementVNode("div",null,"filtrosAvancadosAtivos: "+l.toDisplayString(JSON.stringify(e.filtrosAvancadosAtivos)),1),l.createElementVNode("div",null,"quantidadeTotal: "+l.toDisplayString(e.quantidade),1)]),_:1},8,["isDev","menuAberto","menuPopupPos"]),e.exibirBusca||e.temAcoesSuperiores?(l.openBlock(),l.createBlock(c,{key:0,exibirBusca:e.exibirBusca,exibirBotaoFiltroAvancado:e.exibirFiltroAvancado,filtrosAtivosResumo:e.filtrosAtivosResumo,valorBusca:e.valorBusca,acoesCabecalho:e.acoesSuperiores,parametrosConsulta:e.parametrosConsultaAtuais,onBuscar:e.atualizarBusca,onColunas:e.abrirModalColunas,onFiltroAvancado:e.abrirModalFiltro},null,8,["exibirBusca","exibirBotaoFiltroAvancado","filtrosAtivosResumo","valorBusca","acoesCabecalho","parametrosConsulta","onBuscar","onColunas","onFiltroAvancado"])):l.createCommentVNode("",!0),l.createVNode(u,{aberto:e.modalColunasAberto,rotulosColunas:e.rotulosColunas,configInicial:e.configColunas,colunas:e.tabela.colunas,onFechar:e.fecharModalColunas,onSalvar:e.salvarModalColunas},null,8,["aberto","rotulosColunas","configInicial","colunas","onFechar","onSalvar"]),l.createVNode(s,{aberto:e.modalFiltroAberto,filtrosBase:e.tabela.filtroAvancado??[],modelo:e.filtrosUi,modeloFormula:e.filtrosFormula,onFechar:e.fecharModalFiltro,onLimpar:e.limparFiltrosAvancados,onSalvar:e.salvarFiltrosAvancados},null,8,["aberto","filtrosBase","modelo","modeloFormula","onFechar","onLimpar","onSalvar"]),l.createElementVNode("div",Wv,[l.createElementVNode("table",Kv,[l.createVNode(m,{colunas:e.colunasEfetivas,temAcoes:e.temAcoes,temColunasInvisiveis:e.temColunasInvisiveis,colunaOrdenacao:e.colunaOrdenacao,direcaoOrdenacao:e.direcaoOrdenacao,mostrarSelecao:e.mostrarSelecao,todosSelecionados:e.todosSelecionados,algunsSelecionados:e.algunsSelecionados,onAlternarOrdenacao:e.alternarOrdenacao,onAlternarSelecaoTodos:e.alternarSelecaoTodos},null,8,["colunas","temAcoes","temColunasInvisiveis","colunaOrdenacao","direcaoOrdenacao","mostrarSelecao","todosSelecionados","algunsSelecionados","onAlternarOrdenacao","onAlternarSelecaoTodos"]),e.carregando||e.erro||!e.linhas.length?(l.openBlock(),l.createElementBlock("tbody",Xv,[l.createElementVNode("tr",null,[l.createElementVNode("td",{colspan:e.totalColunas,class:"eli-tabela__td--estados"},[l.createVNode(d,{carregando:e.carregando,erro:e.erro,mensagemVazio:e.tabela.mensagemVazio,class:"eli-tabela__estados-inline"},null,8,["carregando","erro","mensagemVazio"])],8,Yv)])])):(l.openBlock(),l.createBlock(f,{key:1,colunas:e.colunasEfetivas,colunasInvisiveis:e.colunasInvisiveisEfetivas,temColunasInvisiveis:e.temColunasInvisiveis,linhasExpandidas:e.linhasExpandidas,linhas:e.linhasPaginadas,temAcoes:e.temAcoes,menuAberto:e.menuAberto,possuiAcoes:e.possuiAcoes,toggleMenu:e.toggleMenu,alternarLinhaExpandida:e.alternarLinhaExpandida,mostrarSelecao:e.mostrarSelecao,isSelecionado:e.isSelecionado,alternarSelecao:e.alternarSelecao},null,8,["colunas","colunasInvisiveis","temColunasInvisiveis","linhasExpandidas","linhas","temAcoes","menuAberto","possuiAcoes","toggleMenu","alternarLinhaExpandida","mostrarSelecao","isSelecionado","alternarSelecao"]))])]),l.createVNode(p,{ref:"menuPopup",menuAberto:e.menuAberto,posicao:e.menuPopupPos,acoes:e.menuAberto===null?[]:e.acoesDisponiveisPorLinha(e.menuAberto),linha:e.menuAberto===null?null:e.linhasPaginadas[e.menuAberto],onExecutar:n[0]||(n[0]=({acao:b,linha:N})=>{e.menuAberto=null,b.acao(N)})},null,8,["menuAberto","posicao","acoes","linha"]),e.totalPaginas>1&&e.quantidadeFiltrada>0||e.temAcoesInferiores?(l.openBlock(),l.createBlock(v,{key:1,pagina:e.paginaAtual,totalPaginas:e.totalPaginas,maximoBotoes:e.tabela.maximo_botoes_paginacao,acoes:e.acoesInferiores,parametrosConsulta:e.parametrosConsultaAtuais,onAlterar:e.irParaPagina},null,8,["pagina","totalPaginas","maximoBotoes","acoes","parametrosConsulta","onAlterar"])):l.createCommentVNode("",!0)])}const Ai=q(qv,[["render",Hv]]),Qv=(e,n)=>[e,n];function eh(e,n){const r=[`## Elemento: ${e.seletor}`,"",`- **Página:** \`${n}\``,`- **Tag:** \`<${e.tag}>\``];if(e.id&&r.push(`- **ID:** \`${e.id}\``),e.classes.length&&r.push(`- **Classes:** \`${e.classes.join(", ")}\``),r.push(`- **Caminho DOM:** \`${e.caminhoDom}\``),Object.keys(e.dataAtributos).length){r.push("- **data-* atributos:**");for(const[t,o]of Object.entries(e.dataAtributos))r.push(` - \`${t}\` = \`${o}\``)}return e.textoVisivel&&r.push(`- **Texto visível:** "${e.textoVisivel}"`),r.join(` -`)}function th(e){const n=["# Relatório de Feedback de Interface","",`> Gerado em: ${new Date().toLocaleString("pt-BR")}`,`> Total de itens: ${e.length}`,"","---",""];for(const r of e){const i=r.elemento;if(n.push(`## 🔹 ${i.seletor}`),n.push(""),n.push(`- **Data:** ${new Date(r.criadoEm).toLocaleString("pt-BR")}`),n.push(`- **Página:** \`${r.urlPagina}\``),n.push(`- **Tag:** \`<${i.tag}>\``),i.id&&n.push(`- **ID:** \`${i.id}\``),i.classes.length&&n.push(`- **Classes:** \`${i.classes.join(", ")}\``),n.push(`- **Caminho DOM:** \`${i.caminhoDom}\``),Object.keys(i.dataAtributos).length){n.push("- **data-* atributos:**");for(const[o,a]of Object.entries(i.dataAtributos))n.push(` - \`${o}\` = \`${a}\``)}i.textoVisivel&&n.push(`- **Texto visível:** "${i.textoVisivel}"`),n.push(""),n.push("### Comentário"),n.push(""),n.push(r.comentario),n.push(""),n.push("---"),n.push("")}return n.join(` -`)}function nh(e){const n={};for(const a of Array.from(e.attributes))a.name.startsWith("data-")&&(n[a.name]=a.value);const r=(e.textContent??"").trim().slice(0,120),i=[];let t=e;for(let a=0;a<4&&t&&t!==document.body;a++){const c=t.tagName.toLowerCase()+(t.id?`#${t.id}`:"")+(t.classList.length?`.${Array.from(t.classList).join(".")}`:"");i.unshift(c),t=t.parentElement}let o=e.tagName.toLowerCase();return e.id?o=`#${e.id}`:e.classList.length&&(o=`${e.tagName.toLowerCase()}.${Array.from(e.classList).join(".")}`),{seletor:o,id:e.id||null,classes:Array.from(e.classList),tag:e.tagName.toLowerCase(),textoVisivel:r,dataAtributos:n,caminhoDom:i.join(" > ")}}const Qn="eli-feedback-items";function rh(){return`fb-${Date.now().toString(36)}-${Math.random().toString(36).slice(2,7)}`}function oh(){const e=l.ref("inativo"),n=l.ref(null),r=l.ref(""),i=l.ref(null),t=l.ref(!1),o=l.ref(!1);function a(){try{const I=localStorage.getItem(Qn);return I?JSON.parse(I):[]}catch{return[]}}const c=l.ref(a()),u=l.computed(()=>c.value.length);function s(){localStorage.setItem(Qn,JSON.stringify(c.value))}let m=null;function d(){m=document.createElement("div"),m.id="eli-feedback-overlay",Object.assign(m.style,{position:"fixed",pointerEvents:"none",border:"2px solid #C62828",background:"rgba(198, 40, 40, 0.08)",borderRadius:"4px",zIndex:"99998",transition:"all 0.1s ease",display:"none"}),document.body.appendChild(m)}function f(){m&&(m.remove(),m=null)}function p(I){if(!m)return;const C=I.getBoundingClientRect();Object.assign(m.style,{display:"block",top:`${C.top-2}px`,left:`${C.left-2}px`,width:`${C.width+4}px`,height:`${C.height+4}px`})}function v(I){const C=I.target;C.closest("#eli-feedback-widget")||C.id==="eli-feedback-overlay"||(i.value=C,p(C))}function b(){document.removeEventListener("mousemove",v,!0),document.removeEventListener("click",N,!0),document.removeEventListener("keydown",S,!0),document.body.style.cursor="",m&&(m.style.display="none")}function N(I){I.preventDefault(),I.stopPropagation(),I.stopImmediatePropagation();const C=I.target;if(C.closest("#eli-feedback-widget")||C.id==="eli-feedback-overlay")return;const ie=nh(C),$e=e.value;if(b(),$e==="selecionando-copiar"){const z=eh(ie,window.location.href);navigator.clipboard.writeText(z).then(()=>{o.value=!0,setTimeout(()=>{o.value=!1},1500)}).catch(()=>{}),e.value="inativo",f()}else n.value=ie,e.value="comentando"}function S(I){I.key==="Escape"&&T()}function w(){n.value=null,r.value="",t.value=!1,d(),document.body.style.cursor="crosshair",document.addEventListener("mousemove",v,!0),document.addEventListener("click",N,!0),document.addEventListener("keydown",S,!0)}function P(){e.value="selecionando",w()}function U(){e.value="selecionando-copiar",w()}function T(){e.value="inativo",n.value=null,i.value=null,r.value="",b(),f()}function h(){if(!n.value||!r.value.trim())return;const I={id:rh(),criadoEm:new Date().toISOString(),elemento:n.value,comentario:r.value.trim(),urlPagina:window.location.href};c.value.unshift(I),s(),e.value="inativo",n.value=null,r.value="",f()}function $(){if(!c.value.length)return;const I=th(c.value),C=new Blob([I],{type:"text/markdown;charset=utf-8"}),ie=URL.createObjectURL(C);window.open(ie,"_blank")}function k(){c.value=[],localStorage.removeItem(Qn)}function M(I){c.value=c.value.filter(C=>C.id!==I),s()}return l.onBeforeUnmount(()=>{T()}),{modo:e,elementoSelecionado:n,comentario:r,painelAberto:t,copiouElemento:o,itens:c,totalItens:u,iniciarSelecao:P,iniciarSelecaoParaCopiar:U,cancelarSelecao:T,salvarFeedback:h,exportarMarkdown:$,limparTodos:k,removerItem:M}}const ih=l.defineComponent({name:"EliFeedbackWidget",setup(){const e=l.ref(null),n=l.ref(!1),{modo:r,elementoSelecionado:i,comentario:t,copiouElemento:o,itens:a,totalItens:c,iniciarSelecao:u,iniciarSelecaoParaCopiar:s,cancelarSelecao:m,salvarFeedback:d,exportarMarkdown:f,limparTodos:p}=oh();function v(){r.value!=="inativo"?(m(),n.value=!1):n.value=!n.value}function b(){n.value=!1,u()}function N(){n.value=!1,s()}function S(){p(),n.value=!1}return l.watch(r,async w=>{var P;w==="comentando"&&(await l.nextTick(),(P=e.value)==null||P.focus())}),{textareaRef:e,expandido:n,modo:r,elementoSelecionado:i,comentario:t,copiouElemento:o,itens:a,totalItens:c,aoClicarFab:v,aoIniciarFeedback:b,aoIniciarCopia:N,cancelarSelecao:m,salvarFeedback:d,exportarMarkdown:f,confirmarLimpeza:S}}}),ah={id:"eli-feedback-widget",class:"eli-feedback-fab"},lh={key:0,class:"eli-fb-acoes"},ch=["title"],sh={key:0},uh={key:1},dh={key:2,class:"eli-fb-badge"},mh={key:1,class:"eli-fb-tooltip-selecao"},fh={key:0},ph={key:1},gh={key:2,class:"eli-fb-painel"},vh={class:"eli-fb-painel-header"},hh={class:"eli-fb-painel-corpo"},$h={class:"eli-fb-el-info"},bh={key:0},_h={key:1},yh={key:2},kh={class:"eli-fb-painel-acoes"},Sh=["disabled"];function wh(e,n,r,i,t,o){return l.openBlock(),l.createElementBlock("div",ah,[e.expandido&&e.modo==="inativo"?(l.openBlock(),l.createElementBlock("div",lh,[l.createElementVNode("button",{class:"eli-fb-botao-ico eli-fb-botao-feedback",title:"Adicionar feedback com comentário",onClick:n[0]||(n[0]=(...a)=>e.aoIniciarFeedback&&e.aoIniciarFeedback(...a))}," 🐛 "),l.createElementVNode("button",{class:"eli-fb-botao-ico eli-fb-botao-copiar",title:"Selecionar elemento e copiar dados",onClick:n[1]||(n[1]=(...a)=>e.aoIniciarCopia&&e.aoIniciarCopia(...a))},l.toDisplayString(e.copiouElemento?"✅":"📋"),1),e.totalItens>0?(l.openBlock(),l.createElementBlock("button",{key:0,class:"eli-fb-botao-ico eli-fb-botao-exportar",title:`Visualizar ${e.totalItens} feedback(s) em nova aba`,onClick:n[2]||(n[2]=(...a)=>e.exportarMarkdown&&e.exportarMarkdown(...a))}," 📄 ",8,ch)):l.createCommentVNode("",!0),e.totalItens>0?(l.openBlock(),l.createElementBlock("button",{key:1,class:"eli-fb-botao-ico eli-fb-botao-limpar",title:"Limpar todos os feedbacks",onClick:n[3]||(n[3]=(...a)=>e.confirmarLimpeza&&e.confirmarLimpeza(...a))}," 🗑️ ")):l.createCommentVNode("",!0)])):l.createCommentVNode("",!0),l.createElementVNode("button",{class:"eli-fb-botao-principal",title:"Ferramentas de feedback",onClick:n[4]||(n[4]=(...a)=>e.aoClicarFab&&e.aoClicarFab(...a))},[e.modo==="inativo"&&!e.expandido?(l.openBlock(),l.createElementBlock("span",sh,"🐛")):(l.openBlock(),l.createElementBlock("span",uh,"✕")),e.totalItens>0&&e.modo==="inativo"&&!e.expandido?(l.openBlock(),l.createElementBlock("span",dh,l.toDisplayString(e.totalItens),1)):l.createCommentVNode("",!0)]),e.modo==="selecionando"||e.modo==="selecionando-copiar"?(l.openBlock(),l.createElementBlock("div",mh,[e.modo==="selecionando"?(l.openBlock(),l.createElementBlock("span",fh,"🎯 Clique no elemento")):(l.openBlock(),l.createElementBlock("span",ph,"📋 Clique para copiar")),n[10]||(n[10]=l.createElementVNode("span",{class:"eli-fb-tooltip-esc"},[l.createElementVNode("kbd",null,"ESC"),l.createTextVNode(" cancela")],-1))])):l.createCommentVNode("",!0),e.modo==="comentando"&&e.elementoSelecionado?(l.openBlock(),l.createElementBlock("div",gh,[l.createElementVNode("div",vh,[n[11]||(n[11]=l.createElementVNode("h3",null,"💬 Adicionar Feedback",-1)),l.createElementVNode("button",{class:"eli-fb-painel-fechar",onClick:n[5]||(n[5]=(...a)=>e.cancelarSelecao&&e.cancelarSelecao(...a))},"✕")]),l.createElementVNode("div",hh,[l.createElementVNode("div",$h,[l.createElementVNode("div",null,[n[12]||(n[12]=l.createElementVNode("strong",null,"Seletor:",-1)),n[13]||(n[13]=l.createTextVNode()),l.createElementVNode("code",null,l.toDisplayString(e.elementoSelecionado.seletor),1)]),l.createElementVNode("div",null,[n[14]||(n[14]=l.createElementVNode("strong",null,"Tag:",-1)),n[15]||(n[15]=l.createTextVNode()),l.createElementVNode("code",null,"<"+l.toDisplayString(e.elementoSelecionado.tag)+">",1)]),e.elementoSelecionado.id?(l.openBlock(),l.createElementBlock("div",bh,[n[16]||(n[16]=l.createElementVNode("strong",null,"ID:",-1)),n[17]||(n[17]=l.createTextVNode()),l.createElementVNode("code",null,l.toDisplayString(e.elementoSelecionado.id),1)])):l.createCommentVNode("",!0),e.elementoSelecionado.classes.length?(l.openBlock(),l.createElementBlock("div",_h,[n[18]||(n[18]=l.createElementVNode("strong",null,"Classes:",-1)),l.createElementVNode("code",null,l.toDisplayString(e.elementoSelecionado.classes.join(", ")),1)])):l.createCommentVNode("",!0),l.createElementVNode("div",null,[n[19]||(n[19]=l.createElementVNode("strong",null,"Caminho:",-1)),n[20]||(n[20]=l.createTextVNode()),l.createElementVNode("code",null,l.toDisplayString(e.elementoSelecionado.caminhoDom),1)]),e.elementoSelecionado.textoVisivel?(l.openBlock(),l.createElementBlock("div",yh,[n[21]||(n[21]=l.createElementVNode("strong",null,"Texto:",-1)),l.createTextVNode(' "'+l.toDisplayString(e.elementoSelecionado.textoVisivel)+'" ',1)])):l.createCommentVNode("",!0)]),l.withDirectives(l.createElementVNode("textarea",{ref:"textareaRef","onUpdate:modelValue":n[6]||(n[6]=a=>e.comentario=a),class:"eli-fb-textarea",placeholder:"Descreva o problema, sugestão ou observação...",onKeydown:n[7]||(n[7]=l.withKeys(l.withModifiers((...a)=>e.salvarFeedback&&e.salvarFeedback(...a),["ctrl"]),["enter"]))},null,544),[[l.vModelText,e.comentario]]),l.createElementVNode("div",kh,[l.createElementVNode("button",{class:"eli-fb-btn-cancelar",onClick:n[8]||(n[8]=(...a)=>e.cancelarSelecao&&e.cancelarSelecao(...a))}," Cancelar "),l.createElementVNode("button",{class:"eli-fb-btn-salvar",disabled:!e.comentario.trim(),onClick:n[9]||(n[9]=(...a)=>e.salvarFeedback&&e.salvarFeedback(...a))}," Salvar ✓ ",8,Sh)])])])):l.createCommentVNode("",!0)])}const Vi=q(ih,[["render",wh]]),Ih=l.defineComponent({name:"EliOlaMundo",components:{EliBotao:Jn,EliBadge:Pt,EliEntradaTexto:Zt},setup(){const e=l.ref(""),n=l.ref(""),r=l.ref(""),i=l.ref(""),t=l.ref("");return{nome:e,email:i,documento:t,telefone:r,cep:n}}}),zh={class:"grid-example"};function Eh(e,n,r,i,t,o){const a=l.resolveComponent("EliBadge"),c=l.resolveComponent("EliEntradaTexto"),u=l.resolveComponent("EliBotao");return l.openBlock(),l.createBlock(um.VContainer,null,{default:l.withCtx(()=>[l.createVNode(ze.VCard,{class:"mx-auto",max_width:"400"},{default:l.withCtx(()=>[l.createVNode(ze.VCardTitle,null,{default:l.withCtx(()=>[l.createVNode(a,{badge:"Novo","offset-x":"-15",location:"right center"},{default:l.withCtx(()=>[...n[5]||(n[5]=[l.createTextVNode(" Olá Mundo! ",-1)])]),_:1})]),_:1}),l.createVNode(ze.VCardText,null,{default:l.withCtx(()=>[n[6]||(n[6]=l.createTextVNode(" Este é um componente de exemplo integrado com Vuetify. ",-1)),l.createElementVNode("div",zh,[l.createVNode(c,{value:e.nome,"onUpdate:value":n[0]||(n[0]=s=>e.nome=s),opcoes:{rotulo:"Nome",placeholder:"Digite o nome"},density:"compact"},null,8,["value"]),l.createVNode(c,{value:e.telefone,"onUpdate:value":n[1]||(n[1]=s=>e.telefone=s),opcoes:{rotulo:"Telefone",formato:"telefone"}},null,8,["value"]),l.createVNode(c,{value:e.cep,"onUpdate:value":n[2]||(n[2]=s=>e.cep=s),opcoes:{rotulo:"CEP",placeholder:"00000-000",formato:"cep"}},null,8,["value"]),l.createVNode(c,{value:e.documento,"onUpdate:value":n[3]||(n[3]=s=>e.documento=s),opcoes:{rotulo:"CPF / CNPJ",formato:"cpfCnpj"}},null,8,["value"]),l.createVNode(c,{value:e.email,"onUpdate:value":n[4]||(n[4]=s=>e.email=s),opcoes:{rotulo:"Email",placeholder:"email@exemplo.com",formato:"email"}},null,8,["value"])])]),_:1}),l.createVNode(ze.VCardActions,null,{default:l.withCtx(()=>[l.createVNode(u,{color:"primary",variant:"elevated",block:""},{default:l.withCtx(()=>[...n[7]||(n[7]=[l.createTextVNode(" Botão Vuetify ",-1)])]),_:1})]),_:1})]),_:1})]),_:1})}const Zi=q(Ih,[["render",Eh]]);var Bi;const Mi=Object.freeze({status:"aborted"});function g(e,n,r){function i(c,u){if(c._zod||Object.defineProperty(c,"_zod",{value:{def:u,constr:a,traits:new Set},enumerable:!1}),c._zod.traits.has(e))return;c._zod.traits.add(e),n(c,u);const s=a.prototype,m=Object.keys(s);for(let d=0;d{var u,s;return r!=null&&r.Parent&&c instanceof r.Parent?!0:(s=(u=c==null?void 0:c._zod)==null?void 0:u.traits)==null?void 0:s.has(e)}}),Object.defineProperty(a,"name",{value:e}),a}const Fi=Symbol("zod_brand");class Ue extends Error{constructor(){super("Encountered Promise during synchronous parse. Use .parseAsync() instead.")}}class Ft extends Error{constructor(n){super(`Encountered unidirectional transform during encode: ${n}`),this.name="ZodEncodeError"}}(Bi=globalThis).__zod_globalConfig??(Bi.__zod_globalConfig={});const nt=globalThis.__zod_globalConfig;function re(e){return e&&Object.assign(nt,e),nt}function Nh(e){return e}function Dh(e){return e}function xh(e){}function jh(e){throw new Error("Unexpected value in exhaustive check")}function Oh(e){}function er(e){const n=Object.values(e).filter(i=>typeof i=="number");return Object.entries(e).filter(([i,t])=>n.indexOf(+i)===-1).map(([i,t])=>t)}function y(e,n="|"){return e.map(r=>A(r)).join(n)}function Lt(e,n){return typeof n=="bigint"?n.toString():n}function rt(e){return{get value(){{const n=e();return Object.defineProperty(this,"value",{value:n}),n}}}}function Te(e){return e==null}function Rt(e){const n=e.startsWith("^")?1:0,r=e.endsWith("$")?e.length-1:e.length;return e.slice(n,r)}function Li(e,n){const r=e/n,i=Math.round(r),t=Number.EPSILON*Math.max(Math.abs(r),1);return Math.abs(r-i)r==null?void 0:r[i],e):e}function Ph(e){const n=Object.keys(e),r=n.map(i=>e[i]);return Promise.all(r).then(i=>{const t={};for(let o=0;o{};function Fe(e){return typeof e=="object"&&e!==null&&!Array.isArray(e)}const qi=rt(()=>{var e;if(nt.jitless||typeof navigator<"u"&&((e=navigator==null?void 0:navigator.userAgent)!=null&&e.includes("Cloudflare")))return!1;try{const n=Function;return new n(""),!0}catch{return!1}});function Ce(e){if(Fe(e)===!1)return!1;const n=e.constructor;if(n===void 0||typeof n!="function")return!0;const r=n.prototype;return!(Fe(r)===!1||Object.prototype.hasOwnProperty.call(r,"isPrototypeOf")===!1)}function Jt(e){return Ce(e)?{...e}:Array.isArray(e)?[...e]:e instanceof Map?new Map(e):e instanceof Set?new Set(e):e}function Vh(e){let n=0;for(const r in e)Object.prototype.hasOwnProperty.call(e,r)&&n++;return n}const Zh=e=>{const n=typeof e;switch(n){case"undefined":return"undefined";case"string":return"string";case"number":return Number.isNaN(e)?"nan":"number";case"boolean":return"boolean";case"function":return"function";case"bigint":return"bigint";case"symbol":return"symbol";case"object":return Array.isArray(e)?"array":e===null?"null":e.then&&typeof e.then=="function"&&e.catch&&typeof e.catch=="function"?"promise":typeof Map<"u"&&e instanceof Map?"map":typeof Set<"u"&&e instanceof Set?"set":typeof Date<"u"&&e instanceof Date?"date":typeof File<"u"&&e instanceof File?"file":"object";default:throw new Error(`Unknown data type: ${n}`)}},qt=new Set(["string","number","symbol"]),Gi=new Set(["string","number","bigint","boolean","symbol","undefined"]);function we(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function pe(e,n,r){const i=new e._zod.constr(n??e._zod.def);return(!n||r!=null&&r.parent)&&(i._zod.parent=e),i}function _(e){const n=e;if(!n)return{};if(typeof n=="string")return{error:()=>n};if((n==null?void 0:n.message)!==void 0){if((n==null?void 0:n.error)!==void 0)throw new Error("Cannot specify both `message` and `error` params");n.error=n.message}return delete n.message,typeof n.error=="string"?{...n,error:()=>n.error}:n}function Bh(e){let n;return new Proxy({},{get(r,i,t){return n??(n=e()),Reflect.get(n,i,t)},set(r,i,t,o){return n??(n=e()),Reflect.set(n,i,t,o)},has(r,i){return n??(n=e()),Reflect.has(n,i)},deleteProperty(r,i){return n??(n=e()),Reflect.deleteProperty(n,i)},ownKeys(r){return n??(n=e()),Reflect.ownKeys(n)},getOwnPropertyDescriptor(r,i){return n??(n=e()),Reflect.getOwnPropertyDescriptor(n,i)},defineProperty(r,i,t){return n??(n=e()),Reflect.defineProperty(n,i,t)}})}function A(e){return typeof e=="bigint"?e.toString()+"n":typeof e=="string"?`"${e}"`:`${e}`}function Wi(e){return Object.keys(e).filter(n=>e[n]._zod.optin==="optional"&&e[n]._zod.optout==="optional")}const Ki={safeint:[Number.MIN_SAFE_INTEGER,Number.MAX_SAFE_INTEGER],int32:[-2147483648,2147483647],uint32:[0,4294967295],float32:[-34028234663852886e22,34028234663852886e22],float64:[-Number.MAX_VALUE,Number.MAX_VALUE]},Xi={int64:[BigInt("-9223372036854775808"),BigInt("9223372036854775807")],uint64:[BigInt(0),BigInt("18446744073709551615")]};function Yi(e,n){const r=e._zod.def,i=r.checks;if(i&&i.length>0)throw new Error(".pick() cannot be used on object schemas containing refinements");const o=_e(e._zod.def,{get shape(){const a={};for(const c in n){if(!(c in r.shape))throw new Error(`Unrecognized key: "${c}"`);n[c]&&(a[c]=r.shape[c])}return Ee(this,"shape",a),a},checks:[]});return pe(e,o)}function Hi(e,n){const r=e._zod.def,i=r.checks;if(i&&i.length>0)throw new Error(".omit() cannot be used on object schemas containing refinements");const o=_e(e._zod.def,{get shape(){const a={...e._zod.def.shape};for(const c in n){if(!(c in r.shape))throw new Error(`Unrecognized key: "${c}"`);n[c]&&delete a[c]}return Ee(this,"shape",a),a},checks:[]});return pe(e,o)}function Qi(e,n){if(!Ce(n))throw new Error("Invalid input to extend: expected a plain object");const r=e._zod.def.checks;if(r&&r.length>0){const o=e._zod.def.shape;for(const a in n)if(Object.getOwnPropertyDescriptor(o,a)!==void 0)throw new Error("Cannot overwrite keys on object schemas containing refinements. Use `.safeExtend()` instead.")}const t=_e(e._zod.def,{get shape(){const o={...e._zod.def.shape,...n};return Ee(this,"shape",o),o}});return pe(e,t)}function ea(e,n){if(!Ce(n))throw new Error("Invalid input to safeExtend: expected a plain object");const r=_e(e._zod.def,{get shape(){const i={...e._zod.def.shape,...n};return Ee(this,"shape",i),i}});return pe(e,r)}function ta(e,n){var i;if((i=e._zod.def.checks)!=null&&i.length)throw new Error(".merge() cannot be used on object schemas containing refinements. Use .safeExtend() instead.");const r=_e(e._zod.def,{get shape(){const t={...e._zod.def.shape,...n._zod.def.shape};return Ee(this,"shape",t),t},get catchall(){return n._zod.def.catchall},checks:n._zod.def.checks??[]});return pe(e,r)}function na(e,n,r){const t=n._zod.def.checks;if(t&&t.length>0)throw new Error(".partial() cannot be used on object schemas containing refinements");const a=_e(n._zod.def,{get shape(){const c=n._zod.def.shape,u={...c};if(r)for(const s in r){if(!(s in c))throw new Error(`Unrecognized key: "${s}"`);r[s]&&(u[s]=e?new e({type:"optional",innerType:c[s]}):c[s])}else for(const s in c)u[s]=e?new e({type:"optional",innerType:c[s]}):c[s];return Ee(this,"shape",u),u},checks:[]});return pe(n,a)}function ra(e,n,r){const i=_e(n._zod.def,{get shape(){const t=n._zod.def.shape,o={...t};if(r)for(const a in r){if(!(a in o))throw new Error(`Unrecognized key: "${a}"`);r[a]&&(o[a]=new e({type:"nonoptional",innerType:t[a]}))}else for(const a in t)o[a]=new e({type:"nonoptional",innerType:t[a]});return Ee(this,"shape",o),o}});return pe(n,i)}function Pe(e,n=0){var r;if(e.aborted===!0)return!0;for(let i=n;i{var i;return(i=r).path??(i.path=[]),r.path.unshift(e),r})}function ot(e){return typeof e=="string"?e:e==null?void 0:e.message}function de(e,n,r){var u,s,m,d,f,p;const i=e.message?e.message:ot((m=(s=(u=e.inst)==null?void 0:u._zod.def)==null?void 0:s.error)==null?void 0:m.call(s,e))??ot((d=n==null?void 0:n.error)==null?void 0:d.call(n,e))??ot((f=r.customError)==null?void 0:f.call(r,e))??ot((p=r.localeError)==null?void 0:p.call(r,e))??"Invalid input",{inst:t,continue:o,input:a,...c}=e;return c.path??(c.path=[]),c.message=i,n!=null&&n.reportInput&&(c.input=a),c}function Gt(e){return e instanceof Set?"set":e instanceof Map?"map":e instanceof File?"file":"unknown"}function Wt(e){return Array.isArray(e)?"array":typeof e=="string"?"string":"unknown"}function V(e){const n=typeof e;switch(n){case"number":return Number.isNaN(e)?"nan":"number";case"object":{if(e===null)return"null";if(Array.isArray(e))return"array";const r=e;if(r&&Object.getPrototypeOf(r)!==Object.prototype&&"constructor"in r&&r.constructor)return r.constructor.name}}return n}function Le(...e){const[n,r,i]=e;return typeof n=="string"?{message:n,code:"custom",input:r,inst:i}:{...n}}function Mh(e){return Object.entries(e).filter(([n,r])=>Number.isNaN(Number.parseInt(n,10))).map(n=>n[1])}function ia(e){const n=atob(e),r=new Uint8Array(n.length);for(let i=0;in.toString(16).padStart(2,"0")).join("")}class qh{constructor(...n){}}const la=Object.freeze(Object.defineProperty({__proto__:null,BIGINT_FORMAT_RANGES:Xi,Class:qh,NUMBER_FORMAT_RANGES:Ki,aborted:Pe,allowsEval:qi,assert:Oh,assertEqual:Nh,assertIs:xh,assertNever:jh,assertNotEqual:Dh,assignProp:Ee,base64ToUint8Array:ia,base64urlToUint8Array:Fh,cached:rt,captureStackTrace:nr,cleanEnum:Mh,cleanRegex:Rt,clone:pe,cloneDef:Th,createTransparentProxy:Bh,defineLazy:R,esc:tr,escapeRegex:we,explicitlyAborted:oa,extend:Qi,finalizeIssue:de,floatSafeRemainder:Li,getElementAtPath:Ch,getEnumValues:er,getLengthableOrigin:Wt,getParsedType:Zh,getSizableOrigin:Gt,hexToUint8Array:Rh,isObject:Fe,isPlainObject:Ce,issue:Le,joinValues:y,jsonStringifyReplacer:Lt,merge:ta,mergeDefs:_e,normalizeParams:_,nullish:Te,numKeys:Vh,objectClone:Uh,omit:Hi,optionalKeys:Wi,parsedType:V,partial:na,pick:Yi,prefixIssues:ge,primitiveTypes:Gi,promiseAllObject:Ph,propertyKeyTypes:qt,randomString:Ah,required:ra,safeExtend:ea,shallowClone:Jt,slugify:Ji,stringifyPrimitive:A,uint8ArrayToBase64:aa,uint8ArrayToBase64url:Lh,uint8ArrayToHex:Jh,unwrapMessage:ot},Symbol.toStringTag,{value:"Module"})),ca=(e,n)=>{e.name="$ZodError",Object.defineProperty(e,"_zod",{value:e._zod,enumerable:!1}),Object.defineProperty(e,"issues",{value:n,enumerable:!1}),e.message=JSON.stringify(n,Lt,2),Object.defineProperty(e,"toString",{value:()=>e.message,enumerable:!1})},rr=g("$ZodError",ca),me=g("$ZodError",ca,{Parent:Error});function or(e,n=r=>r.message){const r={},i=[];for(const t of e.issues)t.path.length>0?(r[t.path[0]]=r[t.path[0]]||[],r[t.path[0]].push(n(t))):i.push(n(t));return{formErrors:i,fieldErrors:r}}function ir(e,n=r=>r.message){const r={_errors:[]},i=(t,o=[])=>{for(const a of t.issues)if(a.code==="invalid_union"&&a.errors.length)a.errors.map(c=>i({issues:c},[...o,...a.path]));else if(a.code==="invalid_key")i({issues:a.issues},[...o,...a.path]);else if(a.code==="invalid_element")i({issues:a.issues},[...o,...a.path]);else{const c=[...o,...a.path];if(c.length===0)r._errors.push(n(a));else{let u=r,s=0;for(;sr.message){const r={errors:[]},i=(t,o=[])=>{var a,c;for(const u of t.issues)if(u.code==="invalid_union"&&u.errors.length)u.errors.map(s=>i({issues:s},[...o,...u.path]));else if(u.code==="invalid_key")i({issues:u.issues},[...o,...u.path]);else if(u.code==="invalid_element")i({issues:u.issues},[...o,...u.path]);else{const s=[...o,...u.path];if(s.length===0){r.errors.push(n(u));continue}let m=r,d=0;for(;dtypeof i=="object"?i.key:i);for(const i of r)typeof i=="number"?n.push(`[${i}]`):typeof i=="symbol"?n.push(`[${JSON.stringify(String(i))}]`):/[^\w$]/.test(i)?n.push(`[${JSON.stringify(i)}]`):(n.length&&n.push("."),n.push(i));return n.join("")}function da(e){var i;const n=[],r=[...e.issues].sort((t,o)=>(t.path??[]).length-(o.path??[]).length);for(const t of r)n.push(`✖ ${t.message}`),(i=t.path)!=null&&i.length&&n.push(` → at ${ua(t.path)}`);return n.join(` -`)}const it=e=>(n,r,i,t)=>{const o=i?{...i,async:!1}:{async:!1},a=n._zod.run({value:r,issues:[]},o);if(a instanceof Promise)throw new Ue;if(a.issues.length){const c=new((t==null?void 0:t.Err)??e)(a.issues.map(u=>de(u,o,re())));throw nr(c,t==null?void 0:t.callee),c}return a.value},ar=it(me),at=e=>async(n,r,i,t)=>{const o=i?{...i,async:!0}:{async:!0};let a=n._zod.run({value:r,issues:[]},o);if(a instanceof Promise&&(a=await a),a.issues.length){const c=new((t==null?void 0:t.Err)??e)(a.issues.map(u=>de(u,o,re())));throw nr(c,t==null?void 0:t.callee),c}return a.value},lr=at(me),lt=e=>(n,r,i)=>{const t=i?{...i,async:!1}:{async:!1},o=n._zod.run({value:r,issues:[]},t);if(o instanceof Promise)throw new Ue;return o.issues.length?{success:!1,error:new(e??rr)(o.issues.map(a=>de(a,t,re())))}:{success:!0,data:o.value}},ma=lt(me),ct=e=>async(n,r,i)=>{const t=i?{...i,async:!0}:{async:!0};let o=n._zod.run({value:r,issues:[]},t);return o instanceof Promise&&(o=await o),o.issues.length?{success:!1,error:new e(o.issues.map(a=>de(a,t,re())))}:{success:!0,data:o.value}},fa=ct(me),cr=e=>(n,r,i)=>{const t=i?{...i,direction:"backward"}:{direction:"backward"};return it(e)(n,r,t)},Gh=cr(me),sr=e=>(n,r,i)=>it(e)(n,r,i),Wh=sr(me),ur=e=>async(n,r,i)=>{const t=i?{...i,direction:"backward"}:{direction:"backward"};return at(e)(n,r,t)},Kh=ur(me),dr=e=>async(n,r,i)=>at(e)(n,r,i),Xh=dr(me),mr=e=>(n,r,i)=>{const t=i?{...i,direction:"backward"}:{direction:"backward"};return lt(e)(n,r,t)},Yh=mr(me),fr=e=>(n,r,i)=>lt(e)(n,r,i),Hh=fr(me),pr=e=>async(n,r,i)=>{const t=i?{...i,direction:"backward"}:{direction:"backward"};return ct(e)(n,r,t)},Qh=pr(me),gr=e=>async(n,r,i)=>ct(e)(n,r,i),e$=gr(me),pa=/^[cC][0-9a-z]{6,}$/,ga=/^[0-9a-z]+$/,va=/^[0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{26}$/,ha=/^[0-9a-vA-V]{20}$/,$a=/^[A-Za-z0-9]{27}$/,ba=/^[a-zA-Z0-9_-]{21}$/,_a=/^P(?:(\d+W)|(?!.*W)(?=\d|T\d)(\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+([.,]\d+)?S)?)?)$/,t$=/^[-+]?P(?!$)(?:(?:[-+]?\d+Y)|(?:[-+]?\d+[.,]\d+Y$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:(?:[-+]?\d+W)|(?:[-+]?\d+[.,]\d+W$))?(?:(?:[-+]?\d+D)|(?:[-+]?\d+[.,]\d+D$))?(?:T(?=[\d+-])(?:(?:[-+]?\d+H)|(?:[-+]?\d+[.,]\d+H$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:[-+]?\d+(?:[.,]\d+)?S)?)??$/,ya=/^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$/,Re=e=>e?new RegExp(`^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-${e}[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$`):/^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$/,n$=Re(4),r$=Re(6),o$=Re(7),ka=/^(?!\.)(?!.*\.\.)([A-Za-z0-9_'+\-\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$/,i$=/^[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])?)*$/,a$=/^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/,Sa=/^[^\s@"]{1,64}@[^\s@]{1,255}$/u,l$=Sa,c$=/^[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])?)*$/,s$="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";function wa(){return new RegExp(s$,"u")}const Ia=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/,za=/^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:))$/,Ea=e=>{const n=we(e??":");return new RegExp(`^(?:[0-9A-F]{2}${n}){5}[0-9A-F]{2}$|^(?:[0-9a-f]{2}${n}){5}[0-9a-f]{2}$`)},Na=/^((25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\/([0-9]|[1-2][0-9]|3[0-2])$/,Da=/^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|::|([0-9a-fA-F]{1,4})?::([0-9a-fA-F]{1,4}:?){0,6})\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/,xa=/^$|^(?:[0-9a-zA-Z+/]{4})*(?:(?:[0-9a-zA-Z+/]{2}==)|(?:[0-9a-zA-Z+/]{3}=))?$/,vr=/^[A-Za-z0-9_-]*$/,ja=/^(?=.{1,253}\.?$)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[-0-9a-zA-Z]{0,61}[0-9a-zA-Z])?)*\.?$/,Oa=/^([a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?\.)+[a-zA-Z]{2,}$/,hr=/^https?$/,Ua=/^\+[1-9]\d{6,14}$/,Ta="(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))",Ca=new RegExp(`^${Ta}$`);function Pa(e){const n="(?:[01]\\d|2[0-3]):[0-5]\\d";return typeof e.precision=="number"?e.precision===-1?`${n}`:e.precision===0?`${n}:[0-5]\\d`:`${n}:[0-5]\\d\\.\\d{${e.precision}}`:`${n}(?::[0-5]\\d(?:\\.\\d+)?)?`}function Aa(e){return new RegExp(`^${Pa(e)}$`)}function Va(e){const n=Pa({precision:e.precision}),r=["Z"];e.local&&r.push(""),e.offset&&r.push("([+-](?:[01]\\d|2[0-3]):[0-5]\\d)");const i=`${n}(?:${r.join("|")})`;return new RegExp(`^${Ta}T(?:${i})$`)}const Za=e=>{const n=e?`[\\s\\S]{${(e==null?void 0:e.minimum)??0},${(e==null?void 0:e.maximum)??""}}`:"[\\s\\S]*";return new RegExp(`^${n}$`)},Ba=/^-?\d+n?$/,Ma=/^-?\d+$/,$r=/^-?\d+(?:\.\d+)?$/,Fa=/^(?:true|false)$/i,La=/^null$/i,Ra=/^undefined$/i,Ja=/^[^A-Z]*$/,qa=/^[^a-z]*$/,Ga=/^[0-9a-fA-F]*$/;function st(e,n){return new RegExp(`^[A-Za-z0-9+/]{${e}}${n}$`)}function ut(e){return new RegExp(`^[A-Za-z0-9_-]{${e}}$`)}const br=Object.freeze(Object.defineProperty({__proto__:null,base64:xa,base64url:vr,bigint:Ba,boolean:Fa,browserEmail:c$,cidrv4:Na,cidrv6:Da,cuid:pa,cuid2:ga,date:Ca,datetime:Va,domain:Oa,duration:_a,e164:Ua,email:ka,emoji:wa,extendedDuration:t$,guid:ya,hex:Ga,hostname:ja,html5Email:i$,httpProtocol:hr,idnEmail:l$,integer:Ma,ipv4:Ia,ipv6:za,ksuid:$a,lowercase:Ja,mac:Ea,md5_base64:st(22,"=="),md5_base64url:ut(22),md5_hex:/^[0-9a-fA-F]{32}$/,nanoid:ba,null:La,number:$r,rfc5322Email:a$,sha1_base64:st(27,"="),sha1_base64url:ut(27),sha1_hex:/^[0-9a-fA-F]{40}$/,sha256_base64:st(43,"="),sha256_base64url:ut(43),sha256_hex:/^[0-9a-fA-F]{64}$/,sha384_base64:st(64,""),sha384_base64url:ut(64),sha384_hex:/^[0-9a-fA-F]{96}$/,sha512_base64:st(86,"=="),sha512_base64url:ut(86),sha512_hex:/^[0-9a-fA-F]{128}$/,string:Za,time:Aa,ulid:va,undefined:Ra,unicodeEmail:Sa,uppercase:qa,uuid:Re,uuid4:n$,uuid6:r$,uuid7:o$,xid:ha},Symbol.toStringTag,{value:"Module"})),H=g("$ZodCheck",(e,n)=>{var r;e._zod??(e._zod={}),e._zod.def=n,(r=e._zod).onattach??(r.onattach=[])}),Wa={number:"number",bigint:"bigint",object:"date"},_r=g("$ZodCheckLessThan",(e,n)=>{H.init(e,n);const r=Wa[typeof n.value];e._zod.onattach.push(i=>{const t=i._zod.bag,o=(n.inclusive?t.maximum:t.exclusiveMaximum)??Number.POSITIVE_INFINITY;n.value{(n.inclusive?i.value<=n.value:i.value{H.init(e,n);const r=Wa[typeof n.value];e._zod.onattach.push(i=>{const t=i._zod.bag,o=(n.inclusive?t.minimum:t.exclusiveMinimum)??Number.NEGATIVE_INFINITY;n.value>o&&(n.inclusive?t.minimum=n.value:t.exclusiveMinimum=n.value)}),e._zod.check=i=>{(n.inclusive?i.value>=n.value:i.value>n.value)||i.issues.push({origin:r,code:"too_small",minimum:typeof n.value=="object"?n.value.getTime():n.value,input:i.value,inclusive:n.inclusive,inst:e,continue:!n.abort})}}),Ka=g("$ZodCheckMultipleOf",(e,n)=>{H.init(e,n),e._zod.onattach.push(r=>{var i;(i=r._zod.bag).multipleOf??(i.multipleOf=n.value)}),e._zod.check=r=>{if(typeof r.value!=typeof n.value)throw new Error("Cannot mix number and bigint in multiple_of check.");(typeof r.value=="bigint"?r.value%n.value===BigInt(0):Li(r.value,n.value)===0)||r.issues.push({origin:typeof r.value,code:"not_multiple_of",divisor:n.value,input:r.value,inst:e,continue:!n.abort})}}),Xa=g("$ZodCheckNumberFormat",(e,n)=>{var a;H.init(e,n),n.format=n.format||"float64";const r=(a=n.format)==null?void 0:a.includes("int"),i=r?"int":"number",[t,o]=Ki[n.format];e._zod.onattach.push(c=>{const u=c._zod.bag;u.format=n.format,u.minimum=t,u.maximum=o,r&&(u.pattern=Ma)}),e._zod.check=c=>{const u=c.value;if(r){if(!Number.isInteger(u)){c.issues.push({expected:i,format:n.format,code:"invalid_type",continue:!1,input:u,inst:e});return}if(!Number.isSafeInteger(u)){u>0?c.issues.push({input:u,code:"too_big",maximum:Number.MAX_SAFE_INTEGER,note:"Integers must be within the safe integer range.",inst:e,origin:i,inclusive:!0,continue:!n.abort}):c.issues.push({input:u,code:"too_small",minimum:Number.MIN_SAFE_INTEGER,note:"Integers must be within the safe integer range.",inst:e,origin:i,inclusive:!0,continue:!n.abort});return}}uo&&c.issues.push({origin:"number",input:u,code:"too_big",maximum:o,inclusive:!0,inst:e,continue:!n.abort})}}),Ya=g("$ZodCheckBigIntFormat",(e,n)=>{H.init(e,n);const[r,i]=Xi[n.format];e._zod.onattach.push(t=>{const o=t._zod.bag;o.format=n.format,o.minimum=r,o.maximum=i}),e._zod.check=t=>{const o=t.value;oi&&t.issues.push({origin:"bigint",input:o,code:"too_big",maximum:i,inclusive:!0,inst:e,continue:!n.abort})}}),Ha=g("$ZodCheckMaxSize",(e,n)=>{var r;H.init(e,n),(r=e._zod.def).when??(r.when=i=>{const t=i.value;return!Te(t)&&t.size!==void 0}),e._zod.onattach.push(i=>{const t=i._zod.bag.maximum??Number.POSITIVE_INFINITY;n.maximum{const t=i.value;t.size<=n.maximum||i.issues.push({origin:Gt(t),code:"too_big",maximum:n.maximum,inclusive:!0,input:t,inst:e,continue:!n.abort})}}),Qa=g("$ZodCheckMinSize",(e,n)=>{var r;H.init(e,n),(r=e._zod.def).when??(r.when=i=>{const t=i.value;return!Te(t)&&t.size!==void 0}),e._zod.onattach.push(i=>{const t=i._zod.bag.minimum??Number.NEGATIVE_INFINITY;n.minimum>t&&(i._zod.bag.minimum=n.minimum)}),e._zod.check=i=>{const t=i.value;t.size>=n.minimum||i.issues.push({origin:Gt(t),code:"too_small",minimum:n.minimum,inclusive:!0,input:t,inst:e,continue:!n.abort})}}),el=g("$ZodCheckSizeEquals",(e,n)=>{var r;H.init(e,n),(r=e._zod.def).when??(r.when=i=>{const t=i.value;return!Te(t)&&t.size!==void 0}),e._zod.onattach.push(i=>{const t=i._zod.bag;t.minimum=n.size,t.maximum=n.size,t.size=n.size}),e._zod.check=i=>{const t=i.value,o=t.size;if(o===n.size)return;const a=o>n.size;i.issues.push({origin:Gt(t),...a?{code:"too_big",maximum:n.size}:{code:"too_small",minimum:n.size},inclusive:!0,exact:!0,input:i.value,inst:e,continue:!n.abort})}}),tl=g("$ZodCheckMaxLength",(e,n)=>{var r;H.init(e,n),(r=e._zod.def).when??(r.when=i=>{const t=i.value;return!Te(t)&&t.length!==void 0}),e._zod.onattach.push(i=>{const t=i._zod.bag.maximum??Number.POSITIVE_INFINITY;n.maximum{const t=i.value;if(t.length<=n.maximum)return;const a=Wt(t);i.issues.push({origin:a,code:"too_big",maximum:n.maximum,inclusive:!0,input:t,inst:e,continue:!n.abort})}}),nl=g("$ZodCheckMinLength",(e,n)=>{var r;H.init(e,n),(r=e._zod.def).when??(r.when=i=>{const t=i.value;return!Te(t)&&t.length!==void 0}),e._zod.onattach.push(i=>{const t=i._zod.bag.minimum??Number.NEGATIVE_INFINITY;n.minimum>t&&(i._zod.bag.minimum=n.minimum)}),e._zod.check=i=>{const t=i.value;if(t.length>=n.minimum)return;const a=Wt(t);i.issues.push({origin:a,code:"too_small",minimum:n.minimum,inclusive:!0,input:t,inst:e,continue:!n.abort})}}),rl=g("$ZodCheckLengthEquals",(e,n)=>{var r;H.init(e,n),(r=e._zod.def).when??(r.when=i=>{const t=i.value;return!Te(t)&&t.length!==void 0}),e._zod.onattach.push(i=>{const t=i._zod.bag;t.minimum=n.length,t.maximum=n.length,t.length=n.length}),e._zod.check=i=>{const t=i.value,o=t.length;if(o===n.length)return;const a=Wt(t),c=o>n.length;i.issues.push({origin:a,...c?{code:"too_big",maximum:n.length}:{code:"too_small",minimum:n.length},inclusive:!0,exact:!0,input:i.value,inst:e,continue:!n.abort})}}),dt=g("$ZodCheckStringFormat",(e,n)=>{var r,i;H.init(e,n),e._zod.onattach.push(t=>{const o=t._zod.bag;o.format=n.format,n.pattern&&(o.patterns??(o.patterns=new Set),o.patterns.add(n.pattern))}),n.pattern?(r=e._zod).check??(r.check=t=>{n.pattern.lastIndex=0,!n.pattern.test(t.value)&&t.issues.push({origin:"string",code:"invalid_format",format:n.format,input:t.value,...n.pattern?{pattern:n.pattern.toString()}:{},inst:e,continue:!n.abort})}):(i=e._zod).check??(i.check=()=>{})}),ol=g("$ZodCheckRegex",(e,n)=>{dt.init(e,n),e._zod.check=r=>{n.pattern.lastIndex=0,!n.pattern.test(r.value)&&r.issues.push({origin:"string",code:"invalid_format",format:"regex",input:r.value,pattern:n.pattern.toString(),inst:e,continue:!n.abort})}}),il=g("$ZodCheckLowerCase",(e,n)=>{n.pattern??(n.pattern=Ja),dt.init(e,n)}),al=g("$ZodCheckUpperCase",(e,n)=>{n.pattern??(n.pattern=qa),dt.init(e,n)}),ll=g("$ZodCheckIncludes",(e,n)=>{H.init(e,n);const r=we(n.includes),i=new RegExp(typeof n.position=="number"?`^.{${n.position}}${r}`:r);n.pattern=i,e._zod.onattach.push(t=>{const o=t._zod.bag;o.patterns??(o.patterns=new Set),o.patterns.add(i)}),e._zod.check=t=>{t.value.includes(n.includes,n.position)||t.issues.push({origin:"string",code:"invalid_format",format:"includes",includes:n.includes,input:t.value,inst:e,continue:!n.abort})}}),cl=g("$ZodCheckStartsWith",(e,n)=>{H.init(e,n);const r=new RegExp(`^${we(n.prefix)}.*`);n.pattern??(n.pattern=r),e._zod.onattach.push(i=>{const t=i._zod.bag;t.patterns??(t.patterns=new Set),t.patterns.add(r)}),e._zod.check=i=>{i.value.startsWith(n.prefix)||i.issues.push({origin:"string",code:"invalid_format",format:"starts_with",prefix:n.prefix,input:i.value,inst:e,continue:!n.abort})}}),sl=g("$ZodCheckEndsWith",(e,n)=>{H.init(e,n);const r=new RegExp(`.*${we(n.suffix)}$`);n.pattern??(n.pattern=r),e._zod.onattach.push(i=>{const t=i._zod.bag;t.patterns??(t.patterns=new Set),t.patterns.add(r)}),e._zod.check=i=>{i.value.endsWith(n.suffix)||i.issues.push({origin:"string",code:"invalid_format",format:"ends_with",suffix:n.suffix,input:i.value,inst:e,continue:!n.abort})}});function ul(e,n,r){e.issues.length&&n.issues.push(...ge(r,e.issues))}const dl=g("$ZodCheckProperty",(e,n)=>{H.init(e,n),e._zod.check=r=>{const i=n.schema._zod.run({value:r.value[n.property],issues:[]},{});if(i instanceof Promise)return i.then(t=>ul(t,r,n.property));ul(i,r,n.property)}}),ml=g("$ZodCheckMimeType",(e,n)=>{H.init(e,n);const r=new Set(n.mime);e._zod.onattach.push(i=>{i._zod.bag.mime=n.mime}),e._zod.check=i=>{r.has(i.value.type)||i.issues.push({code:"invalid_value",values:n.mime,input:i.value.type,inst:e,continue:!n.abort})}}),fl=g("$ZodCheckOverwrite",(e,n)=>{H.init(e,n),e._zod.check=r=>{r.value=n.tx(r.value)}});class pl{constructor(n=[]){this.content=[],this.indent=0,this&&(this.args=n)}indented(n){this.indent+=1,n(this),this.indent-=1}write(n){if(typeof n=="function"){n(this,{execution:"sync"}),n(this,{execution:"async"});return}const i=n.split(` + `,document.head.appendChild(r)):r&&r.remove()};l.watch(()=>e.isDev,n),l.onMounted(n),l.onUnmounted(()=>{const r=document.getElementById("eli-tabela-debug-style");r&&r.remove()})}}),zg={key:0,style:{position:"fixed",right:"0",top:"0",bottom:"0",width:"360px","z-index":"999999",background:"rgba(20, 20, 20, 0.95)",color:"#32CD32",padding:"20px 16px","font-family":"'Courier New', Courier, monospace","font-size":"12px","overflow-y":"auto","border-left":"1px solid #333",display:"flex","flex-direction":"column",gap:"6px"}},Eg={style:{color:"#bbb"}},Ng={style:{color:"#fff"}},Dg={style:{color:"#bbb"}},jg={style:{color:"#fff"}},Og={style:{color:"#fff"}},xg={style:{"margin-top":"8px","white-space":"pre-wrap","word-break":"break-all"}};function Tg(e,n,r,i,t,o){return e.isDev?(l.openBlock(),l.createElementBlock("div",zg,[n[3]||(n[3]=l.createElementVNode("div",{style:{"font-weight":"bold",color:"#fff","margin-bottom":"8px","text-transform":"uppercase","letter-spacing":"1px","border-bottom":"1px solid #333","padding-bottom":"8px"}}," EliTabela // Log Terminal ",-1)),l.createElementVNode("div",Eg,[n[0]||(n[0]=l.createTextVNode("menuAberto: ",-1)),l.createElementVNode("span",Ng,l.toDisplayString(e.menuAberto),1)]),l.createElementVNode("div",Dg,[n[1]||(n[1]=l.createTextVNode("menuPos: top=",-1)),l.createElementVNode("span",jg,l.toDisplayString(e.menuPopupPos.top),1),n[2]||(n[2]=l.createTextVNode(", left=",-1)),l.createElementVNode("span",Og,l.toDisplayString(e.menuPopupPos.left),1)]),l.createElementVNode("div",xg,[l.renderSlot(e.$slots,"default")])])):l.createCommentVNode("",!0)}const Ug=q(Ig,[["render",Tg]]),Cg=l.defineComponent({name:"EliTabelaEstados",components:{AlertCircle:ap,Inbox:pp,LoaderCircle:gp},props:{carregando:{type:Boolean,required:!0},erro:{type:[String,Object],default:null},mensagemVazio:{type:String,required:!1,default:void 0}}}),Pg={key:0,class:"eli-tabela eli-tabela--carregando","aria-busy":"true"},Ag={key:1,class:"eli-tabela eli-tabela--erro",role:"alert"},Vg={class:"eli-tabela__erro-mensagem"},Bg={key:2,class:"eli-tabela eli-tabela--vazio"};function Zg(e,n,r,i,t,o){const a=l.resolveComponent("LoaderCircle"),c=l.resolveComponent("AlertCircle"),u=l.resolveComponent("Inbox");return e.carregando?(l.openBlock(),l.createElementBlock("div",Pg,[l.createVNode(a,{class:"eli-tabela__estado-icone eli-tabela__estado-icone--spin",size:22,"stroke-width":2}),n[0]||(n[0]=l.createElementVNode("span",null,"Carregando…",-1))])):e.erro?(l.openBlock(),l.createElementBlock("div",Ag,[l.createVNode(c,{class:"eli-tabela__estado-icone eli-tabela__estado-icone--erro",size:18,"stroke-width":2}),l.createElementVNode("div",null,[n[1]||(n[1]=l.createElementVNode("div",{class:"eli-tabela__erro-titulo"},"Erro",-1)),l.createElementVNode("div",Vg,l.toDisplayString(e.erro),1)])])):(l.openBlock(),l.createElementBlock("div",Bg,[l.createVNode(u,{class:"eli-tabela__estado-icone",size:22,"stroke-width":1.5}),l.createElementVNode("span",null,l.toDisplayString(e.mensagemVazio??"Nenhum registro encontrado."),1)]))}const Mg=q(Cg,[["render",Zg]]),Fg=l.defineComponent({name:"EliTabelaHead",components:{ArrowUp:Ii,ArrowDown:wi},props:{colunas:{type:Array,required:!0},temAcoes:{type:Boolean,required:!0},temColunasInvisiveis:{type:Boolean,required:!0},colunaOrdenacao:{type:[String,Object],default:null},direcaoOrdenacao:{type:String,required:!0},mostrarSelecao:{type:Boolean,default:!1},todosSelecionados:{type:Boolean,default:!1},algunsSelecionados:{type:Boolean,default:!1}},emits:{alternarOrdenacao(e){return typeof e=="string"&&e.length>0},"alternar-selecao-todos":()=>!0},setup(e,{emit:n}){function r(t){return t.coluna_ordem!==void 0&&t.coluna_ordem!==null}function i(t){n("alternarOrdenacao",t)}return{ArrowUp:Ii,ArrowDown:wi,isOrdenavel:r,emitAlternarOrdenacao:i}}}),Lg={class:"eli-tabela__thead"},Rg={class:"eli-tabela__tr eli-tabela__tr--header"},Jg={key:0,class:"eli-tabela__th eli-tabela__th--expander",scope:"col"},qg={key:1,class:"eli-tabela__th eli-tabela__th--selecao",scope:"col"},Gg=["checked","indeterminate"],Kg=["onClick"],Wg={class:"eli-tabela__th-texto"},Xg={key:1,class:"eli-tabela__th-label"},Hg={key:2,class:"eli-tabela__th eli-tabela__th--acoes",scope:"col"};function Yg(e,n,r,i,t,o){const a=l.resolveComponent("ArrowUp");return l.openBlock(),l.createElementBlock("thead",Lg,[l.createElementVNode("tr",Rg,[e.temColunasInvisiveis?(l.openBlock(),l.createElementBlock("th",Jg)):l.createCommentVNode("",!0),e.mostrarSelecao?(l.openBlock(),l.createElementBlock("th",qg,[l.createElementVNode("input",{type:"checkbox",class:"eli-tabela__checkbox",checked:e.todosSelecionados,indeterminate:e.algunsSelecionados,onChange:n[0]||(n[0]=c=>e.$emit("alternar-selecao-todos")),"aria-label":"Selecionar todos os itens da página"},null,40,Gg)])):l.createCommentVNode("",!0),(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(e.colunas,(c,u)=>(l.openBlock(),l.createElementBlock("th",{key:`th-${u}`,class:l.normalizeClass(["eli-tabela__th",[e.isOrdenavel(c)?"eli-tabela__th--ordenavel":void 0]]),scope:"col"},[e.isOrdenavel(c)?(l.openBlock(),l.createElementBlock("button",{key:0,type:"button",class:l.normalizeClass(["eli-tabela__th-botao",[e.colunaOrdenacao===String(c.coluna_ordem)?"eli-tabela__th-botao--ativo":void 0]]),onClick:s=>e.emitAlternarOrdenacao(String(c.coluna_ordem))},[l.createElementVNode("span",Wg,l.toDisplayString(c.rotulo),1),e.colunaOrdenacao===String(c.coluna_ordem)?(l.openBlock(),l.createBlock(l.resolveDynamicComponent(e.direcaoOrdenacao==="asc"?e.ArrowUp:e.ArrowDown),{key:0,class:"eli-tabela__th-icone",size:16,"stroke-width":2,"aria-hidden":"true"})):(l.openBlock(),l.createBlock(a,{key:1,class:"eli-tabela__th-icone eli-tabela__th-icone--oculto",size:16,"stroke-width":2,"aria-hidden":"true"}))],10,Kg)):(l.openBlock(),l.createElementBlock("span",Xg,l.toDisplayString(c.rotulo),1))],2))),128)),e.temAcoes?(l.openBlock(),l.createElementBlock("th",Hg," Ações ")):l.createCommentVNode("",!0)])])}const Qg=q(Fg,[["render",Yg]]),ev=l.defineComponent({name:"EliTabelaMenuAcoes",props:{menuAberto:{type:[Number,Object],default:null},posicao:{type:Object,required:!0},acoes:{type:Array,required:!0},linha:{type:[Object,String,Number,Array],default:null}},emits:{executar(e){return e!==null&&typeof e=="object"}},setup(e,{emit:n}){const r=l.ref(null),i=l.computed(()=>e.acoes.length>0);function t(o){e.linha&&n("executar",{acao:o.acao,linha:e.linha})}return{menuEl:r,possuiAcoes:i,emitExecutar:t}}}),tv={class:"eli-teleport-container"},nv=["id","aria-labelledby"],rv=["aria-label","title","onClick"],ov={class:"eli-tabela__acoes-item-texto"};function iv(e,n,r,i,t,o){return l.openBlock(),l.createElementBlock("div",tv,[(l.openBlock(),l.createBlock(l.Teleport,{to:"body"},[e.menuAberto!==null&&e.possuiAcoes?(l.openBlock(),l.createElementBlock("ul",{key:0,id:`eli-tabela-acoes-menu-${e.menuAberto}`,ref:"menuEl",class:"eli-tabela__acoes-menu",role:"menu","aria-labelledby":`eli-tabela-acoes-toggle-${e.menuAberto}`,style:l.normalizeStyle({position:"fixed",top:`${e.posicao.top}px`,left:`${e.posicao.left}px`,zIndex:999999})},[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(e.acoes,a=>(l.openBlock(),l.createElementBlock("li",{key:`acao-${e.menuAberto}-${a.indice}`,class:"eli-tabela__acoes-item",role:"none"},[l.createElementVNode("button",{type:"button",class:"eli-tabela__acoes-item-botao",style:l.normalizeStyle({color:a.acao.cor}),role:"menuitem","aria-label":a.acao.rotulo,title:a.acao.rotulo,onClick:l.withModifiers(c=>e.emitExecutar(a),["stop"])},[(l.openBlock(),l.createBlock(l.resolveDynamicComponent(a.acao.icone),{class:"eli-tabela__acoes-item-icone",size:16,"stroke-width":2})),l.createElementVNode("span",ov,l.toDisplayString(a.acao.rotulo),1)],12,rv)]))),128))],12,nv)):l.createCommentVNode("",!0)]))])}const av=q(ev,[["render",iv]]);function lv({aberto:e,rotulosColunas:n,configInicial:r,colunas:i}){const t=l.ref([]),o=l.ref([]),a=l.ref(null);function c(){var T,U;const f=n.value,p=(((T=r.value.visiveis)==null?void 0:T.length)??0)>0||(((U=r.value.invisiveis)==null?void 0:U.length)??0)>0,v=new Set(i.value.filter(h=>h.visivel===!1).map(h=>h.rotulo)),_=p?new Set(r.value.invisiveis??[]):v,O=f.filter(h=>!_.has(h)),N=r.value.visiveis??[],w=new Set(O),P=[];for(const h of N)w.has(h)&&P.push(h);for(const h of O)P.includes(h)||P.push(h);t.value=P,o.value=f.filter(h=>_.has(h))}l.watch(()=>[e.value,n.value,r.value,i.value],()=>{e.value&&c()},{deep:!0,immediate:!0});function u(f,p){a.value=p,f.dataTransfer&&(f.dataTransfer.setData("text/plain",p),f.dataTransfer.effectAllowed="move")}function s(){a.value=null}function m(f,p){const v=a.value;if(!v||v===f)return;const _=t.value.indexOf(v),O=o.value.indexOf(v),N=_>=0?"visiveis":O>=0?"invisiveis":null;if(!N)return;const w=N==="visiveis"?t.value:o.value,P=p==="visiveis"?t.value:o.value,T=w.indexOf(v),U=P.indexOf(f);w.splice(T,1),P.splice(U,0,v)}function d(f){const p=a.value;if(!p)return;const v=f==="visiveis"?t.value:o.value;if(v[v.length-1]===p)return;const _=t.value.indexOf(p),O=o.value.indexOf(p);_>=0&&t.value.splice(_,1),O>=0&&o.value.splice(O,1),v.push(p)}return{visiveisLocal:t,invisiveisLocal:o,itemSendoArrastado:a,onDragStart:u,onDragEnd:s,onDragOverItem:m,onDragOverLista:d}}const cv=l.defineComponent({name:"EliTabelaModalColunas",components:{Columns2:cp,Eye:mp,EyeOff:dp,GripVertical:fp,X:Di,Check:ip},props:{aberto:{type:Boolean,required:!0},rotulosColunas:{type:Array,required:!0},configInicial:{type:Object,required:!0},colunas:{type:Array,required:!0}},emits:{fechar(){return!0},salvar(e){return!0}},setup(e,{emit:n}){const r=lv({aberto:l.computed(()=>e.aberto),rotulosColunas:l.computed(()=>e.rotulosColunas),configInicial:l.computed(()=>e.configInicial),colunas:l.computed(()=>e.colunas)});function i(){n("fechar")}function t(){n("salvar",{visiveis:[...r.visiveisLocal.value],invisiveis:[...r.invisiveisLocal.value]})}return{...r,emitFechar:i,emitSalvar:t}}}),sv={class:"eli-tabela-modal-colunas__modal",role:"dialog","aria-modal":"true","aria-labelledby":"eli-modal-colunas-titulo"},uv={class:"eli-tabela-modal-colunas__header"},dv={class:"eli-tabela-modal-colunas__header-info"},mv={class:"eli-tabela-modal-colunas__instrucao"},fv={class:"eli-tabela-modal-colunas__conteudo"},pv={class:"eli-tabela-modal-colunas__coluna"},gv={class:"eli-tabela-modal-colunas__coluna-cabecalho eli-tabela-modal-colunas__coluna-cabecalho--visiveis"},vv={class:"eli-tabela-modal-colunas__coluna-contador"},hv=["title","onDragstart","onDragover"],$v={class:"eli-tabela-modal-colunas__item-texto"},bv={key:"vazio-visiveis",class:"eli-tabela-modal-colunas__vazio"},_v={class:"eli-tabela-modal-colunas__coluna"},yv={class:"eli-tabela-modal-colunas__coluna-cabecalho eli-tabela-modal-colunas__coluna-cabecalho--invisiveis"},kv={class:"eli-tabela-modal-colunas__coluna-contador"},Sv=["title","onDragstart","onDragover"],wv={class:"eli-tabela-modal-colunas__item-texto"},Iv={key:"vazio-invisiveis",class:"eli-tabela-modal-colunas__vazio"},zv={class:"eli-tabela-modal-colunas__footer"};function Ev(e,n,r,i,t,o){const a=l.resolveComponent("Columns2"),c=l.resolveComponent("X"),u=l.resolveComponent("GripVertical"),s=l.resolveComponent("Eye"),m=l.resolveComponent("EyeOff"),d=l.resolveComponent("Check");return l.openBlock(),l.createBlock(l.Teleport,{to:"body"},[e.aberto?(l.openBlock(),l.createElementBlock("div",{key:0,class:"eli-tabela-modal-colunas__overlay",role:"presentation",onClick:n[9]||(n[9]=l.withModifiers((...f)=>e.emitFechar&&e.emitFechar(...f),["self"]))},[l.createElementVNode("div",sv,[l.createElementVNode("header",uv,[l.createElementVNode("div",dv,[l.createVNode(a,{size:18,"stroke-width":2,class:"eli-tabela-modal-colunas__header-icone"}),n[10]||(n[10]=l.createElementVNode("h3",{id:"eli-modal-colunas-titulo",class:"eli-tabela-modal-colunas__titulo"},"Configurar colunas",-1))]),l.createElementVNode("button",{type:"button",class:"eli-tabela-modal-colunas__fechar","aria-label":"Fechar modal de colunas",onClick:n[0]||(n[0]=(...f)=>e.emitFechar&&e.emitFechar(...f))},[l.createVNode(c,{size:16,"stroke-width":2.5})])]),l.createElementVNode("div",mv,[l.createVNode(u,{size:14,"stroke-width":2,class:"eli-tabela-modal-colunas__instrucao-icone"}),n[11]||(n[11]=l.createTextVNode(" Arraste para reordenar ou mover entre as listas ",-1))]),l.createElementVNode("div",fv,[l.createElementVNode("div",pv,[l.createElementVNode("div",gv,[l.createVNode(s,{size:14,"stroke-width":2}),n[12]||(n[12]=l.createElementVNode("span",null,"Visíveis",-1)),l.createElementVNode("span",vv,l.toDisplayString(e.visiveisLocal.length),1)]),l.createVNode(l.TransitionGroup,{name:"list",tag:"div",class:"eli-tabela-modal-colunas__lista eli-tabela-modal-colunas__lista--visiveis",onDragover:n[3]||(n[3]=l.withModifiers(f=>e.onDragOverLista("visiveis"),["prevent"])),onDrop:e.onDragEnd},{default:l.withCtx(()=>[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(e.visiveisLocal,f=>(l.openBlock(),l.createElementBlock("div",{key:`vis-${f}`,class:l.normalizeClass(["eli-tabela-modal-colunas__item eli-tabela-modal-colunas__item--visivel",{"eli-tabela-modal-colunas__item--arrastando":e.itemSendoArrastado===f}]),draggable:"true",title:`Arraste para mover '${f}'`,onDragstart:p=>e.onDragStart(p,f),onDragend:n[1]||(n[1]=(...p)=>e.onDragEnd&&e.onDragEnd(...p)),onDragover:l.withModifiers(p=>e.onDragOverItem(f,"visiveis"),["stop","prevent"]),onDrop:n[2]||(n[2]=l.withModifiers((...p)=>e.onDragEnd&&e.onDragEnd(...p),["stop","prevent"]))},[l.createVNode(u,{size:15,"stroke-width":2,class:"eli-tabela-modal-colunas__item-handle","aria-hidden":"true"}),l.createElementVNode("span",$v,l.toDisplayString(f),1),l.createVNode(s,{size:13,"stroke-width":2,class:"eli-tabela-modal-colunas__item-badge-icone eli-tabela-modal-colunas__item-badge-icone--visivel","aria-hidden":"true"})],42,hv))),128)),e.visiveisLocal.length===0?(l.openBlock(),l.createElementBlock("div",bv,[l.createVNode(m,{size:28,"stroke-width":1.5,class:"eli-tabela-modal-colunas__vazio-icone"}),n[13]||(n[13]=l.createElementVNode("span",null,[l.createTextVNode("Nenhuma coluna visível."),l.createElementVNode("br"),l.createTextVNode("Arraste itens da lista ao lado.")],-1))])):l.createCommentVNode("",!0)]),_:1},8,["onDrop"])]),l.createElementVNode("div",_v,[l.createElementVNode("div",yv,[l.createVNode(m,{size:14,"stroke-width":2}),n[14]||(n[14]=l.createElementVNode("span",null,"Ocultas",-1)),l.createElementVNode("span",kv,l.toDisplayString(e.invisiveisLocal.length),1)]),l.createVNode(l.TransitionGroup,{name:"list",tag:"div",class:"eli-tabela-modal-colunas__lista eli-tabela-modal-colunas__lista--invisiveis",onDragover:n[6]||(n[6]=l.withModifiers(f=>e.onDragOverLista("invisiveis"),["prevent"])),onDrop:e.onDragEnd},{default:l.withCtx(()=>[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(e.invisiveisLocal,f=>(l.openBlock(),l.createElementBlock("div",{key:`inv-${f}`,class:l.normalizeClass(["eli-tabela-modal-colunas__item eli-tabela-modal-colunas__item--invisivel",{"eli-tabela-modal-colunas__item--arrastando":e.itemSendoArrastado===f}]),draggable:"true",title:`Arraste para mover '${f}'`,onDragstart:p=>e.onDragStart(p,f),onDragend:n[4]||(n[4]=(...p)=>e.onDragEnd&&e.onDragEnd(...p)),onDragover:l.withModifiers(p=>e.onDragOverItem(f,"invisiveis"),["stop","prevent"]),onDrop:n[5]||(n[5]=l.withModifiers((...p)=>e.onDragEnd&&e.onDragEnd(...p),["stop","prevent"]))},[l.createVNode(u,{size:15,"stroke-width":2,class:"eli-tabela-modal-colunas__item-handle","aria-hidden":"true"}),l.createElementVNode("span",wv,l.toDisplayString(f),1),l.createVNode(m,{size:13,"stroke-width":2,class:"eli-tabela-modal-colunas__item-badge-icone eli-tabela-modal-colunas__item-badge-icone--invisivel","aria-hidden":"true"})],42,Sv))),128)),e.invisiveisLocal.length===0?(l.openBlock(),l.createElementBlock("div",Iv,[l.createVNode(s,{size:28,"stroke-width":1.5,class:"eli-tabela-modal-colunas__vazio-icone eli-tabela-modal-colunas__vazio-icone--ok"}),n[15]||(n[15]=l.createElementVNode("span",null,"Todas as colunas estão visíveis.",-1))])):l.createCommentVNode("",!0)]),_:1},8,["onDrop"])])]),l.createElementVNode("footer",zv,[l.createElementVNode("button",{type:"button",class:"eli-tabela-modal-colunas__botao eli-tabela-modal-colunas__botao--sec",onClick:n[7]||(n[7]=(...f)=>e.emitFechar&&e.emitFechar(...f))},[l.createVNode(c,{size:14,"stroke-width":2.5}),n[16]||(n[16]=l.createTextVNode(" Cancelar ",-1))]),l.createElementVNode("button",{type:"button",class:"eli-tabela-modal-colunas__botao eli-tabela-modal-colunas__botao--prim",onClick:n[8]||(n[8]=(...f)=>e.emitSalvar&&e.emitSalvar(...f))},[l.createVNode(d,{size:14,"stroke-width":2.5}),n[17]||(n[17]=l.createTextVNode(" Salvar ",-1))])])])])):l.createCommentVNode("",!0)])}const Nv=q(cv,[["render",Ev]]);function xi(e){return e.rotulo}function Dv({aberto:e,filtrosBase:n,modelo:r,modeloFormula:i,emit:t}){const o=l.ref([]),a=l.ref(""),c=l.ref(""),u=l.computed(()=>o.value.map(($,S)=>`{c${S+1}}`).join(" E "));function s($){let S=$;return o.value.forEach((M,I)=>{S=S.replace(new RegExp(`\\{${M.chave}\\}`,"g"),`{c${I+1}}`)}),S}function m($){var M;let S=$;for(let I=o.value.length;I>=1;I--){const C=(M=o.value[I-1])==null?void 0:M.chave;C&&(S=S.replace(new RegExp(`\\{c${I}\\}`,"g"),`{${C}}`))}return S}const d=l.computed(()=>(n.value??[]).map($=>String($.chave))),f=l.computed(()=>{const $=new Set(o.value.map(S=>String(S.chave)));return(n.value??[]).filter(S=>!$.has(String(S.chave)))});function p($){const S=$==null?void 0:$[0];return S==="numero"?Kn:S==="dataHora"?qn:S==="selecao"?Xn:S==="selecaoMultipla"?Hn:S==="paragrafo"?Wn:S==="confirmacao"?ci:Zt}function v($){return{...typeof($==null?void 0:$[1])=="object"&&$[1]!==null?{...$[1]}:{},rotulo:""}}function _($){return($==null?void 0:$[0])==="numero"||($==null?void 0:$[0])==="dataHora"||($==null?void 0:$[0])==="selecao"?null:($==null?void 0:$[0])==="selecaoMultipla"?[]:($==null?void 0:$[0])==="confirmacao"?!1:""}function O(){const $=n.value??[],S=Array.isArray(r.value)?r.value:[];o.value=S.map(M=>{if(!M||typeof M!="object")return null;const I=M,C=$.find(z=>String(z.chave)===String(I.chave))??$[0];if(!C)return null;const ne=C.entrada??I.entrada,de=String(C.chave??I.chave),E=I.valor??_(ne);return{chave:de,entrada:ne,valor:E}}).filter(Boolean),o.value=o.value.filter(M=>d.value.includes(String(M.chave))),i.value?c.value=s(i.value):c.value=u.value}l.watch(()=>[e.value,n.value,r.value],()=>{e.value&&O()},{deep:!0,immediate:!0});function N(){if(!a.value)return;const $=(n.value??[]).find(S=>String(S.chave)===String(a.value));$&&(o.value.some(S=>String(S.chave)===String($.chave))||(o.value.push({chave:String($.chave),entrada:$.entrada,valor:_($.entrada)}),c.value=u.value,a.value=""))}function w($){o.value.splice($,1),c.value=u.value}function P(){t("fechar")}function T(){t("limpar")}function U(){const $=m(c.value);t("salvar",o.value.map(S=>({chave:S.chave,valor:S.valor})),$)}function h($){const S=(n.value??[]).find(M=>String(M.chave)===$);return S?xi(S):$}return{linhas:o,opcoesParaAdicionar:f,chaveParaAdicionar:a,formulaCustomizada:c,formulaGerada:u,componenteEntrada:p,opcoesEntrada:v,adicionar:N,remover:w,emitFechar:P,emitSalvar:U,emitLimpar:T,rotuloDoFiltro:xi,rotuloDoFiltroAtivo:h}}const jv=l.defineComponent({name:"EliTabelaModalFiltroAvancado",components:{CircleHelp:lp,Filter:Ni,Plus:vp,Trash2:$p,X:Di},props:{aberto:{type:Boolean,required:!0},filtrosBase:{type:Array,required:!0},modelo:{type:Array,required:!0},modeloFormula:{type:String,default:""}},emits:{fechar:()=>!0,limpar:()=>!0,salvar:(e,n)=>!0},setup(e,{emit:n}){return Dv({aberto:l.computed(()=>e.aberto),filtrosBase:l.computed(()=>e.filtrosBase),modelo:l.computed(()=>e.modelo),modeloFormula:l.computed(()=>e.modeloFormula),emit:n})}}),Ov={class:"eli-tabela-modal-filtro__modal",role:"dialog","aria-modal":"true","aria-label":"Filtro avançado"},xv={class:"eli-tabela-modal-filtro__header"},Tv={class:"eli-tabela-modal-filtro__header-titulo"},Uv={key:0,class:"eli-tabela-modal-filtro__contador"},Cv={class:"eli-tabela-modal-filtro__conteudo"},Pv={key:0,class:"eli-tabela-modal-filtro__vazio"},Av={key:1},Vv={key:0,class:"eli-tabela-modal-filtro__lista"},Bv={class:"eli-tabela-modal-filtro__linha-header"},Zv=["title"],Mv={class:"eli-tabela-modal-filtro__rotulo-filtro"},Fv=["onClick"],Lv={class:"eli-tabela-modal-filtro__entrada"},Rv={key:1,class:"eli-tabela-modal-filtro__estado-vazio"},Jv={class:"eli-tabela-modal-filtro__rodape-filtros"},qv={class:"eli-tabela-modal-filtro__acoes"},Gv=["disabled"],Kv=["value"],Wv=["disabled"],Xv={key:0,class:"eli-tabela-modal-filtro__formula-container"},Hv=["placeholder"],Yv={class:"eli-tabela-modal-filtro__formula-ajuda",tabindex:"0","aria-label":"Ajuda sobre fórmulas"},Qv={class:"eli-tabela-modal-filtro__footer"},eh=["disabled"];function th(e,n,r,i,t,o){const a=l.resolveComponent("Filter"),c=l.resolveComponent("X"),u=l.resolveComponent("Trash2"),s=l.resolveComponent("Plus"),m=l.resolveComponent("CircleHelp");return l.openBlock(),l.createBlock(l.Transition,{name:"eli-tabela-modal-filtro"},{default:l.withCtx(()=>[e.aberto?(l.openBlock(),l.createElementBlock("div",{key:0,class:"eli-tabela-modal-filtro__overlay",role:"presentation",onClick:n[7]||(n[7]=l.withModifiers((...d)=>e.emitFechar&&e.emitFechar(...d),["self"]))},[l.createElementVNode("div",Ov,[l.createElementVNode("header",xv,[l.createElementVNode("div",Tv,[l.createVNode(a,{class:"eli-tabela-modal-filtro__header-icone",size:18,"stroke-width":2}),n[8]||(n[8]=l.createElementVNode("h3",{class:"eli-tabela-modal-filtro__titulo"},"Filtro avançado",-1)),e.linhas.length?(l.openBlock(),l.createElementBlock("span",Uv,l.toDisplayString(e.linhas.length)+" "+l.toDisplayString(e.linhas.length===1?"filtro":"filtros"),1)):l.createCommentVNode("",!0)]),l.createElementVNode("button",{type:"button",class:"eli-tabela-modal-filtro__fechar","aria-label":"Fechar",onClick:n[0]||(n[0]=(...d)=>e.emitFechar&&e.emitFechar(...d))},[l.createVNode(c,{size:18,"stroke-width":2})])]),l.createElementVNode("div",Cv,[e.filtrosBase.length?(l.openBlock(),l.createElementBlock("div",Av,[e.linhas.length?(l.openBlock(),l.createElementBlock("div",Vv,[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(e.linhas,(d,f)=>(l.openBlock(),l.createElementBlock("div",{key:String(d.chave),class:"eli-tabela-modal-filtro__linha"},[l.createElementVNode("div",Bv,[l.createElementVNode("span",{class:"eli-tabela-modal-filtro__id-badge",title:`Identificador na fórmula: {c${f+1}}`}," c"+l.toDisplayString(f+1),9,Zv),l.createElementVNode("span",Mv,l.toDisplayString(e.rotuloDoFiltroAtivo(d.chave)),1),l.createElementVNode("button",{type:"button",class:"eli-tabela-modal-filtro__remover",title:"Remover filtro","aria-label":"Remover filtro",onClick:p=>e.remover(f)},[l.createVNode(u,{size:14,"stroke-width":2})],8,Fv)]),l.createElementVNode("div",Lv,[(l.openBlock(),l.createBlock(l.resolveDynamicComponent(e.componenteEntrada(d.entrada)),l.mergeProps({ref_for:!0},{value:d.valor,opcoes:e.opcoesEntrada(d.entrada),density:"compact"},{"onUpdate:value":p=>d.valor=p,onInput:p=>d.valor=p}),null,16,["onUpdate:value","onInput"]))])]))),128))])):(l.openBlock(),l.createElementBlock("div",Rv,[l.createVNode(a,{size:32,"stroke-width":1.5}),n[9]||(n[9]=l.createElementVNode("span",null,"Selecione um filtro abaixo para começar",-1))])),l.createElementVNode("div",Jv,[l.createElementVNode("div",qv,[l.withDirectives(l.createElementVNode("select",{"onUpdate:modelValue":n[1]||(n[1]=d=>e.chaveParaAdicionar=d),class:"eli-tabela-modal-filtro__select",disabled:!e.opcoesParaAdicionar.length},[n[10]||(n[10]=l.createElementVNode("option",{disabled:"",value:""},"Selecione um filtro…",-1)),(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(e.opcoesParaAdicionar,d=>(l.openBlock(),l.createElementBlock("option",{key:String(d.chave),value:String(d.chave)},l.toDisplayString(e.rotuloDoFiltro(d)),9,Kv))),128))],8,Gv),[[l.vModelSelect,e.chaveParaAdicionar]]),l.createElementVNode("button",{type:"button",class:"eli-tabela-modal-filtro__botao eli-tabela-modal-filtro__botao--prim",onClick:n[2]||(n[2]=(...d)=>e.adicionar&&e.adicionar(...d)),disabled:!e.chaveParaAdicionar},[l.createVNode(s,{size:15,"stroke-width":2.5}),n[11]||(n[11]=l.createTextVNode(" Adicionar ",-1))],8,Wv)]),e.linhas.length>=2?(l.openBlock(),l.createElementBlock("div",Xv,[n[13]||(n[13]=l.createElementVNode("label",{class:"eli-tabela-modal-filtro__formula-label"},"Fórmula",-1)),l.withDirectives(l.createElementVNode("input",{"onUpdate:modelValue":n[3]||(n[3]=d=>e.formulaCustomizada=d),type:"text",class:"eli-tabela-modal-filtro__formula-input",placeholder:"Ex: "+e.formulaGerada},null,8,Hv),[[l.vModelText,e.formulaCustomizada]]),l.createElementVNode("span",Yv,[l.createVNode(m,{size:15,"stroke-width":2}),n[12]||(n[12]=l.createElementVNode("div",{class:"eli-tabela-modal-filtro__formula-tooltip",role:"tooltip"},[l.createElementVNode("strong",null,"Como usar a fórmula"),l.createElementVNode("p",null,[l.createTextVNode("Use os identificadores "),l.createElementVNode("code",null,"{c1}"),l.createTextVNode(", "),l.createElementVNode("code",null,"{c2}"),l.createTextVNode(", "),l.createElementVNode("code",null,"{c3}"),l.createTextVNode("… correspondentes a cada filtro acima:")]),l.createElementVNode("ul",null,[l.createElementVNode("li",null,[l.createElementVNode("code",null,"E"),l.createTextVNode(" — ambos devem ser verdadeiros")]),l.createElementVNode("li",null,[l.createElementVNode("code",null,"OU"),l.createTextVNode(" — pelo menos um deve ser verdadeiro")]),l.createElementVNode("li",null,[l.createElementVNode("code",null,"NAO"),l.createTextVNode(" — negação de uma condição")]),l.createElementVNode("li",null,[l.createElementVNode("code",null,"( )"),l.createTextVNode(" — agrupa condições")])]),l.createElementVNode("p",null,[l.createElementVNode("strong",null,"Exemplo:")]),l.createElementVNode("code",null,"{c1} OU ({c2} E NAO {c3})"),l.createElementVNode("p",{class:"eli-tabela-modal-filtro__formula-tooltip-nota"},"Deixe em branco para combinar todos com E.")],-1))])])):l.createCommentVNode("",!0)])])):(l.openBlock(),l.createElementBlock("div",Pv," Nenhum filtro configurado na tabela. "))]),l.createElementVNode("footer",Qv,[l.createElementVNode("button",{type:"button",class:"eli-tabela-modal-filtro__botao eli-tabela-modal-filtro__botao--perigo",disabled:!e.linhas.length,onClick:n[4]||(n[4]=(...d)=>e.emitLimpar&&e.emitLimpar(...d))}," Limpar ",8,eh),n[14]||(n[14]=l.createElementVNode("div",{class:"eli-tabela-modal-filtro__footer-spacer"},null,-1)),l.createElementVNode("button",{type:"button",class:"eli-tabela-modal-filtro__botao eli-tabela-modal-filtro__botao--sec",onClick:n[5]||(n[5]=(...d)=>e.emitFechar&&e.emitFechar(...d))}," Cancelar "),l.createElementVNode("button",{type:"button",class:"eli-tabela-modal-filtro__botao eli-tabela-modal-filtro__botao--prim",onClick:n[6]||(n[6]=(...d)=>e.emitSalvar&&e.emitSalvar(...d))}," Aplicar ")])])])):l.createCommentVNode("",!0)]),_:1})}const nh=q(jv,[["render",th]]),rh=l.defineComponent({name:"EliTabelaPaginacao",props:{pagina:{type:Number,required:!0},totalPaginas:{type:Number,required:!0},maximoBotoes:{type:Number,required:!1},acoes:{type:Array,required:!1,default:()=>[]},parametrosConsulta:{type:Object,required:!1}},emits:{alterar(e){return Number.isFinite(e)}},setup(e,{emit:n}){const r=l.computed(()=>{const s=e.maximoBotoes;return typeof s=="number"&&s>=5?Math.floor(s):7}),i=l.computed(()=>{const s=e.totalPaginas,m=e.pagina,d=r.value,f=[],p=w=>{f.push({label:String(w),pagina:w,ativo:w===m})},v=()=>{f.push({label:"…",ehEllipsis:!0})};if(s<=d){for(let w=1;w<=s;w+=1)p(w);return f}const _=Math.max(3,d-2);let O=Math.max(2,m-Math.floor(_/2)),N=O+_-1;N>=s&&(N=s-1,O=N-_+1),p(1),O>2&&v();for(let w=O;w<=N;w+=1)p(w);return Ne.pagina<=1),a=l.computed(()=>e.pagina>=e.totalPaginas),c=l.computed(()=>e.pagina),u=l.computed(()=>e.totalPaginas);return{botoes:i,irParaPagina:t,anteriorDesabilitado:o,proximaDesabilitada:a,paginaAtual:c,totalPaginasExibidas:u}}}),oh={class:"eli-tabela__rodape"},ih={key:0,class:"eli-tabela__acoes-inferiores",style:{"margin-right":"auto"}},ah=["onClick"],lh={class:"eli-tabela__acoes-cabecalho-rotulo"},ch={key:1,class:"eli-tabela__paginacao",role:"navigation","aria-label":"Paginação de resultados"},sh=["disabled"],uh={key:0,class:"eli-tabela__pagina-ellipsis","aria-hidden":"true"},dh=["disabled","aria-current","aria-label","onClick"],mh=["disabled"];function fh(e,n,r,i,t,o){return l.openBlock(),l.createElementBlock("div",oh,[e.acoes.length>0?(l.openBlock(),l.createElementBlock("div",ih,[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(e.acoes,(a,c)=>(l.openBlock(),l.createElementBlock("button",{key:`${a.rotulo}-${c}`,type:"button",class:"eli-tabela__acao-inferior",style:l.normalizeStyle(a.cor?{borderColor:a.cor,color:a.cor}:void 0),onClick:u=>a.acao(e.parametrosConsulta)},[a.icone?(l.openBlock(),l.createBlock(l.resolveDynamicComponent(a.icone),{key:0,class:"eli-tabela__acoes-cabecalho-icone",size:16,"stroke-width":2})):l.createCommentVNode("",!0),l.createElementVNode("span",lh,l.toDisplayString(a.rotulo),1)],12,ah))),128))])):l.createCommentVNode("",!0),e.totalPaginasExibidas>1?(l.openBlock(),l.createElementBlock("nav",ch,[l.createElementVNode("button",{type:"button",class:"eli-tabela__pagina-botao",disabled:e.anteriorDesabilitado,"aria-label":"Página anterior",onClick:n[0]||(n[0]=a=>e.irParaPagina(e.paginaAtual-1))}," << ",8,sh),(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(e.botoes,(a,c)=>(l.openBlock(),l.createElementBlock(l.Fragment,{key:`${a.label}-${c}`},[a.ehEllipsis?(l.openBlock(),l.createElementBlock("span",uh,l.toDisplayString(a.label),1)):(l.openBlock(),l.createElementBlock("button",{key:1,type:"button",class:l.normalizeClass(["eli-tabela__pagina-botao",a.ativo?"eli-tabela__pagina-botao--ativo":void 0]),disabled:a.ativo,"aria-current":a.ativo?"page":void 0,"aria-label":`Ir para página ${a.label}`,onClick:u=>e.irParaPagina(a.pagina)},l.toDisplayString(a.label),11,dh))],64))),128)),l.createElementVNode("button",{type:"button",class:"eli-tabela__pagina-botao",disabled:e.proximaDesabilitada,"aria-label":"Próxima página",onClick:n[1]||(n[1]=a=>e.irParaPagina(e.paginaAtual+1))}," >> ",8,mh)])):l.createCommentVNode("",!0)])}const ph=q(rh,[["render",fh]]),gh="eli:tabela";function Ti(e){return`${gh}:${e}:colunas`}function Ui(e){if(!e||typeof e!="object")return{visiveis:[],invisiveis:[]};const n=e,r=Array.isArray(n.visiveis)?n.visiveis.filter(t=>typeof t=="string"):[],i=Array.isArray(n.invisiveis)?n.invisiveis.filter(t=>typeof t=="string"):[];return{visiveis:r,invisiveis:i}}function Ci(e){try{const n=window.localStorage.getItem(Ti(e));return n?Ui(JSON.parse(n)):{visiveis:[],invisiveis:[]}}catch{return{visiveis:[],invisiveis:[]}}}function vh(e,n){try{window.localStorage.setItem(Ti(e),JSON.stringify(Ui(n)))}catch{}}function Yn(e){return`eli_tabela:${e}:filtro_avancado`}function Pi(e){const n={linhas:[],formula:""};try{const r=localStorage.getItem(Yn(e));if(!r)return n;const i=JSON.parse(r);return Array.isArray(i)?{linhas:i,formula:""}:i&&typeof i=="object"?{linhas:Array.isArray(i.linhas)?i.linhas:[],formula:typeof i.formula=="string"?i.formula:""}:n}catch{return n}}function hh(e,n){try{localStorage.setItem(Yn(e),JSON.stringify(n??{linhas:[]}))}catch{}}function $h(e){try{localStorage.removeItem(Yn(e))}catch{}}function bh(e,n){const r=l.ref(!1),i=l.ref(Ci(e.tabela.nome)),t=l.ref({}),o=l.computed(()=>e.tabela.colunas.map(v=>v.rotulo)),a=l.computed(()=>{var U,h;const v=e.tabela.colunas,O=(((U=i.value.visiveis)==null?void 0:U.length)??0)>0||(((h=i.value.invisiveis)==null?void 0:h.length)??0)>0?i.value.invisiveis??[]:v.filter($=>$.visivel===!1).map($=>$.rotulo),N=new Set(O),w=v.filter($=>N.has($.rotulo)),P=new Map;for(const $ of w)P.has($.rotulo)||P.set($.rotulo,$);const T=[];for(const $ of O){const S=P.get($);S&&T.push(S)}for(const $ of w)T.includes($)||T.push($);return T}),c=l.computed(()=>a.value.length>0),u=l.computed(()=>{var S,M;const v=e.tabela.colunas,_=o.value,O=(((S=i.value.visiveis)==null?void 0:S.length)??0)>0||(((M=i.value.invisiveis)==null?void 0:M.length)??0)>0,N=O?i.value.invisiveis??[]:e.tabela.colunas.filter(I=>I.visivel===!1).map(I=>I.rotulo),w=new Set(N),P=_.filter(I=>!w.has(I)),T=new Set(P),U=O?i.value.visiveis??[]:[],h=[];for(const I of U)T.has(I)&&h.push(I);for(const I of P)h.includes(I)||h.push(I);const $=new Map;for(const I of v)$.has(I.rotulo)||$.set(I.rotulo,I);return h.map(I=>$.get(I)).filter(Boolean)}),s=l.computed(()=>u.value.length+(n.value?1:0)+(c.value?1:0));function m(){r.value=!0}function d(){r.value=!1}function f(v){i.value=v,vh(e.tabela.nome,v),r.value=!1,t.value={}}function p(v){const _=!!t.value[v];t.value={...t.value,[v]:!_}}return{modalColunasAberto:r,configColunas:i,linhasExpandidas:t,rotulosColunas:o,colunasEfetivas:u,colunasInvisiveisEfetivas:a,temColunasInvisiveis:c,totalColunas:s,abrirModalColunas:m,fecharModalColunas:d,salvarModalColunas:f,alternarLinhaExpandida:p}}var Ai=(e=>(e[e.sucesso=200]="sucesso",e[e.erroConhecido=400]="erroConhecido",e[e.erroPermissao=401]="erroPermissao",e[e.erroNaoEncontrado=404]="erroNaoEncontrado",e[e.erroDesconhecido=500]="erroDesconhecido",e[e.tempoEsgotado=504]="tempoEsgotado",e))(Ai||{});function _h(e,n,r,i,t){const a=l.ref(!1),c=l.ref(null),u=l.ref([]),s=l.ref(0),m=l.ref([]),d=l.ref(null),f=l.ref("asc"),p=l.computed(()=>e.tabela),v=l.computed(()=>{const E=e.tabela.registros_por_consulta;return typeof E=="number"&&E>0?Math.floor(E):10}),_=l.computed(()=>{const E=v.value;if(!E||E<=0)return 1;const z=s.value??0;return z?Math.max(1,Math.ceil(z/E)):1}),O=l.computed(()=>u.value??[]),N=l.computed(()=>s.value??0),w=l.computed(()=>(e.tabela.acoesLinha??[]).length>0),P=l.computed(()=>!!e.tabela.mostrarCaixaDeBusca),T=l.computed(()=>(e.tabela.acoesTabela??[]).filter(E=>E.posicao==="superior")),U=l.computed(()=>(e.tabela.acoesTabela??[]).filter(E=>E.posicao==="inferior")),h=l.computed(()=>T.value.length>0),$=l.computed(()=>U.value.length>0),S=l.computed(()=>{const E=Math.max(1,v.value),y={offSet:(r.value-1)*E,limit:E},D=(i.value??"").trim();if(D)y.texto_busca=D;else{const j=n.value;j.length&&(y.filtros=j)}return d.value&&(y.coluna_ordem=d.value,y.direcao_ordem=f.value),{...y,atualizarConsulta:async()=>{await I()},editarLista:async j=>(u.value=j,j)}});let M=0;async function I(){var z,y;const E=++M;a.value=!0,c.value=null;try{m.value=[],t.value={};const D=Math.max(1,v.value),A={offSet:(r.value-1)*D,limit:D},Z=(i.value??"").trim();if(Z)A.texto_busca=Z;else{const ce=n.value;ce.length&&(A.filtros=ce)}d.value&&(A.coluna_ordem=d.value,A.direcao_ordem=f.value);const G=await e.tabela.consulta(A);if(E!==M)return;if(G.cod!==Ai.sucesso){u.value=[],s.value=0,c.value=G.mensagem;return}const H=((z=G.valor)==null?void 0:z.valores)??[],te=((y=G.valor)==null?void 0:y.quantidade)??H.length;u.value=H,s.value=Number(te)||0;const re=Math.max(1,Math.ceil((s.value||0)/D));r.value>re&&(r.value=re);const le=e.tabela.acoesLinha??[];if(!le.length){m.value=[];return}m.value=H.map(()=>le.map(ce=>ce.exibir===void 0?!0:typeof ce.exibir=="boolean"?ce.exibir:!1));const Oe=await Promise.all(H.map(ce=>Promise.all(le.map(async Se=>{if(Se.exibir===void 0)return!0;if(typeof Se.exibir=="boolean")return Se.exibir;try{return!!await Promise.resolve(Se.exibir(ce))}catch{return!1}}))));E===M&&(m.value=Oe)}catch(D){if(console.error("[EliTabela] Erro capturado em carregar():",D),E!==M)return;u.value=[],s.value=0,c.value=D instanceof Error?D.message:"Erro ao carregar dados."}finally{E===M&&(a.value=!1)}}function C(E){if(E){if(d.value===E){f.value=f.value==="asc"?"desc":"asc",I();return}d.value=E,f.value="asc",r.value!==1?r.value=1:I()}}function ne(E){i.value!==E&&(i.value=E,r.value!==1?r.value=1:I())}function de(E){const z=Math.min(Math.max(1,E),_.value);z!==r.value&&(r.value=z)}return l.watch(r,(E,z)=>{E!==z&&I()}),l.watch(u,()=>{t.value={}}),l.watch(()=>e.tabela.mostrarCaixaDeBusca,E=>{!E&&i.value&&(i.value="",r.value!==1?r.value=1:I())}),l.watch(()=>e.tabela.registros_por_consulta,()=>{r.value!==1?r.value=1:I()}),{isDev:!1,tabela:p,carregando:a,erro:c,linhas:u,linhasPaginadas:O,quantidade:s,quantidadeFiltrada:N,acoesVisiveis:m,colunaOrdenacao:d,direcaoOrdenacao:f,registrosPorConsulta:v,totalPaginas:_,temAcoes:w,exibirBusca:P,acoesSuperiores:T,acoesInferiores:U,temAcoesSuperiores:h,temAcoesInferiores:$,parametrosConsultaAtuais:S,carregar:I,alternarOrdenacao:C,atualizarBusca:ne,irParaPagina:de}}function yh(e,n,r,i){const t=Pi(e.tabela.nome),o=l.ref(t.linhas),a=l.ref(t.formula??""),c=l.ref(!1),u=l.computed(()=>(e.tabela.filtroAvancado??[]).length>0),s=l.computed(()=>{const N=e.tabela.filtroAvancado??[],w=(o.value??[]).filter(h=>h&&h.chave!==void 0);if(w.length===0)return[];const P=w.map(h=>{const $=N.find(M=>String(M.chave)===String(h.chave));if(!$)return null;const S=$.filtro(h.valor);return S?{chave:h.chave,condicao:S}:null}).filter(h=>h!==null);if(P.length===0)return[];if(a.value&&P.length>1){const h=[];let $=a.value;return P.forEach(({chave:S},M)=>{$=$.replace(new RegExp(`\\{${S}\\}`,"g"),`{c${M+1}}`)}),P.forEach(({condicao:S},M)=>{const I=`{c${M+1}}`;h.push({...S,id:I})}),[{condicoes:h,formula:$}]}const T=P.map(({condicao:h},$)=>({...h,id:`{c${$+1}}`})),U=T.map(h=>h.id).join(" E ");return[{condicoes:T,formula:U}]});function m(){c.value=!0}function d(){c.value=!1}function f(){o.value=[],a.value="",$h(e.tabela.nome),c.value=!1,r.value="",n.value!==1?n.value=1:i()}function p(N,w){o.value=N??[],a.value=w??"",hh(e.tabela.nome,{linhas:o.value,formula:a.value}),c.value=!1,r.value="",n.value!==1?n.value=1:i()}const v={"=":"igual a","!=":"diferente de",">":"maior que","<":"menor que",">=":"maior ou igual a","<=":"menor ou igual a",like:"contém",in:"em","∩":"possui"};function _(N,w){const[P,T]=Array.isArray(N)?N:[N,{}];if(P==="confirmacao"){const U=T||{};return w===!0?U.rotuloAtivo||"Sim":w===!1?U.rotuloInativo||"Não":String(w)}if((P==="selecao"||P==="selecaoMultipla")&&typeof(T==null?void 0:T.itens)=="function")try{const U=T.itens();if(Array.isArray(U)){const h=$=>{const S=U.find(M=>String(M.chave)===String($));return S?S.rotulo:$};return Array.isArray(w)?w.map($=>h(String($))).join(", "):h(String(w))}}catch{}return Array.isArray(w)?w.map(String).join(", "):String(w)}const O=l.computed(()=>{const N=e.tabela.filtroAvancado??[],w=(o.value??[]).filter(T=>T&&T.chave!==void 0),P=[];for(const T of w){const U=N.find(h=>String(h.chave)===String(T.chave));if(U){const h=U.filtro(T.valor);if(h){const $=v[h.operador]||h.operador,S=_(U.entrada,h.valor);P.push(`${U.rotulo} ${$} "${S}"`)}}}return{quantidade:P.length,rotulos:P}});return{filtrosUi:o,filtrosFormula:a,modalFiltroAberto:c,exibirFiltroAvancado:u,filtrosAvancadosAtivos:s,filtrosAtivosResumo:O,abrirModalFiltro:m,fecharModalFiltro:d,limparFiltrosAvancados:f,salvarFiltrosAvancados:p}}function kh(e,n){const r=l.ref(null),i=l.ref(null),t=l.ref({top:0,left:0});function o(m){var N,w,P,T;const d=m.getBoundingClientRect(),f=8,p=((w=(N=i.value)==null?void 0:N.menuEl)==null?void 0:w.offsetHeight)??0,v=((T=(P=i.value)==null?void 0:P.menuEl)==null?void 0:T.offsetWidth)??180;let _=d.bottom+f;const O=d.right-v;p&&_+p>window.innerHeight-f&&(_=d.top-f-p),t.value={top:Math.max(f,Math.round(_)),left:Math.max(f,Math.round(O))}}function a(m){var f,p;if(r.value===null)return;const d=m.target;(p=(f=i.value)==null?void 0:f.menuEl)!=null&&p.contains(d)||(r.value=null)}function c(m){const d=e.tabela.acoesLinha??[],f=n.value[m]??[];return d.map((p,v)=>{const _=p.exibir===void 0?!0:typeof p.exibir=="boolean"?p.exibir:!1;return{acao:p,indice:v,visivel:f[v]??_}}).filter(p=>p.visivel)}function u(m){return c(m).length>0}function s(m,d){if(!u(m))return;if(r.value===m){r.value=null;return}r.value=m;const f=(d==null?void 0:d.currentTarget)??null;f&&(o(f),l.nextTick(()=>{r.value!==null&&o(f)}))}return l.onMounted(()=>document.addEventListener("click",a)),l.onBeforeUnmount(()=>document.removeEventListener("click",a)),{menuAberto:r,menuPopup:i,menuPopupPos:t,possuiAcoes:u,toggleMenu:s,acoesDisponiveisPorLinha:c}}function Sh(e,n,r){const i=l.computed(()=>!!e.tabela.mostrar_selecao),t=l.computed(()=>e.tabela.chave_selecao);function o(d){return t.value&&d&&typeof d=="object"?d[t.value]:d}function a(d){const f=o(d);return t.value?e.selecionados.some(p=>o(p)===f):e.selecionados.includes(d)}function c(d){const f=[...e.selecionados],p=o(d);let v=-1;t.value?v=f.findIndex(_=>o(_)===p):v=f.indexOf(d),v===-1?f.push(d):f.splice(v,1),n("update:selecionados",f)}const u=l.computed(()=>r.value.length===0?!1:r.value.every(d=>a(d))),s=l.computed(()=>r.value.length===0?!1:r.value.some(d=>a(d))&&!u.value);function m(d){const f=d??!u.value;let p=[...e.selecionados];if(f)for(const v of r.value)a(v)||p.push(v);else{const v=r.value.map(o);t.value?p=p.filter(_=>!v.includes(o(_))):p=p.filter(_=>!v.includes(_))}n("update:selecionados",p)}return{mostrarSelecao:i,isSelecionado:a,alternarSelecao:c,todosSelecionados:u,algunsSelecionados:s,alternarSelecaoTodos:m}}function wh(e,n){const r=l.ref(1),i=l.ref("");let t=async()=>{};const a=yh(e,r,i,()=>t()),c=l.ref(!1),u=bh(e,c),s=_h(e,a.filtrosAvancadosAtivos,r,i,u.linhasExpandidas);t=s.carregar,c.value=s.temAcoes.value,l.watch(s.temAcoes,f=>{c.value=f});const m=Sh(e,n,s.linhasPaginadas),d=kh(e,s.acoesVisiveis);return l.watch(()=>e.tabela,()=>{d.menuAberto.value=null,s.colunaOrdenacao.value=null,s.direcaoOrdenacao.value="asc",i.value="",u.modalColunasAberto.value=!1,a.modalFiltroAberto.value=!1,u.configColunas.value=Ci(e.tabela.nome);const f=Pi(e.tabela.nome);a.filtrosUi.value=f.linhas,u.linhasExpandidas.value={},r.value!==1?r.value=1:s.carregar()}),l.onMounted(()=>void s.carregar()),{...s,...a,...m,...u,menuAberto:d.menuAberto,menuPopup:d.menuPopup,menuPopupPos:d.menuPopupPos,possuiAcoes:d.possuiAcoes,toggleMenu:d.toggleMenu,acoesDisponiveisPorLinha:d.acoesDisponiveisPorLinha,paginaAtual:r,valorBusca:i}}const Ih=l.defineComponent({name:"EliTabela",inheritAttrs:!1,components:{EliTabelaCabecalho:wg,EliTabelaEstados:Mg,EliTabelaDebug:Ug,EliTabelaHead:Qg,EliTabelaBody:cg,EliTabelaMenuAcoes:av,EliTabelaPaginacao:ph,EliTabelaModalColunas:Nv,EliTabelaModalFiltroAvancado:nh},props:{tabela:{type:Object,required:!0},selecionados:{type:Array,default:()=>[]},esconderDebug:{type:Boolean,default:!1}},emits:["update:selecionados"],setup(e,{emit:n}){return wh(e,n)}}),zh={class:"eli-tabela"},Eh={class:"eli-tabela__table-wrapper"},Nh={class:"eli-tabela__table"},Dh={key:0},jh=["colspan"];function Oh(e,n,r,i,t,o){const a=l.resolveComponent("EliTabelaDebug"),c=l.resolveComponent("EliTabelaCabecalho"),u=l.resolveComponent("EliTabelaModalColunas"),s=l.resolveComponent("EliTabelaModalFiltroAvancado"),m=l.resolveComponent("EliTabelaHead"),d=l.resolveComponent("EliTabelaEstados"),f=l.resolveComponent("EliTabelaBody"),p=l.resolveComponent("EliTabelaMenuAcoes"),v=l.resolveComponent("EliTabelaPaginacao");return l.openBlock(),l.createElementBlock("div",zh,[l.createVNode(a,{isDev:e.isDev,menuAberto:e.menuAberto,menuPopupPos:e.menuPopupPos},{default:l.withCtx(()=>[l.createElementVNode("div",null,"paginaAtual: "+l.toDisplayString(e.paginaAtual),1),l.createElementVNode("div",null,"limit: "+l.toDisplayString(e.registrosPorConsulta),1),l.createElementVNode("div",null,"texto_busca: "+l.toDisplayString((e.valorBusca||"").trim()),1),l.createElementVNode("div",null,"filtrosAvancadosAtivos: "+l.toDisplayString(JSON.stringify(e.filtrosAvancadosAtivos)),1),l.createElementVNode("div",null,"quantidadeTotal: "+l.toDisplayString(e.quantidade),1)]),_:1},8,["isDev","menuAberto","menuPopupPos"]),e.exibirBusca||e.temAcoesSuperiores?(l.openBlock(),l.createBlock(c,{key:0,exibirBusca:e.exibirBusca,exibirBotaoFiltroAvancado:e.exibirFiltroAvancado,filtrosAtivosResumo:e.filtrosAtivosResumo,valorBusca:e.valorBusca,acoesCabecalho:e.acoesSuperiores,parametrosConsulta:e.parametrosConsultaAtuais,onBuscar:e.atualizarBusca,onColunas:e.abrirModalColunas,onFiltroAvancado:e.abrirModalFiltro},null,8,["exibirBusca","exibirBotaoFiltroAvancado","filtrosAtivosResumo","valorBusca","acoesCabecalho","parametrosConsulta","onBuscar","onColunas","onFiltroAvancado"])):l.createCommentVNode("",!0),l.createVNode(u,{aberto:e.modalColunasAberto,rotulosColunas:e.rotulosColunas,configInicial:e.configColunas,colunas:e.tabela.colunas,onFechar:e.fecharModalColunas,onSalvar:e.salvarModalColunas},null,8,["aberto","rotulosColunas","configInicial","colunas","onFechar","onSalvar"]),l.createVNode(s,{aberto:e.modalFiltroAberto,filtrosBase:e.tabela.filtroAvancado??[],modelo:e.filtrosUi,modeloFormula:e.filtrosFormula,onFechar:e.fecharModalFiltro,onLimpar:e.limparFiltrosAvancados,onSalvar:e.salvarFiltrosAvancados},null,8,["aberto","filtrosBase","modelo","modeloFormula","onFechar","onLimpar","onSalvar"]),l.createElementVNode("div",Eh,[l.createElementVNode("table",Nh,[l.createVNode(m,{colunas:e.colunasEfetivas,temAcoes:e.temAcoes,temColunasInvisiveis:e.temColunasInvisiveis,colunaOrdenacao:e.colunaOrdenacao,direcaoOrdenacao:e.direcaoOrdenacao,mostrarSelecao:e.mostrarSelecao,todosSelecionados:e.todosSelecionados,algunsSelecionados:e.algunsSelecionados,onAlternarOrdenacao:e.alternarOrdenacao,onAlternarSelecaoTodos:e.alternarSelecaoTodos},null,8,["colunas","temAcoes","temColunasInvisiveis","colunaOrdenacao","direcaoOrdenacao","mostrarSelecao","todosSelecionados","algunsSelecionados","onAlternarOrdenacao","onAlternarSelecaoTodos"]),e.carregando||e.erro||!e.linhas.length?(l.openBlock(),l.createElementBlock("tbody",Dh,[l.createElementVNode("tr",null,[l.createElementVNode("td",{colspan:e.totalColunas,class:"eli-tabela__td--estados"},[l.createVNode(d,{carregando:e.carregando,erro:e.erro,mensagemVazio:e.tabela.mensagemVazio,class:"eli-tabela__estados-inline"},null,8,["carregando","erro","mensagemVazio"])],8,jh)])])):(l.openBlock(),l.createBlock(f,{key:1,colunas:e.colunasEfetivas,colunasInvisiveis:e.colunasInvisiveisEfetivas,temColunasInvisiveis:e.temColunasInvisiveis,linhasExpandidas:e.linhasExpandidas,linhas:e.linhasPaginadas,temAcoes:e.temAcoes,menuAberto:e.menuAberto,possuiAcoes:e.possuiAcoes,toggleMenu:e.toggleMenu,alternarLinhaExpandida:e.alternarLinhaExpandida,mostrarSelecao:e.mostrarSelecao,isSelecionado:e.isSelecionado,alternarSelecao:e.alternarSelecao},null,8,["colunas","colunasInvisiveis","temColunasInvisiveis","linhasExpandidas","linhas","temAcoes","menuAberto","possuiAcoes","toggleMenu","alternarLinhaExpandida","mostrarSelecao","isSelecionado","alternarSelecao"]))])]),l.createVNode(p,{ref:"menuPopup",menuAberto:e.menuAberto,posicao:e.menuPopupPos,acoes:e.menuAberto===null?[]:e.acoesDisponiveisPorLinha(e.menuAberto),linha:e.menuAberto===null?null:e.linhasPaginadas[e.menuAberto],onExecutar:n[0]||(n[0]=({acao:_,linha:O})=>{e.menuAberto=null,_.acao(O)})},null,8,["menuAberto","posicao","acoes","linha"]),e.totalPaginas>1&&e.quantidadeFiltrada>0||e.temAcoesInferiores?(l.openBlock(),l.createBlock(v,{key:1,pagina:e.paginaAtual,totalPaginas:e.totalPaginas,maximoBotoes:e.tabela.maximo_botoes_paginacao,acoes:e.acoesInferiores,parametrosConsulta:e.parametrosConsultaAtuais,onAlterar:e.irParaPagina},null,8,["pagina","totalPaginas","maximoBotoes","acoes","parametrosConsulta","onAlterar"])):l.createCommentVNode("",!0)])}const Vi=q(Ih,[["render",Oh]]),xh=(e,n)=>[e,n];function Th(e,n){const r=[`## Elemento: ${e.seletor}`,"",`- **Página:** \`${n}\``,`- **Tag:** \`<${e.tag}>\``];if(e.id&&r.push(`- **ID:** \`${e.id}\``),e.classes.length&&r.push(`- **Classes:** \`${e.classes.join(", ")}\``),r.push(`- **Caminho DOM:** \`${e.caminhoDom}\``),Object.keys(e.dataAtributos).length){r.push("- **data-* atributos:**");for(const[t,o]of Object.entries(e.dataAtributos))r.push(` - \`${t}\` = \`${o}\``)}return e.textoVisivel&&r.push(`- **Texto visível:** "${e.textoVisivel}"`),r.join(` +`)}function Uh(e){const n=["# Relatório de Feedback de Interface","",`> Gerado em: ${new Date().toLocaleString("pt-BR")}`,`> Total de itens: ${e.length}`,"","---",""];for(const r of e){const i=r.elemento;if(n.push(`## 🔹 ${i.seletor}`),n.push(""),n.push(`- **Data:** ${new Date(r.criadoEm).toLocaleString("pt-BR")}`),n.push(`- **Página:** \`${r.urlPagina}\``),n.push(`- **Tag:** \`<${i.tag}>\``),i.id&&n.push(`- **ID:** \`${i.id}\``),i.classes.length&&n.push(`- **Classes:** \`${i.classes.join(", ")}\``),n.push(`- **Caminho DOM:** \`${i.caminhoDom}\``),Object.keys(i.dataAtributos).length){n.push("- **data-* atributos:**");for(const[o,a]of Object.entries(i.dataAtributos))n.push(` - \`${o}\` = \`${a}\``)}i.textoVisivel&&n.push(`- **Texto visível:** "${i.textoVisivel}"`),n.push(""),n.push("### Comentário"),n.push(""),n.push(r.comentario),n.push(""),n.push("---"),n.push("")}return n.join(` +`)}function Ch(e){const n={};for(const a of Array.from(e.attributes))a.name.startsWith("data-")&&(n[a.name]=a.value);const r=(e.textContent??"").trim().slice(0,120),i=[];let t=e;for(let a=0;a<4&&t&&t!==document.body;a++){const c=t.tagName.toLowerCase()+(t.id?`#${t.id}`:"")+(t.classList.length?`.${Array.from(t.classList).join(".")}`:"");i.unshift(c),t=t.parentElement}let o=e.tagName.toLowerCase();return e.id?o=`#${e.id}`:e.classList.length&&(o=`${e.tagName.toLowerCase()}.${Array.from(e.classList).join(".")}`),{seletor:o,id:e.id||null,classes:Array.from(e.classList),tag:e.tagName.toLowerCase(),textoVisivel:r,dataAtributos:n,caminhoDom:i.join(" > ")}}const Qn="eli-feedback-items";function Ph(){return`fb-${Date.now().toString(36)}-${Math.random().toString(36).slice(2,7)}`}function Ah(){const e=l.ref("inativo"),n=l.ref(null),r=l.ref(""),i=l.ref(null),t=l.ref(!1),o=l.ref(!1);function a(){try{const I=localStorage.getItem(Qn);return I?JSON.parse(I):[]}catch{return[]}}const c=l.ref(a()),u=l.computed(()=>c.value.length);function s(){localStorage.setItem(Qn,JSON.stringify(c.value))}let m=null;function d(){m=document.createElement("div"),m.id="eli-feedback-overlay",Object.assign(m.style,{position:"fixed",pointerEvents:"none",border:"2px solid #C62828",background:"rgba(198, 40, 40, 0.08)",borderRadius:"4px",zIndex:"99998",transition:"all 0.1s ease",display:"none"}),document.body.appendChild(m)}function f(){m&&(m.remove(),m=null)}function p(I){if(!m)return;const C=I.getBoundingClientRect();Object.assign(m.style,{display:"block",top:`${C.top-2}px`,left:`${C.left-2}px`,width:`${C.width+4}px`,height:`${C.height+4}px`})}function v(I){const C=I.target;C.closest("#eli-feedback-widget")||C.id==="eli-feedback-overlay"||(i.value=C,p(C))}function _(){document.removeEventListener("mousemove",v,!0),document.removeEventListener("click",O,!0),document.removeEventListener("keydown",N,!0),document.body.style.cursor="",m&&(m.style.display="none")}function O(I){I.preventDefault(),I.stopPropagation(),I.stopImmediatePropagation();const C=I.target;if(C.closest("#eli-feedback-widget")||C.id==="eli-feedback-overlay")return;const ne=Ch(C),de=e.value;if(_(),de==="selecionando-copiar"){const E=Th(ne,window.location.href);navigator.clipboard.writeText(E).then(()=>{o.value=!0,setTimeout(()=>{o.value=!1},1500)}).catch(()=>{}),e.value="inativo",f()}else n.value=ne,e.value="comentando"}function N(I){I.key==="Escape"&&U()}function w(){n.value=null,r.value="",t.value=!1,d(),document.body.style.cursor="crosshair",document.addEventListener("mousemove",v,!0),document.addEventListener("click",O,!0),document.addEventListener("keydown",N,!0)}function P(){e.value="selecionando",w()}function T(){e.value="selecionando-copiar",w()}function U(){e.value="inativo",n.value=null,i.value=null,r.value="",_(),f()}function h(){if(!n.value||!r.value.trim())return;const I={id:Ph(),criadoEm:new Date().toISOString(),elemento:n.value,comentario:r.value.trim(),urlPagina:window.location.href};c.value.unshift(I),s(),e.value="inativo",n.value=null,r.value="",f()}function $(){if(!c.value.length)return;const I=Uh(c.value),C=new Blob([I],{type:"text/markdown;charset=utf-8"}),ne=URL.createObjectURL(C);window.open(ne,"_blank")}function S(){c.value=[],localStorage.removeItem(Qn)}function M(I){c.value=c.value.filter(C=>C.id!==I),s()}return l.onBeforeUnmount(()=>{U()}),{modo:e,elementoSelecionado:n,comentario:r,painelAberto:t,copiouElemento:o,itens:c,totalItens:u,iniciarSelecao:P,iniciarSelecaoParaCopiar:T,cancelarSelecao:U,salvarFeedback:h,exportarMarkdown:$,limparTodos:S,removerItem:M}}const Vh=l.defineComponent({name:"EliFeedbackWidget",setup(){const e=l.ref(null),n=l.ref(!1),{modo:r,elementoSelecionado:i,comentario:t,copiouElemento:o,itens:a,totalItens:c,iniciarSelecao:u,iniciarSelecaoParaCopiar:s,cancelarSelecao:m,salvarFeedback:d,exportarMarkdown:f,limparTodos:p}=Ah();function v(){r.value!=="inativo"?(m(),n.value=!1):n.value=!n.value}function _(){n.value=!1,u()}function O(){n.value=!1,s()}function N(){p(),n.value=!1}return l.watch(r,async w=>{var P;w==="comentando"&&(await l.nextTick(),(P=e.value)==null||P.focus())}),{textareaRef:e,expandido:n,modo:r,elementoSelecionado:i,comentario:t,copiouElemento:o,itens:a,totalItens:c,aoClicarFab:v,aoIniciarFeedback:_,aoIniciarCopia:O,cancelarSelecao:m,salvarFeedback:d,exportarMarkdown:f,confirmarLimpeza:N}}}),Bh={id:"eli-feedback-widget",class:"eli-feedback-fab"},Zh={key:0,class:"eli-fb-acoes"},Mh=["title"],Fh={key:0},Lh={key:1},Rh={key:2,class:"eli-fb-badge"},Jh={key:1,class:"eli-fb-tooltip-selecao"},qh={key:0},Gh={key:1},Kh={key:2,class:"eli-fb-painel"},Wh={class:"eli-fb-painel-header"},Xh={class:"eli-fb-painel-corpo"},Hh={class:"eli-fb-el-info"},Yh={key:0},Qh={key:1},e$={key:2},t$={class:"eli-fb-painel-acoes"},n$=["disabled"];function r$(e,n,r,i,t,o){return l.openBlock(),l.createElementBlock("div",Bh,[e.expandido&&e.modo==="inativo"?(l.openBlock(),l.createElementBlock("div",Zh,[l.createElementVNode("button",{class:"eli-fb-botao-ico eli-fb-botao-feedback",title:"Adicionar feedback com comentário",onClick:n[0]||(n[0]=(...a)=>e.aoIniciarFeedback&&e.aoIniciarFeedback(...a))}," 🐛 "),l.createElementVNode("button",{class:"eli-fb-botao-ico eli-fb-botao-copiar",title:"Selecionar elemento e copiar dados",onClick:n[1]||(n[1]=(...a)=>e.aoIniciarCopia&&e.aoIniciarCopia(...a))},l.toDisplayString(e.copiouElemento?"✅":"📋"),1),e.totalItens>0?(l.openBlock(),l.createElementBlock("button",{key:0,class:"eli-fb-botao-ico eli-fb-botao-exportar",title:`Visualizar ${e.totalItens} feedback(s) em nova aba`,onClick:n[2]||(n[2]=(...a)=>e.exportarMarkdown&&e.exportarMarkdown(...a))}," 📄 ",8,Mh)):l.createCommentVNode("",!0),e.totalItens>0?(l.openBlock(),l.createElementBlock("button",{key:1,class:"eli-fb-botao-ico eli-fb-botao-limpar",title:"Limpar todos os feedbacks",onClick:n[3]||(n[3]=(...a)=>e.confirmarLimpeza&&e.confirmarLimpeza(...a))}," 🗑️ ")):l.createCommentVNode("",!0)])):l.createCommentVNode("",!0),l.createElementVNode("button",{class:"eli-fb-botao-principal",title:"Ferramentas de feedback",onClick:n[4]||(n[4]=(...a)=>e.aoClicarFab&&e.aoClicarFab(...a))},[e.modo==="inativo"&&!e.expandido?(l.openBlock(),l.createElementBlock("span",Fh,"🐛")):(l.openBlock(),l.createElementBlock("span",Lh,"✕")),e.totalItens>0&&e.modo==="inativo"&&!e.expandido?(l.openBlock(),l.createElementBlock("span",Rh,l.toDisplayString(e.totalItens),1)):l.createCommentVNode("",!0)]),e.modo==="selecionando"||e.modo==="selecionando-copiar"?(l.openBlock(),l.createElementBlock("div",Jh,[e.modo==="selecionando"?(l.openBlock(),l.createElementBlock("span",qh,"🎯 Clique no elemento")):(l.openBlock(),l.createElementBlock("span",Gh,"📋 Clique para copiar")),n[10]||(n[10]=l.createElementVNode("span",{class:"eli-fb-tooltip-esc"},[l.createElementVNode("kbd",null,"ESC"),l.createTextVNode(" cancela")],-1))])):l.createCommentVNode("",!0),e.modo==="comentando"&&e.elementoSelecionado?(l.openBlock(),l.createElementBlock("div",Kh,[l.createElementVNode("div",Wh,[n[11]||(n[11]=l.createElementVNode("h3",null,"💬 Adicionar Feedback",-1)),l.createElementVNode("button",{class:"eli-fb-painel-fechar",onClick:n[5]||(n[5]=(...a)=>e.cancelarSelecao&&e.cancelarSelecao(...a))},"✕")]),l.createElementVNode("div",Xh,[l.createElementVNode("div",Hh,[l.createElementVNode("div",null,[n[12]||(n[12]=l.createElementVNode("strong",null,"Seletor:",-1)),n[13]||(n[13]=l.createTextVNode()),l.createElementVNode("code",null,l.toDisplayString(e.elementoSelecionado.seletor),1)]),l.createElementVNode("div",null,[n[14]||(n[14]=l.createElementVNode("strong",null,"Tag:",-1)),n[15]||(n[15]=l.createTextVNode()),l.createElementVNode("code",null,"<"+l.toDisplayString(e.elementoSelecionado.tag)+">",1)]),e.elementoSelecionado.id?(l.openBlock(),l.createElementBlock("div",Yh,[n[16]||(n[16]=l.createElementVNode("strong",null,"ID:",-1)),n[17]||(n[17]=l.createTextVNode()),l.createElementVNode("code",null,l.toDisplayString(e.elementoSelecionado.id),1)])):l.createCommentVNode("",!0),e.elementoSelecionado.classes.length?(l.openBlock(),l.createElementBlock("div",Qh,[n[18]||(n[18]=l.createElementVNode("strong",null,"Classes:",-1)),l.createElementVNode("code",null,l.toDisplayString(e.elementoSelecionado.classes.join(", ")),1)])):l.createCommentVNode("",!0),l.createElementVNode("div",null,[n[19]||(n[19]=l.createElementVNode("strong",null,"Caminho:",-1)),n[20]||(n[20]=l.createTextVNode()),l.createElementVNode("code",null,l.toDisplayString(e.elementoSelecionado.caminhoDom),1)]),e.elementoSelecionado.textoVisivel?(l.openBlock(),l.createElementBlock("div",e$,[n[21]||(n[21]=l.createElementVNode("strong",null,"Texto:",-1)),l.createTextVNode(' "'+l.toDisplayString(e.elementoSelecionado.textoVisivel)+'" ',1)])):l.createCommentVNode("",!0)]),l.withDirectives(l.createElementVNode("textarea",{ref:"textareaRef","onUpdate:modelValue":n[6]||(n[6]=a=>e.comentario=a),class:"eli-fb-textarea",placeholder:"Descreva o problema, sugestão ou observação...",onKeydown:n[7]||(n[7]=l.withKeys(l.withModifiers((...a)=>e.salvarFeedback&&e.salvarFeedback(...a),["ctrl"]),["enter"]))},null,544),[[l.vModelText,e.comentario]]),l.createElementVNode("div",t$,[l.createElementVNode("button",{class:"eli-fb-btn-cancelar",onClick:n[8]||(n[8]=(...a)=>e.cancelarSelecao&&e.cancelarSelecao(...a))}," Cancelar "),l.createElementVNode("button",{class:"eli-fb-btn-salvar",disabled:!e.comentario.trim(),onClick:n[9]||(n[9]=(...a)=>e.salvarFeedback&&e.salvarFeedback(...a))}," Salvar ✓ ",8,n$)])])])):l.createCommentVNode("",!0)])}const Bi=q(Vh,[["render",r$]]),o$=l.defineComponent({name:"EliOlaMundo",components:{EliBotao:Jn,EliBadge:Pt,EliEntradaTexto:Zt},setup(){const e=l.ref(""),n=l.ref(""),r=l.ref(""),i=l.ref(""),t=l.ref("");return{nome:e,email:i,documento:t,telefone:r,cep:n}}}),i$={class:"grid-example"};function a$(e,n,r,i,t,o){const a=l.resolveComponent("EliBadge"),c=l.resolveComponent("EliEntradaTexto"),u=l.resolveComponent("EliBotao");return l.openBlock(),l.createBlock(dm.VContainer,null,{default:l.withCtx(()=>[l.createVNode(ze.VCard,{class:"mx-auto",max_width:"400"},{default:l.withCtx(()=>[l.createVNode(ze.VCardTitle,null,{default:l.withCtx(()=>[l.createVNode(a,{badge:"Novo","offset-x":"-15",location:"right center"},{default:l.withCtx(()=>[...n[5]||(n[5]=[l.createTextVNode(" Olá Mundo! ",-1)])]),_:1})]),_:1}),l.createVNode(ze.VCardText,null,{default:l.withCtx(()=>[n[6]||(n[6]=l.createTextVNode(" Este é um componente de exemplo integrado com Vuetify. ",-1)),l.createElementVNode("div",i$,[l.createVNode(c,{value:e.nome,"onUpdate:value":n[0]||(n[0]=s=>e.nome=s),opcoes:{rotulo:"Nome",placeholder:"Digite o nome"},density:"compact"},null,8,["value"]),l.createVNode(c,{value:e.telefone,"onUpdate:value":n[1]||(n[1]=s=>e.telefone=s),opcoes:{rotulo:"Telefone",formato:"telefone"}},null,8,["value"]),l.createVNode(c,{value:e.cep,"onUpdate:value":n[2]||(n[2]=s=>e.cep=s),opcoes:{rotulo:"CEP",placeholder:"00000-000",formato:"cep"}},null,8,["value"]),l.createVNode(c,{value:e.documento,"onUpdate:value":n[3]||(n[3]=s=>e.documento=s),opcoes:{rotulo:"CPF / CNPJ",formato:"cpfCnpj"}},null,8,["value"]),l.createVNode(c,{value:e.email,"onUpdate:value":n[4]||(n[4]=s=>e.email=s),opcoes:{rotulo:"Email",placeholder:"email@exemplo.com",formato:"email"}},null,8,["value"])])]),_:1}),l.createVNode(ze.VCardActions,null,{default:l.withCtx(()=>[l.createVNode(u,{color:"primary",variant:"elevated",block:""},{default:l.withCtx(()=>[...n[7]||(n[7]=[l.createTextVNode(" Botão Vuetify ",-1)])]),_:1})]),_:1})]),_:1})]),_:1})}const Zi=q(o$,[["render",a$]]);var Mi;const Fi=Object.freeze({status:"aborted"});function g(e,n,r){function i(c,u){if(c._zod||Object.defineProperty(c,"_zod",{value:{def:u,constr:a,traits:new Set},enumerable:!1}),c._zod.traits.has(e))return;c._zod.traits.add(e),n(c,u);const s=a.prototype,m=Object.keys(s);for(let d=0;d{var u,s;return r!=null&&r.Parent&&c instanceof r.Parent?!0:(s=(u=c==null?void 0:c._zod)==null?void 0:u.traits)==null?void 0:s.has(e)}}),Object.defineProperty(a,"name",{value:e}),a}const Li=Symbol("zod_brand");class Te extends Error{constructor(){super("Encountered Promise during synchronous parse. Use .parseAsync() instead.")}}class Ft extends Error{constructor(n){super(`Encountered unidirectional transform during encode: ${n}`),this.name="ZodEncodeError"}}(Mi=globalThis).__zod_globalConfig??(Mi.__zod_globalConfig={});const tt=globalThis.__zod_globalConfig;function ie(e){return e&&Object.assign(tt,e),tt}function l$(e){return e}function c$(e){return e}function s$(e){}function u$(e){throw new Error("Unexpected value in exhaustive check")}function d$(e){}function er(e){const n=Object.values(e).filter(i=>typeof i=="number");return Object.entries(e).filter(([i,t])=>n.indexOf(+i)===-1).map(([i,t])=>t)}function k(e,n="|"){return e.map(r=>V(r)).join(n)}function Lt(e,n){return typeof n=="bigint"?n.toString():n}function nt(e){return{get value(){{const n=e();return Object.defineProperty(this,"value",{value:n}),n}}}}function Ue(e){return e==null}function Rt(e){const n=e.startsWith("^")?1:0,r=e.endsWith("$")?e.length-1:e.length;return e.slice(n,r)}function Ri(e,n){const r=e/n,i=Math.round(r),t=Number.EPSILON*Math.max(Math.abs(r),1);return Math.abs(r-i)r==null?void 0:r[i],e):e}function g$(e){const n=Object.keys(e),r=n.map(i=>e[i]);return Promise.all(r).then(i=>{const t={};for(let o=0;o{};function Fe(e){return typeof e=="object"&&e!==null&&!Array.isArray(e)}const Gi=nt(()=>{var e;if(tt.jitless||typeof navigator<"u"&&((e=navigator==null?void 0:navigator.userAgent)!=null&&e.includes("Cloudflare")))return!1;try{const n=Function;return new n(""),!0}catch{return!1}});function Ce(e){if(Fe(e)===!1)return!1;const n=e.constructor;if(n===void 0||typeof n!="function")return!0;const r=n.prototype;return!(Fe(r)===!1||Object.prototype.hasOwnProperty.call(r,"isPrototypeOf")===!1)}function Jt(e){return Ce(e)?{...e}:Array.isArray(e)?[...e]:e instanceof Map?new Map(e):e instanceof Set?new Set(e):e}function h$(e){let n=0;for(const r in e)Object.prototype.hasOwnProperty.call(e,r)&&n++;return n}const $$=e=>{const n=typeof e;switch(n){case"undefined":return"undefined";case"string":return"string";case"number":return Number.isNaN(e)?"nan":"number";case"boolean":return"boolean";case"function":return"function";case"bigint":return"bigint";case"symbol":return"symbol";case"object":return Array.isArray(e)?"array":e===null?"null":e.then&&typeof e.then=="function"&&e.catch&&typeof e.catch=="function"?"promise":typeof Map<"u"&&e instanceof Map?"map":typeof Set<"u"&&e instanceof Set?"set":typeof Date<"u"&&e instanceof Date?"date":typeof File<"u"&&e instanceof File?"file":"object";default:throw new Error(`Unknown data type: ${n}`)}},qt=new Set(["string","number","symbol"]),Ki=new Set(["string","number","bigint","boolean","symbol","undefined"]);function we(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function ve(e,n,r){const i=new e._zod.constr(n??e._zod.def);return(!n||r!=null&&r.parent)&&(i._zod.parent=e),i}function b(e){const n=e;if(!n)return{};if(typeof n=="string")return{error:()=>n};if((n==null?void 0:n.message)!==void 0){if((n==null?void 0:n.error)!==void 0)throw new Error("Cannot specify both `message` and `error` params");n.error=n.message}return delete n.message,typeof n.error=="string"?{...n,error:()=>n.error}:n}function b$(e){let n;return new Proxy({},{get(r,i,t){return n??(n=e()),Reflect.get(n,i,t)},set(r,i,t,o){return n??(n=e()),Reflect.set(n,i,t,o)},has(r,i){return n??(n=e()),Reflect.has(n,i)},deleteProperty(r,i){return n??(n=e()),Reflect.deleteProperty(n,i)},ownKeys(r){return n??(n=e()),Reflect.ownKeys(n)},getOwnPropertyDescriptor(r,i){return n??(n=e()),Reflect.getOwnPropertyDescriptor(n,i)},defineProperty(r,i,t){return n??(n=e()),Reflect.defineProperty(n,i,t)}})}function V(e){return typeof e=="bigint"?e.toString()+"n":typeof e=="string"?`"${e}"`:`${e}`}function Wi(e){return Object.keys(e).filter(n=>e[n]._zod.optin==="optional"&&e[n]._zod.optout==="optional")}const Xi={safeint:[Number.MIN_SAFE_INTEGER,Number.MAX_SAFE_INTEGER],int32:[-2147483648,2147483647],uint32:[0,4294967295],float32:[-34028234663852886e22,34028234663852886e22],float64:[-Number.MAX_VALUE,Number.MAX_VALUE]},Hi={int64:[BigInt("-9223372036854775808"),BigInt("9223372036854775807")],uint64:[BigInt(0),BigInt("18446744073709551615")]};function Yi(e,n){const r=e._zod.def,i=r.checks;if(i&&i.length>0)throw new Error(".pick() cannot be used on object schemas containing refinements");const o=ye(e._zod.def,{get shape(){const a={};for(const c in n){if(!(c in r.shape))throw new Error(`Unrecognized key: "${c}"`);n[c]&&(a[c]=r.shape[c])}return Ee(this,"shape",a),a},checks:[]});return ve(e,o)}function Qi(e,n){const r=e._zod.def,i=r.checks;if(i&&i.length>0)throw new Error(".omit() cannot be used on object schemas containing refinements");const o=ye(e._zod.def,{get shape(){const a={...e._zod.def.shape};for(const c in n){if(!(c in r.shape))throw new Error(`Unrecognized key: "${c}"`);n[c]&&delete a[c]}return Ee(this,"shape",a),a},checks:[]});return ve(e,o)}function ea(e,n){if(!Ce(n))throw new Error("Invalid input to extend: expected a plain object");const r=e._zod.def.checks;if(r&&r.length>0){const o=e._zod.def.shape;for(const a in n)if(Object.getOwnPropertyDescriptor(o,a)!==void 0)throw new Error("Cannot overwrite keys on object schemas containing refinements. Use `.safeExtend()` instead.")}const t=ye(e._zod.def,{get shape(){const o={...e._zod.def.shape,...n};return Ee(this,"shape",o),o}});return ve(e,t)}function ta(e,n){if(!Ce(n))throw new Error("Invalid input to safeExtend: expected a plain object");const r=ye(e._zod.def,{get shape(){const i={...e._zod.def.shape,...n};return Ee(this,"shape",i),i}});return ve(e,r)}function na(e,n){var i;if((i=e._zod.def.checks)!=null&&i.length)throw new Error(".merge() cannot be used on object schemas containing refinements. Use .safeExtend() instead.");const r=ye(e._zod.def,{get shape(){const t={...e._zod.def.shape,...n._zod.def.shape};return Ee(this,"shape",t),t},get catchall(){return n._zod.def.catchall},checks:n._zod.def.checks??[]});return ve(e,r)}function ra(e,n,r){const t=n._zod.def.checks;if(t&&t.length>0)throw new Error(".partial() cannot be used on object schemas containing refinements");const a=ye(n._zod.def,{get shape(){const c=n._zod.def.shape,u={...c};if(r)for(const s in r){if(!(s in c))throw new Error(`Unrecognized key: "${s}"`);r[s]&&(u[s]=e?new e({type:"optional",innerType:c[s]}):c[s])}else for(const s in c)u[s]=e?new e({type:"optional",innerType:c[s]}):c[s];return Ee(this,"shape",u),u},checks:[]});return ve(n,a)}function oa(e,n,r){const i=ye(n._zod.def,{get shape(){const t=n._zod.def.shape,o={...t};if(r)for(const a in r){if(!(a in o))throw new Error(`Unrecognized key: "${a}"`);r[a]&&(o[a]=new e({type:"nonoptional",innerType:t[a]}))}else for(const a in t)o[a]=new e({type:"nonoptional",innerType:t[a]});return Ee(this,"shape",o),o}});return ve(n,i)}function Pe(e,n=0){var r;if(e.aborted===!0)return!0;for(let i=n;i{var i;return(i=r).path??(i.path=[]),r.path.unshift(e),r})}function rt(e){return typeof e=="string"?e:e==null?void 0:e.message}function fe(e,n,r){var u,s,m,d,f,p;const i=e.message?e.message:rt((m=(s=(u=e.inst)==null?void 0:u._zod.def)==null?void 0:s.error)==null?void 0:m.call(s,e))??rt((d=n==null?void 0:n.error)==null?void 0:d.call(n,e))??rt((f=r.customError)==null?void 0:f.call(r,e))??rt((p=r.localeError)==null?void 0:p.call(r,e))??"Invalid input",{inst:t,continue:o,input:a,...c}=e;return c.path??(c.path=[]),c.message=i,n!=null&&n.reportInput&&(c.input=a),c}function Gt(e){return e instanceof Set?"set":e instanceof Map?"map":e instanceof File?"file":"unknown"}function Kt(e){return Array.isArray(e)?"array":typeof e=="string"?"string":"unknown"}function B(e){const n=typeof e;switch(n){case"number":return Number.isNaN(e)?"nan":"number";case"object":{if(e===null)return"null";if(Array.isArray(e))return"array";const r=e;if(r&&Object.getPrototypeOf(r)!==Object.prototype&&"constructor"in r&&r.constructor)return r.constructor.name}}return n}function Le(...e){const[n,r,i]=e;return typeof n=="string"?{message:n,code:"custom",input:r,inst:i}:{...n}}function _$(e){return Object.entries(e).filter(([n,r])=>Number.isNaN(Number.parseInt(n,10))).map(n=>n[1])}function aa(e){const n=atob(e),r=new Uint8Array(n.length);for(let i=0;in.toString(16).padStart(2,"0")).join("")}class I${constructor(...n){}}const ca=Object.freeze(Object.defineProperty({__proto__:null,BIGINT_FORMAT_RANGES:Hi,Class:I$,NUMBER_FORMAT_RANGES:Xi,aborted:Pe,allowsEval:Gi,assert:d$,assertEqual:l$,assertIs:s$,assertNever:u$,assertNotEqual:c$,assignProp:Ee,base64ToUint8Array:aa,base64urlToUint8Array:y$,cached:nt,captureStackTrace:nr,cleanEnum:_$,cleanRegex:Rt,clone:ve,cloneDef:f$,createTransparentProxy:b$,defineLazy:R,esc:tr,escapeRegex:we,explicitlyAborted:ia,extend:ea,finalizeIssue:fe,floatSafeRemainder:Ri,getElementAtPath:p$,getEnumValues:er,getLengthableOrigin:Kt,getParsedType:$$,getSizableOrigin:Gt,hexToUint8Array:S$,isObject:Fe,isPlainObject:Ce,issue:Le,joinValues:k,jsonStringifyReplacer:Lt,merge:na,mergeDefs:ye,normalizeParams:b,nullish:Ue,numKeys:h$,objectClone:m$,omit:Qi,optionalKeys:Wi,parsedType:B,partial:ra,pick:Yi,prefixIssues:he,primitiveTypes:Ki,promiseAllObject:g$,propertyKeyTypes:qt,randomString:v$,required:oa,safeExtend:ta,shallowClone:Jt,slugify:qi,stringifyPrimitive:V,uint8ArrayToBase64:la,uint8ArrayToBase64url:k$,uint8ArrayToHex:w$,unwrapMessage:rt},Symbol.toStringTag,{value:"Module"})),sa=(e,n)=>{e.name="$ZodError",Object.defineProperty(e,"_zod",{value:e._zod,enumerable:!1}),Object.defineProperty(e,"issues",{value:n,enumerable:!1}),e.message=JSON.stringify(n,Lt,2),Object.defineProperty(e,"toString",{value:()=>e.message,enumerable:!1})},rr=g("$ZodError",sa),pe=g("$ZodError",sa,{Parent:Error});function or(e,n=r=>r.message){const r={},i=[];for(const t of e.issues)t.path.length>0?(r[t.path[0]]=r[t.path[0]]||[],r[t.path[0]].push(n(t))):i.push(n(t));return{formErrors:i,fieldErrors:r}}function ir(e,n=r=>r.message){const r={_errors:[]},i=(t,o=[])=>{for(const a of t.issues)if(a.code==="invalid_union"&&a.errors.length)a.errors.map(c=>i({issues:c},[...o,...a.path]));else if(a.code==="invalid_key")i({issues:a.issues},[...o,...a.path]);else if(a.code==="invalid_element")i({issues:a.issues},[...o,...a.path]);else{const c=[...o,...a.path];if(c.length===0)r._errors.push(n(a));else{let u=r,s=0;for(;sr.message){const r={errors:[]},i=(t,o=[])=>{var a,c;for(const u of t.issues)if(u.code==="invalid_union"&&u.errors.length)u.errors.map(s=>i({issues:s},[...o,...u.path]));else if(u.code==="invalid_key")i({issues:u.issues},[...o,...u.path]);else if(u.code==="invalid_element")i({issues:u.issues},[...o,...u.path]);else{const s=[...o,...u.path];if(s.length===0){r.errors.push(n(u));continue}let m=r,d=0;for(;dtypeof i=="object"?i.key:i);for(const i of r)typeof i=="number"?n.push(`[${i}]`):typeof i=="symbol"?n.push(`[${JSON.stringify(String(i))}]`):/[^\w$]/.test(i)?n.push(`[${JSON.stringify(i)}]`):(n.length&&n.push("."),n.push(i));return n.join("")}function ma(e){var i;const n=[],r=[...e.issues].sort((t,o)=>(t.path??[]).length-(o.path??[]).length);for(const t of r)n.push(`✖ ${t.message}`),(i=t.path)!=null&&i.length&&n.push(` → at ${da(t.path)}`);return n.join(` +`)}const ot=e=>(n,r,i,t)=>{const o=i?{...i,async:!1}:{async:!1},a=n._zod.run({value:r,issues:[]},o);if(a instanceof Promise)throw new Te;if(a.issues.length){const c=new((t==null?void 0:t.Err)??e)(a.issues.map(u=>fe(u,o,ie())));throw nr(c,t==null?void 0:t.callee),c}return a.value},ar=ot(pe),it=e=>async(n,r,i,t)=>{const o=i?{...i,async:!0}:{async:!0};let a=n._zod.run({value:r,issues:[]},o);if(a instanceof Promise&&(a=await a),a.issues.length){const c=new((t==null?void 0:t.Err)??e)(a.issues.map(u=>fe(u,o,ie())));throw nr(c,t==null?void 0:t.callee),c}return a.value},lr=it(pe),at=e=>(n,r,i)=>{const t=i?{...i,async:!1}:{async:!1},o=n._zod.run({value:r,issues:[]},t);if(o instanceof Promise)throw new Te;return o.issues.length?{success:!1,error:new(e??rr)(o.issues.map(a=>fe(a,t,ie())))}:{success:!0,data:o.value}},fa=at(pe),lt=e=>async(n,r,i)=>{const t=i?{...i,async:!0}:{async:!0};let o=n._zod.run({value:r,issues:[]},t);return o instanceof Promise&&(o=await o),o.issues.length?{success:!1,error:new e(o.issues.map(a=>fe(a,t,ie())))}:{success:!0,data:o.value}},pa=lt(pe),cr=e=>(n,r,i)=>{const t=i?{...i,direction:"backward"}:{direction:"backward"};return ot(e)(n,r,t)},z$=cr(pe),sr=e=>(n,r,i)=>ot(e)(n,r,i),E$=sr(pe),ur=e=>async(n,r,i)=>{const t=i?{...i,direction:"backward"}:{direction:"backward"};return it(e)(n,r,t)},N$=ur(pe),dr=e=>async(n,r,i)=>it(e)(n,r,i),D$=dr(pe),mr=e=>(n,r,i)=>{const t=i?{...i,direction:"backward"}:{direction:"backward"};return at(e)(n,r,t)},j$=mr(pe),fr=e=>(n,r,i)=>at(e)(n,r,i),O$=fr(pe),pr=e=>async(n,r,i)=>{const t=i?{...i,direction:"backward"}:{direction:"backward"};return lt(e)(n,r,t)},x$=pr(pe),gr=e=>async(n,r,i)=>lt(e)(n,r,i),T$=gr(pe),ga=/^[cC][0-9a-z]{6,}$/,va=/^[0-9a-z]+$/,ha=/^[0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{26}$/,$a=/^[0-9a-vA-V]{20}$/,ba=/^[A-Za-z0-9]{27}$/,_a=/^[a-zA-Z0-9_-]{21}$/,ya=/^P(?:(\d+W)|(?!.*W)(?=\d|T\d)(\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+([.,]\d+)?S)?)?)$/,U$=/^[-+]?P(?!$)(?:(?:[-+]?\d+Y)|(?:[-+]?\d+[.,]\d+Y$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:(?:[-+]?\d+W)|(?:[-+]?\d+[.,]\d+W$))?(?:(?:[-+]?\d+D)|(?:[-+]?\d+[.,]\d+D$))?(?:T(?=[\d+-])(?:(?:[-+]?\d+H)|(?:[-+]?\d+[.,]\d+H$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:[-+]?\d+(?:[.,]\d+)?S)?)??$/,ka=/^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$/,Re=e=>e?new RegExp(`^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-${e}[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$`):/^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$/,C$=Re(4),P$=Re(6),A$=Re(7),Sa=/^(?!\.)(?!.*\.\.)([A-Za-z0-9_'+\-\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$/,V$=/^[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])?)*$/,B$=/^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/,wa=/^[^\s@"]{1,64}@[^\s@]{1,255}$/u,Z$=wa,M$=/^[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])?)*$/,F$="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";function Ia(){return new RegExp(F$,"u")}const za=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/,Ea=/^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:))$/,Na=e=>{const n=we(e??":");return new RegExp(`^(?:[0-9A-F]{2}${n}){5}[0-9A-F]{2}$|^(?:[0-9a-f]{2}${n}){5}[0-9a-f]{2}$`)},Da=/^((25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\/([0-9]|[1-2][0-9]|3[0-2])$/,ja=/^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|::|([0-9a-fA-F]{1,4})?::([0-9a-fA-F]{1,4}:?){0,6})\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/,Oa=/^$|^(?:[0-9a-zA-Z+/]{4})*(?:(?:[0-9a-zA-Z+/]{2}==)|(?:[0-9a-zA-Z+/]{3}=))?$/,vr=/^[A-Za-z0-9_-]*$/,xa=/^(?=.{1,253}\.?$)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[-0-9a-zA-Z]{0,61}[0-9a-zA-Z])?)*\.?$/,Ta=/^([a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?\.)+[a-zA-Z]{2,}$/,hr=/^https?$/,Ua=/^\+[1-9]\d{6,14}$/,Ca="(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))",Pa=new RegExp(`^${Ca}$`);function Aa(e){const n="(?:[01]\\d|2[0-3]):[0-5]\\d";return typeof e.precision=="number"?e.precision===-1?`${n}`:e.precision===0?`${n}:[0-5]\\d`:`${n}:[0-5]\\d\\.\\d{${e.precision}}`:`${n}(?::[0-5]\\d(?:\\.\\d+)?)?`}function Va(e){return new RegExp(`^${Aa(e)}$`)}function Ba(e){const n=Aa({precision:e.precision}),r=["Z"];e.local&&r.push(""),e.offset&&r.push("([+-](?:[01]\\d|2[0-3]):[0-5]\\d)");const i=`${n}(?:${r.join("|")})`;return new RegExp(`^${Ca}T(?:${i})$`)}const Za=e=>{const n=e?`[\\s\\S]{${(e==null?void 0:e.minimum)??0},${(e==null?void 0:e.maximum)??""}}`:"[\\s\\S]*";return new RegExp(`^${n}$`)},Ma=/^-?\d+n?$/,Fa=/^-?\d+$/,$r=/^-?\d+(?:\.\d+)?$/,La=/^(?:true|false)$/i,Ra=/^null$/i,Ja=/^undefined$/i,qa=/^[^A-Z]*$/,Ga=/^[^a-z]*$/,Ka=/^[0-9a-fA-F]*$/;function ct(e,n){return new RegExp(`^[A-Za-z0-9+/]{${e}}${n}$`)}function st(e){return new RegExp(`^[A-Za-z0-9_-]{${e}}$`)}const br=Object.freeze(Object.defineProperty({__proto__:null,base64:Oa,base64url:vr,bigint:Ma,boolean:La,browserEmail:M$,cidrv4:Da,cidrv6:ja,cuid:ga,cuid2:va,date:Pa,datetime:Ba,domain:Ta,duration:ya,e164:Ua,email:Sa,emoji:Ia,extendedDuration:U$,guid:ka,hex:Ka,hostname:xa,html5Email:V$,httpProtocol:hr,idnEmail:Z$,integer:Fa,ipv4:za,ipv6:Ea,ksuid:ba,lowercase:qa,mac:Na,md5_base64:ct(22,"=="),md5_base64url:st(22),md5_hex:/^[0-9a-fA-F]{32}$/,nanoid:_a,null:Ra,number:$r,rfc5322Email:B$,sha1_base64:ct(27,"="),sha1_base64url:st(27),sha1_hex:/^[0-9a-fA-F]{40}$/,sha256_base64:ct(43,"="),sha256_base64url:st(43),sha256_hex:/^[0-9a-fA-F]{64}$/,sha384_base64:ct(64,""),sha384_base64url:st(64),sha384_hex:/^[0-9a-fA-F]{96}$/,sha512_base64:ct(86,"=="),sha512_base64url:st(86),sha512_hex:/^[0-9a-fA-F]{128}$/,string:Za,time:Va,ulid:ha,undefined:Ja,unicodeEmail:wa,uppercase:Ga,uuid:Re,uuid4:C$,uuid6:P$,uuid7:A$,xid:$a},Symbol.toStringTag,{value:"Module"})),Y=g("$ZodCheck",(e,n)=>{var r;e._zod??(e._zod={}),e._zod.def=n,(r=e._zod).onattach??(r.onattach=[])}),Wa={number:"number",bigint:"bigint",object:"date"},_r=g("$ZodCheckLessThan",(e,n)=>{Y.init(e,n);const r=Wa[typeof n.value];e._zod.onattach.push(i=>{const t=i._zod.bag,o=(n.inclusive?t.maximum:t.exclusiveMaximum)??Number.POSITIVE_INFINITY;n.value{(n.inclusive?i.value<=n.value:i.value{Y.init(e,n);const r=Wa[typeof n.value];e._zod.onattach.push(i=>{const t=i._zod.bag,o=(n.inclusive?t.minimum:t.exclusiveMinimum)??Number.NEGATIVE_INFINITY;n.value>o&&(n.inclusive?t.minimum=n.value:t.exclusiveMinimum=n.value)}),e._zod.check=i=>{(n.inclusive?i.value>=n.value:i.value>n.value)||i.issues.push({origin:r,code:"too_small",minimum:typeof n.value=="object"?n.value.getTime():n.value,input:i.value,inclusive:n.inclusive,inst:e,continue:!n.abort})}}),Xa=g("$ZodCheckMultipleOf",(e,n)=>{Y.init(e,n),e._zod.onattach.push(r=>{var i;(i=r._zod.bag).multipleOf??(i.multipleOf=n.value)}),e._zod.check=r=>{if(typeof r.value!=typeof n.value)throw new Error("Cannot mix number and bigint in multiple_of check.");(typeof r.value=="bigint"?r.value%n.value===BigInt(0):Ri(r.value,n.value)===0)||r.issues.push({origin:typeof r.value,code:"not_multiple_of",divisor:n.value,input:r.value,inst:e,continue:!n.abort})}}),Ha=g("$ZodCheckNumberFormat",(e,n)=>{var a;Y.init(e,n),n.format=n.format||"float64";const r=(a=n.format)==null?void 0:a.includes("int"),i=r?"int":"number",[t,o]=Xi[n.format];e._zod.onattach.push(c=>{const u=c._zod.bag;u.format=n.format,u.minimum=t,u.maximum=o,r&&(u.pattern=Fa)}),e._zod.check=c=>{const u=c.value;if(r){if(!Number.isInteger(u)){c.issues.push({expected:i,format:n.format,code:"invalid_type",continue:!1,input:u,inst:e});return}if(!Number.isSafeInteger(u)){u>0?c.issues.push({input:u,code:"too_big",maximum:Number.MAX_SAFE_INTEGER,note:"Integers must be within the safe integer range.",inst:e,origin:i,inclusive:!0,continue:!n.abort}):c.issues.push({input:u,code:"too_small",minimum:Number.MIN_SAFE_INTEGER,note:"Integers must be within the safe integer range.",inst:e,origin:i,inclusive:!0,continue:!n.abort});return}}uo&&c.issues.push({origin:"number",input:u,code:"too_big",maximum:o,inclusive:!0,inst:e,continue:!n.abort})}}),Ya=g("$ZodCheckBigIntFormat",(e,n)=>{Y.init(e,n);const[r,i]=Hi[n.format];e._zod.onattach.push(t=>{const o=t._zod.bag;o.format=n.format,o.minimum=r,o.maximum=i}),e._zod.check=t=>{const o=t.value;oi&&t.issues.push({origin:"bigint",input:o,code:"too_big",maximum:i,inclusive:!0,inst:e,continue:!n.abort})}}),Qa=g("$ZodCheckMaxSize",(e,n)=>{var r;Y.init(e,n),(r=e._zod.def).when??(r.when=i=>{const t=i.value;return!Ue(t)&&t.size!==void 0}),e._zod.onattach.push(i=>{const t=i._zod.bag.maximum??Number.POSITIVE_INFINITY;n.maximum{const t=i.value;t.size<=n.maximum||i.issues.push({origin:Gt(t),code:"too_big",maximum:n.maximum,inclusive:!0,input:t,inst:e,continue:!n.abort})}}),el=g("$ZodCheckMinSize",(e,n)=>{var r;Y.init(e,n),(r=e._zod.def).when??(r.when=i=>{const t=i.value;return!Ue(t)&&t.size!==void 0}),e._zod.onattach.push(i=>{const t=i._zod.bag.minimum??Number.NEGATIVE_INFINITY;n.minimum>t&&(i._zod.bag.minimum=n.minimum)}),e._zod.check=i=>{const t=i.value;t.size>=n.minimum||i.issues.push({origin:Gt(t),code:"too_small",minimum:n.minimum,inclusive:!0,input:t,inst:e,continue:!n.abort})}}),tl=g("$ZodCheckSizeEquals",(e,n)=>{var r;Y.init(e,n),(r=e._zod.def).when??(r.when=i=>{const t=i.value;return!Ue(t)&&t.size!==void 0}),e._zod.onattach.push(i=>{const t=i._zod.bag;t.minimum=n.size,t.maximum=n.size,t.size=n.size}),e._zod.check=i=>{const t=i.value,o=t.size;if(o===n.size)return;const a=o>n.size;i.issues.push({origin:Gt(t),...a?{code:"too_big",maximum:n.size}:{code:"too_small",minimum:n.size},inclusive:!0,exact:!0,input:i.value,inst:e,continue:!n.abort})}}),nl=g("$ZodCheckMaxLength",(e,n)=>{var r;Y.init(e,n),(r=e._zod.def).when??(r.when=i=>{const t=i.value;return!Ue(t)&&t.length!==void 0}),e._zod.onattach.push(i=>{const t=i._zod.bag.maximum??Number.POSITIVE_INFINITY;n.maximum{const t=i.value;if(t.length<=n.maximum)return;const a=Kt(t);i.issues.push({origin:a,code:"too_big",maximum:n.maximum,inclusive:!0,input:t,inst:e,continue:!n.abort})}}),rl=g("$ZodCheckMinLength",(e,n)=>{var r;Y.init(e,n),(r=e._zod.def).when??(r.when=i=>{const t=i.value;return!Ue(t)&&t.length!==void 0}),e._zod.onattach.push(i=>{const t=i._zod.bag.minimum??Number.NEGATIVE_INFINITY;n.minimum>t&&(i._zod.bag.minimum=n.minimum)}),e._zod.check=i=>{const t=i.value;if(t.length>=n.minimum)return;const a=Kt(t);i.issues.push({origin:a,code:"too_small",minimum:n.minimum,inclusive:!0,input:t,inst:e,continue:!n.abort})}}),ol=g("$ZodCheckLengthEquals",(e,n)=>{var r;Y.init(e,n),(r=e._zod.def).when??(r.when=i=>{const t=i.value;return!Ue(t)&&t.length!==void 0}),e._zod.onattach.push(i=>{const t=i._zod.bag;t.minimum=n.length,t.maximum=n.length,t.length=n.length}),e._zod.check=i=>{const t=i.value,o=t.length;if(o===n.length)return;const a=Kt(t),c=o>n.length;i.issues.push({origin:a,...c?{code:"too_big",maximum:n.length}:{code:"too_small",minimum:n.length},inclusive:!0,exact:!0,input:i.value,inst:e,continue:!n.abort})}}),ut=g("$ZodCheckStringFormat",(e,n)=>{var r,i;Y.init(e,n),e._zod.onattach.push(t=>{const o=t._zod.bag;o.format=n.format,n.pattern&&(o.patterns??(o.patterns=new Set),o.patterns.add(n.pattern))}),n.pattern?(r=e._zod).check??(r.check=t=>{n.pattern.lastIndex=0,!n.pattern.test(t.value)&&t.issues.push({origin:"string",code:"invalid_format",format:n.format,input:t.value,...n.pattern?{pattern:n.pattern.toString()}:{},inst:e,continue:!n.abort})}):(i=e._zod).check??(i.check=()=>{})}),il=g("$ZodCheckRegex",(e,n)=>{ut.init(e,n),e._zod.check=r=>{n.pattern.lastIndex=0,!n.pattern.test(r.value)&&r.issues.push({origin:"string",code:"invalid_format",format:"regex",input:r.value,pattern:n.pattern.toString(),inst:e,continue:!n.abort})}}),al=g("$ZodCheckLowerCase",(e,n)=>{n.pattern??(n.pattern=qa),ut.init(e,n)}),ll=g("$ZodCheckUpperCase",(e,n)=>{n.pattern??(n.pattern=Ga),ut.init(e,n)}),cl=g("$ZodCheckIncludes",(e,n)=>{Y.init(e,n);const r=we(n.includes),i=new RegExp(typeof n.position=="number"?`^.{${n.position}}${r}`:r);n.pattern=i,e._zod.onattach.push(t=>{const o=t._zod.bag;o.patterns??(o.patterns=new Set),o.patterns.add(i)}),e._zod.check=t=>{t.value.includes(n.includes,n.position)||t.issues.push({origin:"string",code:"invalid_format",format:"includes",includes:n.includes,input:t.value,inst:e,continue:!n.abort})}}),sl=g("$ZodCheckStartsWith",(e,n)=>{Y.init(e,n);const r=new RegExp(`^${we(n.prefix)}.*`);n.pattern??(n.pattern=r),e._zod.onattach.push(i=>{const t=i._zod.bag;t.patterns??(t.patterns=new Set),t.patterns.add(r)}),e._zod.check=i=>{i.value.startsWith(n.prefix)||i.issues.push({origin:"string",code:"invalid_format",format:"starts_with",prefix:n.prefix,input:i.value,inst:e,continue:!n.abort})}}),ul=g("$ZodCheckEndsWith",(e,n)=>{Y.init(e,n);const r=new RegExp(`.*${we(n.suffix)}$`);n.pattern??(n.pattern=r),e._zod.onattach.push(i=>{const t=i._zod.bag;t.patterns??(t.patterns=new Set),t.patterns.add(r)}),e._zod.check=i=>{i.value.endsWith(n.suffix)||i.issues.push({origin:"string",code:"invalid_format",format:"ends_with",suffix:n.suffix,input:i.value,inst:e,continue:!n.abort})}});function dl(e,n,r){e.issues.length&&n.issues.push(...he(r,e.issues))}const ml=g("$ZodCheckProperty",(e,n)=>{Y.init(e,n),e._zod.check=r=>{const i=n.schema._zod.run({value:r.value[n.property],issues:[]},{});if(i instanceof Promise)return i.then(t=>dl(t,r,n.property));dl(i,r,n.property)}}),fl=g("$ZodCheckMimeType",(e,n)=>{Y.init(e,n);const r=new Set(n.mime);e._zod.onattach.push(i=>{i._zod.bag.mime=n.mime}),e._zod.check=i=>{r.has(i.value.type)||i.issues.push({code:"invalid_value",values:n.mime,input:i.value.type,inst:e,continue:!n.abort})}}),pl=g("$ZodCheckOverwrite",(e,n)=>{Y.init(e,n),e._zod.check=r=>{r.value=n.tx(r.value)}});class gl{constructor(n=[]){this.content=[],this.indent=0,this&&(this.args=n)}indented(n){this.indent+=1,n(this),this.indent-=1}write(n){if(typeof n=="function"){n(this,{execution:"sync"}),n(this,{execution:"async"});return}const i=n.split(` `).filter(a=>a),t=Math.min(...i.map(a=>a.length-a.trimStart().length)),o=i.map(a=>a.slice(t)).map(a=>" ".repeat(this.indent*2)+a);for(const a of o)this.content.push(a)}compile(){const n=Function,r=this==null?void 0:this.args,t=[...((this==null?void 0:this.content)??[""]).map(o=>` ${o}`)];return new n(...r,t.join(` -`))}}const gl={major:4,minor:4,patch:3},B=g("$ZodType",(e,n)=>{var t;var r;e??(e={}),e._zod.def=n,e._zod.bag=e._zod.bag||{},e._zod.version=gl;const i=[...e._zod.def.checks??[]];e._zod.traits.has("$ZodCheck")&&i.unshift(e);for(const o of i)for(const a of o._zod.onattach)a(e);if(i.length===0)(r=e._zod).deferred??(r.deferred=[]),(t=e._zod.deferred)==null||t.push(()=>{e._zod.run=e._zod.parse});else{const o=(c,u,s)=>{let m=Pe(c),d;for(const f of u){if(f._zod.def.when){if(oa(c)||!f._zod.def.when(c))continue}else if(m)continue;const p=c.issues.length,v=f._zod.check(c);if(v instanceof Promise&&(s==null?void 0:s.async)===!1)throw new Ue;if(d||v instanceof Promise)d=(d??Promise.resolve()).then(async()=>{await v,c.issues.length!==p&&(m||(m=Pe(c,p)))});else{if(c.issues.length===p)continue;m||(m=Pe(c,p))}}return d?d.then(()=>c):c},a=(c,u,s)=>{if(Pe(c))return c.aborted=!0,c;const m=o(u,i,s);if(m instanceof Promise){if(s.async===!1)throw new Ue;return m.then(d=>e._zod.parse(d,s))}return e._zod.parse(m,s)};e._zod.run=(c,u)=>{if(u.skipChecks)return e._zod.parse(c,u);if(u.direction==="backward"){const m=e._zod.parse({value:c.value,issues:[]},{...u,skipChecks:!0});return m instanceof Promise?m.then(d=>a(d,c,u)):a(m,c,u)}const s=e._zod.parse(c,u);if(s instanceof Promise){if(u.async===!1)throw new Ue;return s.then(m=>o(m,i,u))}return o(s,i,u)}}R(e,"~standard",()=>({validate:o=>{var a;try{const c=ma(e,o);return c.success?{value:c.data}:{issues:(a=c.error)==null?void 0:a.issues}}catch{return fa(e,o).then(u=>{var s;return u.success?{value:u.data}:{issues:(s=u.error)==null?void 0:s.issues}})}},vendor:"zod",version:1}))}),mt=g("$ZodString",(e,n)=>{var r;B.init(e,n),e._zod.pattern=[...((r=e==null?void 0:e._zod.bag)==null?void 0:r.patterns)??[]].pop()??Za(e._zod.bag),e._zod.parse=(i,t)=>{if(n.coerce)try{i.value=String(i.value)}catch{}return typeof i.value=="string"||i.issues.push({expected:"string",code:"invalid_type",input:i.value,inst:e}),i}}),K=g("$ZodStringFormat",(e,n)=>{dt.init(e,n),mt.init(e,n)}),vl=g("$ZodGUID",(e,n)=>{n.pattern??(n.pattern=ya),K.init(e,n)}),hl=g("$ZodUUID",(e,n)=>{if(n.version){const i={v1:1,v2:2,v3:3,v4:4,v5:5,v6:6,v7:7,v8:8}[n.version];if(i===void 0)throw new Error(`Invalid UUID version: "${n.version}"`);n.pattern??(n.pattern=Re(i))}else n.pattern??(n.pattern=Re());K.init(e,n)}),$l=g("$ZodEmail",(e,n)=>{n.pattern??(n.pattern=ka),K.init(e,n)}),bl=g("$ZodURL",(e,n)=>{K.init(e,n),e._zod.check=r=>{var i;try{const t=r.value.trim();if(!n.normalize&&((i=n.protocol)==null?void 0:i.source)===hr.source&&!/^https?:\/\//i.test(t)){r.issues.push({code:"invalid_format",format:"url",note:"Invalid URL format",input:r.value,inst:e,continue:!n.abort});return}const o=new URL(t);n.hostname&&(n.hostname.lastIndex=0,n.hostname.test(o.hostname)||r.issues.push({code:"invalid_format",format:"url",note:"Invalid hostname",pattern:n.hostname.source,input:r.value,inst:e,continue:!n.abort})),n.protocol&&(n.protocol.lastIndex=0,n.protocol.test(o.protocol.endsWith(":")?o.protocol.slice(0,-1):o.protocol)||r.issues.push({code:"invalid_format",format:"url",note:"Invalid protocol",pattern:n.protocol.source,input:r.value,inst:e,continue:!n.abort})),n.normalize?r.value=o.href:r.value=t;return}catch{r.issues.push({code:"invalid_format",format:"url",input:r.value,inst:e,continue:!n.abort})}}}),_l=g("$ZodEmoji",(e,n)=>{n.pattern??(n.pattern=wa()),K.init(e,n)}),yl=g("$ZodNanoID",(e,n)=>{n.pattern??(n.pattern=ba),K.init(e,n)}),kl=g("$ZodCUID",(e,n)=>{n.pattern??(n.pattern=pa),K.init(e,n)}),Sl=g("$ZodCUID2",(e,n)=>{n.pattern??(n.pattern=ga),K.init(e,n)}),wl=g("$ZodULID",(e,n)=>{n.pattern??(n.pattern=va),K.init(e,n)}),Il=g("$ZodXID",(e,n)=>{n.pattern??(n.pattern=ha),K.init(e,n)}),zl=g("$ZodKSUID",(e,n)=>{n.pattern??(n.pattern=$a),K.init(e,n)}),El=g("$ZodISODateTime",(e,n)=>{n.pattern??(n.pattern=Va(n)),K.init(e,n)}),Nl=g("$ZodISODate",(e,n)=>{n.pattern??(n.pattern=Ca),K.init(e,n)}),Dl=g("$ZodISOTime",(e,n)=>{n.pattern??(n.pattern=Aa(n)),K.init(e,n)}),xl=g("$ZodISODuration",(e,n)=>{n.pattern??(n.pattern=_a),K.init(e,n)}),jl=g("$ZodIPv4",(e,n)=>{n.pattern??(n.pattern=Ia),K.init(e,n),e._zod.bag.format="ipv4"}),Ol=g("$ZodIPv6",(e,n)=>{n.pattern??(n.pattern=za),K.init(e,n),e._zod.bag.format="ipv6",e._zod.check=r=>{try{new URL(`http://[${r.value}]`)}catch{r.issues.push({code:"invalid_format",format:"ipv6",input:r.value,inst:e,continue:!n.abort})}}}),Ul=g("$ZodMAC",(e,n)=>{n.pattern??(n.pattern=Ea(n.delimiter)),K.init(e,n),e._zod.bag.format="mac"}),Tl=g("$ZodCIDRv4",(e,n)=>{n.pattern??(n.pattern=Na),K.init(e,n)}),Cl=g("$ZodCIDRv6",(e,n)=>{n.pattern??(n.pattern=Da),K.init(e,n),e._zod.check=r=>{const i=r.value.split("/");try{if(i.length!==2)throw new Error;const[t,o]=i;if(!o)throw new Error;const a=Number(o);if(`${a}`!==o)throw new Error;if(a<0||a>128)throw new Error;new URL(`http://[${t}]`)}catch{r.issues.push({code:"invalid_format",format:"cidrv6",input:r.value,inst:e,continue:!n.abort})}}});function kr(e){if(e==="")return!0;if(/\s/.test(e)||e.length%4!==0)return!1;try{return atob(e),!0}catch{return!1}}const Pl=g("$ZodBase64",(e,n)=>{n.pattern??(n.pattern=xa),K.init(e,n),e._zod.bag.contentEncoding="base64",e._zod.check=r=>{kr(r.value)||r.issues.push({code:"invalid_format",format:"base64",input:r.value,inst:e,continue:!n.abort})}});function Al(e){if(!vr.test(e))return!1;const n=e.replace(/[-_]/g,i=>i==="-"?"+":"/"),r=n.padEnd(Math.ceil(n.length/4)*4,"=");return kr(r)}const Vl=g("$ZodBase64URL",(e,n)=>{n.pattern??(n.pattern=vr),K.init(e,n),e._zod.bag.contentEncoding="base64url",e._zod.check=r=>{Al(r.value)||r.issues.push({code:"invalid_format",format:"base64url",input:r.value,inst:e,continue:!n.abort})}}),Zl=g("$ZodE164",(e,n)=>{n.pattern??(n.pattern=Ua),K.init(e,n)});function Bl(e,n=null){try{const r=e.split(".");if(r.length!==3)return!1;const[i]=r;if(!i)return!1;const t=JSON.parse(atob(i));return!("typ"in t&&(t==null?void 0:t.typ)!=="JWT"||!t.alg||n&&(!("alg"in t)||t.alg!==n))}catch{return!1}}const Ml=g("$ZodJWT",(e,n)=>{K.init(e,n),e._zod.check=r=>{Bl(r.value,n.alg)||r.issues.push({code:"invalid_format",format:"jwt",input:r.value,inst:e,continue:!n.abort})}}),Fl=g("$ZodCustomStringFormat",(e,n)=>{K.init(e,n),e._zod.check=r=>{n.fn(r.value)||r.issues.push({code:"invalid_format",format:n.format,input:r.value,inst:e,continue:!n.abort})}}),Sr=g("$ZodNumber",(e,n)=>{B.init(e,n),e._zod.pattern=e._zod.bag.pattern??$r,e._zod.parse=(r,i)=>{if(n.coerce)try{r.value=Number(r.value)}catch{}const t=r.value;if(typeof t=="number"&&!Number.isNaN(t)&&Number.isFinite(t))return r;const o=typeof t=="number"?Number.isNaN(t)?"NaN":Number.isFinite(t)?void 0:"Infinity":void 0;return r.issues.push({expected:"number",code:"invalid_type",input:t,inst:e,...o?{received:o}:{}}),r}}),Ll=g("$ZodNumberFormat",(e,n)=>{Xa.init(e,n),Sr.init(e,n)}),wr=g("$ZodBoolean",(e,n)=>{B.init(e,n),e._zod.pattern=Fa,e._zod.parse=(r,i)=>{if(n.coerce)try{r.value=!!r.value}catch{}const t=r.value;return typeof t=="boolean"||r.issues.push({expected:"boolean",code:"invalid_type",input:t,inst:e}),r}}),Ir=g("$ZodBigInt",(e,n)=>{B.init(e,n),e._zod.pattern=Ba,e._zod.parse=(r,i)=>{if(n.coerce)try{r.value=BigInt(r.value)}catch{}return typeof r.value=="bigint"||r.issues.push({expected:"bigint",code:"invalid_type",input:r.value,inst:e}),r}}),Rl=g("$ZodBigIntFormat",(e,n)=>{Ya.init(e,n),Ir.init(e,n)}),Jl=g("$ZodSymbol",(e,n)=>{B.init(e,n),e._zod.parse=(r,i)=>{const t=r.value;return typeof t=="symbol"||r.issues.push({expected:"symbol",code:"invalid_type",input:t,inst:e}),r}}),ql=g("$ZodUndefined",(e,n)=>{B.init(e,n),e._zod.pattern=Ra,e._zod.values=new Set([void 0]),e._zod.parse=(r,i)=>{const t=r.value;return typeof t>"u"||r.issues.push({expected:"undefined",code:"invalid_type",input:t,inst:e}),r}}),Gl=g("$ZodNull",(e,n)=>{B.init(e,n),e._zod.pattern=La,e._zod.values=new Set([null]),e._zod.parse=(r,i)=>{const t=r.value;return t===null||r.issues.push({expected:"null",code:"invalid_type",input:t,inst:e}),r}}),Wl=g("$ZodAny",(e,n)=>{B.init(e,n),e._zod.parse=r=>r}),Kl=g("$ZodUnknown",(e,n)=>{B.init(e,n),e._zod.parse=r=>r}),Xl=g("$ZodNever",(e,n)=>{B.init(e,n),e._zod.parse=(r,i)=>(r.issues.push({expected:"never",code:"invalid_type",input:r.value,inst:e}),r)}),Yl=g("$ZodVoid",(e,n)=>{B.init(e,n),e._zod.parse=(r,i)=>{const t=r.value;return typeof t>"u"||r.issues.push({expected:"void",code:"invalid_type",input:t,inst:e}),r}}),Hl=g("$ZodDate",(e,n)=>{B.init(e,n),e._zod.parse=(r,i)=>{if(n.coerce)try{r.value=new Date(r.value)}catch{}const t=r.value,o=t instanceof Date;return o&&!Number.isNaN(t.getTime())||r.issues.push({expected:"date",code:"invalid_type",input:t,...o?{received:"Invalid Date"}:{},inst:e}),r}});function Ql(e,n,r){e.issues.length&&n.issues.push(...ge(r,e.issues)),n.value[r]=e.value}const ec=g("$ZodArray",(e,n)=>{B.init(e,n),e._zod.parse=(r,i)=>{const t=r.value;if(!Array.isArray(t))return r.issues.push({expected:"array",code:"invalid_type",input:t,inst:e}),r;r.value=Array(t.length);const o=[];for(let a=0;aQl(s,r,a))):Ql(u,r,a)}return o.length?Promise.all(o).then(()=>r):r}});function Kt(e,n,r,i,t,o){const a=r in i;if(e.issues.length){if(t&&o&&!a)return;n.issues.push(...ge(r,e.issues))}if(!a&&!t){e.issues.length||n.issues.push({code:"invalid_type",expected:"nonoptional",input:void 0,path:[r]});return}e.value===void 0?a&&(n.value[r]=void 0):n.value[r]=e.value}function tc(e){var i,t,o,a;const n=Object.keys(e.shape);for(const c of n)if(!((a=(o=(t=(i=e.shape)==null?void 0:i[c])==null?void 0:t._zod)==null?void 0:o.traits)!=null&&a.has("$ZodType")))throw new Error(`Invalid element at key "${c}": expected a Zod schema`);const r=Wi(e.shape);return{...e,keys:n,keySet:new Set(n),numKeys:n.length,optionalKeys:new Set(r)}}function nc(e,n,r,i,t,o){const a=[],c=t.keySet,u=t.catchall._zod,s=u.def.type,m=u.optin==="optional",d=u.optout==="optional";for(const f in n){if(f==="__proto__"||c.has(f))continue;if(s==="never"){a.push(f);continue}const p=u.run({value:n[f],issues:[]},i);p instanceof Promise?e.push(p.then(v=>Kt(v,r,f,n,m,d))):Kt(p,r,f,n,m,d)}return a.length&&r.issues.push({code:"unrecognized_keys",keys:a,input:n,inst:o}),e.length?Promise.all(e).then(()=>r):r}const rc=g("$ZodObject",(e,n)=>{B.init(e,n);const r=Object.getOwnPropertyDescriptor(n,"shape");if(!(r!=null&&r.get)){const c=n.shape;Object.defineProperty(n,"shape",{get:()=>{const u={...c};return Object.defineProperty(n,"shape",{value:u}),u}})}const i=rt(()=>tc(n));R(e._zod,"propValues",()=>{const c=n.shape,u={};for(const s in c){const m=c[s]._zod;if(m.values){u[s]??(u[s]=new Set);for(const d of m.values)u[s].add(d)}}return u});const t=Fe,o=n.catchall;let a;e._zod.parse=(c,u)=>{a??(a=i.value);const s=c.value;if(!t(s))return c.issues.push({expected:"object",code:"invalid_type",input:s,inst:e}),c;c.value={};const m=[],d=a.shape;for(const f of a.keys){const p=d[f],v=p._zod.optin==="optional",b=p._zod.optout==="optional",N=p._zod.run({value:s[f],issues:[]},u);N instanceof Promise?m.push(N.then(S=>Kt(S,c,f,s,v,b))):Kt(N,c,f,s,v,b)}return o?nc(m,s,c,u,i.value,e):m.length?Promise.all(m).then(()=>c):c}}),oc=g("$ZodObjectJIT",(e,n)=>{rc.init(e,n);const r=e._zod.parse,i=rt(()=>tc(n)),t=f=>{var P,U;const p=new pl(["shape","payload","ctx"]),v=i.value,b=T=>{const h=tr(T);return`shape[${h}]._zod.run({ value: input[${h}], issues: [] }, ctx)`};p.write("const input = payload.value;");const N=Object.create(null);let S=0;for(const T of v.keys)N[T]=`key_${S++}`;p.write("const newResult = {};");for(const T of v.keys){const h=N[T],$=tr(T),k=f[T],M=((P=k==null?void 0:k._zod)==null?void 0:P.optin)==="optional",I=((U=k==null?void 0:k._zod)==null?void 0:U.optout)==="optional";p.write(`const ${h} = ${b(T)};`),M&&I?p.write(` +`))}}const vl={major:4,minor:4,patch:3},F=g("$ZodType",(e,n)=>{var t;var r;e??(e={}),e._zod.def=n,e._zod.bag=e._zod.bag||{},e._zod.version=vl;const i=[...e._zod.def.checks??[]];e._zod.traits.has("$ZodCheck")&&i.unshift(e);for(const o of i)for(const a of o._zod.onattach)a(e);if(i.length===0)(r=e._zod).deferred??(r.deferred=[]),(t=e._zod.deferred)==null||t.push(()=>{e._zod.run=e._zod.parse});else{const o=(c,u,s)=>{let m=Pe(c),d;for(const f of u){if(f._zod.def.when){if(ia(c)||!f._zod.def.when(c))continue}else if(m)continue;const p=c.issues.length,v=f._zod.check(c);if(v instanceof Promise&&(s==null?void 0:s.async)===!1)throw new Te;if(d||v instanceof Promise)d=(d??Promise.resolve()).then(async()=>{await v,c.issues.length!==p&&(m||(m=Pe(c,p)))});else{if(c.issues.length===p)continue;m||(m=Pe(c,p))}}return d?d.then(()=>c):c},a=(c,u,s)=>{if(Pe(c))return c.aborted=!0,c;const m=o(u,i,s);if(m instanceof Promise){if(s.async===!1)throw new Te;return m.then(d=>e._zod.parse(d,s))}return e._zod.parse(m,s)};e._zod.run=(c,u)=>{if(u.skipChecks)return e._zod.parse(c,u);if(u.direction==="backward"){const m=e._zod.parse({value:c.value,issues:[]},{...u,skipChecks:!0});return m instanceof Promise?m.then(d=>a(d,c,u)):a(m,c,u)}const s=e._zod.parse(c,u);if(s instanceof Promise){if(u.async===!1)throw new Te;return s.then(m=>o(m,i,u))}return o(s,i,u)}}R(e,"~standard",()=>({validate:o=>{var a;try{const c=fa(e,o);return c.success?{value:c.data}:{issues:(a=c.error)==null?void 0:a.issues}}catch{return pa(e,o).then(u=>{var s;return u.success?{value:u.data}:{issues:(s=u.error)==null?void 0:s.issues}})}},vendor:"zod",version:1}))}),dt=g("$ZodString",(e,n)=>{var r;F.init(e,n),e._zod.pattern=[...((r=e==null?void 0:e._zod.bag)==null?void 0:r.patterns)??[]].pop()??Za(e._zod.bag),e._zod.parse=(i,t)=>{if(n.coerce)try{i.value=String(i.value)}catch{}return typeof i.value=="string"||i.issues.push({expected:"string",code:"invalid_type",input:i.value,inst:e}),i}}),W=g("$ZodStringFormat",(e,n)=>{ut.init(e,n),dt.init(e,n)}),hl=g("$ZodGUID",(e,n)=>{n.pattern??(n.pattern=ka),W.init(e,n)}),$l=g("$ZodUUID",(e,n)=>{if(n.version){const i={v1:1,v2:2,v3:3,v4:4,v5:5,v6:6,v7:7,v8:8}[n.version];if(i===void 0)throw new Error(`Invalid UUID version: "${n.version}"`);n.pattern??(n.pattern=Re(i))}else n.pattern??(n.pattern=Re());W.init(e,n)}),bl=g("$ZodEmail",(e,n)=>{n.pattern??(n.pattern=Sa),W.init(e,n)}),_l=g("$ZodURL",(e,n)=>{W.init(e,n),e._zod.check=r=>{var i;try{const t=r.value.trim();if(!n.normalize&&((i=n.protocol)==null?void 0:i.source)===hr.source&&!/^https?:\/\//i.test(t)){r.issues.push({code:"invalid_format",format:"url",note:"Invalid URL format",input:r.value,inst:e,continue:!n.abort});return}const o=new URL(t);n.hostname&&(n.hostname.lastIndex=0,n.hostname.test(o.hostname)||r.issues.push({code:"invalid_format",format:"url",note:"Invalid hostname",pattern:n.hostname.source,input:r.value,inst:e,continue:!n.abort})),n.protocol&&(n.protocol.lastIndex=0,n.protocol.test(o.protocol.endsWith(":")?o.protocol.slice(0,-1):o.protocol)||r.issues.push({code:"invalid_format",format:"url",note:"Invalid protocol",pattern:n.protocol.source,input:r.value,inst:e,continue:!n.abort})),n.normalize?r.value=o.href:r.value=t;return}catch{r.issues.push({code:"invalid_format",format:"url",input:r.value,inst:e,continue:!n.abort})}}}),yl=g("$ZodEmoji",(e,n)=>{n.pattern??(n.pattern=Ia()),W.init(e,n)}),kl=g("$ZodNanoID",(e,n)=>{n.pattern??(n.pattern=_a),W.init(e,n)}),Sl=g("$ZodCUID",(e,n)=>{n.pattern??(n.pattern=ga),W.init(e,n)}),wl=g("$ZodCUID2",(e,n)=>{n.pattern??(n.pattern=va),W.init(e,n)}),Il=g("$ZodULID",(e,n)=>{n.pattern??(n.pattern=ha),W.init(e,n)}),zl=g("$ZodXID",(e,n)=>{n.pattern??(n.pattern=$a),W.init(e,n)}),El=g("$ZodKSUID",(e,n)=>{n.pattern??(n.pattern=ba),W.init(e,n)}),Nl=g("$ZodISODateTime",(e,n)=>{n.pattern??(n.pattern=Ba(n)),W.init(e,n)}),Dl=g("$ZodISODate",(e,n)=>{n.pattern??(n.pattern=Pa),W.init(e,n)}),jl=g("$ZodISOTime",(e,n)=>{n.pattern??(n.pattern=Va(n)),W.init(e,n)}),Ol=g("$ZodISODuration",(e,n)=>{n.pattern??(n.pattern=ya),W.init(e,n)}),xl=g("$ZodIPv4",(e,n)=>{n.pattern??(n.pattern=za),W.init(e,n),e._zod.bag.format="ipv4"}),Tl=g("$ZodIPv6",(e,n)=>{n.pattern??(n.pattern=Ea),W.init(e,n),e._zod.bag.format="ipv6",e._zod.check=r=>{try{new URL(`http://[${r.value}]`)}catch{r.issues.push({code:"invalid_format",format:"ipv6",input:r.value,inst:e,continue:!n.abort})}}}),Ul=g("$ZodMAC",(e,n)=>{n.pattern??(n.pattern=Na(n.delimiter)),W.init(e,n),e._zod.bag.format="mac"}),Cl=g("$ZodCIDRv4",(e,n)=>{n.pattern??(n.pattern=Da),W.init(e,n)}),Pl=g("$ZodCIDRv6",(e,n)=>{n.pattern??(n.pattern=ja),W.init(e,n),e._zod.check=r=>{const i=r.value.split("/");try{if(i.length!==2)throw new Error;const[t,o]=i;if(!o)throw new Error;const a=Number(o);if(`${a}`!==o)throw new Error;if(a<0||a>128)throw new Error;new URL(`http://[${t}]`)}catch{r.issues.push({code:"invalid_format",format:"cidrv6",input:r.value,inst:e,continue:!n.abort})}}});function kr(e){if(e==="")return!0;if(/\s/.test(e)||e.length%4!==0)return!1;try{return atob(e),!0}catch{return!1}}const Al=g("$ZodBase64",(e,n)=>{n.pattern??(n.pattern=Oa),W.init(e,n),e._zod.bag.contentEncoding="base64",e._zod.check=r=>{kr(r.value)||r.issues.push({code:"invalid_format",format:"base64",input:r.value,inst:e,continue:!n.abort})}});function Vl(e){if(!vr.test(e))return!1;const n=e.replace(/[-_]/g,i=>i==="-"?"+":"/"),r=n.padEnd(Math.ceil(n.length/4)*4,"=");return kr(r)}const Bl=g("$ZodBase64URL",(e,n)=>{n.pattern??(n.pattern=vr),W.init(e,n),e._zod.bag.contentEncoding="base64url",e._zod.check=r=>{Vl(r.value)||r.issues.push({code:"invalid_format",format:"base64url",input:r.value,inst:e,continue:!n.abort})}}),Zl=g("$ZodE164",(e,n)=>{n.pattern??(n.pattern=Ua),W.init(e,n)});function Ml(e,n=null){try{const r=e.split(".");if(r.length!==3)return!1;const[i]=r;if(!i)return!1;const t=JSON.parse(atob(i));return!("typ"in t&&(t==null?void 0:t.typ)!=="JWT"||!t.alg||n&&(!("alg"in t)||t.alg!==n))}catch{return!1}}const Fl=g("$ZodJWT",(e,n)=>{W.init(e,n),e._zod.check=r=>{Ml(r.value,n.alg)||r.issues.push({code:"invalid_format",format:"jwt",input:r.value,inst:e,continue:!n.abort})}}),Ll=g("$ZodCustomStringFormat",(e,n)=>{W.init(e,n),e._zod.check=r=>{n.fn(r.value)||r.issues.push({code:"invalid_format",format:n.format,input:r.value,inst:e,continue:!n.abort})}}),Sr=g("$ZodNumber",(e,n)=>{F.init(e,n),e._zod.pattern=e._zod.bag.pattern??$r,e._zod.parse=(r,i)=>{if(n.coerce)try{r.value=Number(r.value)}catch{}const t=r.value;if(typeof t=="number"&&!Number.isNaN(t)&&Number.isFinite(t))return r;const o=typeof t=="number"?Number.isNaN(t)?"NaN":Number.isFinite(t)?void 0:"Infinity":void 0;return r.issues.push({expected:"number",code:"invalid_type",input:t,inst:e,...o?{received:o}:{}}),r}}),Rl=g("$ZodNumberFormat",(e,n)=>{Ha.init(e,n),Sr.init(e,n)}),wr=g("$ZodBoolean",(e,n)=>{F.init(e,n),e._zod.pattern=La,e._zod.parse=(r,i)=>{if(n.coerce)try{r.value=!!r.value}catch{}const t=r.value;return typeof t=="boolean"||r.issues.push({expected:"boolean",code:"invalid_type",input:t,inst:e}),r}}),Ir=g("$ZodBigInt",(e,n)=>{F.init(e,n),e._zod.pattern=Ma,e._zod.parse=(r,i)=>{if(n.coerce)try{r.value=BigInt(r.value)}catch{}return typeof r.value=="bigint"||r.issues.push({expected:"bigint",code:"invalid_type",input:r.value,inst:e}),r}}),Jl=g("$ZodBigIntFormat",(e,n)=>{Ya.init(e,n),Ir.init(e,n)}),ql=g("$ZodSymbol",(e,n)=>{F.init(e,n),e._zod.parse=(r,i)=>{const t=r.value;return typeof t=="symbol"||r.issues.push({expected:"symbol",code:"invalid_type",input:t,inst:e}),r}}),Gl=g("$ZodUndefined",(e,n)=>{F.init(e,n),e._zod.pattern=Ja,e._zod.values=new Set([void 0]),e._zod.parse=(r,i)=>{const t=r.value;return typeof t>"u"||r.issues.push({expected:"undefined",code:"invalid_type",input:t,inst:e}),r}}),Kl=g("$ZodNull",(e,n)=>{F.init(e,n),e._zod.pattern=Ra,e._zod.values=new Set([null]),e._zod.parse=(r,i)=>{const t=r.value;return t===null||r.issues.push({expected:"null",code:"invalid_type",input:t,inst:e}),r}}),Wl=g("$ZodAny",(e,n)=>{F.init(e,n),e._zod.parse=r=>r}),Xl=g("$ZodUnknown",(e,n)=>{F.init(e,n),e._zod.parse=r=>r}),Hl=g("$ZodNever",(e,n)=>{F.init(e,n),e._zod.parse=(r,i)=>(r.issues.push({expected:"never",code:"invalid_type",input:r.value,inst:e}),r)}),Yl=g("$ZodVoid",(e,n)=>{F.init(e,n),e._zod.parse=(r,i)=>{const t=r.value;return typeof t>"u"||r.issues.push({expected:"void",code:"invalid_type",input:t,inst:e}),r}}),Ql=g("$ZodDate",(e,n)=>{F.init(e,n),e._zod.parse=(r,i)=>{if(n.coerce)try{r.value=new Date(r.value)}catch{}const t=r.value,o=t instanceof Date;return o&&!Number.isNaN(t.getTime())||r.issues.push({expected:"date",code:"invalid_type",input:t,...o?{received:"Invalid Date"}:{},inst:e}),r}});function ec(e,n,r){e.issues.length&&n.issues.push(...he(r,e.issues)),n.value[r]=e.value}const tc=g("$ZodArray",(e,n)=>{F.init(e,n),e._zod.parse=(r,i)=>{const t=r.value;if(!Array.isArray(t))return r.issues.push({expected:"array",code:"invalid_type",input:t,inst:e}),r;r.value=Array(t.length);const o=[];for(let a=0;aec(s,r,a))):ec(u,r,a)}return o.length?Promise.all(o).then(()=>r):r}});function Wt(e,n,r,i,t,o){const a=r in i;if(e.issues.length){if(t&&o&&!a)return;n.issues.push(...he(r,e.issues))}if(!a&&!t){e.issues.length||n.issues.push({code:"invalid_type",expected:"nonoptional",input:void 0,path:[r]});return}e.value===void 0?a&&(n.value[r]=void 0):n.value[r]=e.value}function nc(e){var i,t,o,a;const n=Object.keys(e.shape);for(const c of n)if(!((a=(o=(t=(i=e.shape)==null?void 0:i[c])==null?void 0:t._zod)==null?void 0:o.traits)!=null&&a.has("$ZodType")))throw new Error(`Invalid element at key "${c}": expected a Zod schema`);const r=Wi(e.shape);return{...e,keys:n,keySet:new Set(n),numKeys:n.length,optionalKeys:new Set(r)}}function rc(e,n,r,i,t,o){const a=[],c=t.keySet,u=t.catchall._zod,s=u.def.type,m=u.optin==="optional",d=u.optout==="optional";for(const f in n){if(f==="__proto__"||c.has(f))continue;if(s==="never"){a.push(f);continue}const p=u.run({value:n[f],issues:[]},i);p instanceof Promise?e.push(p.then(v=>Wt(v,r,f,n,m,d))):Wt(p,r,f,n,m,d)}return a.length&&r.issues.push({code:"unrecognized_keys",keys:a,input:n,inst:o}),e.length?Promise.all(e).then(()=>r):r}const oc=g("$ZodObject",(e,n)=>{F.init(e,n);const r=Object.getOwnPropertyDescriptor(n,"shape");if(!(r!=null&&r.get)){const c=n.shape;Object.defineProperty(n,"shape",{get:()=>{const u={...c};return Object.defineProperty(n,"shape",{value:u}),u}})}const i=nt(()=>nc(n));R(e._zod,"propValues",()=>{const c=n.shape,u={};for(const s in c){const m=c[s]._zod;if(m.values){u[s]??(u[s]=new Set);for(const d of m.values)u[s].add(d)}}return u});const t=Fe,o=n.catchall;let a;e._zod.parse=(c,u)=>{a??(a=i.value);const s=c.value;if(!t(s))return c.issues.push({expected:"object",code:"invalid_type",input:s,inst:e}),c;c.value={};const m=[],d=a.shape;for(const f of a.keys){const p=d[f],v=p._zod.optin==="optional",_=p._zod.optout==="optional",O=p._zod.run({value:s[f],issues:[]},u);O instanceof Promise?m.push(O.then(N=>Wt(N,c,f,s,v,_))):Wt(O,c,f,s,v,_)}return o?rc(m,s,c,u,i.value,e):m.length?Promise.all(m).then(()=>c):c}}),ic=g("$ZodObjectJIT",(e,n)=>{oc.init(e,n);const r=e._zod.parse,i=nt(()=>nc(n)),t=f=>{var P,T;const p=new gl(["shape","payload","ctx"]),v=i.value,_=U=>{const h=tr(U);return`shape[${h}]._zod.run({ value: input[${h}], issues: [] }, ctx)`};p.write("const input = payload.value;");const O=Object.create(null);let N=0;for(const U of v.keys)O[U]=`key_${N++}`;p.write("const newResult = {};");for(const U of v.keys){const h=O[U],$=tr(U),S=f[U],M=((P=S==null?void 0:S._zod)==null?void 0:P.optin)==="optional",I=((T=S==null?void 0:S._zod)==null?void 0:T.optout)==="optional";p.write(`const ${h} = ${_(U)};`),M&&I?p.write(` if (${h}.issues.length) { if (${$} in input) { payload.issues = payload.issues.concat(${h}.issues.map(iss => ({ @@ -222,6 +222,6 @@ ${u.map(s=>`• ${s}`).join(` } } - `)}p.write("payload.value = newResult;"),p.write("return payload;");const w=p.compile();return(T,h)=>w(f,T,h)};let o;const a=Fe,c=!nt.jitless,s=c&&qi.value,m=n.catchall;let d;e._zod.parse=(f,p)=>{d??(d=i.value);const v=f.value;return a(v)?c&&s&&(p==null?void 0:p.async)===!1&&p.jitless!==!0?(o||(o=t(n.shape)),f=o(f,p),m?nc([],v,f,p,d,e):f):r(f,p):(f.issues.push({expected:"object",code:"invalid_type",input:v,inst:e}),f)}});function ic(e,n,r,i){for(const o of e)if(o.issues.length===0)return n.value=o.value,n;const t=e.filter(o=>!Pe(o));return t.length===1?(n.value=t[0].value,t[0]):(n.issues.push({code:"invalid_union",input:n.value,inst:r,errors:e.map(o=>o.issues.map(a=>de(a,i,re())))}),n)}const Xt=g("$ZodUnion",(e,n)=>{B.init(e,n),R(e._zod,"optin",()=>n.options.some(i=>i._zod.optin==="optional")?"optional":void 0),R(e._zod,"optout",()=>n.options.some(i=>i._zod.optout==="optional")?"optional":void 0),R(e._zod,"values",()=>{if(n.options.every(i=>i._zod.values))return new Set(n.options.flatMap(i=>Array.from(i._zod.values)))}),R(e._zod,"pattern",()=>{if(n.options.every(i=>i._zod.pattern)){const i=n.options.map(t=>t._zod.pattern);return new RegExp(`^(${i.map(t=>Rt(t.source)).join("|")})$`)}});const r=n.options.length===1?n.options[0]._zod.run:null;e._zod.parse=(i,t)=>{if(r)return r(i,t);let o=!1;const a=[];for(const c of n.options){const u=c._zod.run({value:i.value,issues:[]},t);if(u instanceof Promise)a.push(u),o=!0;else{if(u.issues.length===0)return u;a.push(u)}}return o?Promise.all(a).then(c=>ic(c,i,e,t)):ic(a,i,e,t)}});function ac(e,n,r,i){const t=e.filter(o=>o.issues.length===0);return t.length===1?(n.value=t[0].value,n):(t.length===0?n.issues.push({code:"invalid_union",input:n.value,inst:r,errors:e.map(o=>o.issues.map(a=>de(a,i,re())))}):n.issues.push({code:"invalid_union",input:n.value,inst:r,errors:[],inclusive:!1}),n)}const lc=g("$ZodXor",(e,n)=>{Xt.init(e,n),n.inclusive=!1;const r=n.options.length===1?n.options[0]._zod.run:null;e._zod.parse=(i,t)=>{if(r)return r(i,t);let o=!1;const a=[];for(const c of n.options){const u=c._zod.run({value:i.value,issues:[]},t);u instanceof Promise?(a.push(u),o=!0):a.push(u)}return o?Promise.all(a).then(c=>ac(c,i,e,t)):ac(a,i,e,t)}}),cc=g("$ZodDiscriminatedUnion",(e,n)=>{n.inclusive=!1,Xt.init(e,n);const r=e._zod.parse;R(e._zod,"propValues",()=>{const t={};for(const o of n.options){const a=o._zod.propValues;if(!a||Object.keys(a).length===0)throw new Error(`Invalid discriminated union option at index "${n.options.indexOf(o)}"`);for(const[c,u]of Object.entries(a)){t[c]||(t[c]=new Set);for(const s of u)t[c].add(s)}}return t});const i=rt(()=>{var a;const t=n.options,o=new Map;for(const c of t){const u=(a=c._zod.propValues)==null?void 0:a[n.discriminator];if(!u||u.size===0)throw new Error(`Invalid discriminated union option at index "${n.options.indexOf(c)}"`);for(const s of u){if(o.has(s))throw new Error(`Duplicate discriminator value "${String(s)}"`);o.set(s,c)}}return o});e._zod.parse=(t,o)=>{const a=t.value;if(!Fe(a))return t.issues.push({code:"invalid_type",expected:"object",input:a,inst:e}),t;const c=i.value.get(a==null?void 0:a[n.discriminator]);return c?c._zod.run(t,o):n.unionFallback||o.direction==="backward"?r(t,o):(t.issues.push({code:"invalid_union",errors:[],note:"No matching discriminator",discriminator:n.discriminator,options:Array.from(i.value.keys()),input:a,path:[n.discriminator],inst:e}),t)}}),sc=g("$ZodIntersection",(e,n)=>{B.init(e,n),e._zod.parse=(r,i)=>{const t=r.value,o=n.left._zod.run({value:t,issues:[]},i),a=n.right._zod.run({value:t,issues:[]},i);return o instanceof Promise||a instanceof Promise?Promise.all([o,a]).then(([u,s])=>uc(r,u,s)):uc(r,o,a)}});function zr(e,n){if(e===n)return{valid:!0,data:e};if(e instanceof Date&&n instanceof Date&&+e==+n)return{valid:!0,data:e};if(Ce(e)&&Ce(n)){const r=Object.keys(n),i=Object.keys(e).filter(o=>r.indexOf(o)!==-1),t={...e,...n};for(const o of i){const a=zr(e[o],n[o]);if(!a.valid)return{valid:!1,mergeErrorPath:[o,...a.mergeErrorPath]};t[o]=a.data}return{valid:!0,data:t}}if(Array.isArray(e)&&Array.isArray(n)){if(e.length!==n.length)return{valid:!1,mergeErrorPath:[]};const r=[];for(let i=0;ic.l&&c.r).map(([c])=>c);if(o.length&&t&&e.issues.push({...t,keys:o}),Pe(e))return e;const a=zr(n.value,r.value);if(!a.valid)throw new Error(`Unmergable intersection. Error path: ${JSON.stringify(a.mergeErrorPath)}`);return e.value=a.data,e}const Er=g("$ZodTuple",(e,n)=>{B.init(e,n);const r=n.items;e._zod.parse=(i,t)=>{const o=i.value;if(!Array.isArray(o))return i.issues.push({input:o,inst:e,expected:"tuple",code:"invalid_type"}),i;i.value=[];const a=[],c=dc(r,"optin"),u=dc(r,"optout");if(!n.rest){if(o.lengthr.length&&i.issues.push({code:"too_big",maximum:r.length,inclusive:!0,input:o,inst:e,origin:"array"})}const s=new Array(r.length);for(let m=0;m{s[m]=f})):s[m]=d}if(n.rest){let m=r.length-1;const d=o.slice(r.length);for(const f of d){m++;const p=n.rest._zod.run({value:f,issues:[]},t);p instanceof Promise?a.push(p.then(v=>mc(v,i,m))):mc(p,i,m)}}return a.length?Promise.all(a).then(()=>fc(s,i,r,o,u)):fc(s,i,r,o,u)}});function dc(e,n){for(let r=e.length-1;r>=0;r--)if(e[r]._zod[n]!=="optional")return r+1;return 0}function mc(e,n,r){e.issues.length&&n.issues.push(...ge(r,e.issues)),n.value[r]=e.value}function fc(e,n,r,i,t){for(let o=0;o=t){n.value.length=o;break}n.issues.push(...ge(o,a.issues))}n.value[o]=a.value}for(let o=n.value.length-1;o>=i.length&&(r[o]._zod.optout==="optional"&&n.value[o]===void 0);o--)n.value.length=o;return n}const pc=g("$ZodRecord",(e,n)=>{B.init(e,n),e._zod.parse=(r,i)=>{const t=r.value;if(!Ce(t))return r.issues.push({expected:"record",code:"invalid_type",input:t,inst:e}),r;const o=[],a=n.keyType._zod.values;if(a){r.value={};const c=new Set;for(const s of a)if(typeof s=="string"||typeof s=="number"||typeof s=="symbol"){c.add(typeof s=="number"?s.toString():s);const m=n.keyType._zod.run({value:s,issues:[]},i);if(m instanceof Promise)throw new Error("Async schemas not supported in object keys currently");if(m.issues.length){r.issues.push({code:"invalid_key",origin:"record",issues:m.issues.map(p=>de(p,i,re())),input:s,path:[s],inst:e});continue}const d=m.value,f=n.valueType._zod.run({value:t[s],issues:[]},i);f instanceof Promise?o.push(f.then(p=>{p.issues.length&&r.issues.push(...ge(s,p.issues)),r.value[d]=p.value})):(f.issues.length&&r.issues.push(...ge(s,f.issues)),r.value[d]=f.value)}let u;for(const s in t)c.has(s)||(u=u??[],u.push(s));u&&u.length>0&&r.issues.push({code:"unrecognized_keys",input:t,inst:e,keys:u})}else{r.value={};for(const c of Reflect.ownKeys(t)){if(c==="__proto__"||!Object.prototype.propertyIsEnumerable.call(t,c))continue;let u=n.keyType._zod.run({value:c,issues:[]},i);if(u instanceof Promise)throw new Error("Async schemas not supported in object keys currently");if(typeof c=="string"&&$r.test(c)&&u.issues.length){const d=n.keyType._zod.run({value:Number(c),issues:[]},i);if(d instanceof Promise)throw new Error("Async schemas not supported in object keys currently");d.issues.length===0&&(u=d)}if(u.issues.length){n.mode==="loose"?r.value[c]=t[c]:r.issues.push({code:"invalid_key",origin:"record",issues:u.issues.map(d=>de(d,i,re())),input:c,path:[c],inst:e});continue}const m=n.valueType._zod.run({value:t[c],issues:[]},i);m instanceof Promise?o.push(m.then(d=>{d.issues.length&&r.issues.push(...ge(c,d.issues)),r.value[u.value]=d.value})):(m.issues.length&&r.issues.push(...ge(c,m.issues)),r.value[u.value]=m.value)}}return o.length?Promise.all(o).then(()=>r):r}}),gc=g("$ZodMap",(e,n)=>{B.init(e,n),e._zod.parse=(r,i)=>{const t=r.value;if(!(t instanceof Map))return r.issues.push({expected:"map",code:"invalid_type",input:t,inst:e}),r;const o=[];r.value=new Map;for(const[a,c]of t){const u=n.keyType._zod.run({value:a,issues:[]},i),s=n.valueType._zod.run({value:c,issues:[]},i);u instanceof Promise||s instanceof Promise?o.push(Promise.all([u,s]).then(([m,d])=>{vc(m,d,r,a,t,e,i)})):vc(u,s,r,a,t,e,i)}return o.length?Promise.all(o).then(()=>r):r}});function vc(e,n,r,i,t,o,a){e.issues.length&&(qt.has(typeof i)?r.issues.push(...ge(i,e.issues)):r.issues.push({code:"invalid_key",origin:"map",input:t,inst:o,issues:e.issues.map(c=>de(c,a,re()))})),n.issues.length&&(qt.has(typeof i)?r.issues.push(...ge(i,n.issues)):r.issues.push({origin:"map",code:"invalid_element",input:t,inst:o,key:i,issues:n.issues.map(c=>de(c,a,re()))})),r.value.set(e.value,n.value)}const hc=g("$ZodSet",(e,n)=>{B.init(e,n),e._zod.parse=(r,i)=>{const t=r.value;if(!(t instanceof Set))return r.issues.push({input:t,inst:e,expected:"set",code:"invalid_type"}),r;const o=[];r.value=new Set;for(const a of t){const c=n.valueType._zod.run({value:a,issues:[]},i);c instanceof Promise?o.push(c.then(u=>$c(u,r))):$c(c,r)}return o.length?Promise.all(o).then(()=>r):r}});function $c(e,n){e.issues.length&&n.issues.push(...e.issues),n.value.add(e.value)}const bc=g("$ZodEnum",(e,n)=>{B.init(e,n);const r=er(n.entries),i=new Set(r);e._zod.values=i,e._zod.pattern=new RegExp(`^(${r.filter(t=>qt.has(typeof t)).map(t=>typeof t=="string"?we(t):t.toString()).join("|")})$`),e._zod.parse=(t,o)=>{const a=t.value;return i.has(a)||t.issues.push({code:"invalid_value",values:r,input:a,inst:e}),t}}),_c=g("$ZodLiteral",(e,n)=>{if(B.init(e,n),n.values.length===0)throw new Error("Cannot create literal schema with no valid values");const r=new Set(n.values);e._zod.values=r,e._zod.pattern=new RegExp(`^(${n.values.map(i=>typeof i=="string"?we(i):i?we(i.toString()):String(i)).join("|")})$`),e._zod.parse=(i,t)=>{const o=i.value;return r.has(o)||i.issues.push({code:"invalid_value",values:n.values,input:o,inst:e}),i}}),yc=g("$ZodFile",(e,n)=>{B.init(e,n),e._zod.parse=(r,i)=>{const t=r.value;return t instanceof File||r.issues.push({expected:"file",code:"invalid_type",input:t,inst:e}),r}}),kc=g("$ZodTransform",(e,n)=>{B.init(e,n),e._zod.optin="optional",e._zod.parse=(r,i)=>{if(i.direction==="backward")throw new Ft(e.constructor.name);const t=n.transform(r.value,r);if(i.async)return(t instanceof Promise?t:Promise.resolve(t)).then(a=>(r.value=a,r.fallback=!0,r));if(t instanceof Promise)throw new Ue;return r.value=t,r.fallback=!0,r}});function Sc(e,n){return n===void 0&&(e.issues.length||e.fallback)?{issues:[],value:void 0}:e}const Nr=g("$ZodOptional",(e,n)=>{B.init(e,n),e._zod.optin="optional",e._zod.optout="optional",R(e._zod,"values",()=>n.innerType._zod.values?new Set([...n.innerType._zod.values,void 0]):void 0),R(e._zod,"pattern",()=>{const r=n.innerType._zod.pattern;return r?new RegExp(`^(${Rt(r.source)})?$`):void 0}),e._zod.parse=(r,i)=>{if(n.innerType._zod.optin==="optional"){const t=r.value,o=n.innerType._zod.run(r,i);return o instanceof Promise?o.then(a=>Sc(a,t)):Sc(o,t)}return r.value===void 0?r:n.innerType._zod.run(r,i)}}),wc=g("$ZodExactOptional",(e,n)=>{Nr.init(e,n),R(e._zod,"values",()=>n.innerType._zod.values),R(e._zod,"pattern",()=>n.innerType._zod.pattern),e._zod.parse=(r,i)=>n.innerType._zod.run(r,i)}),Ic=g("$ZodNullable",(e,n)=>{B.init(e,n),R(e._zod,"optin",()=>n.innerType._zod.optin),R(e._zod,"optout",()=>n.innerType._zod.optout),R(e._zod,"pattern",()=>{const r=n.innerType._zod.pattern;return r?new RegExp(`^(${Rt(r.source)}|null)$`):void 0}),R(e._zod,"values",()=>n.innerType._zod.values?new Set([...n.innerType._zod.values,null]):void 0),e._zod.parse=(r,i)=>r.value===null?r:n.innerType._zod.run(r,i)}),zc=g("$ZodDefault",(e,n)=>{B.init(e,n),e._zod.optin="optional",R(e._zod,"values",()=>n.innerType._zod.values),e._zod.parse=(r,i)=>{if(i.direction==="backward")return n.innerType._zod.run(r,i);if(r.value===void 0)return r.value=n.defaultValue,r;const t=n.innerType._zod.run(r,i);return t instanceof Promise?t.then(o=>Ec(o,n)):Ec(t,n)}});function Ec(e,n){return e.value===void 0&&(e.value=n.defaultValue),e}const Nc=g("$ZodPrefault",(e,n)=>{B.init(e,n),e._zod.optin="optional",R(e._zod,"values",()=>n.innerType._zod.values),e._zod.parse=(r,i)=>(i.direction==="backward"||r.value===void 0&&(r.value=n.defaultValue),n.innerType._zod.run(r,i))}),Dc=g("$ZodNonOptional",(e,n)=>{B.init(e,n),R(e._zod,"values",()=>{const r=n.innerType._zod.values;return r?new Set([...r].filter(i=>i!==void 0)):void 0}),e._zod.parse=(r,i)=>{const t=n.innerType._zod.run(r,i);return t instanceof Promise?t.then(o=>xc(o,e)):xc(t,e)}});function xc(e,n){return!e.issues.length&&e.value===void 0&&e.issues.push({code:"invalid_type",expected:"nonoptional",input:e.value,inst:n}),e}const jc=g("$ZodSuccess",(e,n)=>{B.init(e,n),e._zod.parse=(r,i)=>{if(i.direction==="backward")throw new Ft("ZodSuccess");const t=n.innerType._zod.run(r,i);return t instanceof Promise?t.then(o=>(r.value=o.issues.length===0,r)):(r.value=t.issues.length===0,r)}}),Oc=g("$ZodCatch",(e,n)=>{B.init(e,n),e._zod.optin="optional",R(e._zod,"optout",()=>n.innerType._zod.optout),R(e._zod,"values",()=>n.innerType._zod.values),e._zod.parse=(r,i)=>{if(i.direction==="backward")return n.innerType._zod.run(r,i);const t=n.innerType._zod.run(r,i);return t instanceof Promise?t.then(o=>(r.value=o.value,o.issues.length&&(r.value=n.catchValue({...r,error:{issues:o.issues.map(a=>de(a,i,re()))},input:r.value}),r.issues=[],r.fallback=!0),r)):(r.value=t.value,t.issues.length&&(r.value=n.catchValue({...r,error:{issues:t.issues.map(o=>de(o,i,re()))},input:r.value}),r.issues=[],r.fallback=!0),r)}}),Uc=g("$ZodNaN",(e,n)=>{B.init(e,n),e._zod.parse=(r,i)=>((typeof r.value!="number"||!Number.isNaN(r.value))&&r.issues.push({input:r.value,inst:e,expected:"nan",code:"invalid_type"}),r)}),Dr=g("$ZodPipe",(e,n)=>{B.init(e,n),R(e._zod,"values",()=>n.in._zod.values),R(e._zod,"optin",()=>n.in._zod.optin),R(e._zod,"optout",()=>n.out._zod.optout),R(e._zod,"propValues",()=>n.in._zod.propValues),e._zod.parse=(r,i)=>{if(i.direction==="backward"){const o=n.out._zod.run(r,i);return o instanceof Promise?o.then(a=>Yt(a,n.in,i)):Yt(o,n.in,i)}const t=n.in._zod.run(r,i);return t instanceof Promise?t.then(o=>Yt(o,n.out,i)):Yt(t,n.out,i)}});function Yt(e,n,r){return e.issues.length?(e.aborted=!0,e):n._zod.run({value:e.value,issues:e.issues,fallback:e.fallback},r)}const xr=g("$ZodCodec",(e,n)=>{B.init(e,n),R(e._zod,"values",()=>n.in._zod.values),R(e._zod,"optin",()=>n.in._zod.optin),R(e._zod,"optout",()=>n.out._zod.optout),R(e._zod,"propValues",()=>n.in._zod.propValues),e._zod.parse=(r,i)=>{if((i.direction||"forward")==="forward"){const o=n.in._zod.run(r,i);return o instanceof Promise?o.then(a=>Ht(a,n,i)):Ht(o,n,i)}else{const o=n.out._zod.run(r,i);return o instanceof Promise?o.then(a=>Ht(a,n,i)):Ht(o,n,i)}}});function Ht(e,n,r){if(e.issues.length)return e.aborted=!0,e;if((r.direction||"forward")==="forward"){const t=n.transform(e.value,e);return t instanceof Promise?t.then(o=>Qt(e,o,n.out,r)):Qt(e,t,n.out,r)}else{const t=n.reverseTransform(e.value,e);return t instanceof Promise?t.then(o=>Qt(e,o,n.in,r)):Qt(e,t,n.in,r)}}function Qt(e,n,r,i){return e.issues.length?(e.aborted=!0,e):r._zod.run({value:n,issues:e.issues},i)}const Tc=g("$ZodPreprocess",(e,n)=>{Dr.init(e,n)}),Cc=g("$ZodReadonly",(e,n)=>{B.init(e,n),R(e._zod,"propValues",()=>n.innerType._zod.propValues),R(e._zod,"values",()=>n.innerType._zod.values),R(e._zod,"optin",()=>{var r,i;return(i=(r=n.innerType)==null?void 0:r._zod)==null?void 0:i.optin}),R(e._zod,"optout",()=>{var r,i;return(i=(r=n.innerType)==null?void 0:r._zod)==null?void 0:i.optout}),e._zod.parse=(r,i)=>{if(i.direction==="backward")return n.innerType._zod.run(r,i);const t=n.innerType._zod.run(r,i);return t instanceof Promise?t.then(Pc):Pc(t)}});function Pc(e){return e.value=Object.freeze(e.value),e}const Ac=g("$ZodTemplateLiteral",(e,n)=>{B.init(e,n);const r=[];for(const i of n.parts)if(typeof i=="object"&&i!==null){if(!i._zod.pattern)throw new Error(`Invalid template literal part, no pattern found: ${[...i._zod.traits].shift()}`);const t=i._zod.pattern instanceof RegExp?i._zod.pattern.source:i._zod.pattern;if(!t)throw new Error(`Invalid template literal part: ${i._zod.traits}`);const o=t.startsWith("^")?1:0,a=t.endsWith("$")?t.length-1:t.length;r.push(t.slice(o,a))}else if(i===null||Gi.has(typeof i))r.push(we(`${i}`));else throw new Error(`Invalid template literal part: ${i}`);e._zod.pattern=new RegExp(`^${r.join("")}$`),e._zod.parse=(i,t)=>typeof i.value!="string"?(i.issues.push({input:i.value,inst:e,expected:"string",code:"invalid_type"}),i):(e._zod.pattern.lastIndex=0,e._zod.pattern.test(i.value)||i.issues.push({input:i.value,inst:e,code:"invalid_format",format:n.format??"template_literal",pattern:e._zod.pattern.source}),i)}),Vc=g("$ZodFunction",(e,n)=>(B.init(e,n),e._def=n,e._zod.def=n,e.implement=r=>{if(typeof r!="function")throw new Error("implement() must be called with a function");return function(...i){const t=e._def.input?ar(e._def.input,i):i,o=Reflect.apply(r,this,t);return e._def.output?ar(e._def.output,o):o}},e.implementAsync=r=>{if(typeof r!="function")throw new Error("implementAsync() must be called with a function");return async function(...i){const t=e._def.input?await lr(e._def.input,i):i,o=await Reflect.apply(r,this,t);return e._def.output?await lr(e._def.output,o):o}},e._zod.parse=(r,i)=>typeof r.value!="function"?(r.issues.push({code:"invalid_type",expected:"function",input:r.value,inst:e}),r):(e._def.output&&e._def.output._zod.def.type==="promise"?r.value=e.implementAsync(r.value):r.value=e.implement(r.value),r),e.input=(...r)=>{const i=e.constructor;return Array.isArray(r[0])?new i({type:"function",input:new Er({type:"tuple",items:r[0],rest:r[1]}),output:e._def.output}):new i({type:"function",input:r[0],output:e._def.output})},e.output=r=>{const i=e.constructor;return new i({type:"function",input:e._def.input,output:r})},e)),Zc=g("$ZodPromise",(e,n)=>{B.init(e,n),e._zod.parse=(r,i)=>Promise.resolve(r.value).then(t=>n.innerType._zod.run({value:t,issues:[]},i))}),Bc=g("$ZodLazy",(e,n)=>{B.init(e,n),R(e._zod,"innerType",()=>{const r=n;return r._cachedInner||(r._cachedInner=n.getter()),r._cachedInner}),R(e._zod,"pattern",()=>{var r,i;return(i=(r=e._zod.innerType)==null?void 0:r._zod)==null?void 0:i.pattern}),R(e._zod,"propValues",()=>{var r,i;return(i=(r=e._zod.innerType)==null?void 0:r._zod)==null?void 0:i.propValues}),R(e._zod,"optin",()=>{var r,i;return((i=(r=e._zod.innerType)==null?void 0:r._zod)==null?void 0:i.optin)??void 0}),R(e._zod,"optout",()=>{var r,i;return((i=(r=e._zod.innerType)==null?void 0:r._zod)==null?void 0:i.optout)??void 0}),e._zod.parse=(r,i)=>e._zod.innerType._zod.run(r,i)}),Mc=g("$ZodCustom",(e,n)=>{H.init(e,n),B.init(e,n),e._zod.parse=(r,i)=>r,e._zod.check=r=>{const i=r.value,t=n.fn(i);if(t instanceof Promise)return t.then(o=>Fc(o,r,i,e));Fc(t,r,i,e)}});function Fc(e,n,r,i){if(!e){const t={code:"custom",input:r,inst:i,path:[...i._zod.def.path??[]],continue:!i._zod.def.abort};i._zod.def.params&&(t.params=i._zod.def.params),n.issues.push(Le(t))}}const u$=()=>{const e={string:{unit:"حرف",verb:"أن يحوي"},file:{unit:"بايت",verb:"أن يحوي"},array:{unit:"عنصر",verb:"أن يحوي"},set:{unit:"عنصر",verb:"أن يحوي"}};function n(t){return e[t]??null}const r={regex:"مدخل",email:"بريد إلكتروني",url:"رابط",emoji:"إيموجي",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"تاريخ ووقت بمعيار ISO",date:"تاريخ بمعيار ISO",time:"وقت بمعيار ISO",duration:"مدة بمعيار ISO",ipv4:"عنوان IPv4",ipv6:"عنوان IPv6",cidrv4:"مدى عناوين بصيغة IPv4",cidrv6:"مدى عناوين بصيغة IPv6",base64:"نَص بترميز base64-encoded",base64url:"نَص بترميز base64url-encoded",json_string:"نَص على هيئة JSON",e164:"رقم هاتف بمعيار E.164",jwt:"JWT",template_literal:"مدخل"},i={nan:"NaN"};return t=>{switch(t.code){case"invalid_type":{const o=i[t.expected]??t.expected,a=V(t.input),c=i[a]??a;return/^[A-Z]/.test(t.expected)?`مدخلات غير مقبولة: يفترض إدخال instanceof ${t.expected}، ولكن تم إدخال ${c}`:`مدخلات غير مقبولة: يفترض إدخال ${o}، ولكن تم إدخال ${c}`}case"invalid_value":return t.values.length===1?`مدخلات غير مقبولة: يفترض إدخال ${A(t.values[0])}`:`اختيار غير مقبول: يتوقع انتقاء أحد هذه الخيارات: ${y(t.values,"|")}`;case"too_big":{const o=t.inclusive?"<=":"<",a=n(t.origin);return a?` أكبر من اللازم: يفترض أن تكون ${t.origin??"القيمة"} ${o} ${t.maximum.toString()} ${a.unit??"عنصر"}`:`أكبر من اللازم: يفترض أن تكون ${t.origin??"القيمة"} ${o} ${t.maximum.toString()}`}case"too_small":{const o=t.inclusive?">=":">",a=n(t.origin);return a?`أصغر من اللازم: يفترض لـ ${t.origin} أن يكون ${o} ${t.minimum.toString()} ${a.unit}`:`أصغر من اللازم: يفترض لـ ${t.origin} أن يكون ${o} ${t.minimum.toString()}`}case"invalid_format":{const o=t;return o.format==="starts_with"?`نَص غير مقبول: يجب أن يبدأ بـ "${t.prefix}"`:o.format==="ends_with"?`نَص غير مقبول: يجب أن ينتهي بـ "${o.suffix}"`:o.format==="includes"?`نَص غير مقبول: يجب أن يتضمَّن "${o.includes}"`:o.format==="regex"?`نَص غير مقبول: يجب أن يطابق النمط ${o.pattern}`:`${r[o.format]??t.format} غير مقبول`}case"not_multiple_of":return`رقم غير مقبول: يجب أن يكون من مضاعفات ${t.divisor}`;case"unrecognized_keys":return`معرف${t.keys.length>1?"ات":""} غريب${t.keys.length>1?"ة":""}: ${y(t.keys,"، ")}`;case"invalid_key":return`معرف غير مقبول في ${t.origin}`;case"invalid_union":return"مدخل غير مقبول";case"invalid_element":return`مدخل غير مقبول في ${t.origin}`;default:return"مدخل غير مقبول"}}};function d$(){return{localeError:u$()}}const m$=()=>{const e={string:{unit:"simvol",verb:"olmalıdır"},file:{unit:"bayt",verb:"olmalıdır"},array:{unit:"element",verb:"olmalıdır"},set:{unit:"element",verb:"olmalıdır"}};function n(t){return e[t]??null}const r={regex:"input",email:"email address",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO datetime",date:"ISO date",time:"ISO time",duration:"ISO duration",ipv4:"IPv4 address",ipv6:"IPv6 address",cidrv4:"IPv4 range",cidrv6:"IPv6 range",base64:"base64-encoded string",base64url:"base64url-encoded string",json_string:"JSON string",e164:"E.164 number",jwt:"JWT",template_literal:"input"},i={nan:"NaN"};return t=>{switch(t.code){case"invalid_type":{const o=i[t.expected]??t.expected,a=V(t.input),c=i[a]??a;return/^[A-Z]/.test(t.expected)?`Yanlış dəyər: gözlənilən instanceof ${t.expected}, daxil olan ${c}`:`Yanlış dəyər: gözlənilən ${o}, daxil olan ${c}`}case"invalid_value":return t.values.length===1?`Yanlış dəyər: gözlənilən ${A(t.values[0])}`:`Yanlış seçim: aşağıdakılardan biri olmalıdır: ${y(t.values,"|")}`;case"too_big":{const o=t.inclusive?"<=":"<",a=n(t.origin);return a?`Çox böyük: gözlənilən ${t.origin??"dəyər"} ${o}${t.maximum.toString()} ${a.unit??"element"}`:`Çox böyük: gözlənilən ${t.origin??"dəyər"} ${o}${t.maximum.toString()}`}case"too_small":{const o=t.inclusive?">=":">",a=n(t.origin);return a?`Çox kiçik: gözlənilən ${t.origin} ${o}${t.minimum.toString()} ${a.unit}`:`Çox kiçik: gözlənilən ${t.origin} ${o}${t.minimum.toString()}`}case"invalid_format":{const o=t;return o.format==="starts_with"?`Yanlış mətn: "${o.prefix}" ilə başlamalıdır`:o.format==="ends_with"?`Yanlış mətn: "${o.suffix}" ilə bitməlidir`:o.format==="includes"?`Yanlış mətn: "${o.includes}" daxil olmalıdır`:o.format==="regex"?`Yanlış mətn: ${o.pattern} şablonuna uyğun olmalıdır`:`Yanlış ${r[o.format]??t.format}`}case"not_multiple_of":return`Yanlış ədəd: ${t.divisor} ilə bölünə bilən olmalıdır`;case"unrecognized_keys":return`Tanınmayan açar${t.keys.length>1?"lar":""}: ${y(t.keys,", ")}`;case"invalid_key":return`${t.origin} daxilində yanlış açar`;case"invalid_union":return"Yanlış dəyər";case"invalid_element":return`${t.origin} daxilində yanlış dəyər`;default:return"Yanlış dəyər"}}};function f$(){return{localeError:m$()}}function Lc(e,n,r,i){const t=Math.abs(e),o=t%10,a=t%100;return a>=11&&a<=19?i:o===1?n:o>=2&&o<=4?r:i}const p$=()=>{const e={string:{unit:{one:"сімвал",few:"сімвалы",many:"сімвалаў"},verb:"мець"},array:{unit:{one:"элемент",few:"элементы",many:"элементаў"},verb:"мець"},set:{unit:{one:"элемент",few:"элементы",many:"элементаў"},verb:"мець"},file:{unit:{one:"байт",few:"байты",many:"байтаў"},verb:"мець"}};function n(t){return e[t]??null}const r={regex:"увод",email:"email адрас",url:"URL",emoji:"эмодзі",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO дата і час",date:"ISO дата",time:"ISO час",duration:"ISO працягласць",ipv4:"IPv4 адрас",ipv6:"IPv6 адрас",cidrv4:"IPv4 дыяпазон",cidrv6:"IPv6 дыяпазон",base64:"радок у фармаце base64",base64url:"радок у фармаце base64url",json_string:"JSON радок",e164:"нумар E.164",jwt:"JWT",template_literal:"увод"},i={nan:"NaN",number:"лік",array:"масіў"};return t=>{switch(t.code){case"invalid_type":{const o=i[t.expected]??t.expected,a=V(t.input),c=i[a]??a;return/^[A-Z]/.test(t.expected)?`Няправільны ўвод: чакаўся instanceof ${t.expected}, атрымана ${c}`:`Няправільны ўвод: чакаўся ${o}, атрымана ${c}`}case"invalid_value":return t.values.length===1?`Няправільны ўвод: чакалася ${A(t.values[0])}`:`Няправільны варыянт: чакаўся адзін з ${y(t.values,"|")}`;case"too_big":{const o=t.inclusive?"<=":"<",a=n(t.origin);if(a){const c=Number(t.maximum),u=Lc(c,a.unit.one,a.unit.few,a.unit.many);return`Занадта вялікі: чакалася, што ${t.origin??"значэнне"} павінна ${a.verb} ${o}${t.maximum.toString()} ${u}`}return`Занадта вялікі: чакалася, што ${t.origin??"значэнне"} павінна быць ${o}${t.maximum.toString()}`}case"too_small":{const o=t.inclusive?">=":">",a=n(t.origin);if(a){const c=Number(t.minimum),u=Lc(c,a.unit.one,a.unit.few,a.unit.many);return`Занадта малы: чакалася, што ${t.origin} павінна ${a.verb} ${o}${t.minimum.toString()} ${u}`}return`Занадта малы: чакалася, што ${t.origin} павінна быць ${o}${t.minimum.toString()}`}case"invalid_format":{const o=t;return o.format==="starts_with"?`Няправільны радок: павінен пачынацца з "${o.prefix}"`:o.format==="ends_with"?`Няправільны радок: павінен заканчвацца на "${o.suffix}"`:o.format==="includes"?`Няправільны радок: павінен змяшчаць "${o.includes}"`:o.format==="regex"?`Няправільны радок: павінен адпавядаць шаблону ${o.pattern}`:`Няправільны ${r[o.format]??t.format}`}case"not_multiple_of":return`Няправільны лік: павінен быць кратным ${t.divisor}`;case"unrecognized_keys":return`Нераспазнаны ${t.keys.length>1?"ключы":"ключ"}: ${y(t.keys,", ")}`;case"invalid_key":return`Няправільны ключ у ${t.origin}`;case"invalid_union":return"Няправільны ўвод";case"invalid_element":return`Няправільнае значэнне ў ${t.origin}`;default:return"Няправільны ўвод"}}};function g$(){return{localeError:p$()}}const v$=()=>{const e={string:{unit:"символа",verb:"да съдържа"},file:{unit:"байта",verb:"да съдържа"},array:{unit:"елемента",verb:"да съдържа"},set:{unit:"елемента",verb:"да съдържа"}};function n(t){return e[t]??null}const r={regex:"вход",email:"имейл адрес",url:"URL",emoji:"емоджи",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO време",date:"ISO дата",time:"ISO време",duration:"ISO продължителност",ipv4:"IPv4 адрес",ipv6:"IPv6 адрес",cidrv4:"IPv4 диапазон",cidrv6:"IPv6 диапазон",base64:"base64-кодиран низ",base64url:"base64url-кодиран низ",json_string:"JSON низ",e164:"E.164 номер",jwt:"JWT",template_literal:"вход"},i={nan:"NaN",number:"число",array:"масив"};return t=>{switch(t.code){case"invalid_type":{const o=i[t.expected]??t.expected,a=V(t.input),c=i[a]??a;return/^[A-Z]/.test(t.expected)?`Невалиден вход: очакван instanceof ${t.expected}, получен ${c}`:`Невалиден вход: очакван ${o}, получен ${c}`}case"invalid_value":return t.values.length===1?`Невалиден вход: очакван ${A(t.values[0])}`:`Невалидна опция: очаквано едно от ${y(t.values,"|")}`;case"too_big":{const o=t.inclusive?"<=":"<",a=n(t.origin);return a?`Твърде голямо: очаква се ${t.origin??"стойност"} да съдържа ${o}${t.maximum.toString()} ${a.unit??"елемента"}`:`Твърде голямо: очаква се ${t.origin??"стойност"} да бъде ${o}${t.maximum.toString()}`}case"too_small":{const o=t.inclusive?">=":">",a=n(t.origin);return a?`Твърде малко: очаква се ${t.origin} да съдържа ${o}${t.minimum.toString()} ${a.unit}`:`Твърде малко: очаква се ${t.origin} да бъде ${o}${t.minimum.toString()}`}case"invalid_format":{const o=t;if(o.format==="starts_with")return`Невалиден низ: трябва да започва с "${o.prefix}"`;if(o.format==="ends_with")return`Невалиден низ: трябва да завършва с "${o.suffix}"`;if(o.format==="includes")return`Невалиден низ: трябва да включва "${o.includes}"`;if(o.format==="regex")return`Невалиден низ: трябва да съвпада с ${o.pattern}`;let a="Невалиден";return o.format==="emoji"&&(a="Невалидно"),o.format==="datetime"&&(a="Невалидно"),o.format==="date"&&(a="Невалидна"),o.format==="time"&&(a="Невалидно"),o.format==="duration"&&(a="Невалидна"),`${a} ${r[o.format]??t.format}`}case"not_multiple_of":return`Невалидно число: трябва да бъде кратно на ${t.divisor}`;case"unrecognized_keys":return`Неразпознат${t.keys.length>1?"и":""} ключ${t.keys.length>1?"ове":""}: ${y(t.keys,", ")}`;case"invalid_key":return`Невалиден ключ в ${t.origin}`;case"invalid_union":return"Невалиден вход";case"invalid_element":return`Невалидна стойност в ${t.origin}`;default:return"Невалиден вход"}}};function h$(){return{localeError:v$()}}const $$=()=>{const e={string:{unit:"caràcters",verb:"contenir"},file:{unit:"bytes",verb:"contenir"},array:{unit:"elements",verb:"contenir"},set:{unit:"elements",verb:"contenir"}};function n(t){return e[t]??null}const r={regex:"entrada",email:"adreça electrònica",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"data i hora ISO",date:"data ISO",time:"hora ISO",duration:"durada ISO",ipv4:"adreça IPv4",ipv6:"adreça IPv6",cidrv4:"rang IPv4",cidrv6:"rang IPv6",base64:"cadena codificada en base64",base64url:"cadena codificada en base64url",json_string:"cadena JSON",e164:"número E.164",jwt:"JWT",template_literal:"entrada"},i={nan:"NaN"};return t=>{switch(t.code){case"invalid_type":{const o=i[t.expected]??t.expected,a=V(t.input),c=i[a]??a;return/^[A-Z]/.test(t.expected)?`Tipus invàlid: s'esperava instanceof ${t.expected}, s'ha rebut ${c}`:`Tipus invàlid: s'esperava ${o}, s'ha rebut ${c}`}case"invalid_value":return t.values.length===1?`Valor invàlid: s'esperava ${A(t.values[0])}`:`Opció invàlida: s'esperava una de ${y(t.values," o ")}`;case"too_big":{const o=t.inclusive?"com a màxim":"menys de",a=n(t.origin);return a?`Massa gran: s'esperava que ${t.origin??"el valor"} contingués ${o} ${t.maximum.toString()} ${a.unit??"elements"}`:`Massa gran: s'esperava que ${t.origin??"el valor"} fos ${o} ${t.maximum.toString()}`}case"too_small":{const o=t.inclusive?"com a mínim":"més de",a=n(t.origin);return a?`Massa petit: s'esperava que ${t.origin} contingués ${o} ${t.minimum.toString()} ${a.unit}`:`Massa petit: s'esperava que ${t.origin} fos ${o} ${t.minimum.toString()}`}case"invalid_format":{const o=t;return o.format==="starts_with"?`Format invàlid: ha de començar amb "${o.prefix}"`:o.format==="ends_with"?`Format invàlid: ha d'acabar amb "${o.suffix}"`:o.format==="includes"?`Format invàlid: ha d'incloure "${o.includes}"`:o.format==="regex"?`Format invàlid: ha de coincidir amb el patró ${o.pattern}`:`Format invàlid per a ${r[o.format]??t.format}`}case"not_multiple_of":return`Número invàlid: ha de ser múltiple de ${t.divisor}`;case"unrecognized_keys":return`Clau${t.keys.length>1?"s":""} no reconeguda${t.keys.length>1?"s":""}: ${y(t.keys,", ")}`;case"invalid_key":return`Clau invàlida a ${t.origin}`;case"invalid_union":return"Entrada invàlida";case"invalid_element":return`Element invàlid a ${t.origin}`;default:return"Entrada invàlida"}}};function b$(){return{localeError:$$()}}const _$=()=>{const e={string:{unit:"znaků",verb:"mít"},file:{unit:"bajtů",verb:"mít"},array:{unit:"prvků",verb:"mít"},set:{unit:"prvků",verb:"mít"}};function n(t){return e[t]??null}const r={regex:"regulární výraz",email:"e-mailová adresa",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"datum a čas ve formátu ISO",date:"datum ve formátu ISO",time:"čas ve formátu ISO",duration:"doba trvání ISO",ipv4:"IPv4 adresa",ipv6:"IPv6 adresa",cidrv4:"rozsah IPv4",cidrv6:"rozsah IPv6",base64:"řetězec zakódovaný ve formátu base64",base64url:"řetězec zakódovaný ve formátu base64url",json_string:"řetězec ve formátu JSON",e164:"číslo E.164",jwt:"JWT",template_literal:"vstup"},i={nan:"NaN",number:"číslo",string:"řetězec",function:"funkce",array:"pole"};return t=>{switch(t.code){case"invalid_type":{const o=i[t.expected]??t.expected,a=V(t.input),c=i[a]??a;return/^[A-Z]/.test(t.expected)?`Neplatný vstup: očekáváno instanceof ${t.expected}, obdrženo ${c}`:`Neplatný vstup: očekáváno ${o}, obdrženo ${c}`}case"invalid_value":return t.values.length===1?`Neplatný vstup: očekáváno ${A(t.values[0])}`:`Neplatná možnost: očekávána jedna z hodnot ${y(t.values,"|")}`;case"too_big":{const o=t.inclusive?"<=":"<",a=n(t.origin);return a?`Hodnota je příliš velká: ${t.origin??"hodnota"} musí mít ${o}${t.maximum.toString()} ${a.unit??"prvků"}`:`Hodnota je příliš velká: ${t.origin??"hodnota"} musí být ${o}${t.maximum.toString()}`}case"too_small":{const o=t.inclusive?">=":">",a=n(t.origin);return a?`Hodnota je příliš malá: ${t.origin??"hodnota"} musí mít ${o}${t.minimum.toString()} ${a.unit??"prvků"}`:`Hodnota je příliš malá: ${t.origin??"hodnota"} musí být ${o}${t.minimum.toString()}`}case"invalid_format":{const o=t;return o.format==="starts_with"?`Neplatný řetězec: musí začínat na "${o.prefix}"`:o.format==="ends_with"?`Neplatný řetězec: musí končit na "${o.suffix}"`:o.format==="includes"?`Neplatný řetězec: musí obsahovat "${o.includes}"`:o.format==="regex"?`Neplatný řetězec: musí odpovídat vzoru ${o.pattern}`:`Neplatný formát ${r[o.format]??t.format}`}case"not_multiple_of":return`Neplatné číslo: musí být násobkem ${t.divisor}`;case"unrecognized_keys":return`Neznámé klíče: ${y(t.keys,", ")}`;case"invalid_key":return`Neplatný klíč v ${t.origin}`;case"invalid_union":return"Neplatný vstup";case"invalid_element":return`Neplatná hodnota v ${t.origin}`;default:return"Neplatný vstup"}}};function y$(){return{localeError:_$()}}const k$=()=>{const e={string:{unit:"tegn",verb:"havde"},file:{unit:"bytes",verb:"havde"},array:{unit:"elementer",verb:"indeholdt"},set:{unit:"elementer",verb:"indeholdt"}};function n(t){return e[t]??null}const r={regex:"input",email:"e-mailadresse",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO dato- og klokkeslæt",date:"ISO-dato",time:"ISO-klokkeslæt",duration:"ISO-varighed",ipv4:"IPv4-område",ipv6:"IPv6-område",cidrv4:"IPv4-spektrum",cidrv6:"IPv6-spektrum",base64:"base64-kodet streng",base64url:"base64url-kodet streng",json_string:"JSON-streng",e164:"E.164-nummer",jwt:"JWT",template_literal:"input"},i={nan:"NaN",string:"streng",number:"tal",boolean:"boolean",array:"liste",object:"objekt",set:"sæt",file:"fil"};return t=>{switch(t.code){case"invalid_type":{const o=i[t.expected]??t.expected,a=V(t.input),c=i[a]??a;return/^[A-Z]/.test(t.expected)?`Ugyldigt input: forventede instanceof ${t.expected}, fik ${c}`:`Ugyldigt input: forventede ${o}, fik ${c}`}case"invalid_value":return t.values.length===1?`Ugyldig værdi: forventede ${A(t.values[0])}`:`Ugyldigt valg: forventede en af følgende ${y(t.values,"|")}`;case"too_big":{const o=t.inclusive?"<=":"<",a=n(t.origin),c=i[t.origin]??t.origin;return a?`For stor: forventede ${c??"value"} ${a.verb} ${o} ${t.maximum.toString()} ${a.unit??"elementer"}`:`For stor: forventede ${c??"value"} havde ${o} ${t.maximum.toString()}`}case"too_small":{const o=t.inclusive?">=":">",a=n(t.origin),c=i[t.origin]??t.origin;return a?`For lille: forventede ${c} ${a.verb} ${o} ${t.minimum.toString()} ${a.unit}`:`For lille: forventede ${c} havde ${o} ${t.minimum.toString()}`}case"invalid_format":{const o=t;return o.format==="starts_with"?`Ugyldig streng: skal starte med "${o.prefix}"`:o.format==="ends_with"?`Ugyldig streng: skal ende med "${o.suffix}"`:o.format==="includes"?`Ugyldig streng: skal indeholde "${o.includes}"`:o.format==="regex"?`Ugyldig streng: skal matche mønsteret ${o.pattern}`:`Ugyldig ${r[o.format]??t.format}`}case"not_multiple_of":return`Ugyldigt tal: skal være deleligt med ${t.divisor}`;case"unrecognized_keys":return`${t.keys.length>1?"Ukendte nøgler":"Ukendt nøgle"}: ${y(t.keys,", ")}`;case"invalid_key":return`Ugyldig nøgle i ${t.origin}`;case"invalid_union":return"Ugyldigt input: matcher ingen af de tilladte typer";case"invalid_element":return`Ugyldig værdi i ${t.origin}`;default:return"Ugyldigt input"}}};function S$(){return{localeError:k$()}}const w$=()=>{const e={string:{unit:"Zeichen",verb:"zu haben"},file:{unit:"Bytes",verb:"zu haben"},array:{unit:"Elemente",verb:"zu haben"},set:{unit:"Elemente",verb:"zu haben"}};function n(t){return e[t]??null}const r={regex:"Eingabe",email:"E-Mail-Adresse",url:"URL",emoji:"Emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO-Datum und -Uhrzeit",date:"ISO-Datum",time:"ISO-Uhrzeit",duration:"ISO-Dauer",ipv4:"IPv4-Adresse",ipv6:"IPv6-Adresse",cidrv4:"IPv4-Bereich",cidrv6:"IPv6-Bereich",base64:"Base64-codierter String",base64url:"Base64-URL-codierter String",json_string:"JSON-String",e164:"E.164-Nummer",jwt:"JWT",template_literal:"Eingabe"},i={nan:"NaN",number:"Zahl",array:"Array"};return t=>{switch(t.code){case"invalid_type":{const o=i[t.expected]??t.expected,a=V(t.input),c=i[a]??a;return/^[A-Z]/.test(t.expected)?`Ungültige Eingabe: erwartet instanceof ${t.expected}, erhalten ${c}`:`Ungültige Eingabe: erwartet ${o}, erhalten ${c}`}case"invalid_value":return t.values.length===1?`Ungültige Eingabe: erwartet ${A(t.values[0])}`:`Ungültige Option: erwartet eine von ${y(t.values,"|")}`;case"too_big":{const o=t.inclusive?"<=":"<",a=n(t.origin);return a?`Zu groß: erwartet, dass ${t.origin??"Wert"} ${o}${t.maximum.toString()} ${a.unit??"Elemente"} hat`:`Zu groß: erwartet, dass ${t.origin??"Wert"} ${o}${t.maximum.toString()} ist`}case"too_small":{const o=t.inclusive?">=":">",a=n(t.origin);return a?`Zu klein: erwartet, dass ${t.origin} ${o}${t.minimum.toString()} ${a.unit} hat`:`Zu klein: erwartet, dass ${t.origin} ${o}${t.minimum.toString()} ist`}case"invalid_format":{const o=t;return o.format==="starts_with"?`Ungültiger String: muss mit "${o.prefix}" beginnen`:o.format==="ends_with"?`Ungültiger String: muss mit "${o.suffix}" enden`:o.format==="includes"?`Ungültiger String: muss "${o.includes}" enthalten`:o.format==="regex"?`Ungültiger String: muss dem Muster ${o.pattern} entsprechen`:`Ungültig: ${r[o.format]??t.format}`}case"not_multiple_of":return`Ungültige Zahl: muss ein Vielfaches von ${t.divisor} sein`;case"unrecognized_keys":return`${t.keys.length>1?"Unbekannte Schlüssel":"Unbekannter Schlüssel"}: ${y(t.keys,", ")}`;case"invalid_key":return`Ungültiger Schlüssel in ${t.origin}`;case"invalid_union":return"Ungültige Eingabe";case"invalid_element":return`Ungültiger Wert in ${t.origin}`;default:return"Ungültige Eingabe"}}};function I$(){return{localeError:w$()}}const z$=()=>{const e={string:{unit:"χαρακτήρες",verb:"να έχει"},file:{unit:"bytes",verb:"να έχει"},array:{unit:"στοιχεία",verb:"να έχει"},set:{unit:"στοιχεία",verb:"να έχει"},map:{unit:"καταχωρήσεις",verb:"να έχει"}};function n(t){return e[t]??null}const r={regex:"είσοδος",email:"διεύθυνση email",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO ημερομηνία και ώρα",date:"ISO ημερομηνία",time:"ISO ώρα",duration:"ISO διάρκεια",ipv4:"διεύθυνση IPv4",ipv6:"διεύθυνση IPv6",mac:"διεύθυνση MAC",cidrv4:"εύρος IPv4",cidrv6:"εύρος IPv6",base64:"συμβολοσειρά κωδικοποιημένη σε base64",base64url:"συμβολοσειρά κωδικοποιημένη σε base64url",json_string:"συμβολοσειρά JSON",e164:"αριθμός E.164",jwt:"JWT",template_literal:"είσοδος"},i={nan:"NaN"};return t=>{switch(t.code){case"invalid_type":{const o=i[t.expected]??t.expected,a=V(t.input),c=i[a]??a;return typeof t.expected=="string"&&/^[A-Z]/.test(t.expected)?`Μη έγκυρη είσοδος: αναμενόταν instanceof ${t.expected}, λήφθηκε ${c}`:`Μη έγκυρη είσοδος: αναμενόταν ${o}, λήφθηκε ${c}`}case"invalid_value":return t.values.length===1?`Μη έγκυρη είσοδος: αναμενόταν ${A(t.values[0])}`:`Μη έγκυρη επιλογή: αναμενόταν ένα από ${y(t.values,"|")}`;case"too_big":{const o=t.inclusive?"<=":"<",a=n(t.origin);return a?`Πολύ μεγάλο: αναμενόταν ${t.origin??"τιμή"} να έχει ${o}${t.maximum.toString()} ${a.unit??"στοιχεία"}`:`Πολύ μεγάλο: αναμενόταν ${t.origin??"τιμή"} να είναι ${o}${t.maximum.toString()}`}case"too_small":{const o=t.inclusive?">=":">",a=n(t.origin);return a?`Πολύ μικρό: αναμενόταν ${t.origin} να έχει ${o}${t.minimum.toString()} ${a.unit}`:`Πολύ μικρό: αναμενόταν ${t.origin} να είναι ${o}${t.minimum.toString()}`}case"invalid_format":{const o=t;return o.format==="starts_with"?`Μη έγκυρη συμβολοσειρά: πρέπει να ξεκινά με "${o.prefix}"`:o.format==="ends_with"?`Μη έγκυρη συμβολοσειρά: πρέπει να τελειώνει με "${o.suffix}"`:o.format==="includes"?`Μη έγκυρη συμβολοσειρά: πρέπει να περιέχει "${o.includes}"`:o.format==="regex"?`Μη έγκυρη συμβολοσειρά: πρέπει να ταιριάζει με το μοτίβο ${o.pattern}`:`Μη έγκυρο: ${r[o.format]??t.format}`}case"not_multiple_of":return`Μη έγκυρος αριθμός: πρέπει να είναι πολλαπλάσιο του ${t.divisor}`;case"unrecognized_keys":return`Άγνωστ${t.keys.length>1?"α":"ο"} κλειδ${t.keys.length>1?"ιά":"ί"}: ${y(t.keys,", ")}`;case"invalid_key":return`Μη έγκυρο κλειδί στο ${t.origin}`;case"invalid_union":return"Μη έγκυρη είσοδος";case"invalid_element":return`Μη έγκυρη τιμή στο ${t.origin}`;default:return"Μη έγκυρη είσοδος"}}};function E$(){return{localeError:z$()}}const N$=()=>{const e={string:{unit:"characters",verb:"to have"},file:{unit:"bytes",verb:"to have"},array:{unit:"items",verb:"to have"},set:{unit:"items",verb:"to have"},map:{unit:"entries",verb:"to have"}};function n(t){return e[t]??null}const r={regex:"input",email:"email address",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO datetime",date:"ISO date",time:"ISO time",duration:"ISO duration",ipv4:"IPv4 address",ipv6:"IPv6 address",mac:"MAC address",cidrv4:"IPv4 range",cidrv6:"IPv6 range",base64:"base64-encoded string",base64url:"base64url-encoded string",json_string:"JSON string",e164:"E.164 number",jwt:"JWT",template_literal:"input"},i={nan:"NaN"};return t=>{switch(t.code){case"invalid_type":{const o=i[t.expected]??t.expected,a=V(t.input),c=i[a]??a;return`Invalid input: expected ${o}, received ${c}`}case"invalid_value":return t.values.length===1?`Invalid input: expected ${A(t.values[0])}`:`Invalid option: expected one of ${y(t.values,"|")}`;case"too_big":{const o=t.inclusive?"<=":"<",a=n(t.origin);return a?`Too big: expected ${t.origin??"value"} to have ${o}${t.maximum.toString()} ${a.unit??"elements"}`:`Too big: expected ${t.origin??"value"} to be ${o}${t.maximum.toString()}`}case"too_small":{const o=t.inclusive?">=":">",a=n(t.origin);return a?`Too small: expected ${t.origin} to have ${o}${t.minimum.toString()} ${a.unit}`:`Too small: expected ${t.origin} to be ${o}${t.minimum.toString()}`}case"invalid_format":{const o=t;return o.format==="starts_with"?`Invalid string: must start with "${o.prefix}"`:o.format==="ends_with"?`Invalid string: must end with "${o.suffix}"`:o.format==="includes"?`Invalid string: must include "${o.includes}"`:o.format==="regex"?`Invalid string: must match pattern ${o.pattern}`:`Invalid ${r[o.format]??t.format}`}case"not_multiple_of":return`Invalid number: must be a multiple of ${t.divisor}`;case"unrecognized_keys":return`Unrecognized key${t.keys.length>1?"s":""}: ${y(t.keys,", ")}`;case"invalid_key":return`Invalid key in ${t.origin}`;case"invalid_union":return t.options&&Array.isArray(t.options)&&t.options.length>0?`Invalid discriminator value. Expected ${t.options.map(a=>`'${a}'`).join(" | ")}`:"Invalid input";case"invalid_element":return`Invalid value in ${t.origin}`;default:return"Invalid input"}}};function Rc(){return{localeError:N$()}}const D$=()=>{const e={string:{unit:"karaktrojn",verb:"havi"},file:{unit:"bajtojn",verb:"havi"},array:{unit:"elementojn",verb:"havi"},set:{unit:"elementojn",verb:"havi"}};function n(t){return e[t]??null}const r={regex:"enigo",email:"retadreso",url:"URL",emoji:"emoĝio",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO-datotempo",date:"ISO-dato",time:"ISO-tempo",duration:"ISO-daŭro",ipv4:"IPv4-adreso",ipv6:"IPv6-adreso",cidrv4:"IPv4-rango",cidrv6:"IPv6-rango",base64:"64-ume kodita karaktraro",base64url:"URL-64-ume kodita karaktraro",json_string:"JSON-karaktraro",e164:"E.164-nombro",jwt:"JWT",template_literal:"enigo"},i={nan:"NaN",number:"nombro",array:"tabelo",null:"senvalora"};return t=>{switch(t.code){case"invalid_type":{const o=i[t.expected]??t.expected,a=V(t.input),c=i[a]??a;return/^[A-Z]/.test(t.expected)?`Nevalida enigo: atendiĝis instanceof ${t.expected}, riceviĝis ${c}`:`Nevalida enigo: atendiĝis ${o}, riceviĝis ${c}`}case"invalid_value":return t.values.length===1?`Nevalida enigo: atendiĝis ${A(t.values[0])}`:`Nevalida opcio: atendiĝis unu el ${y(t.values,"|")}`;case"too_big":{const o=t.inclusive?"<=":"<",a=n(t.origin);return a?`Tro granda: atendiĝis ke ${t.origin??"valoro"} havu ${o}${t.maximum.toString()} ${a.unit??"elementojn"}`:`Tro granda: atendiĝis ke ${t.origin??"valoro"} havu ${o}${t.maximum.toString()}`}case"too_small":{const o=t.inclusive?">=":">",a=n(t.origin);return a?`Tro malgranda: atendiĝis ke ${t.origin} havu ${o}${t.minimum.toString()} ${a.unit}`:`Tro malgranda: atendiĝis ke ${t.origin} estu ${o}${t.minimum.toString()}`}case"invalid_format":{const o=t;return o.format==="starts_with"?`Nevalida karaktraro: devas komenciĝi per "${o.prefix}"`:o.format==="ends_with"?`Nevalida karaktraro: devas finiĝi per "${o.suffix}"`:o.format==="includes"?`Nevalida karaktraro: devas inkluzivi "${o.includes}"`:o.format==="regex"?`Nevalida karaktraro: devas kongrui kun la modelo ${o.pattern}`:`Nevalida ${r[o.format]??t.format}`}case"not_multiple_of":return`Nevalida nombro: devas esti oblo de ${t.divisor}`;case"unrecognized_keys":return`Nekonata${t.keys.length>1?"j":""} ŝlosilo${t.keys.length>1?"j":""}: ${y(t.keys,", ")}`;case"invalid_key":return`Nevalida ŝlosilo en ${t.origin}`;case"invalid_union":return"Nevalida enigo";case"invalid_element":return`Nevalida valoro en ${t.origin}`;default:return"Nevalida enigo"}}};function x$(){return{localeError:D$()}}const j$=()=>{const e={string:{unit:"caracteres",verb:"tener"},file:{unit:"bytes",verb:"tener"},array:{unit:"elementos",verb:"tener"},set:{unit:"elementos",verb:"tener"}};function n(t){return e[t]??null}const r={regex:"entrada",email:"dirección de correo electrónico",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"fecha y hora ISO",date:"fecha ISO",time:"hora ISO",duration:"duración ISO",ipv4:"dirección IPv4",ipv6:"dirección IPv6",cidrv4:"rango IPv4",cidrv6:"rango IPv6",base64:"cadena codificada en base64",base64url:"URL codificada en base64",json_string:"cadena JSON",e164:"número E.164",jwt:"JWT",template_literal:"entrada"},i={nan:"NaN",string:"texto",number:"número",boolean:"booleano",array:"arreglo",object:"objeto",set:"conjunto",file:"archivo",date:"fecha",bigint:"número grande",symbol:"símbolo",undefined:"indefinido",null:"nulo",function:"función",map:"mapa",record:"registro",tuple:"tupla",enum:"enumeración",union:"unión",literal:"literal",promise:"promesa",void:"vacío",never:"nunca",unknown:"desconocido",any:"cualquiera"};return t=>{switch(t.code){case"invalid_type":{const o=i[t.expected]??t.expected,a=V(t.input),c=i[a]??a;return/^[A-Z]/.test(t.expected)?`Entrada inválida: se esperaba instanceof ${t.expected}, recibido ${c}`:`Entrada inválida: se esperaba ${o}, recibido ${c}`}case"invalid_value":return t.values.length===1?`Entrada inválida: se esperaba ${A(t.values[0])}`:`Opción inválida: se esperaba una de ${y(t.values,"|")}`;case"too_big":{const o=t.inclusive?"<=":"<",a=n(t.origin),c=i[t.origin]??t.origin;return a?`Demasiado grande: se esperaba que ${c??"valor"} tuviera ${o}${t.maximum.toString()} ${a.unit??"elementos"}`:`Demasiado grande: se esperaba que ${c??"valor"} fuera ${o}${t.maximum.toString()}`}case"too_small":{const o=t.inclusive?">=":">",a=n(t.origin),c=i[t.origin]??t.origin;return a?`Demasiado pequeño: se esperaba que ${c} tuviera ${o}${t.minimum.toString()} ${a.unit}`:`Demasiado pequeño: se esperaba que ${c} fuera ${o}${t.minimum.toString()}`}case"invalid_format":{const o=t;return o.format==="starts_with"?`Cadena inválida: debe comenzar con "${o.prefix}"`:o.format==="ends_with"?`Cadena inválida: debe terminar en "${o.suffix}"`:o.format==="includes"?`Cadena inválida: debe incluir "${o.includes}"`:o.format==="regex"?`Cadena inválida: debe coincidir con el patrón ${o.pattern}`:`Inválido ${r[o.format]??t.format}`}case"not_multiple_of":return`Número inválido: debe ser múltiplo de ${t.divisor}`;case"unrecognized_keys":return`Llave${t.keys.length>1?"s":""} desconocida${t.keys.length>1?"s":""}: ${y(t.keys,", ")}`;case"invalid_key":return`Llave inválida en ${i[t.origin]??t.origin}`;case"invalid_union":return"Entrada inválida";case"invalid_element":return`Valor inválido en ${i[t.origin]??t.origin}`;default:return"Entrada inválida"}}};function O$(){return{localeError:j$()}}const U$=()=>{const e={string:{unit:"کاراکتر",verb:"داشته باشد"},file:{unit:"بایت",verb:"داشته باشد"},array:{unit:"آیتم",verb:"داشته باشد"},set:{unit:"آیتم",verb:"داشته باشد"}};function n(t){return e[t]??null}const r={regex:"ورودی",email:"آدرس ایمیل",url:"URL",emoji:"ایموجی",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"تاریخ و زمان ایزو",date:"تاریخ ایزو",time:"زمان ایزو",duration:"مدت زمان ایزو",ipv4:"IPv4 آدرس",ipv6:"IPv6 آدرس",cidrv4:"IPv4 دامنه",cidrv6:"IPv6 دامنه",base64:"base64-encoded رشته",base64url:"base64url-encoded رشته",json_string:"JSON رشته",e164:"E.164 عدد",jwt:"JWT",template_literal:"ورودی"},i={nan:"NaN",number:"عدد",array:"آرایه"};return t=>{switch(t.code){case"invalid_type":{const o=i[t.expected]??t.expected,a=V(t.input),c=i[a]??a;return/^[A-Z]/.test(t.expected)?`ورودی نامعتبر: می‌بایست instanceof ${t.expected} می‌بود، ${c} دریافت شد`:`ورودی نامعتبر: می‌بایست ${o} می‌بود، ${c} دریافت شد`}case"invalid_value":return t.values.length===1?`ورودی نامعتبر: می‌بایست ${A(t.values[0])} می‌بود`:`گزینه نامعتبر: می‌بایست یکی از ${y(t.values,"|")} می‌بود`;case"too_big":{const o=t.inclusive?"<=":"<",a=n(t.origin);return a?`خیلی بزرگ: ${t.origin??"مقدار"} باید ${o}${t.maximum.toString()} ${a.unit??"عنصر"} باشد`:`خیلی بزرگ: ${t.origin??"مقدار"} باید ${o}${t.maximum.toString()} باشد`}case"too_small":{const o=t.inclusive?">=":">",a=n(t.origin);return a?`خیلی کوچک: ${t.origin} باید ${o}${t.minimum.toString()} ${a.unit} باشد`:`خیلی کوچک: ${t.origin} باید ${o}${t.minimum.toString()} باشد`}case"invalid_format":{const o=t;return o.format==="starts_with"?`رشته نامعتبر: باید با "${o.prefix}" شروع شود`:o.format==="ends_with"?`رشته نامعتبر: باید با "${o.suffix}" تمام شود`:o.format==="includes"?`رشته نامعتبر: باید شامل "${o.includes}" باشد`:o.format==="regex"?`رشته نامعتبر: باید با الگوی ${o.pattern} مطابقت داشته باشد`:`${r[o.format]??t.format} نامعتبر`}case"not_multiple_of":return`عدد نامعتبر: باید مضرب ${t.divisor} باشد`;case"unrecognized_keys":return`کلید${t.keys.length>1?"های":""} ناشناس: ${y(t.keys,", ")}`;case"invalid_key":return`کلید ناشناس در ${t.origin}`;case"invalid_union":return"ورودی نامعتبر";case"invalid_element":return`مقدار نامعتبر در ${t.origin}`;default:return"ورودی نامعتبر"}}};function T$(){return{localeError:U$()}}const C$=()=>{const e={string:{unit:"merkkiä",subject:"merkkijonon"},file:{unit:"tavua",subject:"tiedoston"},array:{unit:"alkiota",subject:"listan"},set:{unit:"alkiota",subject:"joukon"},number:{unit:"",subject:"luvun"},bigint:{unit:"",subject:"suuren kokonaisluvun"},int:{unit:"",subject:"kokonaisluvun"},date:{unit:"",subject:"päivämäärän"}};function n(t){return e[t]??null}const r={regex:"säännöllinen lauseke",email:"sähköpostiosoite",url:"URL-osoite",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO-aikaleima",date:"ISO-päivämäärä",time:"ISO-aika",duration:"ISO-kesto",ipv4:"IPv4-osoite",ipv6:"IPv6-osoite",cidrv4:"IPv4-alue",cidrv6:"IPv6-alue",base64:"base64-koodattu merkkijono",base64url:"base64url-koodattu merkkijono",json_string:"JSON-merkkijono",e164:"E.164-luku",jwt:"JWT",template_literal:"templaattimerkkijono"},i={nan:"NaN"};return t=>{switch(t.code){case"invalid_type":{const o=i[t.expected]??t.expected,a=V(t.input),c=i[a]??a;return/^[A-Z]/.test(t.expected)?`Virheellinen tyyppi: odotettiin instanceof ${t.expected}, oli ${c}`:`Virheellinen tyyppi: odotettiin ${o}, oli ${c}`}case"invalid_value":return t.values.length===1?`Virheellinen syöte: täytyy olla ${A(t.values[0])}`:`Virheellinen valinta: täytyy olla yksi seuraavista: ${y(t.values,"|")}`;case"too_big":{const o=t.inclusive?"<=":"<",a=n(t.origin);return a?`Liian suuri: ${a.subject} täytyy olla ${o}${t.maximum.toString()} ${a.unit}`.trim():`Liian suuri: arvon täytyy olla ${o}${t.maximum.toString()}`}case"too_small":{const o=t.inclusive?">=":">",a=n(t.origin);return a?`Liian pieni: ${a.subject} täytyy olla ${o}${t.minimum.toString()} ${a.unit}`.trim():`Liian pieni: arvon täytyy olla ${o}${t.minimum.toString()}`}case"invalid_format":{const o=t;return o.format==="starts_with"?`Virheellinen syöte: täytyy alkaa "${o.prefix}"`:o.format==="ends_with"?`Virheellinen syöte: täytyy loppua "${o.suffix}"`:o.format==="includes"?`Virheellinen syöte: täytyy sisältää "${o.includes}"`:o.format==="regex"?`Virheellinen syöte: täytyy vastata säännöllistä lauseketta ${o.pattern}`:`Virheellinen ${r[o.format]??t.format}`}case"not_multiple_of":return`Virheellinen luku: täytyy olla luvun ${t.divisor} monikerta`;case"unrecognized_keys":return`${t.keys.length>1?"Tuntemattomat avaimet":"Tuntematon avain"}: ${y(t.keys,", ")}`;case"invalid_key":return"Virheellinen avain tietueessa";case"invalid_union":return"Virheellinen unioni";case"invalid_element":return"Virheellinen arvo joukossa";default:return"Virheellinen syöte"}}};function P$(){return{localeError:C$()}}const A$=()=>{const e={string:{unit:"caractères",verb:"avoir"},file:{unit:"octets",verb:"avoir"},array:{unit:"éléments",verb:"avoir"},set:{unit:"éléments",verb:"avoir"}};function n(t){return e[t]??null}const r={regex:"entrée",email:"adresse e-mail",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"date et heure ISO",date:"date ISO",time:"heure ISO",duration:"durée ISO",ipv4:"adresse IPv4",ipv6:"adresse IPv6",cidrv4:"plage IPv4",cidrv6:"plage IPv6",base64:"chaîne encodée en base64",base64url:"chaîne encodée en base64url",json_string:"chaîne JSON",e164:"numéro E.164",jwt:"JWT",template_literal:"entrée"},i={string:"chaîne",number:"nombre",int:"entier",boolean:"booléen",bigint:"grand entier",symbol:"symbole",undefined:"indéfini",null:"null",never:"jamais",void:"vide",date:"date",array:"tableau",object:"objet",tuple:"tuple",record:"enregistrement",map:"carte",set:"ensemble",file:"fichier",nonoptional:"non-optionnel",nan:"NaN",function:"fonction"};return t=>{switch(t.code){case"invalid_type":{const o=i[t.expected]??t.expected,a=V(t.input),c=i[a]??a;return/^[A-Z]/.test(t.expected)?`Entrée invalide : instanceof ${t.expected} attendu, ${c} reçu`:`Entrée invalide : ${o} attendu, ${c} reçu`}case"invalid_value":return t.values.length===1?`Entrée invalide : ${A(t.values[0])} attendu`:`Option invalide : une valeur parmi ${y(t.values,"|")} attendue`;case"too_big":{const o=t.inclusive?"<=":"<",a=n(t.origin);return a?`Trop grand : ${i[t.origin]??"valeur"} doit ${a.verb} ${o}${t.maximum.toString()} ${a.unit??"élément(s)"}`:`Trop grand : ${i[t.origin]??"valeur"} doit être ${o}${t.maximum.toString()}`}case"too_small":{const o=t.inclusive?">=":">",a=n(t.origin);return a?`Trop petit : ${i[t.origin]??"valeur"} doit ${a.verb} ${o}${t.minimum.toString()} ${a.unit}`:`Trop petit : ${i[t.origin]??"valeur"} doit être ${o}${t.minimum.toString()}`}case"invalid_format":{const o=t;return o.format==="starts_with"?`Chaîne invalide : doit commencer par "${o.prefix}"`:o.format==="ends_with"?`Chaîne invalide : doit se terminer par "${o.suffix}"`:o.format==="includes"?`Chaîne invalide : doit inclure "${o.includes}"`:o.format==="regex"?`Chaîne invalide : doit correspondre au modèle ${o.pattern}`:`${r[o.format]??t.format} invalide`}case"not_multiple_of":return`Nombre invalide : doit être un multiple de ${t.divisor}`;case"unrecognized_keys":return`Clé${t.keys.length>1?"s":""} non reconnue${t.keys.length>1?"s":""} : ${y(t.keys,", ")}`;case"invalid_key":return`Clé invalide dans ${t.origin}`;case"invalid_union":return"Entrée invalide";case"invalid_element":return`Valeur invalide dans ${t.origin}`;default:return"Entrée invalide"}}};function V$(){return{localeError:A$()}}const Z$=()=>{const e={string:{unit:"caractères",verb:"avoir"},file:{unit:"octets",verb:"avoir"},array:{unit:"éléments",verb:"avoir"},set:{unit:"éléments",verb:"avoir"}};function n(t){return e[t]??null}const r={regex:"entrée",email:"adresse courriel",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"date-heure ISO",date:"date ISO",time:"heure ISO",duration:"durée ISO",ipv4:"adresse IPv4",ipv6:"adresse IPv6",cidrv4:"plage IPv4",cidrv6:"plage IPv6",base64:"chaîne encodée en base64",base64url:"chaîne encodée en base64url",json_string:"chaîne JSON",e164:"numéro E.164",jwt:"JWT",template_literal:"entrée"},i={nan:"NaN"};return t=>{switch(t.code){case"invalid_type":{const o=i[t.expected]??t.expected,a=V(t.input),c=i[a]??a;return/^[A-Z]/.test(t.expected)?`Entrée invalide : attendu instanceof ${t.expected}, reçu ${c}`:`Entrée invalide : attendu ${o}, reçu ${c}`}case"invalid_value":return t.values.length===1?`Entrée invalide : attendu ${A(t.values[0])}`:`Option invalide : attendu l'une des valeurs suivantes ${y(t.values,"|")}`;case"too_big":{const o=t.inclusive?"≤":"<",a=n(t.origin);return a?`Trop grand : attendu que ${t.origin??"la valeur"} ait ${o}${t.maximum.toString()} ${a.unit}`:`Trop grand : attendu que ${t.origin??"la valeur"} soit ${o}${t.maximum.toString()}`}case"too_small":{const o=t.inclusive?"≥":">",a=n(t.origin);return a?`Trop petit : attendu que ${t.origin} ait ${o}${t.minimum.toString()} ${a.unit}`:`Trop petit : attendu que ${t.origin} soit ${o}${t.minimum.toString()}`}case"invalid_format":{const o=t;return o.format==="starts_with"?`Chaîne invalide : doit commencer par "${o.prefix}"`:o.format==="ends_with"?`Chaîne invalide : doit se terminer par "${o.suffix}"`:o.format==="includes"?`Chaîne invalide : doit inclure "${o.includes}"`:o.format==="regex"?`Chaîne invalide : doit correspondre au motif ${o.pattern}`:`${r[o.format]??t.format} invalide`}case"not_multiple_of":return`Nombre invalide : doit être un multiple de ${t.divisor}`;case"unrecognized_keys":return`Clé${t.keys.length>1?"s":""} non reconnue${t.keys.length>1?"s":""} : ${y(t.keys,", ")}`;case"invalid_key":return`Clé invalide dans ${t.origin}`;case"invalid_union":return"Entrée invalide";case"invalid_element":return`Valeur invalide dans ${t.origin}`;default:return"Entrée invalide"}}};function B$(){return{localeError:Z$()}}const M$=()=>{const e={string:{label:"מחרוזת",gender:"f"},number:{label:"מספר",gender:"m"},boolean:{label:"ערך בוליאני",gender:"m"},bigint:{label:"BigInt",gender:"m"},date:{label:"תאריך",gender:"m"},array:{label:"מערך",gender:"m"},object:{label:"אובייקט",gender:"m"},null:{label:"ערך ריק (null)",gender:"m"},undefined:{label:"ערך לא מוגדר (undefined)",gender:"m"},symbol:{label:"סימבול (Symbol)",gender:"m"},function:{label:"פונקציה",gender:"f"},map:{label:"מפה (Map)",gender:"f"},set:{label:"קבוצה (Set)",gender:"f"},file:{label:"קובץ",gender:"m"},promise:{label:"Promise",gender:"m"},NaN:{label:"NaN",gender:"m"},unknown:{label:"ערך לא ידוע",gender:"m"},value:{label:"ערך",gender:"m"}},n={string:{unit:"תווים",shortLabel:"קצר",longLabel:"ארוך"},file:{unit:"בייטים",shortLabel:"קטן",longLabel:"גדול"},array:{unit:"פריטים",shortLabel:"קטן",longLabel:"גדול"},set:{unit:"פריטים",shortLabel:"קטן",longLabel:"גדול"},number:{unit:"",shortLabel:"קטן",longLabel:"גדול"}},r=s=>s?e[s]:void 0,i=s=>{const m=r(s);return m?m.label:s??e.unknown.label},t=s=>`ה${i(s)}`,o=s=>{const m=r(s);return((m==null?void 0:m.gender)??"m")==="f"?"צריכה להיות":"צריך להיות"},a=s=>s?n[s]??null:null,c={regex:{label:"קלט",gender:"m"},email:{label:"כתובת אימייל",gender:"f"},url:{label:"כתובת רשת",gender:"f"},emoji:{label:"אימוג'י",gender:"m"},uuid:{label:"UUID",gender:"m"},nanoid:{label:"nanoid",gender:"m"},guid:{label:"GUID",gender:"m"},cuid:{label:"cuid",gender:"m"},cuid2:{label:"cuid2",gender:"m"},ulid:{label:"ULID",gender:"m"},xid:{label:"XID",gender:"m"},ksuid:{label:"KSUID",gender:"m"},datetime:{label:"תאריך וזמן ISO",gender:"m"},date:{label:"תאריך ISO",gender:"m"},time:{label:"זמן ISO",gender:"m"},duration:{label:"משך זמן ISO",gender:"m"},ipv4:{label:"כתובת IPv4",gender:"f"},ipv6:{label:"כתובת IPv6",gender:"f"},cidrv4:{label:"טווח IPv4",gender:"m"},cidrv6:{label:"טווח IPv6",gender:"m"},base64:{label:"מחרוזת בבסיס 64",gender:"f"},base64url:{label:"מחרוזת בבסיס 64 לכתובות רשת",gender:"f"},json_string:{label:"מחרוזת JSON",gender:"f"},e164:{label:"מספר E.164",gender:"m"},jwt:{label:"JWT",gender:"m"},ends_with:{label:"קלט",gender:"m"},includes:{label:"קלט",gender:"m"},lowercase:{label:"קלט",gender:"m"},starts_with:{label:"קלט",gender:"m"},uppercase:{label:"קלט",gender:"m"}},u={nan:"NaN"};return s=>{var m;switch(s.code){case"invalid_type":{const d=s.expected,f=u[d??""]??i(d),p=V(s.input),v=u[p]??((m=e[p])==null?void 0:m.label)??p;return/^[A-Z]/.test(s.expected)?`קלט לא תקין: צריך להיות instanceof ${s.expected}, התקבל ${v}`:`קלט לא תקין: צריך להיות ${f}, התקבל ${v}`}case"invalid_value":{if(s.values.length===1)return`ערך לא תקין: הערך חייב להיות ${A(s.values[0])}`;const d=s.values.map(v=>A(v));if(s.values.length===2)return`ערך לא תקין: האפשרויות המתאימות הן ${d[0]} או ${d[1]}`;const f=d[d.length-1];return`ערך לא תקין: האפשרויות המתאימות הן ${d.slice(0,-1).join(", ")} או ${f}`}case"too_big":{const d=a(s.origin),f=t(s.origin??"value");if(s.origin==="string")return`${(d==null?void 0:d.longLabel)??"ארוך"} מדי: ${f} צריכה להכיל ${s.maximum.toString()} ${(d==null?void 0:d.unit)??""} ${s.inclusive?"או פחות":"לכל היותר"}`.trim();if(s.origin==="number"){const b=s.inclusive?`קטן או שווה ל-${s.maximum}`:`קטן מ-${s.maximum}`;return`גדול מדי: ${f} צריך להיות ${b}`}if(s.origin==="array"||s.origin==="set"){const b=s.origin==="set"?"צריכה":"צריך",N=s.inclusive?`${s.maximum} ${(d==null?void 0:d.unit)??""} או פחות`:`פחות מ-${s.maximum} ${(d==null?void 0:d.unit)??""}`;return`גדול מדי: ${f} ${b} להכיל ${N}`.trim()}const p=s.inclusive?"<=":"<",v=o(s.origin??"value");return d!=null&&d.unit?`${d.longLabel} מדי: ${f} ${v} ${p}${s.maximum.toString()} ${d.unit}`:`${(d==null?void 0:d.longLabel)??"גדול"} מדי: ${f} ${v} ${p}${s.maximum.toString()}`}case"too_small":{const d=a(s.origin),f=t(s.origin??"value");if(s.origin==="string")return`${(d==null?void 0:d.shortLabel)??"קצר"} מדי: ${f} צריכה להכיל ${s.minimum.toString()} ${(d==null?void 0:d.unit)??""} ${s.inclusive?"או יותר":"לפחות"}`.trim();if(s.origin==="number"){const b=s.inclusive?`גדול או שווה ל-${s.minimum}`:`גדול מ-${s.minimum}`;return`קטן מדי: ${f} צריך להיות ${b}`}if(s.origin==="array"||s.origin==="set"){const b=s.origin==="set"?"צריכה":"צריך";if(s.minimum===1&&s.inclusive){const S=(s.origin==="set","לפחות פריט אחד");return`קטן מדי: ${f} ${b} להכיל ${S}`}const N=s.inclusive?`${s.minimum} ${(d==null?void 0:d.unit)??""} או יותר`:`יותר מ-${s.minimum} ${(d==null?void 0:d.unit)??""}`;return`קטן מדי: ${f} ${b} להכיל ${N}`.trim()}const p=s.inclusive?">=":">",v=o(s.origin??"value");return d!=null&&d.unit?`${d.shortLabel} מדי: ${f} ${v} ${p}${s.minimum.toString()} ${d.unit}`:`${(d==null?void 0:d.shortLabel)??"קטן"} מדי: ${f} ${v} ${p}${s.minimum.toString()}`}case"invalid_format":{const d=s;if(d.format==="starts_with")return`המחרוזת חייבת להתחיל ב "${d.prefix}"`;if(d.format==="ends_with")return`המחרוזת חייבת להסתיים ב "${d.suffix}"`;if(d.format==="includes")return`המחרוזת חייבת לכלול "${d.includes}"`;if(d.format==="regex")return`המחרוזת חייבת להתאים לתבנית ${d.pattern}`;const f=c[d.format],p=(f==null?void 0:f.label)??d.format,b=((f==null?void 0:f.gender)??"m")==="f"?"תקינה":"תקין";return`${p} לא ${b}`}case"not_multiple_of":return`מספר לא תקין: חייב להיות מכפלה של ${s.divisor}`;case"unrecognized_keys":return`מפתח${s.keys.length>1?"ות":""} לא מזוה${s.keys.length>1?"ים":"ה"}: ${y(s.keys,", ")}`;case"invalid_key":return"שדה לא תקין באובייקט";case"invalid_union":return"קלט לא תקין";case"invalid_element":return`ערך לא תקין ב${t(s.origin??"array")}`;default:return"קלט לא תקין"}}};function F$(){return{localeError:M$()}}const L$=()=>{const e={string:{unit:"znakova",verb:"imati"},file:{unit:"bajtova",verb:"imati"},array:{unit:"stavki",verb:"imati"},set:{unit:"stavki",verb:"imati"}};function n(t){return e[t]??null}const r={regex:"unos",email:"email adresa",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO datum i vrijeme",date:"ISO datum",time:"ISO vrijeme",duration:"ISO trajanje",ipv4:"IPv4 adresa",ipv6:"IPv6 adresa",cidrv4:"IPv4 raspon",cidrv6:"IPv6 raspon",base64:"base64 kodirani tekst",base64url:"base64url kodirani tekst",json_string:"JSON tekst",e164:"E.164 broj",jwt:"JWT",template_literal:"unos"},i={nan:"NaN",string:"tekst",number:"broj",boolean:"boolean",array:"niz",object:"objekt",set:"skup",file:"datoteka",date:"datum",bigint:"bigint",symbol:"simbol",undefined:"undefined",null:"null",function:"funkcija",map:"mapa"};return t=>{switch(t.code){case"invalid_type":{const o=i[t.expected]??t.expected,a=V(t.input),c=i[a]??a;return/^[A-Z]/.test(t.expected)?`Neispravan unos: očekuje se instanceof ${t.expected}, a primljeno je ${c}`:`Neispravan unos: očekuje se ${o}, a primljeno je ${c}`}case"invalid_value":return t.values.length===1?`Neispravna vrijednost: očekivano ${A(t.values[0])}`:`Neispravna opcija: očekivano jedno od ${y(t.values,"|")}`;case"too_big":{const o=t.inclusive?"<=":"<",a=n(t.origin),c=i[t.origin]??t.origin;return a?`Preveliko: očekivano da ${c??"vrijednost"} ima ${o}${t.maximum.toString()} ${a.unit??"elemenata"}`:`Preveliko: očekivano da ${c??"vrijednost"} bude ${o}${t.maximum.toString()}`}case"too_small":{const o=t.inclusive?">=":">",a=n(t.origin),c=i[t.origin]??t.origin;return a?`Premalo: očekivano da ${c} ima ${o}${t.minimum.toString()} ${a.unit}`:`Premalo: očekivano da ${c} bude ${o}${t.minimum.toString()}`}case"invalid_format":{const o=t;return o.format==="starts_with"?`Neispravan tekst: mora započinjati s "${o.prefix}"`:o.format==="ends_with"?`Neispravan tekst: mora završavati s "${o.suffix}"`:o.format==="includes"?`Neispravan tekst: mora sadržavati "${o.includes}"`:o.format==="regex"?`Neispravan tekst: mora odgovarati uzorku ${o.pattern}`:`Neispravna ${r[o.format]??t.format}`}case"not_multiple_of":return`Neispravan broj: mora biti višekratnik od ${t.divisor}`;case"unrecognized_keys":return`Neprepoznat${t.keys.length>1?"i ključevi":" ključ"}: ${y(t.keys,", ")}`;case"invalid_key":return`Neispravan ključ u ${i[t.origin]??t.origin}`;case"invalid_union":return"Neispravan unos";case"invalid_element":return`Neispravna vrijednost u ${i[t.origin]??t.origin}`;default:return"Neispravan unos"}}};function R$(){return{localeError:L$()}}const J$=()=>{const e={string:{unit:"karakter",verb:"legyen"},file:{unit:"byte",verb:"legyen"},array:{unit:"elem",verb:"legyen"},set:{unit:"elem",verb:"legyen"}};function n(t){return e[t]??null}const r={regex:"bemenet",email:"email cím",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO időbélyeg",date:"ISO dátum",time:"ISO idő",duration:"ISO időintervallum",ipv4:"IPv4 cím",ipv6:"IPv6 cím",cidrv4:"IPv4 tartomány",cidrv6:"IPv6 tartomány",base64:"base64-kódolt string",base64url:"base64url-kódolt string",json_string:"JSON string",e164:"E.164 szám",jwt:"JWT",template_literal:"bemenet"},i={nan:"NaN",number:"szám",array:"tömb"};return t=>{switch(t.code){case"invalid_type":{const o=i[t.expected]??t.expected,a=V(t.input),c=i[a]??a;return/^[A-Z]/.test(t.expected)?`Érvénytelen bemenet: a várt érték instanceof ${t.expected}, a kapott érték ${c}`:`Érvénytelen bemenet: a várt érték ${o}, a kapott érték ${c}`}case"invalid_value":return t.values.length===1?`Érvénytelen bemenet: a várt érték ${A(t.values[0])}`:`Érvénytelen opció: valamelyik érték várt ${y(t.values,"|")}`;case"too_big":{const o=t.inclusive?"<=":"<",a=n(t.origin);return a?`Túl nagy: ${t.origin??"érték"} mérete túl nagy ${o}${t.maximum.toString()} ${a.unit??"elem"}`:`Túl nagy: a bemeneti érték ${t.origin??"érték"} túl nagy: ${o}${t.maximum.toString()}`}case"too_small":{const o=t.inclusive?">=":">",a=n(t.origin);return a?`Túl kicsi: a bemeneti érték ${t.origin} mérete túl kicsi ${o}${t.minimum.toString()} ${a.unit}`:`Túl kicsi: a bemeneti érték ${t.origin} túl kicsi ${o}${t.minimum.toString()}`}case"invalid_format":{const o=t;return o.format==="starts_with"?`Érvénytelen string: "${o.prefix}" értékkel kell kezdődnie`:o.format==="ends_with"?`Érvénytelen string: "${o.suffix}" értékkel kell végződnie`:o.format==="includes"?`Érvénytelen string: "${o.includes}" értéket kell tartalmaznia`:o.format==="regex"?`Érvénytelen string: ${o.pattern} mintának kell megfelelnie`:`Érvénytelen ${r[o.format]??t.format}`}case"not_multiple_of":return`Érvénytelen szám: ${t.divisor} többszörösének kell lennie`;case"unrecognized_keys":return`Ismeretlen kulcs${t.keys.length>1?"s":""}: ${y(t.keys,", ")}`;case"invalid_key":return`Érvénytelen kulcs ${t.origin}`;case"invalid_union":return"Érvénytelen bemenet";case"invalid_element":return`Érvénytelen érték: ${t.origin}`;default:return"Érvénytelen bemenet"}}};function q$(){return{localeError:J$()}}function Jc(e,n,r){return Math.abs(e)===1?n:r}function Je(e){if(!e)return"";const n=["ա","ե","ը","ի","ո","ու","օ"],r=e[e.length-1];return e+(n.includes(r)?"ն":"ը")}const G$=()=>{const e={string:{unit:{one:"նշան",many:"նշաններ"},verb:"ունենալ"},file:{unit:{one:"բայթ",many:"բայթեր"},verb:"ունենալ"},array:{unit:{one:"տարր",many:"տարրեր"},verb:"ունենալ"},set:{unit:{one:"տարր",many:"տարրեր"},verb:"ունենալ"}};function n(t){return e[t]??null}const r={regex:"մուտք",email:"էլ. հասցե",url:"URL",emoji:"էմոջի",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO ամսաթիվ և ժամ",date:"ISO ամսաթիվ",time:"ISO ժամ",duration:"ISO տևողություն",ipv4:"IPv4 հասցե",ipv6:"IPv6 հասցե",cidrv4:"IPv4 միջակայք",cidrv6:"IPv6 միջակայք",base64:"base64 ձևաչափով տող",base64url:"base64url ձևաչափով տող",json_string:"JSON տող",e164:"E.164 համար",jwt:"JWT",template_literal:"մուտք"},i={nan:"NaN",number:"թիվ",array:"զանգված"};return t=>{switch(t.code){case"invalid_type":{const o=i[t.expected]??t.expected,a=V(t.input),c=i[a]??a;return/^[A-Z]/.test(t.expected)?`Սխալ մուտքագրում․ սպասվում էր instanceof ${t.expected}, ստացվել է ${c}`:`Սխալ մուտքագրում․ սպասվում էր ${o}, ստացվել է ${c}`}case"invalid_value":return t.values.length===1?`Սխալ մուտքագրում․ սպասվում էր ${A(t.values[1])}`:`Սխալ տարբերակ․ սպասվում էր հետևյալներից մեկը՝ ${y(t.values,"|")}`;case"too_big":{const o=t.inclusive?"<=":"<",a=n(t.origin);if(a){const c=Number(t.maximum),u=Jc(c,a.unit.one,a.unit.many);return`Չափազանց մեծ արժեք․ սպասվում է, որ ${Je(t.origin??"արժեք")} կունենա ${o}${t.maximum.toString()} ${u}`}return`Չափազանց մեծ արժեք․ սպասվում է, որ ${Je(t.origin??"արժեք")} լինի ${o}${t.maximum.toString()}`}case"too_small":{const o=t.inclusive?">=":">",a=n(t.origin);if(a){const c=Number(t.minimum),u=Jc(c,a.unit.one,a.unit.many);return`Չափազանց փոքր արժեք․ սպասվում է, որ ${Je(t.origin)} կունենա ${o}${t.minimum.toString()} ${u}`}return`Չափազանց փոքր արժեք․ սպասվում է, որ ${Je(t.origin)} լինի ${o}${t.minimum.toString()}`}case"invalid_format":{const o=t;return o.format==="starts_with"?`Սխալ տող․ պետք է սկսվի "${o.prefix}"-ով`:o.format==="ends_with"?`Սխալ տող․ պետք է ավարտվի "${o.suffix}"-ով`:o.format==="includes"?`Սխալ տող․ պետք է պարունակի "${o.includes}"`:o.format==="regex"?`Սխալ տող․ պետք է համապատասխանի ${o.pattern} ձևաչափին`:`Սխալ ${r[o.format]??t.format}`}case"not_multiple_of":return`Սխալ թիվ․ պետք է բազմապատիկ լինի ${t.divisor}-ի`;case"unrecognized_keys":return`Չճանաչված բանալի${t.keys.length>1?"ներ":""}. ${y(t.keys,", ")}`;case"invalid_key":return`Սխալ բանալի ${Je(t.origin)}-ում`;case"invalid_union":return"Սխալ մուտքագրում";case"invalid_element":return`Սխալ արժեք ${Je(t.origin)}-ում`;default:return"Սխալ մուտքագրում"}}};function W$(){return{localeError:G$()}}const K$=()=>{const e={string:{unit:"karakter",verb:"memiliki"},file:{unit:"byte",verb:"memiliki"},array:{unit:"item",verb:"memiliki"},set:{unit:"item",verb:"memiliki"}};function n(t){return e[t]??null}const r={regex:"input",email:"alamat email",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"tanggal dan waktu format ISO",date:"tanggal format ISO",time:"jam format ISO",duration:"durasi format ISO",ipv4:"alamat IPv4",ipv6:"alamat IPv6",cidrv4:"rentang alamat IPv4",cidrv6:"rentang alamat IPv6",base64:"string dengan enkode base64",base64url:"string dengan enkode base64url",json_string:"string JSON",e164:"angka E.164",jwt:"JWT",template_literal:"input"},i={nan:"NaN"};return t=>{switch(t.code){case"invalid_type":{const o=i[t.expected]??t.expected,a=V(t.input),c=i[a]??a;return/^[A-Z]/.test(t.expected)?`Input tidak valid: diharapkan instanceof ${t.expected}, diterima ${c}`:`Input tidak valid: diharapkan ${o}, diterima ${c}`}case"invalid_value":return t.values.length===1?`Input tidak valid: diharapkan ${A(t.values[0])}`:`Pilihan tidak valid: diharapkan salah satu dari ${y(t.values,"|")}`;case"too_big":{const o=t.inclusive?"<=":"<",a=n(t.origin);return a?`Terlalu besar: diharapkan ${t.origin??"value"} memiliki ${o}${t.maximum.toString()} ${a.unit??"elemen"}`:`Terlalu besar: diharapkan ${t.origin??"value"} menjadi ${o}${t.maximum.toString()}`}case"too_small":{const o=t.inclusive?">=":">",a=n(t.origin);return a?`Terlalu kecil: diharapkan ${t.origin} memiliki ${o}${t.minimum.toString()} ${a.unit}`:`Terlalu kecil: diharapkan ${t.origin} menjadi ${o}${t.minimum.toString()}`}case"invalid_format":{const o=t;return o.format==="starts_with"?`String tidak valid: harus dimulai dengan "${o.prefix}"`:o.format==="ends_with"?`String tidak valid: harus berakhir dengan "${o.suffix}"`:o.format==="includes"?`String tidak valid: harus menyertakan "${o.includes}"`:o.format==="regex"?`String tidak valid: harus sesuai pola ${o.pattern}`:`${r[o.format]??t.format} tidak valid`}case"not_multiple_of":return`Angka tidak valid: harus kelipatan dari ${t.divisor}`;case"unrecognized_keys":return`Kunci tidak dikenali ${t.keys.length>1?"s":""}: ${y(t.keys,", ")}`;case"invalid_key":return`Kunci tidak valid di ${t.origin}`;case"invalid_union":return"Input tidak valid";case"invalid_element":return`Nilai tidak valid di ${t.origin}`;default:return"Input tidak valid"}}};function X$(){return{localeError:K$()}}const Y$=()=>{const e={string:{unit:"stafi",verb:"að hafa"},file:{unit:"bæti",verb:"að hafa"},array:{unit:"hluti",verb:"að hafa"},set:{unit:"hluti",verb:"að hafa"}};function n(t){return e[t]??null}const r={regex:"gildi",email:"netfang",url:"vefslóð",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO dagsetning og tími",date:"ISO dagsetning",time:"ISO tími",duration:"ISO tímalengd",ipv4:"IPv4 address",ipv6:"IPv6 address",cidrv4:"IPv4 range",cidrv6:"IPv6 range",base64:"base64-encoded strengur",base64url:"base64url-encoded strengur",json_string:"JSON strengur",e164:"E.164 tölugildi",jwt:"JWT",template_literal:"gildi"},i={nan:"NaN",number:"númer",array:"fylki"};return t=>{switch(t.code){case"invalid_type":{const o=i[t.expected]??t.expected,a=V(t.input),c=i[a]??a;return/^[A-Z]/.test(t.expected)?`Rangt gildi: Þú slóst inn ${c} þar sem á að vera instanceof ${t.expected}`:`Rangt gildi: Þú slóst inn ${c} þar sem á að vera ${o}`}case"invalid_value":return t.values.length===1?`Rangt gildi: gert ráð fyrir ${A(t.values[0])}`:`Ógilt val: má vera eitt af eftirfarandi ${y(t.values,"|")}`;case"too_big":{const o=t.inclusive?"<=":"<",a=n(t.origin);return a?`Of stórt: gert er ráð fyrir að ${t.origin??"gildi"} hafi ${o}${t.maximum.toString()} ${a.unit??"hluti"}`:`Of stórt: gert er ráð fyrir að ${t.origin??"gildi"} sé ${o}${t.maximum.toString()}`}case"too_small":{const o=t.inclusive?">=":">",a=n(t.origin);return a?`Of lítið: gert er ráð fyrir að ${t.origin} hafi ${o}${t.minimum.toString()} ${a.unit}`:`Of lítið: gert er ráð fyrir að ${t.origin} sé ${o}${t.minimum.toString()}`}case"invalid_format":{const o=t;return o.format==="starts_with"?`Ógildur strengur: verður að byrja á "${o.prefix}"`:o.format==="ends_with"?`Ógildur strengur: verður að enda á "${o.suffix}"`:o.format==="includes"?`Ógildur strengur: verður að innihalda "${o.includes}"`:o.format==="regex"?`Ógildur strengur: verður að fylgja mynstri ${o.pattern}`:`Rangt ${r[o.format]??t.format}`}case"not_multiple_of":return`Röng tala: verður að vera margfeldi af ${t.divisor}`;case"unrecognized_keys":return`Óþekkt ${t.keys.length>1?"ir lyklar":"ur lykill"}: ${y(t.keys,", ")}`;case"invalid_key":return`Rangur lykill í ${t.origin}`;case"invalid_union":return"Rangt gildi";case"invalid_element":return`Rangt gildi í ${t.origin}`;default:return"Rangt gildi"}}};function H$(){return{localeError:Y$()}}const Q$=()=>{const e={string:{unit:"caratteri",verb:"avere"},file:{unit:"byte",verb:"avere"},array:{unit:"elementi",verb:"avere"},set:{unit:"elementi",verb:"avere"}};function n(t){return e[t]??null}const r={regex:"input",email:"indirizzo email",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"data e ora ISO",date:"data ISO",time:"ora ISO",duration:"durata ISO",ipv4:"indirizzo IPv4",ipv6:"indirizzo IPv6",cidrv4:"intervallo IPv4",cidrv6:"intervallo IPv6",base64:"stringa codificata in base64",base64url:"URL codificata in base64",json_string:"stringa JSON",e164:"numero E.164",jwt:"JWT",template_literal:"input"},i={nan:"NaN",number:"numero",array:"vettore"};return t=>{switch(t.code){case"invalid_type":{const o=i[t.expected]??t.expected,a=V(t.input),c=i[a]??a;return/^[A-Z]/.test(t.expected)?`Input non valido: atteso instanceof ${t.expected}, ricevuto ${c}`:`Input non valido: atteso ${o}, ricevuto ${c}`}case"invalid_value":return t.values.length===1?`Input non valido: atteso ${A(t.values[0])}`:`Opzione non valida: atteso uno tra ${y(t.values,"|")}`;case"too_big":{const o=t.inclusive?"<=":"<",a=n(t.origin);return a?`Troppo grande: ${t.origin??"valore"} deve avere ${o}${t.maximum.toString()} ${a.unit??"elementi"}`:`Troppo grande: ${t.origin??"valore"} deve essere ${o}${t.maximum.toString()}`}case"too_small":{const o=t.inclusive?">=":">",a=n(t.origin);return a?`Troppo piccolo: ${t.origin} deve avere ${o}${t.minimum.toString()} ${a.unit}`:`Troppo piccolo: ${t.origin} deve essere ${o}${t.minimum.toString()}`}case"invalid_format":{const o=t;return o.format==="starts_with"?`Stringa non valida: deve iniziare con "${o.prefix}"`:o.format==="ends_with"?`Stringa non valida: deve terminare con "${o.suffix}"`:o.format==="includes"?`Stringa non valida: deve includere "${o.includes}"`:o.format==="regex"?`Stringa non valida: deve corrispondere al pattern ${o.pattern}`:`Input non valido: ${r[o.format]??t.format}`}case"not_multiple_of":return`Numero non valido: deve essere un multiplo di ${t.divisor}`;case"unrecognized_keys":return`Chiav${t.keys.length>1?"i":"e"} non riconosciut${t.keys.length>1?"e":"a"}: ${y(t.keys,", ")}`;case"invalid_key":return`Chiave non valida in ${t.origin}`;case"invalid_union":return"Input non valido";case"invalid_element":return`Valore non valido in ${t.origin}`;default:return"Input non valido"}}};function eb(){return{localeError:Q$()}}const tb=()=>{const e={string:{unit:"文字",verb:"である"},file:{unit:"バイト",verb:"である"},array:{unit:"要素",verb:"である"},set:{unit:"要素",verb:"である"}};function n(t){return e[t]??null}const r={regex:"入力値",email:"メールアドレス",url:"URL",emoji:"絵文字",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO日時",date:"ISO日付",time:"ISO時刻",duration:"ISO期間",ipv4:"IPv4アドレス",ipv6:"IPv6アドレス",cidrv4:"IPv4範囲",cidrv6:"IPv6範囲",base64:"base64エンコード文字列",base64url:"base64urlエンコード文字列",json_string:"JSON文字列",e164:"E.164番号",jwt:"JWT",template_literal:"入力値"},i={nan:"NaN",number:"数値",array:"配列"};return t=>{switch(t.code){case"invalid_type":{const o=i[t.expected]??t.expected,a=V(t.input),c=i[a]??a;return/^[A-Z]/.test(t.expected)?`無効な入力: instanceof ${t.expected}が期待されましたが、${c}が入力されました`:`無効な入力: ${o}が期待されましたが、${c}が入力されました`}case"invalid_value":return t.values.length===1?`無効な入力: ${A(t.values[0])}が期待されました`:`無効な選択: ${y(t.values,"、")}のいずれかである必要があります`;case"too_big":{const o=t.inclusive?"以下である":"より小さい",a=n(t.origin);return a?`大きすぎる値: ${t.origin??"値"}は${t.maximum.toString()}${a.unit??"要素"}${o}必要があります`:`大きすぎる値: ${t.origin??"値"}は${t.maximum.toString()}${o}必要があります`}case"too_small":{const o=t.inclusive?"以上である":"より大きい",a=n(t.origin);return a?`小さすぎる値: ${t.origin}は${t.minimum.toString()}${a.unit}${o}必要があります`:`小さすぎる値: ${t.origin}は${t.minimum.toString()}${o}必要があります`}case"invalid_format":{const o=t;return o.format==="starts_with"?`無効な文字列: "${o.prefix}"で始まる必要があります`:o.format==="ends_with"?`無効な文字列: "${o.suffix}"で終わる必要があります`:o.format==="includes"?`無効な文字列: "${o.includes}"を含む必要があります`:o.format==="regex"?`無効な文字列: パターン${o.pattern}に一致する必要があります`:`無効な${r[o.format]??t.format}`}case"not_multiple_of":return`無効な数値: ${t.divisor}の倍数である必要があります`;case"unrecognized_keys":return`認識されていないキー${t.keys.length>1?"群":""}: ${y(t.keys,"、")}`;case"invalid_key":return`${t.origin}内の無効なキー`;case"invalid_union":return"無効な入力";case"invalid_element":return`${t.origin}内の無効な値`;default:return"無効な入力"}}};function nb(){return{localeError:tb()}}const rb=()=>{const e={string:{unit:"სიმბოლო",verb:"უნდა შეიცავდეს"},file:{unit:"ბაიტი",verb:"უნდა შეიცავდეს"},array:{unit:"ელემენტი",verb:"უნდა შეიცავდეს"},set:{unit:"ელემენტი",verb:"უნდა შეიცავდეს"}};function n(t){return e[t]??null}const r={regex:"შეყვანა",email:"ელ-ფოსტის მისამართი",url:"URL",emoji:"ემოჯი",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"თარიღი-დრო",date:"თარიღი",time:"დრო",duration:"ხანგრძლივობა",ipv4:"IPv4 მისამართი",ipv6:"IPv6 მისამართი",cidrv4:"IPv4 დიაპაზონი",cidrv6:"IPv6 დიაპაზონი",base64:"base64-კოდირებული ველი",base64url:"base64url-კოდირებული ველი",json_string:"JSON ველი",e164:"E.164 ნომერი",jwt:"JWT",template_literal:"შეყვანა"},i={nan:"NaN",number:"რიცხვი",string:"ველი",boolean:"ბულეანი",function:"ფუნქცია",array:"მასივი"};return t=>{switch(t.code){case"invalid_type":{const o=i[t.expected]??t.expected,a=V(t.input),c=i[a]??a;return/^[A-Z]/.test(t.expected)?`არასწორი შეყვანა: მოსალოდნელი instanceof ${t.expected}, მიღებული ${c}`:`არასწორი შეყვანა: მოსალოდნელი ${o}, მიღებული ${c}`}case"invalid_value":return t.values.length===1?`არასწორი შეყვანა: მოსალოდნელი ${A(t.values[0])}`:`არასწორი ვარიანტი: მოსალოდნელია ერთ-ერთი ${y(t.values,"|")}-დან`;case"too_big":{const o=t.inclusive?"<=":"<",a=n(t.origin);return a?`ზედმეტად დიდი: მოსალოდნელი ${t.origin??"მნიშვნელობა"} ${a.verb} ${o}${t.maximum.toString()} ${a.unit}`:`ზედმეტად დიდი: მოსალოდნელი ${t.origin??"მნიშვნელობა"} იყოს ${o}${t.maximum.toString()}`}case"too_small":{const o=t.inclusive?">=":">",a=n(t.origin);return a?`ზედმეტად პატარა: მოსალოდნელი ${t.origin} ${a.verb} ${o}${t.minimum.toString()} ${a.unit}`:`ზედმეტად პატარა: მოსალოდნელი ${t.origin} იყოს ${o}${t.minimum.toString()}`}case"invalid_format":{const o=t;return o.format==="starts_with"?`არასწორი ველი: უნდა იწყებოდეს "${o.prefix}"-ით`:o.format==="ends_with"?`არასწორი ველი: უნდა მთავრდებოდეს "${o.suffix}"-ით`:o.format==="includes"?`არასწორი ველი: უნდა შეიცავდეს "${o.includes}"-ს`:o.format==="regex"?`არასწორი ველი: უნდა შეესაბამებოდეს შაბლონს ${o.pattern}`:`არასწორი ${r[o.format]??t.format}`}case"not_multiple_of":return`არასწორი რიცხვი: უნდა იყოს ${t.divisor}-ის ჯერადი`;case"unrecognized_keys":return`უცნობი გასაღებ${t.keys.length>1?"ები":"ი"}: ${y(t.keys,", ")}`;case"invalid_key":return`არასწორი გასაღები ${t.origin}-ში`;case"invalid_union":return"არასწორი შეყვანა";case"invalid_element":return`არასწორი მნიშვნელობა ${t.origin}-ში`;default:return"არასწორი შეყვანა"}}};function ob(){return{localeError:rb()}}const ib=()=>{const e={string:{unit:"តួអក្សរ",verb:"គួរមាន"},file:{unit:"បៃ",verb:"គួរមាន"},array:{unit:"ធាតុ",verb:"គួរមាន"},set:{unit:"ធាតុ",verb:"គួរមាន"}};function n(t){return e[t]??null}const r={regex:"ទិន្នន័យបញ្ចូល",email:"អាសយដ្ឋានអ៊ីមែល",url:"URL",emoji:"សញ្ញាអារម្មណ៍",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"កាលបរិច្ឆេទ និងម៉ោង ISO",date:"កាលបរិច្ឆេទ ISO",time:"ម៉ោង ISO",duration:"រយៈពេល ISO",ipv4:"អាសយដ្ឋាន IPv4",ipv6:"អាសយដ្ឋាន IPv6",cidrv4:"ដែនអាសយដ្ឋាន IPv4",cidrv6:"ដែនអាសយដ្ឋាន IPv6",base64:"ខ្សែអក្សរអ៊ិកូដ base64",base64url:"ខ្សែអក្សរអ៊ិកូដ base64url",json_string:"ខ្សែអក្សរ JSON",e164:"លេខ E.164",jwt:"JWT",template_literal:"ទិន្នន័យបញ្ចូល"},i={nan:"NaN",number:"លេខ",array:"អារេ (Array)",null:"គ្មានតម្លៃ (null)"};return t=>{switch(t.code){case"invalid_type":{const o=i[t.expected]??t.expected,a=V(t.input),c=i[a]??a;return/^[A-Z]/.test(t.expected)?`ទិន្នន័យបញ្ចូលមិនត្រឹមត្រូវ៖ ត្រូវការ instanceof ${t.expected} ប៉ុន្តែទទួលបាន ${c}`:`ទិន្នន័យបញ្ចូលមិនត្រឹមត្រូវ៖ ត្រូវការ ${o} ប៉ុន្តែទទួលបាន ${c}`}case"invalid_value":return t.values.length===1?`ទិន្នន័យបញ្ចូលមិនត្រឹមត្រូវ៖ ត្រូវការ ${A(t.values[0])}`:`ជម្រើសមិនត្រឹមត្រូវ៖ ត្រូវជាមួយក្នុងចំណោម ${y(t.values,"|")}`;case"too_big":{const o=t.inclusive?"<=":"<",a=n(t.origin);return a?`ធំពេក៖ ត្រូវការ ${t.origin??"តម្លៃ"} ${o} ${t.maximum.toString()} ${a.unit??"ធាតុ"}`:`ធំពេក៖ ត្រូវការ ${t.origin??"តម្លៃ"} ${o} ${t.maximum.toString()}`}case"too_small":{const o=t.inclusive?">=":">",a=n(t.origin);return a?`តូចពេក៖ ត្រូវការ ${t.origin} ${o} ${t.minimum.toString()} ${a.unit}`:`តូចពេក៖ ត្រូវការ ${t.origin} ${o} ${t.minimum.toString()}`}case"invalid_format":{const o=t;return o.format==="starts_with"?`ខ្សែអក្សរមិនត្រឹមត្រូវ៖ ត្រូវចាប់ផ្តើមដោយ "${o.prefix}"`:o.format==="ends_with"?`ខ្សែអក្សរមិនត្រឹមត្រូវ៖ ត្រូវបញ្ចប់ដោយ "${o.suffix}"`:o.format==="includes"?`ខ្សែអក្សរមិនត្រឹមត្រូវ៖ ត្រូវមាន "${o.includes}"`:o.format==="regex"?`ខ្សែអក្សរមិនត្រឹមត្រូវ៖ ត្រូវតែផ្គូផ្គងនឹងទម្រង់ដែលបានកំណត់ ${o.pattern}`:`មិនត្រឹមត្រូវ៖ ${r[o.format]??t.format}`}case"not_multiple_of":return`លេខមិនត្រឹមត្រូវ៖ ត្រូវតែជាពហុគុណនៃ ${t.divisor}`;case"unrecognized_keys":return`រកឃើញសោមិនស្គាល់៖ ${y(t.keys,", ")}`;case"invalid_key":return`សោមិនត្រឹមត្រូវនៅក្នុង ${t.origin}`;case"invalid_union":return"ទិន្នន័យមិនត្រឹមត្រូវ";case"invalid_element":return`ទិន្នន័យមិនត្រឹមត្រូវនៅក្នុង ${t.origin}`;default:return"ទិន្នន័យមិនត្រឹមត្រូវ"}}};function qc(){return{localeError:ib()}}function ab(){return qc()}const lb=()=>{const e={string:{unit:"문자",verb:"to have"},file:{unit:"바이트",verb:"to have"},array:{unit:"개",verb:"to have"},set:{unit:"개",verb:"to have"}};function n(t){return e[t]??null}const r={regex:"입력",email:"이메일 주소",url:"URL",emoji:"이모지",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO 날짜시간",date:"ISO 날짜",time:"ISO 시간",duration:"ISO 기간",ipv4:"IPv4 주소",ipv6:"IPv6 주소",cidrv4:"IPv4 범위",cidrv6:"IPv6 범위",base64:"base64 인코딩 문자열",base64url:"base64url 인코딩 문자열",json_string:"JSON 문자열",e164:"E.164 번호",jwt:"JWT",template_literal:"입력"},i={nan:"NaN"};return t=>{switch(t.code){case"invalid_type":{const o=i[t.expected]??t.expected,a=V(t.input),c=i[a]??a;return/^[A-Z]/.test(t.expected)?`잘못된 입력: 예상 타입은 instanceof ${t.expected}, 받은 타입은 ${c}입니다`:`잘못된 입력: 예상 타입은 ${o}, 받은 타입은 ${c}입니다`}case"invalid_value":return t.values.length===1?`잘못된 입력: 값은 ${A(t.values[0])} 이어야 합니다`:`잘못된 옵션: ${y(t.values,"또는 ")} 중 하나여야 합니다`;case"too_big":{const o=t.inclusive?"이하":"미만",a=o==="미만"?"이어야 합니다":"여야 합니다",c=n(t.origin),u=(c==null?void 0:c.unit)??"요소";return c?`${t.origin??"값"}이 너무 큽니다: ${t.maximum.toString()}${u} ${o}${a}`:`${t.origin??"값"}이 너무 큽니다: ${t.maximum.toString()} ${o}${a}`}case"too_small":{const o=t.inclusive?"이상":"초과",a=o==="이상"?"이어야 합니다":"여야 합니다",c=n(t.origin),u=(c==null?void 0:c.unit)??"요소";return c?`${t.origin??"값"}이 너무 작습니다: ${t.minimum.toString()}${u} ${o}${a}`:`${t.origin??"값"}이 너무 작습니다: ${t.minimum.toString()} ${o}${a}`}case"invalid_format":{const o=t;return o.format==="starts_with"?`잘못된 문자열: "${o.prefix}"(으)로 시작해야 합니다`:o.format==="ends_with"?`잘못된 문자열: "${o.suffix}"(으)로 끝나야 합니다`:o.format==="includes"?`잘못된 문자열: "${o.includes}"을(를) 포함해야 합니다`:o.format==="regex"?`잘못된 문자열: 정규식 ${o.pattern} 패턴과 일치해야 합니다`:`잘못된 ${r[o.format]??t.format}`}case"not_multiple_of":return`잘못된 숫자: ${t.divisor}의 배수여야 합니다`;case"unrecognized_keys":return`인식할 수 없는 키: ${y(t.keys,", ")}`;case"invalid_key":return`잘못된 키: ${t.origin}`;case"invalid_union":return"잘못된 입력";case"invalid_element":return`잘못된 값: ${t.origin}`;default:return"잘못된 입력"}}};function cb(){return{localeError:lb()}}const ft=e=>e.charAt(0).toUpperCase()+e.slice(1);function Gc(e){const n=Math.abs(e),r=n%10,i=n%100;return i>=11&&i<=19||r===0?"many":r===1?"one":"few"}const sb=()=>{const e={string:{unit:{one:"simbolis",few:"simboliai",many:"simbolių"},verb:{smaller:{inclusive:"turi būti ne ilgesnė kaip",notInclusive:"turi būti trumpesnė kaip"},bigger:{inclusive:"turi būti ne trumpesnė kaip",notInclusive:"turi būti ilgesnė kaip"}}},file:{unit:{one:"baitas",few:"baitai",many:"baitų"},verb:{smaller:{inclusive:"turi būti ne didesnis kaip",notInclusive:"turi būti mažesnis kaip"},bigger:{inclusive:"turi būti ne mažesnis kaip",notInclusive:"turi būti didesnis kaip"}}},array:{unit:{one:"elementą",few:"elementus",many:"elementų"},verb:{smaller:{inclusive:"turi turėti ne daugiau kaip",notInclusive:"turi turėti mažiau kaip"},bigger:{inclusive:"turi turėti ne mažiau kaip",notInclusive:"turi turėti daugiau kaip"}}},set:{unit:{one:"elementą",few:"elementus",many:"elementų"},verb:{smaller:{inclusive:"turi turėti ne daugiau kaip",notInclusive:"turi turėti mažiau kaip"},bigger:{inclusive:"turi turėti ne mažiau kaip",notInclusive:"turi turėti daugiau kaip"}}}};function n(t,o,a,c){const u=e[t]??null;return u===null?u:{unit:u.unit[o],verb:u.verb[c][a?"inclusive":"notInclusive"]}}const r={regex:"įvestis",email:"el. pašto adresas",url:"URL",emoji:"jaustukas",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO data ir laikas",date:"ISO data",time:"ISO laikas",duration:"ISO trukmė",ipv4:"IPv4 adresas",ipv6:"IPv6 adresas",cidrv4:"IPv4 tinklo prefiksas (CIDR)",cidrv6:"IPv6 tinklo prefiksas (CIDR)",base64:"base64 užkoduota eilutė",base64url:"base64url užkoduota eilutė",json_string:"JSON eilutė",e164:"E.164 numeris",jwt:"JWT",template_literal:"įvestis"},i={nan:"NaN",number:"skaičius",bigint:"sveikasis skaičius",string:"eilutė",boolean:"loginė reikšmė",undefined:"neapibrėžta reikšmė",function:"funkcija",symbol:"simbolis",array:"masyvas",object:"objektas",null:"nulinė reikšmė"};return t=>{switch(t.code){case"invalid_type":{const o=i[t.expected]??t.expected,a=V(t.input),c=i[a]??a;return/^[A-Z]/.test(t.expected)?`Gautas tipas ${c}, o tikėtasi - instanceof ${t.expected}`:`Gautas tipas ${c}, o tikėtasi - ${o}`}case"invalid_value":return t.values.length===1?`Privalo būti ${A(t.values[0])}`:`Privalo būti vienas iš ${y(t.values,"|")} pasirinkimų`;case"too_big":{const o=i[t.origin]??t.origin,a=n(t.origin,Gc(Number(t.maximum)),t.inclusive??!1,"smaller");if(a!=null&&a.verb)return`${ft(o??t.origin??"reikšmė")} ${a.verb} ${t.maximum.toString()} ${a.unit??"elementų"}`;const c=t.inclusive?"ne didesnis kaip":"mažesnis kaip";return`${ft(o??t.origin??"reikšmė")} turi būti ${c} ${t.maximum.toString()} ${a==null?void 0:a.unit}`}case"too_small":{const o=i[t.origin]??t.origin,a=n(t.origin,Gc(Number(t.minimum)),t.inclusive??!1,"bigger");if(a!=null&&a.verb)return`${ft(o??t.origin??"reikšmė")} ${a.verb} ${t.minimum.toString()} ${a.unit??"elementų"}`;const c=t.inclusive?"ne mažesnis kaip":"didesnis kaip";return`${ft(o??t.origin??"reikšmė")} turi būti ${c} ${t.minimum.toString()} ${a==null?void 0:a.unit}`}case"invalid_format":{const o=t;return o.format==="starts_with"?`Eilutė privalo prasidėti "${o.prefix}"`:o.format==="ends_with"?`Eilutė privalo pasibaigti "${o.suffix}"`:o.format==="includes"?`Eilutė privalo įtraukti "${o.includes}"`:o.format==="regex"?`Eilutė privalo atitikti ${o.pattern}`:`Neteisingas ${r[o.format]??t.format}`}case"not_multiple_of":return`Skaičius privalo būti ${t.divisor} kartotinis.`;case"unrecognized_keys":return`Neatpažint${t.keys.length>1?"i":"as"} rakt${t.keys.length>1?"ai":"as"}: ${y(t.keys,", ")}`;case"invalid_key":return"Rastas klaidingas raktas";case"invalid_union":return"Klaidinga įvestis";case"invalid_element":{const o=i[t.origin]??t.origin;return`${ft(o??t.origin??"reikšmė")} turi klaidingą įvestį`}default:return"Klaidinga įvestis"}}};function ub(){return{localeError:sb()}}const db=()=>{const e={string:{unit:"знаци",verb:"да имаат"},file:{unit:"бајти",verb:"да имаат"},array:{unit:"ставки",verb:"да имаат"},set:{unit:"ставки",verb:"да имаат"}};function n(t){return e[t]??null}const r={regex:"внес",email:"адреса на е-пошта",url:"URL",emoji:"емоџи",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO датум и време",date:"ISO датум",time:"ISO време",duration:"ISO времетраење",ipv4:"IPv4 адреса",ipv6:"IPv6 адреса",cidrv4:"IPv4 опсег",cidrv6:"IPv6 опсег",base64:"base64-енкодирана низа",base64url:"base64url-енкодирана низа",json_string:"JSON низа",e164:"E.164 број",jwt:"JWT",template_literal:"внес"},i={nan:"NaN",number:"број",array:"низа"};return t=>{switch(t.code){case"invalid_type":{const o=i[t.expected]??t.expected,a=V(t.input),c=i[a]??a;return/^[A-Z]/.test(t.expected)?`Грешен внес: се очекува instanceof ${t.expected}, примено ${c}`:`Грешен внес: се очекува ${o}, примено ${c}`}case"invalid_value":return t.values.length===1?`Invalid input: expected ${A(t.values[0])}`:`Грешана опција: се очекува една ${y(t.values,"|")}`;case"too_big":{const o=t.inclusive?"<=":"<",a=n(t.origin);return a?`Премногу голем: се очекува ${t.origin??"вредноста"} да има ${o}${t.maximum.toString()} ${a.unit??"елементи"}`:`Премногу голем: се очекува ${t.origin??"вредноста"} да биде ${o}${t.maximum.toString()}`}case"too_small":{const o=t.inclusive?">=":">",a=n(t.origin);return a?`Премногу мал: се очекува ${t.origin} да има ${o}${t.minimum.toString()} ${a.unit}`:`Премногу мал: се очекува ${t.origin} да биде ${o}${t.minimum.toString()}`}case"invalid_format":{const o=t;return o.format==="starts_with"?`Неважечка низа: мора да започнува со "${o.prefix}"`:o.format==="ends_with"?`Неважечка низа: мора да завршува со "${o.suffix}"`:o.format==="includes"?`Неважечка низа: мора да вклучува "${o.includes}"`:o.format==="regex"?`Неважечка низа: мора да одгоара на патернот ${o.pattern}`:`Invalid ${r[o.format]??t.format}`}case"not_multiple_of":return`Грешен број: мора да биде делив со ${t.divisor}`;case"unrecognized_keys":return`${t.keys.length>1?"Непрепознаени клучеви":"Непрепознаен клуч"}: ${y(t.keys,", ")}`;case"invalid_key":return`Грешен клуч во ${t.origin}`;case"invalid_union":return"Грешен внес";case"invalid_element":return`Грешна вредност во ${t.origin}`;default:return"Грешен внес"}}};function mb(){return{localeError:db()}}const fb=()=>{const e={string:{unit:"aksara",verb:"mempunyai"},file:{unit:"bait",verb:"mempunyai"},array:{unit:"elemen",verb:"mempunyai"},set:{unit:"elemen",verb:"mempunyai"}};function n(t){return e[t]??null}const r={regex:"input",email:"alamat e-mel",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"tarikh masa ISO",date:"tarikh ISO",time:"masa ISO",duration:"tempoh ISO",ipv4:"alamat IPv4",ipv6:"alamat IPv6",cidrv4:"julat IPv4",cidrv6:"julat IPv6",base64:"string dikodkan base64",base64url:"string dikodkan base64url",json_string:"string JSON",e164:"nombor E.164",jwt:"JWT",template_literal:"input"},i={nan:"NaN",number:"nombor"};return t=>{switch(t.code){case"invalid_type":{const o=i[t.expected]??t.expected,a=V(t.input),c=i[a]??a;return/^[A-Z]/.test(t.expected)?`Input tidak sah: dijangka instanceof ${t.expected}, diterima ${c}`:`Input tidak sah: dijangka ${o}, diterima ${c}`}case"invalid_value":return t.values.length===1?`Input tidak sah: dijangka ${A(t.values[0])}`:`Pilihan tidak sah: dijangka salah satu daripada ${y(t.values,"|")}`;case"too_big":{const o=t.inclusive?"<=":"<",a=n(t.origin);return a?`Terlalu besar: dijangka ${t.origin??"nilai"} ${a.verb} ${o}${t.maximum.toString()} ${a.unit??"elemen"}`:`Terlalu besar: dijangka ${t.origin??"nilai"} adalah ${o}${t.maximum.toString()}`}case"too_small":{const o=t.inclusive?">=":">",a=n(t.origin);return a?`Terlalu kecil: dijangka ${t.origin} ${a.verb} ${o}${t.minimum.toString()} ${a.unit}`:`Terlalu kecil: dijangka ${t.origin} adalah ${o}${t.minimum.toString()}`}case"invalid_format":{const o=t;return o.format==="starts_with"?`String tidak sah: mesti bermula dengan "${o.prefix}"`:o.format==="ends_with"?`String tidak sah: mesti berakhir dengan "${o.suffix}"`:o.format==="includes"?`String tidak sah: mesti mengandungi "${o.includes}"`:o.format==="regex"?`String tidak sah: mesti sepadan dengan corak ${o.pattern}`:`${r[o.format]??t.format} tidak sah`}case"not_multiple_of":return`Nombor tidak sah: perlu gandaan ${t.divisor}`;case"unrecognized_keys":return`Kunci tidak dikenali: ${y(t.keys,", ")}`;case"invalid_key":return`Kunci tidak sah dalam ${t.origin}`;case"invalid_union":return"Input tidak sah";case"invalid_element":return`Nilai tidak sah dalam ${t.origin}`;default:return"Input tidak sah"}}};function pb(){return{localeError:fb()}}const gb=()=>{const e={string:{unit:"tekens",verb:"heeft"},file:{unit:"bytes",verb:"heeft"},array:{unit:"elementen",verb:"heeft"},set:{unit:"elementen",verb:"heeft"}};function n(t){return e[t]??null}const r={regex:"invoer",email:"emailadres",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO datum en tijd",date:"ISO datum",time:"ISO tijd",duration:"ISO duur",ipv4:"IPv4-adres",ipv6:"IPv6-adres",cidrv4:"IPv4-bereik",cidrv6:"IPv6-bereik",base64:"base64-gecodeerde tekst",base64url:"base64 URL-gecodeerde tekst",json_string:"JSON string",e164:"E.164-nummer",jwt:"JWT",template_literal:"invoer"},i={nan:"NaN",number:"getal"};return t=>{switch(t.code){case"invalid_type":{const o=i[t.expected]??t.expected,a=V(t.input),c=i[a]??a;return/^[A-Z]/.test(t.expected)?`Ongeldige invoer: verwacht instanceof ${t.expected}, ontving ${c}`:`Ongeldige invoer: verwacht ${o}, ontving ${c}`}case"invalid_value":return t.values.length===1?`Ongeldige invoer: verwacht ${A(t.values[0])}`:`Ongeldige optie: verwacht één van ${y(t.values,"|")}`;case"too_big":{const o=t.inclusive?"<=":"<",a=n(t.origin),c=t.origin==="date"?"laat":t.origin==="string"?"lang":"groot";return a?`Te ${c}: verwacht dat ${t.origin??"waarde"} ${o}${t.maximum.toString()} ${a.unit??"elementen"} ${a.verb}`:`Te ${c}: verwacht dat ${t.origin??"waarde"} ${o}${t.maximum.toString()} is`}case"too_small":{const o=t.inclusive?">=":">",a=n(t.origin),c=t.origin==="date"?"vroeg":t.origin==="string"?"kort":"klein";return a?`Te ${c}: verwacht dat ${t.origin} ${o}${t.minimum.toString()} ${a.unit} ${a.verb}`:`Te ${c}: verwacht dat ${t.origin} ${o}${t.minimum.toString()} is`}case"invalid_format":{const o=t;return o.format==="starts_with"?`Ongeldige tekst: moet met "${o.prefix}" beginnen`:o.format==="ends_with"?`Ongeldige tekst: moet op "${o.suffix}" eindigen`:o.format==="includes"?`Ongeldige tekst: moet "${o.includes}" bevatten`:o.format==="regex"?`Ongeldige tekst: moet overeenkomen met patroon ${o.pattern}`:`Ongeldig: ${r[o.format]??t.format}`}case"not_multiple_of":return`Ongeldig getal: moet een veelvoud van ${t.divisor} zijn`;case"unrecognized_keys":return`Onbekende key${t.keys.length>1?"s":""}: ${y(t.keys,", ")}`;case"invalid_key":return`Ongeldige key in ${t.origin}`;case"invalid_union":return"Ongeldige invoer";case"invalid_element":return`Ongeldige waarde in ${t.origin}`;default:return"Ongeldige invoer"}}};function vb(){return{localeError:gb()}}const hb=()=>{const e={string:{unit:"tegn",verb:"å ha"},file:{unit:"bytes",verb:"å ha"},array:{unit:"elementer",verb:"å inneholde"},set:{unit:"elementer",verb:"å inneholde"}};function n(t){return e[t]??null}const r={regex:"input",email:"e-postadresse",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO dato- og klokkeslett",date:"ISO-dato",time:"ISO-klokkeslett",duration:"ISO-varighet",ipv4:"IPv4-område",ipv6:"IPv6-område",cidrv4:"IPv4-spekter",cidrv6:"IPv6-spekter",base64:"base64-enkodet streng",base64url:"base64url-enkodet streng",json_string:"JSON-streng",e164:"E.164-nummer",jwt:"JWT",template_literal:"input"},i={nan:"NaN",number:"tall",array:"liste"};return t=>{switch(t.code){case"invalid_type":{const o=i[t.expected]??t.expected,a=V(t.input),c=i[a]??a;return/^[A-Z]/.test(t.expected)?`Ugyldig input: forventet instanceof ${t.expected}, fikk ${c}`:`Ugyldig input: forventet ${o}, fikk ${c}`}case"invalid_value":return t.values.length===1?`Ugyldig verdi: forventet ${A(t.values[0])}`:`Ugyldig valg: forventet en av ${y(t.values,"|")}`;case"too_big":{const o=t.inclusive?"<=":"<",a=n(t.origin);return a?`For stor(t): forventet ${t.origin??"value"} til å ha ${o}${t.maximum.toString()} ${a.unit??"elementer"}`:`For stor(t): forventet ${t.origin??"value"} til å ha ${o}${t.maximum.toString()}`}case"too_small":{const o=t.inclusive?">=":">",a=n(t.origin);return a?`For lite(n): forventet ${t.origin} til å ha ${o}${t.minimum.toString()} ${a.unit}`:`For lite(n): forventet ${t.origin} til å ha ${o}${t.minimum.toString()}`}case"invalid_format":{const o=t;return o.format==="starts_with"?`Ugyldig streng: må starte med "${o.prefix}"`:o.format==="ends_with"?`Ugyldig streng: må ende med "${o.suffix}"`:o.format==="includes"?`Ugyldig streng: må inneholde "${o.includes}"`:o.format==="regex"?`Ugyldig streng: må matche mønsteret ${o.pattern}`:`Ugyldig ${r[o.format]??t.format}`}case"not_multiple_of":return`Ugyldig tall: må være et multiplum av ${t.divisor}`;case"unrecognized_keys":return`${t.keys.length>1?"Ukjente nøkler":"Ukjent nøkkel"}: ${y(t.keys,", ")}`;case"invalid_key":return`Ugyldig nøkkel i ${t.origin}`;case"invalid_union":return"Ugyldig input";case"invalid_element":return`Ugyldig verdi i ${t.origin}`;default:return"Ugyldig input"}}};function $b(){return{localeError:hb()}}const bb=()=>{const e={string:{unit:"harf",verb:"olmalıdır"},file:{unit:"bayt",verb:"olmalıdır"},array:{unit:"unsur",verb:"olmalıdır"},set:{unit:"unsur",verb:"olmalıdır"}};function n(t){return e[t]??null}const r={regex:"giren",email:"epostagâh",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO hengâmı",date:"ISO tarihi",time:"ISO zamanı",duration:"ISO müddeti",ipv4:"IPv4 nişânı",ipv6:"IPv6 nişânı",cidrv4:"IPv4 menzili",cidrv6:"IPv6 menzili",base64:"base64-şifreli metin",base64url:"base64url-şifreli metin",json_string:"JSON metin",e164:"E.164 sayısı",jwt:"JWT",template_literal:"giren"},i={nan:"NaN",number:"numara",array:"saf",null:"gayb"};return t=>{switch(t.code){case"invalid_type":{const o=i[t.expected]??t.expected,a=V(t.input),c=i[a]??a;return/^[A-Z]/.test(t.expected)?`Fâsit giren: umulan instanceof ${t.expected}, alınan ${c}`:`Fâsit giren: umulan ${o}, alınan ${c}`}case"invalid_value":return t.values.length===1?`Fâsit giren: umulan ${A(t.values[0])}`:`Fâsit tercih: mûteberler ${y(t.values,"|")}`;case"too_big":{const o=t.inclusive?"<=":"<",a=n(t.origin);return a?`Fazla büyük: ${t.origin??"value"}, ${o}${t.maximum.toString()} ${a.unit??"elements"} sahip olmalıydı.`:`Fazla büyük: ${t.origin??"value"}, ${o}${t.maximum.toString()} olmalıydı.`}case"too_small":{const o=t.inclusive?">=":">",a=n(t.origin);return a?`Fazla küçük: ${t.origin}, ${o}${t.minimum.toString()} ${a.unit} sahip olmalıydı.`:`Fazla küçük: ${t.origin}, ${o}${t.minimum.toString()} olmalıydı.`}case"invalid_format":{const o=t;return o.format==="starts_with"?`Fâsit metin: "${o.prefix}" ile başlamalı.`:o.format==="ends_with"?`Fâsit metin: "${o.suffix}" ile bitmeli.`:o.format==="includes"?`Fâsit metin: "${o.includes}" ihtivâ etmeli.`:o.format==="regex"?`Fâsit metin: ${o.pattern} nakşına uymalı.`:`Fâsit ${r[o.format]??t.format}`}case"not_multiple_of":return`Fâsit sayı: ${t.divisor} katı olmalıydı.`;case"unrecognized_keys":return`Tanınmayan anahtar ${t.keys.length>1?"s":""}: ${y(t.keys,", ")}`;case"invalid_key":return`${t.origin} için tanınmayan anahtar var.`;case"invalid_union":return"Giren tanınamadı.";case"invalid_element":return`${t.origin} için tanınmayan kıymet var.`;default:return"Kıymet tanınamadı."}}};function _b(){return{localeError:bb()}}const yb=()=>{const e={string:{unit:"توکي",verb:"ولري"},file:{unit:"بایټس",verb:"ولري"},array:{unit:"توکي",verb:"ولري"},set:{unit:"توکي",verb:"ولري"}};function n(t){return e[t]??null}const r={regex:"ورودي",email:"بریښنالیک",url:"یو آر ال",emoji:"ایموجي",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"نیټه او وخت",date:"نېټه",time:"وخت",duration:"موده",ipv4:"د IPv4 پته",ipv6:"د IPv6 پته",cidrv4:"د IPv4 ساحه",cidrv6:"د IPv6 ساحه",base64:"base64-encoded متن",base64url:"base64url-encoded متن",json_string:"JSON متن",e164:"د E.164 شمېره",jwt:"JWT",template_literal:"ورودي"},i={nan:"NaN",number:"عدد",array:"ارې"};return t=>{switch(t.code){case"invalid_type":{const o=i[t.expected]??t.expected,a=V(t.input),c=i[a]??a;return/^[A-Z]/.test(t.expected)?`ناسم ورودي: باید instanceof ${t.expected} وای, مګر ${c} ترلاسه شو`:`ناسم ورودي: باید ${o} وای, مګر ${c} ترلاسه شو`}case"invalid_value":return t.values.length===1?`ناسم ورودي: باید ${A(t.values[0])} وای`:`ناسم انتخاب: باید یو له ${y(t.values,"|")} څخه وای`;case"too_big":{const o=t.inclusive?"<=":"<",a=n(t.origin);return a?`ډیر لوی: ${t.origin??"ارزښت"} باید ${o}${t.maximum.toString()} ${a.unit??"عنصرونه"} ولري`:`ډیر لوی: ${t.origin??"ارزښت"} باید ${o}${t.maximum.toString()} وي`}case"too_small":{const o=t.inclusive?">=":">",a=n(t.origin);return a?`ډیر کوچنی: ${t.origin} باید ${o}${t.minimum.toString()} ${a.unit} ولري`:`ډیر کوچنی: ${t.origin} باید ${o}${t.minimum.toString()} وي`}case"invalid_format":{const o=t;return o.format==="starts_with"?`ناسم متن: باید د "${o.prefix}" سره پیل شي`:o.format==="ends_with"?`ناسم متن: باید د "${o.suffix}" سره پای ته ورسيږي`:o.format==="includes"?`ناسم متن: باید "${o.includes}" ولري`:o.format==="regex"?`ناسم متن: باید د ${o.pattern} سره مطابقت ولري`:`${r[o.format]??t.format} ناسم دی`}case"not_multiple_of":return`ناسم عدد: باید د ${t.divisor} مضرب وي`;case"unrecognized_keys":return`ناسم ${t.keys.length>1?"کلیډونه":"کلیډ"}: ${y(t.keys,", ")}`;case"invalid_key":return`ناسم کلیډ په ${t.origin} کې`;case"invalid_union":return"ناسمه ورودي";case"invalid_element":return`ناسم عنصر په ${t.origin} کې`;default:return"ناسمه ورودي"}}};function kb(){return{localeError:yb()}}const Sb=()=>{const e={string:{unit:"znaków",verb:"mieć"},file:{unit:"bajtów",verb:"mieć"},array:{unit:"elementów",verb:"mieć"},set:{unit:"elementów",verb:"mieć"}};function n(t){return e[t]??null}const r={regex:"wyrażenie",email:"adres email",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"data i godzina w formacie ISO",date:"data w formacie ISO",time:"godzina w formacie ISO",duration:"czas trwania ISO",ipv4:"adres IPv4",ipv6:"adres IPv6",cidrv4:"zakres IPv4",cidrv6:"zakres IPv6",base64:"ciąg znaków zakodowany w formacie base64",base64url:"ciąg znaków zakodowany w formacie base64url",json_string:"ciąg znaków w formacie JSON",e164:"liczba E.164",jwt:"JWT",template_literal:"wejście"},i={nan:"NaN",number:"liczba",array:"tablica"};return t=>{switch(t.code){case"invalid_type":{const o=i[t.expected]??t.expected,a=V(t.input),c=i[a]??a;return/^[A-Z]/.test(t.expected)?`Nieprawidłowe dane wejściowe: oczekiwano instanceof ${t.expected}, otrzymano ${c}`:`Nieprawidłowe dane wejściowe: oczekiwano ${o}, otrzymano ${c}`}case"invalid_value":return t.values.length===1?`Nieprawidłowe dane wejściowe: oczekiwano ${A(t.values[0])}`:`Nieprawidłowa opcja: oczekiwano jednej z wartości ${y(t.values,"|")}`;case"too_big":{const o=t.inclusive?"<=":"<",a=n(t.origin);return a?`Za duża wartość: oczekiwano, że ${t.origin??"wartość"} będzie mieć ${o}${t.maximum.toString()} ${a.unit??"elementów"}`:`Zbyt duż(y/a/e): oczekiwano, że ${t.origin??"wartość"} będzie wynosić ${o}${t.maximum.toString()}`}case"too_small":{const o=t.inclusive?">=":">",a=n(t.origin);return a?`Za mała wartość: oczekiwano, że ${t.origin??"wartość"} będzie mieć ${o}${t.minimum.toString()} ${a.unit??"elementów"}`:`Zbyt mał(y/a/e): oczekiwano, że ${t.origin??"wartość"} będzie wynosić ${o}${t.minimum.toString()}`}case"invalid_format":{const o=t;return o.format==="starts_with"?`Nieprawidłowy ciąg znaków: musi zaczynać się od "${o.prefix}"`:o.format==="ends_with"?`Nieprawidłowy ciąg znaków: musi kończyć się na "${o.suffix}"`:o.format==="includes"?`Nieprawidłowy ciąg znaków: musi zawierać "${o.includes}"`:o.format==="regex"?`Nieprawidłowy ciąg znaków: musi odpowiadać wzorcowi ${o.pattern}`:`Nieprawidłow(y/a/e) ${r[o.format]??t.format}`}case"not_multiple_of":return`Nieprawidłowa liczba: musi być wielokrotnością ${t.divisor}`;case"unrecognized_keys":return`Nierozpoznane klucze${t.keys.length>1?"s":""}: ${y(t.keys,", ")}`;case"invalid_key":return`Nieprawidłowy klucz w ${t.origin}`;case"invalid_union":return"Nieprawidłowe dane wejściowe";case"invalid_element":return`Nieprawidłowa wartość w ${t.origin}`;default:return"Nieprawidłowe dane wejściowe"}}};function wb(){return{localeError:Sb()}}const Ib=()=>{const e={string:{unit:"caracteres",verb:"ter"},file:{unit:"bytes",verb:"ter"},array:{unit:"itens",verb:"ter"},set:{unit:"itens",verb:"ter"}};function n(t){return e[t]??null}const r={regex:"padrão",email:"endereço de e-mail",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"data e hora ISO",date:"data ISO",time:"hora ISO",duration:"duração ISO",ipv4:"endereço IPv4",ipv6:"endereço IPv6",cidrv4:"faixa de IPv4",cidrv6:"faixa de IPv6",base64:"texto codificado em base64",base64url:"URL codificada em base64",json_string:"texto JSON",e164:"número E.164",jwt:"JWT",template_literal:"entrada"},i={nan:"NaN",number:"número",null:"nulo"};return t=>{switch(t.code){case"invalid_type":{const o=i[t.expected]??t.expected,a=V(t.input),c=i[a]??a;return/^[A-Z]/.test(t.expected)?`Tipo inválido: esperado instanceof ${t.expected}, recebido ${c}`:`Tipo inválido: esperado ${o}, recebido ${c}`}case"invalid_value":return t.values.length===1?`Entrada inválida: esperado ${A(t.values[0])}`:`Opção inválida: esperada uma das ${y(t.values,"|")}`;case"too_big":{const o=t.inclusive?"<=":"<",a=n(t.origin);return a?`Muito grande: esperado que ${t.origin??"valor"} tivesse ${o}${t.maximum.toString()} ${a.unit??"elementos"}`:`Muito grande: esperado que ${t.origin??"valor"} fosse ${o}${t.maximum.toString()}`}case"too_small":{const o=t.inclusive?">=":">",a=n(t.origin);return a?`Muito pequeno: esperado que ${t.origin} tivesse ${o}${t.minimum.toString()} ${a.unit}`:`Muito pequeno: esperado que ${t.origin} fosse ${o}${t.minimum.toString()}`}case"invalid_format":{const o=t;return o.format==="starts_with"?`Texto inválido: deve começar com "${o.prefix}"`:o.format==="ends_with"?`Texto inválido: deve terminar com "${o.suffix}"`:o.format==="includes"?`Texto inválido: deve incluir "${o.includes}"`:o.format==="regex"?`Texto inválido: deve corresponder ao padrão ${o.pattern}`:`${r[o.format]??t.format} inválido`}case"not_multiple_of":return`Número inválido: deve ser múltiplo de ${t.divisor}`;case"unrecognized_keys":return`Chave${t.keys.length>1?"s":""} desconhecida${t.keys.length>1?"s":""}: ${y(t.keys,", ")}`;case"invalid_key":return`Chave inválida em ${t.origin}`;case"invalid_union":return"Entrada inválida";case"invalid_element":return`Valor inválido em ${t.origin}`;default:return"Campo inválido"}}};function zb(){return{localeError:Ib()}}const Eb=()=>{const e={string:{unit:"caractere",verb:"să aibă"},file:{unit:"octeți",verb:"să aibă"},array:{unit:"elemente",verb:"să aibă"},set:{unit:"elemente",verb:"să aibă"},map:{unit:"intrări",verb:"să aibă"}};function n(t){return e[t]??null}const r={regex:"intrare",email:"adresă de email",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"dată și oră ISO",date:"dată ISO",time:"oră ISO",duration:"durată ISO",ipv4:"adresă IPv4",ipv6:"adresă IPv6",mac:"adresă MAC",cidrv4:"interval IPv4",cidrv6:"interval IPv6",base64:"șir codat base64",base64url:"șir codat base64url",json_string:"șir JSON",e164:"număr E.164",jwt:"JWT",template_literal:"intrare"},i={nan:"NaN",string:"șir",number:"număr",boolean:"boolean",function:"funcție",array:"matrice",object:"obiect",undefined:"nedefinit",symbol:"simbol",bigint:"număr mare",void:"void",never:"never",map:"hartă",set:"set"};return t=>{switch(t.code){case"invalid_type":{const o=i[t.expected]??t.expected,a=V(t.input),c=i[a]??a;return`Intrare invalidă: așteptat ${o}, primit ${c}`}case"invalid_value":return t.values.length===1?`Intrare invalidă: așteptat ${A(t.values[0])}`:`Opțiune invalidă: așteptat una dintre ${y(t.values,"|")}`;case"too_big":{const o=t.inclusive?"<=":"<",a=n(t.origin);return a?`Prea mare: așteptat ca ${t.origin??"valoarea"} ${a.verb} ${o}${t.maximum.toString()} ${a.unit??"elemente"}`:`Prea mare: așteptat ca ${t.origin??"valoarea"} să fie ${o}${t.maximum.toString()}`}case"too_small":{const o=t.inclusive?">=":">",a=n(t.origin);return a?`Prea mic: așteptat ca ${t.origin} ${a.verb} ${o}${t.minimum.toString()} ${a.unit}`:`Prea mic: așteptat ca ${t.origin} să fie ${o}${t.minimum.toString()}`}case"invalid_format":{const o=t;return o.format==="starts_with"?`Șir invalid: trebuie să înceapă cu "${o.prefix}"`:o.format==="ends_with"?`Șir invalid: trebuie să se termine cu "${o.suffix}"`:o.format==="includes"?`Șir invalid: trebuie să includă "${o.includes}"`:o.format==="regex"?`Șir invalid: trebuie să se potrivească cu modelul ${o.pattern}`:`Format invalid: ${r[o.format]??t.format}`}case"not_multiple_of":return`Număr invalid: trebuie să fie multiplu de ${t.divisor}`;case"unrecognized_keys":return`Chei nerecunoscute: ${y(t.keys,", ")}`;case"invalid_key":return`Cheie invalidă în ${t.origin}`;case"invalid_union":return"Intrare invalidă";case"invalid_element":return`Valoare invalidă în ${t.origin}`;default:return"Intrare invalidă"}}};function Nb(){return{localeError:Eb()}}function Wc(e,n,r,i){const t=Math.abs(e),o=t%10,a=t%100;return a>=11&&a<=19?i:o===1?n:o>=2&&o<=4?r:i}const Db=()=>{const e={string:{unit:{one:"символ",few:"символа",many:"символов"},verb:"иметь"},file:{unit:{one:"байт",few:"байта",many:"байт"},verb:"иметь"},array:{unit:{one:"элемент",few:"элемента",many:"элементов"},verb:"иметь"},set:{unit:{one:"элемент",few:"элемента",many:"элементов"},verb:"иметь"}};function n(t){return e[t]??null}const r={regex:"ввод",email:"email адрес",url:"URL",emoji:"эмодзи",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO дата и время",date:"ISO дата",time:"ISO время",duration:"ISO длительность",ipv4:"IPv4 адрес",ipv6:"IPv6 адрес",cidrv4:"IPv4 диапазон",cidrv6:"IPv6 диапазон",base64:"строка в формате base64",base64url:"строка в формате base64url",json_string:"JSON строка",e164:"номер E.164",jwt:"JWT",template_literal:"ввод"},i={nan:"NaN",number:"число",array:"массив"};return t=>{switch(t.code){case"invalid_type":{const o=i[t.expected]??t.expected,a=V(t.input),c=i[a]??a;return/^[A-Z]/.test(t.expected)?`Неверный ввод: ожидалось instanceof ${t.expected}, получено ${c}`:`Неверный ввод: ожидалось ${o}, получено ${c}`}case"invalid_value":return t.values.length===1?`Неверный ввод: ожидалось ${A(t.values[0])}`:`Неверный вариант: ожидалось одно из ${y(t.values,"|")}`;case"too_big":{const o=t.inclusive?"<=":"<",a=n(t.origin);if(a){const c=Number(t.maximum),u=Wc(c,a.unit.one,a.unit.few,a.unit.many);return`Слишком большое значение: ожидалось, что ${t.origin??"значение"} будет иметь ${o}${t.maximum.toString()} ${u}`}return`Слишком большое значение: ожидалось, что ${t.origin??"значение"} будет ${o}${t.maximum.toString()}`}case"too_small":{const o=t.inclusive?">=":">",a=n(t.origin);if(a){const c=Number(t.minimum),u=Wc(c,a.unit.one,a.unit.few,a.unit.many);return`Слишком маленькое значение: ожидалось, что ${t.origin} будет иметь ${o}${t.minimum.toString()} ${u}`}return`Слишком маленькое значение: ожидалось, что ${t.origin} будет ${o}${t.minimum.toString()}`}case"invalid_format":{const o=t;return o.format==="starts_with"?`Неверная строка: должна начинаться с "${o.prefix}"`:o.format==="ends_with"?`Неверная строка: должна заканчиваться на "${o.suffix}"`:o.format==="includes"?`Неверная строка: должна содержать "${o.includes}"`:o.format==="regex"?`Неверная строка: должна соответствовать шаблону ${o.pattern}`:`Неверный ${r[o.format]??t.format}`}case"not_multiple_of":return`Неверное число: должно быть кратным ${t.divisor}`;case"unrecognized_keys":return`Нераспознанн${t.keys.length>1?"ые":"ый"} ключ${t.keys.length>1?"и":""}: ${y(t.keys,", ")}`;case"invalid_key":return`Неверный ключ в ${t.origin}`;case"invalid_union":return"Неверные входные данные";case"invalid_element":return`Неверное значение в ${t.origin}`;default:return"Неверные входные данные"}}};function xb(){return{localeError:Db()}}const jb=()=>{const e={string:{unit:"znakov",verb:"imeti"},file:{unit:"bajtov",verb:"imeti"},array:{unit:"elementov",verb:"imeti"},set:{unit:"elementov",verb:"imeti"}};function n(t){return e[t]??null}const r={regex:"vnos",email:"e-poštni naslov",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO datum in čas",date:"ISO datum",time:"ISO čas",duration:"ISO trajanje",ipv4:"IPv4 naslov",ipv6:"IPv6 naslov",cidrv4:"obseg IPv4",cidrv6:"obseg IPv6",base64:"base64 kodiran niz",base64url:"base64url kodiran niz",json_string:"JSON niz",e164:"E.164 številka",jwt:"JWT",template_literal:"vnos"},i={nan:"NaN",number:"število",array:"tabela"};return t=>{switch(t.code){case"invalid_type":{const o=i[t.expected]??t.expected,a=V(t.input),c=i[a]??a;return/^[A-Z]/.test(t.expected)?`Neveljaven vnos: pričakovano instanceof ${t.expected}, prejeto ${c}`:`Neveljaven vnos: pričakovano ${o}, prejeto ${c}`}case"invalid_value":return t.values.length===1?`Neveljaven vnos: pričakovano ${A(t.values[0])}`:`Neveljavna možnost: pričakovano eno izmed ${y(t.values,"|")}`;case"too_big":{const o=t.inclusive?"<=":"<",a=n(t.origin);return a?`Preveliko: pričakovano, da bo ${t.origin??"vrednost"} imelo ${o}${t.maximum.toString()} ${a.unit??"elementov"}`:`Preveliko: pričakovano, da bo ${t.origin??"vrednost"} ${o}${t.maximum.toString()}`}case"too_small":{const o=t.inclusive?">=":">",a=n(t.origin);return a?`Premajhno: pričakovano, da bo ${t.origin} imelo ${o}${t.minimum.toString()} ${a.unit}`:`Premajhno: pričakovano, da bo ${t.origin} ${o}${t.minimum.toString()}`}case"invalid_format":{const o=t;return o.format==="starts_with"?`Neveljaven niz: mora se začeti z "${o.prefix}"`:o.format==="ends_with"?`Neveljaven niz: mora se končati z "${o.suffix}"`:o.format==="includes"?`Neveljaven niz: mora vsebovati "${o.includes}"`:o.format==="regex"?`Neveljaven niz: mora ustrezati vzorcu ${o.pattern}`:`Neveljaven ${r[o.format]??t.format}`}case"not_multiple_of":return`Neveljavno število: mora biti večkratnik ${t.divisor}`;case"unrecognized_keys":return`Neprepoznan${t.keys.length>1?"i ključi":" ključ"}: ${y(t.keys,", ")}`;case"invalid_key":return`Neveljaven ključ v ${t.origin}`;case"invalid_union":return"Neveljaven vnos";case"invalid_element":return`Neveljavna vrednost v ${t.origin}`;default:return"Neveljaven vnos"}}};function Ob(){return{localeError:jb()}}const Ub=()=>{const e={string:{unit:"tecken",verb:"att ha"},file:{unit:"bytes",verb:"att ha"},array:{unit:"objekt",verb:"att innehålla"},set:{unit:"objekt",verb:"att innehålla"}};function n(t){return e[t]??null}const r={regex:"reguljärt uttryck",email:"e-postadress",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO-datum och tid",date:"ISO-datum",time:"ISO-tid",duration:"ISO-varaktighet",ipv4:"IPv4-intervall",ipv6:"IPv6-intervall",cidrv4:"IPv4-spektrum",cidrv6:"IPv6-spektrum",base64:"base64-kodad sträng",base64url:"base64url-kodad sträng",json_string:"JSON-sträng",e164:"E.164-nummer",jwt:"JWT",template_literal:"mall-literal"},i={nan:"NaN",number:"antal",array:"lista"};return t=>{switch(t.code){case"invalid_type":{const o=i[t.expected]??t.expected,a=V(t.input),c=i[a]??a;return/^[A-Z]/.test(t.expected)?`Ogiltig inmatning: förväntat instanceof ${t.expected}, fick ${c}`:`Ogiltig inmatning: förväntat ${o}, fick ${c}`}case"invalid_value":return t.values.length===1?`Ogiltig inmatning: förväntat ${A(t.values[0])}`:`Ogiltigt val: förväntade en av ${y(t.values,"|")}`;case"too_big":{const o=t.inclusive?"<=":"<",a=n(t.origin);return a?`För stor(t): förväntade ${t.origin??"värdet"} att ha ${o}${t.maximum.toString()} ${a.unit??"element"}`:`För stor(t): förväntat ${t.origin??"värdet"} att ha ${o}${t.maximum.toString()}`}case"too_small":{const o=t.inclusive?">=":">",a=n(t.origin);return a?`För lite(t): förväntade ${t.origin??"värdet"} att ha ${o}${t.minimum.toString()} ${a.unit}`:`För lite(t): förväntade ${t.origin??"värdet"} att ha ${o}${t.minimum.toString()}`}case"invalid_format":{const o=t;return o.format==="starts_with"?`Ogiltig sträng: måste börja med "${o.prefix}"`:o.format==="ends_with"?`Ogiltig sträng: måste sluta med "${o.suffix}"`:o.format==="includes"?`Ogiltig sträng: måste innehålla "${o.includes}"`:o.format==="regex"?`Ogiltig sträng: måste matcha mönstret "${o.pattern}"`:`Ogiltig(t) ${r[o.format]??t.format}`}case"not_multiple_of":return`Ogiltigt tal: måste vara en multipel av ${t.divisor}`;case"unrecognized_keys":return`${t.keys.length>1?"Okända nycklar":"Okänd nyckel"}: ${y(t.keys,", ")}`;case"invalid_key":return`Ogiltig nyckel i ${t.origin??"värdet"}`;case"invalid_union":return"Ogiltig input";case"invalid_element":return`Ogiltigt värde i ${t.origin??"värdet"}`;default:return"Ogiltig input"}}};function Tb(){return{localeError:Ub()}}const Cb=()=>{const e={string:{unit:"எழுத்துக்கள்",verb:"கொண்டிருக்க வேண்டும்"},file:{unit:"பைட்டுகள்",verb:"கொண்டிருக்க வேண்டும்"},array:{unit:"உறுப்புகள்",verb:"கொண்டிருக்க வேண்டும்"},set:{unit:"உறுப்புகள்",verb:"கொண்டிருக்க வேண்டும்"}};function n(t){return e[t]??null}const r={regex:"உள்ளீடு",email:"மின்னஞ்சல் முகவரி",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO தேதி நேரம்",date:"ISO தேதி",time:"ISO நேரம்",duration:"ISO கால அளவு",ipv4:"IPv4 முகவரி",ipv6:"IPv6 முகவரி",cidrv4:"IPv4 வரம்பு",cidrv6:"IPv6 வரம்பு",base64:"base64-encoded சரம்",base64url:"base64url-encoded சரம்",json_string:"JSON சரம்",e164:"E.164 எண்",jwt:"JWT",template_literal:"input"},i={nan:"NaN",number:"எண்",array:"அணி",null:"வெறுமை"};return t=>{switch(t.code){case"invalid_type":{const o=i[t.expected]??t.expected,a=V(t.input),c=i[a]??a;return/^[A-Z]/.test(t.expected)?`தவறான உள்ளீடு: எதிர்பார்க்கப்பட்டது instanceof ${t.expected}, பெறப்பட்டது ${c}`:`தவறான உள்ளீடு: எதிர்பார்க்கப்பட்டது ${o}, பெறப்பட்டது ${c}`}case"invalid_value":return t.values.length===1?`தவறான உள்ளீடு: எதிர்பார்க்கப்பட்டது ${A(t.values[0])}`:`தவறான விருப்பம்: எதிர்பார்க்கப்பட்டது ${y(t.values,"|")} இல் ஒன்று`;case"too_big":{const o=t.inclusive?"<=":"<",a=n(t.origin);return a?`மிக பெரியது: எதிர்பார்க்கப்பட்டது ${t.origin??"மதிப்பு"} ${o}${t.maximum.toString()} ${a.unit??"உறுப்புகள்"} ஆக இருக்க வேண்டும்`:`மிக பெரியது: எதிர்பார்க்கப்பட்டது ${t.origin??"மதிப்பு"} ${o}${t.maximum.toString()} ஆக இருக்க வேண்டும்`}case"too_small":{const o=t.inclusive?">=":">",a=n(t.origin);return a?`மிகச் சிறியது: எதிர்பார்க்கப்பட்டது ${t.origin} ${o}${t.minimum.toString()} ${a.unit} ஆக இருக்க வேண்டும்`:`மிகச் சிறியது: எதிர்பார்க்கப்பட்டது ${t.origin} ${o}${t.minimum.toString()} ஆக இருக்க வேண்டும்`}case"invalid_format":{const o=t;return o.format==="starts_with"?`தவறான சரம்: "${o.prefix}" இல் தொடங்க வேண்டும்`:o.format==="ends_with"?`தவறான சரம்: "${o.suffix}" இல் முடிவடைய வேண்டும்`:o.format==="includes"?`தவறான சரம்: "${o.includes}" ஐ உள்ளடக்க வேண்டும்`:o.format==="regex"?`தவறான சரம்: ${o.pattern} முறைபாட்டுடன் பொருந்த வேண்டும்`:`தவறான ${r[o.format]??t.format}`}case"not_multiple_of":return`தவறான எண்: ${t.divisor} இன் பலமாக இருக்க வேண்டும்`;case"unrecognized_keys":return`அடையாளம் தெரியாத விசை${t.keys.length>1?"கள்":""}: ${y(t.keys,", ")}`;case"invalid_key":return`${t.origin} இல் தவறான விசை`;case"invalid_union":return"தவறான உள்ளீடு";case"invalid_element":return`${t.origin} இல் தவறான மதிப்பு`;default:return"தவறான உள்ளீடு"}}};function Pb(){return{localeError:Cb()}}const Ab=()=>{const e={string:{unit:"ตัวอักษร",verb:"ควรมี"},file:{unit:"ไบต์",verb:"ควรมี"},array:{unit:"รายการ",verb:"ควรมี"},set:{unit:"รายการ",verb:"ควรมี"}};function n(t){return e[t]??null}const r={regex:"ข้อมูลที่ป้อน",email:"ที่อยู่อีเมล",url:"URL",emoji:"อิโมจิ",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"วันที่เวลาแบบ ISO",date:"วันที่แบบ ISO",time:"เวลาแบบ ISO",duration:"ช่วงเวลาแบบ ISO",ipv4:"ที่อยู่ IPv4",ipv6:"ที่อยู่ IPv6",cidrv4:"ช่วง IP แบบ IPv4",cidrv6:"ช่วง IP แบบ IPv6",base64:"ข้อความแบบ Base64",base64url:"ข้อความแบบ Base64 สำหรับ URL",json_string:"ข้อความแบบ JSON",e164:"เบอร์โทรศัพท์ระหว่างประเทศ (E.164)",jwt:"โทเคน JWT",template_literal:"ข้อมูลที่ป้อน"},i={nan:"NaN",number:"ตัวเลข",array:"อาร์เรย์ (Array)",null:"ไม่มีค่า (null)"};return t=>{switch(t.code){case"invalid_type":{const o=i[t.expected]??t.expected,a=V(t.input),c=i[a]??a;return/^[A-Z]/.test(t.expected)?`ประเภทข้อมูลไม่ถูกต้อง: ควรเป็น instanceof ${t.expected} แต่ได้รับ ${c}`:`ประเภทข้อมูลไม่ถูกต้อง: ควรเป็น ${o} แต่ได้รับ ${c}`}case"invalid_value":return t.values.length===1?`ค่าไม่ถูกต้อง: ควรเป็น ${A(t.values[0])}`:`ตัวเลือกไม่ถูกต้อง: ควรเป็นหนึ่งใน ${y(t.values,"|")}`;case"too_big":{const o=t.inclusive?"ไม่เกิน":"น้อยกว่า",a=n(t.origin);return a?`เกินกำหนด: ${t.origin??"ค่า"} ควรมี${o} ${t.maximum.toString()} ${a.unit??"รายการ"}`:`เกินกำหนด: ${t.origin??"ค่า"} ควรมี${o} ${t.maximum.toString()}`}case"too_small":{const o=t.inclusive?"อย่างน้อย":"มากกว่า",a=n(t.origin);return a?`น้อยกว่ากำหนด: ${t.origin} ควรมี${o} ${t.minimum.toString()} ${a.unit}`:`น้อยกว่ากำหนด: ${t.origin} ควรมี${o} ${t.minimum.toString()}`}case"invalid_format":{const o=t;return o.format==="starts_with"?`รูปแบบไม่ถูกต้อง: ข้อความต้องขึ้นต้นด้วย "${o.prefix}"`:o.format==="ends_with"?`รูปแบบไม่ถูกต้อง: ข้อความต้องลงท้ายด้วย "${o.suffix}"`:o.format==="includes"?`รูปแบบไม่ถูกต้อง: ข้อความต้องมี "${o.includes}" อยู่ในข้อความ`:o.format==="regex"?`รูปแบบไม่ถูกต้อง: ต้องตรงกับรูปแบบที่กำหนด ${o.pattern}`:`รูปแบบไม่ถูกต้อง: ${r[o.format]??t.format}`}case"not_multiple_of":return`ตัวเลขไม่ถูกต้อง: ต้องเป็นจำนวนที่หารด้วย ${t.divisor} ได้ลงตัว`;case"unrecognized_keys":return`พบคีย์ที่ไม่รู้จัก: ${y(t.keys,", ")}`;case"invalid_key":return`คีย์ไม่ถูกต้องใน ${t.origin}`;case"invalid_union":return"ข้อมูลไม่ถูกต้อง: ไม่ตรงกับรูปแบบยูเนียนที่กำหนดไว้";case"invalid_element":return`ข้อมูลไม่ถูกต้องใน ${t.origin}`;default:return"ข้อมูลไม่ถูกต้อง"}}};function Vb(){return{localeError:Ab()}}const Zb=()=>{const e={string:{unit:"karakter",verb:"olmalı"},file:{unit:"bayt",verb:"olmalı"},array:{unit:"öğe",verb:"olmalı"},set:{unit:"öğe",verb:"olmalı"}};function n(t){return e[t]??null}const r={regex:"girdi",email:"e-posta adresi",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO tarih ve saat",date:"ISO tarih",time:"ISO saat",duration:"ISO süre",ipv4:"IPv4 adresi",ipv6:"IPv6 adresi",cidrv4:"IPv4 aralığı",cidrv6:"IPv6 aralığı",base64:"base64 ile şifrelenmiş metin",base64url:"base64url ile şifrelenmiş metin",json_string:"JSON dizesi",e164:"E.164 sayısı",jwt:"JWT",template_literal:"Şablon dizesi"},i={nan:"NaN"};return t=>{switch(t.code){case"invalid_type":{const o=i[t.expected]??t.expected,a=V(t.input),c=i[a]??a;return/^[A-Z]/.test(t.expected)?`Geçersiz değer: beklenen instanceof ${t.expected}, alınan ${c}`:`Geçersiz değer: beklenen ${o}, alınan ${c}`}case"invalid_value":return t.values.length===1?`Geçersiz değer: beklenen ${A(t.values[0])}`:`Geçersiz seçenek: aşağıdakilerden biri olmalı: ${y(t.values,"|")}`;case"too_big":{const o=t.inclusive?"<=":"<",a=n(t.origin);return a?`Çok büyük: beklenen ${t.origin??"değer"} ${o}${t.maximum.toString()} ${a.unit??"öğe"}`:`Çok büyük: beklenen ${t.origin??"değer"} ${o}${t.maximum.toString()}`}case"too_small":{const o=t.inclusive?">=":">",a=n(t.origin);return a?`Çok küçük: beklenen ${t.origin} ${o}${t.minimum.toString()} ${a.unit}`:`Çok küçük: beklenen ${t.origin} ${o}${t.minimum.toString()}`}case"invalid_format":{const o=t;return o.format==="starts_with"?`Geçersiz metin: "${o.prefix}" ile başlamalı`:o.format==="ends_with"?`Geçersiz metin: "${o.suffix}" ile bitmeli`:o.format==="includes"?`Geçersiz metin: "${o.includes}" içermeli`:o.format==="regex"?`Geçersiz metin: ${o.pattern} desenine uymalı`:`Geçersiz ${r[o.format]??t.format}`}case"not_multiple_of":return`Geçersiz sayı: ${t.divisor} ile tam bölünebilmeli`;case"unrecognized_keys":return`Tanınmayan anahtar${t.keys.length>1?"lar":""}: ${y(t.keys,", ")}`;case"invalid_key":return`${t.origin} içinde geçersiz anahtar`;case"invalid_union":return"Geçersiz değer";case"invalid_element":return`${t.origin} içinde geçersiz değer`;default:return"Geçersiz değer"}}};function Bb(){return{localeError:Zb()}}const Mb=()=>{const e={string:{unit:"символів",verb:"матиме"},file:{unit:"байтів",verb:"матиме"},array:{unit:"елементів",verb:"матиме"},set:{unit:"елементів",verb:"матиме"}};function n(t){return e[t]??null}const r={regex:"вхідні дані",email:"адреса електронної пошти",url:"URL",emoji:"емодзі",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"дата та час ISO",date:"дата ISO",time:"час ISO",duration:"тривалість ISO",ipv4:"адреса IPv4",ipv6:"адреса IPv6",cidrv4:"діапазон IPv4",cidrv6:"діапазон IPv6",base64:"рядок у кодуванні base64",base64url:"рядок у кодуванні base64url",json_string:"рядок JSON",e164:"номер E.164",jwt:"JWT",template_literal:"вхідні дані"},i={nan:"NaN",number:"число",array:"масив"};return t=>{switch(t.code){case"invalid_type":{const o=i[t.expected]??t.expected,a=V(t.input),c=i[a]??a;return/^[A-Z]/.test(t.expected)?`Неправильні вхідні дані: очікується instanceof ${t.expected}, отримано ${c}`:`Неправильні вхідні дані: очікується ${o}, отримано ${c}`}case"invalid_value":return t.values.length===1?`Неправильні вхідні дані: очікується ${A(t.values[0])}`:`Неправильна опція: очікується одне з ${y(t.values,"|")}`;case"too_big":{const o=t.inclusive?"<=":"<",a=n(t.origin);return a?`Занадто велике: очікується, що ${t.origin??"значення"} ${a.verb} ${o}${t.maximum.toString()} ${a.unit??"елементів"}`:`Занадто велике: очікується, що ${t.origin??"значення"} буде ${o}${t.maximum.toString()}`}case"too_small":{const o=t.inclusive?">=":">",a=n(t.origin);return a?`Занадто мале: очікується, що ${t.origin} ${a.verb} ${o}${t.minimum.toString()} ${a.unit}`:`Занадто мале: очікується, що ${t.origin} буде ${o}${t.minimum.toString()}`}case"invalid_format":{const o=t;return o.format==="starts_with"?`Неправильний рядок: повинен починатися з "${o.prefix}"`:o.format==="ends_with"?`Неправильний рядок: повинен закінчуватися на "${o.suffix}"`:o.format==="includes"?`Неправильний рядок: повинен містити "${o.includes}"`:o.format==="regex"?`Неправильний рядок: повинен відповідати шаблону ${o.pattern}`:`Неправильний ${r[o.format]??t.format}`}case"not_multiple_of":return`Неправильне число: повинно бути кратним ${t.divisor}`;case"unrecognized_keys":return`Нерозпізнаний ключ${t.keys.length>1?"і":""}: ${y(t.keys,", ")}`;case"invalid_key":return`Неправильний ключ у ${t.origin}`;case"invalid_union":return"Неправильні вхідні дані";case"invalid_element":return`Неправильне значення у ${t.origin}`;default:return"Неправильні вхідні дані"}}};function Kc(){return{localeError:Mb()}}function Fb(){return Kc()}const Lb=()=>{const e={string:{unit:"حروف",verb:"ہونا"},file:{unit:"بائٹس",verb:"ہونا"},array:{unit:"آئٹمز",verb:"ہونا"},set:{unit:"آئٹمز",verb:"ہونا"}};function n(t){return e[t]??null}const r={regex:"ان پٹ",email:"ای میل ایڈریس",url:"یو آر ایل",emoji:"ایموجی",uuid:"یو یو آئی ڈی",uuidv4:"یو یو آئی ڈی وی 4",uuidv6:"یو یو آئی ڈی وی 6",nanoid:"نینو آئی ڈی",guid:"جی یو آئی ڈی",cuid:"سی یو آئی ڈی",cuid2:"سی یو آئی ڈی 2",ulid:"یو ایل آئی ڈی",xid:"ایکس آئی ڈی",ksuid:"کے ایس یو آئی ڈی",datetime:"آئی ایس او ڈیٹ ٹائم",date:"آئی ایس او تاریخ",time:"آئی ایس او وقت",duration:"آئی ایس او مدت",ipv4:"آئی پی وی 4 ایڈریس",ipv6:"آئی پی وی 6 ایڈریس",cidrv4:"آئی پی وی 4 رینج",cidrv6:"آئی پی وی 6 رینج",base64:"بیس 64 ان کوڈڈ سٹرنگ",base64url:"بیس 64 یو آر ایل ان کوڈڈ سٹرنگ",json_string:"جے ایس او این سٹرنگ",e164:"ای 164 نمبر",jwt:"جے ڈبلیو ٹی",template_literal:"ان پٹ"},i={nan:"NaN",number:"نمبر",array:"آرے",null:"نل"};return t=>{switch(t.code){case"invalid_type":{const o=i[t.expected]??t.expected,a=V(t.input),c=i[a]??a;return/^[A-Z]/.test(t.expected)?`غلط ان پٹ: instanceof ${t.expected} متوقع تھا، ${c} موصول ہوا`:`غلط ان پٹ: ${o} متوقع تھا، ${c} موصول ہوا`}case"invalid_value":return t.values.length===1?`غلط ان پٹ: ${A(t.values[0])} متوقع تھا`:`غلط آپشن: ${y(t.values,"|")} میں سے ایک متوقع تھا`;case"too_big":{const o=t.inclusive?"<=":"<",a=n(t.origin);return a?`بہت بڑا: ${t.origin??"ویلیو"} کے ${o}${t.maximum.toString()} ${a.unit??"عناصر"} ہونے متوقع تھے`:`بہت بڑا: ${t.origin??"ویلیو"} کا ${o}${t.maximum.toString()} ہونا متوقع تھا`}case"too_small":{const o=t.inclusive?">=":">",a=n(t.origin);return a?`بہت چھوٹا: ${t.origin} کے ${o}${t.minimum.toString()} ${a.unit} ہونے متوقع تھے`:`بہت چھوٹا: ${t.origin} کا ${o}${t.minimum.toString()} ہونا متوقع تھا`}case"invalid_format":{const o=t;return o.format==="starts_with"?`غلط سٹرنگ: "${o.prefix}" سے شروع ہونا چاہیے`:o.format==="ends_with"?`غلط سٹرنگ: "${o.suffix}" پر ختم ہونا چاہیے`:o.format==="includes"?`غلط سٹرنگ: "${o.includes}" شامل ہونا چاہیے`:o.format==="regex"?`غلط سٹرنگ: پیٹرن ${o.pattern} سے میچ ہونا چاہیے`:`غلط ${r[o.format]??t.format}`}case"not_multiple_of":return`غلط نمبر: ${t.divisor} کا مضاعف ہونا چاہیے`;case"unrecognized_keys":return`غیر تسلیم شدہ کی${t.keys.length>1?"ز":""}: ${y(t.keys,"، ")}`;case"invalid_key":return`${t.origin} میں غلط کی`;case"invalid_union":return"غلط ان پٹ";case"invalid_element":return`${t.origin} میں غلط ویلیو`;default:return"غلط ان پٹ"}}};function Rb(){return{localeError:Lb()}}const Jb=()=>{const e={string:{unit:"belgi",verb:"bo‘lishi kerak"},file:{unit:"bayt",verb:"bo‘lishi kerak"},array:{unit:"element",verb:"bo‘lishi kerak"},set:{unit:"element",verb:"bo‘lishi kerak"},map:{unit:"yozuv",verb:"bo‘lishi kerak"}};function n(t){return e[t]??null}const r={regex:"kirish",email:"elektron pochta manzili",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO sana va vaqti",date:"ISO sana",time:"ISO vaqt",duration:"ISO davomiylik",ipv4:"IPv4 manzil",ipv6:"IPv6 manzil",mac:"MAC manzil",cidrv4:"IPv4 diapazon",cidrv6:"IPv6 diapazon",base64:"base64 kodlangan satr",base64url:"base64url kodlangan satr",json_string:"JSON satr",e164:"E.164 raqam",jwt:"JWT",template_literal:"kirish"},i={nan:"NaN",number:"raqam",array:"massiv"};return t=>{switch(t.code){case"invalid_type":{const o=i[t.expected]??t.expected,a=V(t.input),c=i[a]??a;return/^[A-Z]/.test(t.expected)?`Noto‘g‘ri kirish: kutilgan instanceof ${t.expected}, qabul qilingan ${c}`:`Noto‘g‘ri kirish: kutilgan ${o}, qabul qilingan ${c}`}case"invalid_value":return t.values.length===1?`Noto‘g‘ri kirish: kutilgan ${A(t.values[0])}`:`Noto‘g‘ri variant: quyidagilardan biri kutilgan ${y(t.values,"|")}`;case"too_big":{const o=t.inclusive?"<=":"<",a=n(t.origin);return a?`Juda katta: kutilgan ${t.origin??"qiymat"} ${o}${t.maximum.toString()} ${a.unit} ${a.verb}`:`Juda katta: kutilgan ${t.origin??"qiymat"} ${o}${t.maximum.toString()}`}case"too_small":{const o=t.inclusive?">=":">",a=n(t.origin);return a?`Juda kichik: kutilgan ${t.origin} ${o}${t.minimum.toString()} ${a.unit} ${a.verb}`:`Juda kichik: kutilgan ${t.origin} ${o}${t.minimum.toString()}`}case"invalid_format":{const o=t;return o.format==="starts_with"?`Noto‘g‘ri satr: "${o.prefix}" bilan boshlanishi kerak`:o.format==="ends_with"?`Noto‘g‘ri satr: "${o.suffix}" bilan tugashi kerak`:o.format==="includes"?`Noto‘g‘ri satr: "${o.includes}" ni o‘z ichiga olishi kerak`:o.format==="regex"?`Noto‘g‘ri satr: ${o.pattern} shabloniga mos kelishi kerak`:`Noto‘g‘ri ${r[o.format]??t.format}`}case"not_multiple_of":return`Noto‘g‘ri raqam: ${t.divisor} ning karralisi bo‘lishi kerak`;case"unrecognized_keys":return`Noma’lum kalit${t.keys.length>1?"lar":""}: ${y(t.keys,", ")}`;case"invalid_key":return`${t.origin} dagi kalit noto‘g‘ri`;case"invalid_union":return"Noto‘g‘ri kirish";case"invalid_element":return`${t.origin} da noto‘g‘ri qiymat`;default:return"Noto‘g‘ri kirish"}}};function qb(){return{localeError:Jb()}}const Gb=()=>{const e={string:{unit:"ký tự",verb:"có"},file:{unit:"byte",verb:"có"},array:{unit:"phần tử",verb:"có"},set:{unit:"phần tử",verb:"có"}};function n(t){return e[t]??null}const r={regex:"đầu vào",email:"địa chỉ email",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ngày giờ ISO",date:"ngày ISO",time:"giờ ISO",duration:"khoảng thời gian ISO",ipv4:"địa chỉ IPv4",ipv6:"địa chỉ IPv6",cidrv4:"dải IPv4",cidrv6:"dải IPv6",base64:"chuỗi mã hóa base64",base64url:"chuỗi mã hóa base64url",json_string:"chuỗi JSON",e164:"số E.164",jwt:"JWT",template_literal:"đầu vào"},i={nan:"NaN",number:"số",array:"mảng"};return t=>{switch(t.code){case"invalid_type":{const o=i[t.expected]??t.expected,a=V(t.input),c=i[a]??a;return/^[A-Z]/.test(t.expected)?`Đầu vào không hợp lệ: mong đợi instanceof ${t.expected}, nhận được ${c}`:`Đầu vào không hợp lệ: mong đợi ${o}, nhận được ${c}`}case"invalid_value":return t.values.length===1?`Đầu vào không hợp lệ: mong đợi ${A(t.values[0])}`:`Tùy chọn không hợp lệ: mong đợi một trong các giá trị ${y(t.values,"|")}`;case"too_big":{const o=t.inclusive?"<=":"<",a=n(t.origin);return a?`Quá lớn: mong đợi ${t.origin??"giá trị"} ${a.verb} ${o}${t.maximum.toString()} ${a.unit??"phần tử"}`:`Quá lớn: mong đợi ${t.origin??"giá trị"} ${o}${t.maximum.toString()}`}case"too_small":{const o=t.inclusive?">=":">",a=n(t.origin);return a?`Quá nhỏ: mong đợi ${t.origin} ${a.verb} ${o}${t.minimum.toString()} ${a.unit}`:`Quá nhỏ: mong đợi ${t.origin} ${o}${t.minimum.toString()}`}case"invalid_format":{const o=t;return o.format==="starts_with"?`Chuỗi không hợp lệ: phải bắt đầu bằng "${o.prefix}"`:o.format==="ends_with"?`Chuỗi không hợp lệ: phải kết thúc bằng "${o.suffix}"`:o.format==="includes"?`Chuỗi không hợp lệ: phải bao gồm "${o.includes}"`:o.format==="regex"?`Chuỗi không hợp lệ: phải khớp với mẫu ${o.pattern}`:`${r[o.format]??t.format} không hợp lệ`}case"not_multiple_of":return`Số không hợp lệ: phải là bội số của ${t.divisor}`;case"unrecognized_keys":return`Khóa không được nhận dạng: ${y(t.keys,", ")}`;case"invalid_key":return`Khóa không hợp lệ trong ${t.origin}`;case"invalid_union":return"Đầu vào không hợp lệ";case"invalid_element":return`Giá trị không hợp lệ trong ${t.origin}`;default:return"Đầu vào không hợp lệ"}}};function Wb(){return{localeError:Gb()}}const Kb=()=>{const e={string:{unit:"字符",verb:"包含"},file:{unit:"字节",verb:"包含"},array:{unit:"项",verb:"包含"},set:{unit:"项",verb:"包含"}};function n(t){return e[t]??null}const r={regex:"输入",email:"电子邮件",url:"URL",emoji:"表情符号",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO日期时间",date:"ISO日期",time:"ISO时间",duration:"ISO时长",ipv4:"IPv4地址",ipv6:"IPv6地址",cidrv4:"IPv4网段",cidrv6:"IPv6网段",base64:"base64编码字符串",base64url:"base64url编码字符串",json_string:"JSON字符串",e164:"E.164号码",jwt:"JWT",template_literal:"输入"},i={nan:"NaN",number:"数字",array:"数组",null:"空值(null)"};return t=>{switch(t.code){case"invalid_type":{const o=i[t.expected]??t.expected,a=V(t.input),c=i[a]??a;return/^[A-Z]/.test(t.expected)?`无效输入:期望 instanceof ${t.expected},实际接收 ${c}`:`无效输入:期望 ${o},实际接收 ${c}`}case"invalid_value":return t.values.length===1?`无效输入:期望 ${A(t.values[0])}`:`无效选项:期望以下之一 ${y(t.values,"|")}`;case"too_big":{const o=t.inclusive?"<=":"<",a=n(t.origin);return a?`数值过大:期望 ${t.origin??"值"} ${o}${t.maximum.toString()} ${a.unit??"个元素"}`:`数值过大:期望 ${t.origin??"值"} ${o}${t.maximum.toString()}`}case"too_small":{const o=t.inclusive?">=":">",a=n(t.origin);return a?`数值过小:期望 ${t.origin} ${o}${t.minimum.toString()} ${a.unit}`:`数值过小:期望 ${t.origin} ${o}${t.minimum.toString()}`}case"invalid_format":{const o=t;return o.format==="starts_with"?`无效字符串:必须以 "${o.prefix}" 开头`:o.format==="ends_with"?`无效字符串:必须以 "${o.suffix}" 结尾`:o.format==="includes"?`无效字符串:必须包含 "${o.includes}"`:o.format==="regex"?`无效字符串:必须满足正则表达式 ${o.pattern}`:`无效${r[o.format]??t.format}`}case"not_multiple_of":return`无效数字:必须是 ${t.divisor} 的倍数`;case"unrecognized_keys":return`出现未知的键(key): ${y(t.keys,", ")}`;case"invalid_key":return`${t.origin} 中的键(key)无效`;case"invalid_union":return"无效输入";case"invalid_element":return`${t.origin} 中包含无效值(value)`;default:return"无效输入"}}};function Xb(){return{localeError:Kb()}}const Yb=()=>{const e={string:{unit:"字元",verb:"擁有"},file:{unit:"位元組",verb:"擁有"},array:{unit:"項目",verb:"擁有"},set:{unit:"項目",verb:"擁有"}};function n(t){return e[t]??null}const r={regex:"輸入",email:"郵件地址",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO 日期時間",date:"ISO 日期",time:"ISO 時間",duration:"ISO 期間",ipv4:"IPv4 位址",ipv6:"IPv6 位址",cidrv4:"IPv4 範圍",cidrv6:"IPv6 範圍",base64:"base64 編碼字串",base64url:"base64url 編碼字串",json_string:"JSON 字串",e164:"E.164 數值",jwt:"JWT",template_literal:"輸入"},i={nan:"NaN"};return t=>{switch(t.code){case"invalid_type":{const o=i[t.expected]??t.expected,a=V(t.input),c=i[a]??a;return/^[A-Z]/.test(t.expected)?`無效的輸入值:預期為 instanceof ${t.expected},但收到 ${c}`:`無效的輸入值:預期為 ${o},但收到 ${c}`}case"invalid_value":return t.values.length===1?`無效的輸入值:預期為 ${A(t.values[0])}`:`無效的選項:預期為以下其中之一 ${y(t.values,"|")}`;case"too_big":{const o=t.inclusive?"<=":"<",a=n(t.origin);return a?`數值過大:預期 ${t.origin??"值"} 應為 ${o}${t.maximum.toString()} ${a.unit??"個元素"}`:`數值過大:預期 ${t.origin??"值"} 應為 ${o}${t.maximum.toString()}`}case"too_small":{const o=t.inclusive?">=":">",a=n(t.origin);return a?`數值過小:預期 ${t.origin} 應為 ${o}${t.minimum.toString()} ${a.unit}`:`數值過小:預期 ${t.origin} 應為 ${o}${t.minimum.toString()}`}case"invalid_format":{const o=t;return o.format==="starts_with"?`無效的字串:必須以 "${o.prefix}" 開頭`:o.format==="ends_with"?`無效的字串:必須以 "${o.suffix}" 結尾`:o.format==="includes"?`無效的字串:必須包含 "${o.includes}"`:o.format==="regex"?`無效的字串:必須符合格式 ${o.pattern}`:`無效的 ${r[o.format]??t.format}`}case"not_multiple_of":return`無效的數字:必須為 ${t.divisor} 的倍數`;case"unrecognized_keys":return`無法識別的鍵值${t.keys.length>1?"們":""}:${y(t.keys,"、")}`;case"invalid_key":return`${t.origin} 中有無效的鍵值`;case"invalid_union":return"無效的輸入值";case"invalid_element":return`${t.origin} 中有無效的值`;default:return"無效的輸入值"}}};function Hb(){return{localeError:Yb()}}const Qb=()=>{const e={string:{unit:"àmi",verb:"ní"},file:{unit:"bytes",verb:"ní"},array:{unit:"nkan",verb:"ní"},set:{unit:"nkan",verb:"ní"}};function n(t){return e[t]??null}const r={regex:"ẹ̀rọ ìbáwọlé",email:"àdírẹ́sì ìmẹ́lì",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"àkókò ISO",date:"ọjọ́ ISO",time:"àkókò ISO",duration:"àkókò tó pé ISO",ipv4:"àdírẹ́sì IPv4",ipv6:"àdírẹ́sì IPv6",cidrv4:"àgbègbè IPv4",cidrv6:"àgbègbè IPv6",base64:"ọ̀rọ̀ tí a kọ́ ní base64",base64url:"ọ̀rọ̀ base64url",json_string:"ọ̀rọ̀ JSON",e164:"nọ́mbà E.164",jwt:"JWT",template_literal:"ẹ̀rọ ìbáwọlé"},i={nan:"NaN",number:"nọ́mbà",array:"akopọ"};return t=>{switch(t.code){case"invalid_type":{const o=i[t.expected]??t.expected,a=V(t.input),c=i[a]??a;return/^[A-Z]/.test(t.expected)?`Ìbáwọlé aṣìṣe: a ní láti fi instanceof ${t.expected}, àmọ̀ a rí ${c}`:`Ìbáwọlé aṣìṣe: a ní láti fi ${o}, àmọ̀ a rí ${c}`}case"invalid_value":return t.values.length===1?`Ìbáwọlé aṣìṣe: a ní láti fi ${A(t.values[0])}`:`Àṣàyàn aṣìṣe: yan ọ̀kan lára ${y(t.values,"|")}`;case"too_big":{const o=t.inclusive?"<=":"<",a=n(t.origin);return a?`Tó pọ̀ jù: a ní láti jẹ́ pé ${t.origin??"iye"} ${a.verb} ${o}${t.maximum} ${a.unit}`:`Tó pọ̀ jù: a ní láti jẹ́ ${o}${t.maximum}`}case"too_small":{const o=t.inclusive?">=":">",a=n(t.origin);return a?`Kéré ju: a ní láti jẹ́ pé ${t.origin} ${a.verb} ${o}${t.minimum} ${a.unit}`:`Kéré ju: a ní láti jẹ́ ${o}${t.minimum}`}case"invalid_format":{const o=t;return o.format==="starts_with"?`Ọ̀rọ̀ aṣìṣe: gbọ́dọ̀ bẹ̀rẹ̀ pẹ̀lú "${o.prefix}"`:o.format==="ends_with"?`Ọ̀rọ̀ aṣìṣe: gbọ́dọ̀ parí pẹ̀lú "${o.suffix}"`:o.format==="includes"?`Ọ̀rọ̀ aṣìṣe: gbọ́dọ̀ ní "${o.includes}"`:o.format==="regex"?`Ọ̀rọ̀ aṣìṣe: gbọ́dọ̀ bá àpẹẹrẹ mu ${o.pattern}`:`Aṣìṣe: ${r[o.format]??t.format}`}case"not_multiple_of":return`Nọ́mbà aṣìṣe: gbọ́dọ̀ jẹ́ èyà pípín ti ${t.divisor}`;case"unrecognized_keys":return`Bọtìnì àìmọ̀: ${y(t.keys,", ")}`;case"invalid_key":return`Bọtìnì aṣìṣe nínú ${t.origin}`;case"invalid_union":return"Ìbáwọlé aṣìṣe";case"invalid_element":return`Iye aṣìṣe nínú ${t.origin}`;default:return"Ìbáwọlé aṣìṣe"}}};function e_(){return{localeError:Qb()}}const Xc=Object.freeze(Object.defineProperty({__proto__:null,ar:d$,az:f$,be:g$,bg:h$,ca:b$,cs:y$,da:S$,de:I$,el:E$,en:Rc,eo:x$,es:O$,fa:T$,fi:P$,fr:V$,frCA:B$,he:F$,hr:R$,hu:q$,hy:W$,id:X$,is:H$,it:eb,ja:nb,ka:ob,kh:ab,km:qc,ko:cb,lt:ub,mk:mb,ms:pb,nl:vb,no:$b,ota:_b,pl:wb,ps:kb,pt:zb,ro:Nb,ru:xb,sl:Ob,sv:Tb,ta:Pb,th:Vb,tr:Bb,ua:Fb,uk:Kc,ur:Rb,uz:qb,vi:Wb,yo:e_,zhCN:Xb,zhTW:Hb},Symbol.toStringTag,{value:"Module"}));var Yc;const Hc=Symbol("ZodOutput"),Qc=Symbol("ZodInput");class es{constructor(){this._map=new WeakMap,this._idmap=new Map}add(n,...r){const i=r[0];return this._map.set(n,i),i&&typeof i=="object"&&"id"in i&&this._idmap.set(i.id,n),this}clear(){return this._map=new WeakMap,this._idmap=new Map,this}remove(n){const r=this._map.get(n);return r&&typeof r=="object"&&"id"in r&&this._idmap.delete(r.id),this._map.delete(n),this}get(n){const r=n._zod.parent;if(r){const i={...this.get(r)??{}};delete i.id;const t={...i,...this._map.get(n)};return Object.keys(t).length?t:void 0}return this._map.get(n)}has(n){return this._map.has(n)}}function jr(){return new es}(Yc=globalThis).__zod_globalRegistry??(Yc.__zod_globalRegistry=jr());const ve=globalThis.__zod_globalRegistry;function ts(e,n){return new e({type:"string",..._(n)})}function ns(e,n){return new e({type:"string",coerce:!0,..._(n)})}function Or(e,n){return new e({type:"string",format:"email",check:"string_format",abort:!1,..._(n)})}function en(e,n){return new e({type:"string",format:"guid",check:"string_format",abort:!1,..._(n)})}function Ur(e,n){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,..._(n)})}function Tr(e,n){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v4",..._(n)})}function Cr(e,n){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v6",..._(n)})}function Pr(e,n){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v7",..._(n)})}function tn(e,n){return new e({type:"string",format:"url",check:"string_format",abort:!1,..._(n)})}function Ar(e,n){return new e({type:"string",format:"emoji",check:"string_format",abort:!1,..._(n)})}function Vr(e,n){return new e({type:"string",format:"nanoid",check:"string_format",abort:!1,..._(n)})}function Zr(e,n){return new e({type:"string",format:"cuid",check:"string_format",abort:!1,..._(n)})}function Br(e,n){return new e({type:"string",format:"cuid2",check:"string_format",abort:!1,..._(n)})}function Mr(e,n){return new e({type:"string",format:"ulid",check:"string_format",abort:!1,..._(n)})}function Fr(e,n){return new e({type:"string",format:"xid",check:"string_format",abort:!1,..._(n)})}function Lr(e,n){return new e({type:"string",format:"ksuid",check:"string_format",abort:!1,..._(n)})}function Rr(e,n){return new e({type:"string",format:"ipv4",check:"string_format",abort:!1,..._(n)})}function Jr(e,n){return new e({type:"string",format:"ipv6",check:"string_format",abort:!1,..._(n)})}function rs(e,n){return new e({type:"string",format:"mac",check:"string_format",abort:!1,..._(n)})}function qr(e,n){return new e({type:"string",format:"cidrv4",check:"string_format",abort:!1,..._(n)})}function Gr(e,n){return new e({type:"string",format:"cidrv6",check:"string_format",abort:!1,..._(n)})}function Wr(e,n){return new e({type:"string",format:"base64",check:"string_format",abort:!1,..._(n)})}function Kr(e,n){return new e({type:"string",format:"base64url",check:"string_format",abort:!1,..._(n)})}function Xr(e,n){return new e({type:"string",format:"e164",check:"string_format",abort:!1,..._(n)})}function Yr(e,n){return new e({type:"string",format:"jwt",check:"string_format",abort:!1,..._(n)})}const os={Any:null,Minute:-1,Second:0,Millisecond:3,Microsecond:6};function is(e,n){return new e({type:"string",format:"datetime",check:"string_format",offset:!1,local:!1,precision:null,..._(n)})}function as(e,n){return new e({type:"string",format:"date",check:"string_format",..._(n)})}function ls(e,n){return new e({type:"string",format:"time",check:"string_format",precision:null,..._(n)})}function cs(e,n){return new e({type:"string",format:"duration",check:"string_format",..._(n)})}function ss(e,n){return new e({type:"number",checks:[],..._(n)})}function us(e,n){return new e({type:"number",coerce:!0,checks:[],..._(n)})}function ds(e,n){return new e({type:"number",check:"number_format",abort:!1,format:"safeint",..._(n)})}function ms(e,n){return new e({type:"number",check:"number_format",abort:!1,format:"float32",..._(n)})}function fs(e,n){return new e({type:"number",check:"number_format",abort:!1,format:"float64",..._(n)})}function ps(e,n){return new e({type:"number",check:"number_format",abort:!1,format:"int32",..._(n)})}function gs(e,n){return new e({type:"number",check:"number_format",abort:!1,format:"uint32",..._(n)})}function vs(e,n){return new e({type:"boolean",..._(n)})}function hs(e,n){return new e({type:"boolean",coerce:!0,..._(n)})}function $s(e,n){return new e({type:"bigint",..._(n)})}function bs(e,n){return new e({type:"bigint",coerce:!0,..._(n)})}function _s(e,n){return new e({type:"bigint",check:"bigint_format",abort:!1,format:"int64",..._(n)})}function ys(e,n){return new e({type:"bigint",check:"bigint_format",abort:!1,format:"uint64",..._(n)})}function ks(e,n){return new e({type:"symbol",..._(n)})}function Ss(e,n){return new e({type:"undefined",..._(n)})}function ws(e,n){return new e({type:"null",..._(n)})}function Is(e){return new e({type:"any"})}function zs(e){return new e({type:"unknown"})}function Es(e,n){return new e({type:"never",..._(n)})}function Ns(e,n){return new e({type:"void",..._(n)})}function Ds(e,n){return new e({type:"date",..._(n)})}function xs(e,n){return new e({type:"date",coerce:!0,..._(n)})}function js(e,n){return new e({type:"nan",..._(n)})}function Ne(e,n){return new _r({check:"less_than",..._(n),value:e,inclusive:!1})}function he(e,n){return new _r({check:"less_than",..._(n),value:e,inclusive:!0})}function De(e,n){return new yr({check:"greater_than",..._(n),value:e,inclusive:!1})}function se(e,n){return new yr({check:"greater_than",..._(n),value:e,inclusive:!0})}function Hr(e){return De(0,e)}function Qr(e){return Ne(0,e)}function eo(e){return he(0,e)}function to(e){return se(0,e)}function qe(e,n){return new Ka({check:"multiple_of",..._(n),value:e})}function Ge(e,n){return new Ha({check:"max_size",..._(n),maximum:e})}function xe(e,n){return new Qa({check:"min_size",..._(n),minimum:e})}function pt(e,n){return new el({check:"size_equals",..._(n),size:e})}function gt(e,n){return new tl({check:"max_length",..._(n),maximum:e})}function Ae(e,n){return new nl({check:"min_length",..._(n),minimum:e})}function vt(e,n){return new rl({check:"length_equals",..._(n),length:e})}function nn(e,n){return new ol({check:"string_format",format:"regex",..._(n),pattern:e})}function rn(e){return new il({check:"string_format",format:"lowercase",..._(e)})}function on(e){return new al({check:"string_format",format:"uppercase",..._(e)})}function an(e,n){return new ll({check:"string_format",format:"includes",..._(n),includes:e})}function ln(e,n){return new cl({check:"string_format",format:"starts_with",..._(n),prefix:e})}function cn(e,n){return new sl({check:"string_format",format:"ends_with",..._(n),suffix:e})}function no(e,n,r){return new dl({check:"property",property:e,schema:n,..._(r)})}function sn(e,n){return new ml({check:"mime_type",mime:e,..._(n)})}function Ie(e){return new fl({check:"overwrite",tx:e})}function un(e){return Ie(n=>n.normalize(e))}function dn(){return Ie(e=>e.trim())}function mn(){return Ie(e=>e.toLowerCase())}function fn(){return Ie(e=>e.toUpperCase())}function pn(){return Ie(e=>Ji(e))}function Os(e,n,r){return new e({type:"array",element:n,..._(r)})}function t_(e,n,r){return new e({type:"union",options:n,..._(r)})}function n_(e,n,r){return new e({type:"union",options:n,inclusive:!1,..._(r)})}function r_(e,n,r,i){return new e({type:"union",options:r,discriminator:n,..._(i)})}function o_(e,n,r){return new e({type:"intersection",left:n,right:r})}function i_(e,n,r,i){const t=r instanceof B,o=t?i:r,a=t?r:null;return new e({type:"tuple",items:n,rest:a,..._(o)})}function a_(e,n,r,i){return new e({type:"record",keyType:n,valueType:r,..._(i)})}function l_(e,n,r,i){return new e({type:"map",keyType:n,valueType:r,..._(i)})}function c_(e,n,r){return new e({type:"set",valueType:n,..._(r)})}function s_(e,n,r){const i=Array.isArray(n)?Object.fromEntries(n.map(t=>[t,t])):n;return new e({type:"enum",entries:i,..._(r)})}function u_(e,n,r){return new e({type:"enum",entries:n,..._(r)})}function d_(e,n,r){return new e({type:"literal",values:Array.isArray(n)?n:[n],..._(r)})}function Us(e,n){return new e({type:"file",..._(n)})}function m_(e,n){return new e({type:"transform",transform:n})}function f_(e,n){return new e({type:"optional",innerType:n})}function p_(e,n){return new e({type:"nullable",innerType:n})}function g_(e,n,r){return new e({type:"default",innerType:n,get defaultValue(){return typeof r=="function"?r():Jt(r)}})}function v_(e,n,r){return new e({type:"nonoptional",innerType:n,..._(r)})}function h_(e,n){return new e({type:"success",innerType:n})}function $_(e,n,r){return new e({type:"catch",innerType:n,catchValue:typeof r=="function"?r:()=>r})}function b_(e,n,r){return new e({type:"pipe",in:n,out:r})}function __(e,n){return new e({type:"readonly",innerType:n})}function y_(e,n,r){return new e({type:"template_literal",parts:n,..._(r)})}function k_(e,n){return new e({type:"lazy",getter:n})}function S_(e,n){return new e({type:"promise",innerType:n})}function Ts(e,n,r){const i=_(r);return i.abort??(i.abort=!0),new e({type:"custom",check:"custom",fn:n,...i})}function Cs(e,n,r){return new e({type:"custom",check:"custom",fn:n,..._(r)})}function Ps(e,n){const r=As(i=>(i.addIssue=t=>{if(typeof t=="string")i.issues.push(Le(t,i.value,r._zod.def));else{const o=t;o.fatal&&(o.continue=!1),o.code??(o.code="custom"),o.input??(o.input=i.value),o.inst??(o.inst=r),o.continue??(o.continue=!r._zod.def.abort),i.issues.push(Le(o))}},e(i.value,i)),n);return r}function As(e,n){const r=new H({check:"custom",..._(n)});return r._zod.check=e,r}function Vs(e){const n=new H({check:"describe"});return n._zod.onattach=[r=>{const i=ve.get(r)??{};ve.add(r,{...i,description:e})}],n._zod.check=()=>{},n}function Zs(e){const n=new H({check:"meta"});return n._zod.onattach=[r=>{const i=ve.get(r)??{};ve.add(r,{...i,...e})}],n._zod.check=()=>{},n}function Bs(e,n){const r=_(n);let i=r.truthy??["true","1","yes","on","y","enabled"],t=r.falsy??["false","0","no","off","n","disabled"];r.case!=="sensitive"&&(i=i.map(p=>typeof p=="string"?p.toLowerCase():p),t=t.map(p=>typeof p=="string"?p.toLowerCase():p));const o=new Set(i),a=new Set(t),c=e.Codec??xr,u=e.Boolean??wr,s=e.String??mt,m=new s({type:"string",error:r.error}),d=new u({type:"boolean",error:r.error}),f=new c({type:"pipe",in:m,out:d,transform:((p,v)=>{let b=p;return r.case!=="sensitive"&&(b=b.toLowerCase()),o.has(b)?!0:a.has(b)?!1:(v.issues.push({code:"invalid_value",expected:"stringbool",values:[...o,...a],input:v.value,inst:f,continue:!1}),{})}),reverseTransform:((p,v)=>p===!0?i[0]||"true":t[0]||"false"),error:r.error});return f}function ht(e,n,r,i={}){const t=_(i),o={..._(i),check:"string_format",type:"string",format:n,fn:typeof r=="function"?r:c=>r.test(c),...t};return r instanceof RegExp&&(o.pattern=r),new e(o)}function We(e){let n=(e==null?void 0:e.target)??"draft-2020-12";return n==="draft-4"&&(n="draft-04"),n==="draft-7"&&(n="draft-07"),{processors:e.processors??{},metadataRegistry:(e==null?void 0:e.metadata)??ve,target:n,unrepresentable:(e==null?void 0:e.unrepresentable)??"throw",override:(e==null?void 0:e.override)??(()=>{}),io:(e==null?void 0:e.io)??"output",counter:0,seen:new Map,cycles:(e==null?void 0:e.cycles)??"ref",reused:(e==null?void 0:e.reused)??"inline",external:(e==null?void 0:e.external)??void 0}}function W(e,n,r={path:[],schemaPath:[]}){var m,d;var i;const t=e._zod.def,o=n.seen.get(e);if(o)return o.count++,r.schemaPath.includes(e)&&(o.cycle=r.path),o.schema;const a={schema:{},count:1,cycle:void 0,path:r.path};n.seen.set(e,a);const c=(d=(m=e._zod).toJSONSchema)==null?void 0:d.call(m);if(c)a.schema=c;else{const f={...r,schemaPath:[...r.schemaPath,e],path:r.path};if(e._zod.processJSONSchema)e._zod.processJSONSchema(n,a.schema,f);else{const v=a.schema,b=n.processors[t.type];if(!b)throw new Error(`[toJSONSchema]: Non-representable type encountered: ${t.type}`);b(e,n,v,f)}const p=e._zod.parent;p&&(a.ref||(a.ref=p),W(p,n,f),n.seen.get(p).isParent=!0)}const u=n.metadataRegistry.get(e);return u&&Object.assign(a.schema,u),n.io==="input"&&ce(e)&&(delete a.schema.examples,delete a.schema.default),n.io==="input"&&"_prefault"in a.schema&&((i=a.schema).default??(i.default=a.schema._prefault)),delete a.schema._prefault,n.seen.get(e).schema}function Ke(e,n){var a,c,u,s;const r=e.seen.get(n);if(!r)throw new Error("Unprocessed schema. This is a bug in Zod.");const i=new Map;for(const m of e.seen.entries()){const d=(a=e.metadataRegistry.get(m[0]))==null?void 0:a.id;if(d){const f=i.get(d);if(f&&f!==m[0])throw new Error(`Duplicate schema id "${d}" detected during JSON Schema conversion. Two different schemas cannot share the same id when converted together.`);i.set(d,m[0])}}const t=m=>{var b;const d=e.target==="draft-2020-12"?"$defs":"definitions";if(e.external){const N=(b=e.external.registry.get(m[0]))==null?void 0:b.id,S=e.external.uri??(P=>P);if(N)return{ref:S(N)};const w=m[1].defId??m[1].schema.id??`schema${e.counter++}`;return m[1].defId=w,{defId:w,ref:`${S("__shared")}#/${d}/${w}`}}if(m[1]===r)return{ref:"#"};const p=`#/${d}/`,v=m[1].schema.id??`__schema${e.counter++}`;return{defId:v,ref:p+v}},o=m=>{if(m[1].schema.$ref)return;const d=m[1],{ref:f,defId:p}=t(m);d.def={...d.schema},p&&(d.defId=p);const v=d.schema;for(const b in v)delete v[b];v.$ref=f};if(e.cycles==="throw")for(const m of e.seen.entries()){const d=m[1];if(d.cycle)throw new Error(`Cycle detected: #/${(c=d.cycle)==null?void 0:c.join("/")}/ + `)}p.write("payload.value = newResult;"),p.write("return payload;");const w=p.compile();return(U,h)=>w(f,U,h)};let o;const a=Fe,c=!tt.jitless,s=c&&Gi.value,m=n.catchall;let d;e._zod.parse=(f,p)=>{d??(d=i.value);const v=f.value;return a(v)?c&&s&&(p==null?void 0:p.async)===!1&&p.jitless!==!0?(o||(o=t(n.shape)),f=o(f,p),m?rc([],v,f,p,d,e):f):r(f,p):(f.issues.push({expected:"object",code:"invalid_type",input:v,inst:e}),f)}});function ac(e,n,r,i){for(const o of e)if(o.issues.length===0)return n.value=o.value,n;const t=e.filter(o=>!Pe(o));return t.length===1?(n.value=t[0].value,t[0]):(n.issues.push({code:"invalid_union",input:n.value,inst:r,errors:e.map(o=>o.issues.map(a=>fe(a,i,ie())))}),n)}const Xt=g("$ZodUnion",(e,n)=>{F.init(e,n),R(e._zod,"optin",()=>n.options.some(i=>i._zod.optin==="optional")?"optional":void 0),R(e._zod,"optout",()=>n.options.some(i=>i._zod.optout==="optional")?"optional":void 0),R(e._zod,"values",()=>{if(n.options.every(i=>i._zod.values))return new Set(n.options.flatMap(i=>Array.from(i._zod.values)))}),R(e._zod,"pattern",()=>{if(n.options.every(i=>i._zod.pattern)){const i=n.options.map(t=>t._zod.pattern);return new RegExp(`^(${i.map(t=>Rt(t.source)).join("|")})$`)}});const r=n.options.length===1?n.options[0]._zod.run:null;e._zod.parse=(i,t)=>{if(r)return r(i,t);let o=!1;const a=[];for(const c of n.options){const u=c._zod.run({value:i.value,issues:[]},t);if(u instanceof Promise)a.push(u),o=!0;else{if(u.issues.length===0)return u;a.push(u)}}return o?Promise.all(a).then(c=>ac(c,i,e,t)):ac(a,i,e,t)}});function lc(e,n,r,i){const t=e.filter(o=>o.issues.length===0);return t.length===1?(n.value=t[0].value,n):(t.length===0?n.issues.push({code:"invalid_union",input:n.value,inst:r,errors:e.map(o=>o.issues.map(a=>fe(a,i,ie())))}):n.issues.push({code:"invalid_union",input:n.value,inst:r,errors:[],inclusive:!1}),n)}const cc=g("$ZodXor",(e,n)=>{Xt.init(e,n),n.inclusive=!1;const r=n.options.length===1?n.options[0]._zod.run:null;e._zod.parse=(i,t)=>{if(r)return r(i,t);let o=!1;const a=[];for(const c of n.options){const u=c._zod.run({value:i.value,issues:[]},t);u instanceof Promise?(a.push(u),o=!0):a.push(u)}return o?Promise.all(a).then(c=>lc(c,i,e,t)):lc(a,i,e,t)}}),sc=g("$ZodDiscriminatedUnion",(e,n)=>{n.inclusive=!1,Xt.init(e,n);const r=e._zod.parse;R(e._zod,"propValues",()=>{const t={};for(const o of n.options){const a=o._zod.propValues;if(!a||Object.keys(a).length===0)throw new Error(`Invalid discriminated union option at index "${n.options.indexOf(o)}"`);for(const[c,u]of Object.entries(a)){t[c]||(t[c]=new Set);for(const s of u)t[c].add(s)}}return t});const i=nt(()=>{var a;const t=n.options,o=new Map;for(const c of t){const u=(a=c._zod.propValues)==null?void 0:a[n.discriminator];if(!u||u.size===0)throw new Error(`Invalid discriminated union option at index "${n.options.indexOf(c)}"`);for(const s of u){if(o.has(s))throw new Error(`Duplicate discriminator value "${String(s)}"`);o.set(s,c)}}return o});e._zod.parse=(t,o)=>{const a=t.value;if(!Fe(a))return t.issues.push({code:"invalid_type",expected:"object",input:a,inst:e}),t;const c=i.value.get(a==null?void 0:a[n.discriminator]);return c?c._zod.run(t,o):n.unionFallback||o.direction==="backward"?r(t,o):(t.issues.push({code:"invalid_union",errors:[],note:"No matching discriminator",discriminator:n.discriminator,options:Array.from(i.value.keys()),input:a,path:[n.discriminator],inst:e}),t)}}),uc=g("$ZodIntersection",(e,n)=>{F.init(e,n),e._zod.parse=(r,i)=>{const t=r.value,o=n.left._zod.run({value:t,issues:[]},i),a=n.right._zod.run({value:t,issues:[]},i);return o instanceof Promise||a instanceof Promise?Promise.all([o,a]).then(([u,s])=>dc(r,u,s)):dc(r,o,a)}});function zr(e,n){if(e===n)return{valid:!0,data:e};if(e instanceof Date&&n instanceof Date&&+e==+n)return{valid:!0,data:e};if(Ce(e)&&Ce(n)){const r=Object.keys(n),i=Object.keys(e).filter(o=>r.indexOf(o)!==-1),t={...e,...n};for(const o of i){const a=zr(e[o],n[o]);if(!a.valid)return{valid:!1,mergeErrorPath:[o,...a.mergeErrorPath]};t[o]=a.data}return{valid:!0,data:t}}if(Array.isArray(e)&&Array.isArray(n)){if(e.length!==n.length)return{valid:!1,mergeErrorPath:[]};const r=[];for(let i=0;ic.l&&c.r).map(([c])=>c);if(o.length&&t&&e.issues.push({...t,keys:o}),Pe(e))return e;const a=zr(n.value,r.value);if(!a.valid)throw new Error(`Unmergable intersection. Error path: ${JSON.stringify(a.mergeErrorPath)}`);return e.value=a.data,e}const Er=g("$ZodTuple",(e,n)=>{F.init(e,n);const r=n.items;e._zod.parse=(i,t)=>{const o=i.value;if(!Array.isArray(o))return i.issues.push({input:o,inst:e,expected:"tuple",code:"invalid_type"}),i;i.value=[];const a=[],c=mc(r,"optin"),u=mc(r,"optout");if(!n.rest){if(o.lengthr.length&&i.issues.push({code:"too_big",maximum:r.length,inclusive:!0,input:o,inst:e,origin:"array"})}const s=new Array(r.length);for(let m=0;m{s[m]=f})):s[m]=d}if(n.rest){let m=r.length-1;const d=o.slice(r.length);for(const f of d){m++;const p=n.rest._zod.run({value:f,issues:[]},t);p instanceof Promise?a.push(p.then(v=>fc(v,i,m))):fc(p,i,m)}}return a.length?Promise.all(a).then(()=>pc(s,i,r,o,u)):pc(s,i,r,o,u)}});function mc(e,n){for(let r=e.length-1;r>=0;r--)if(e[r]._zod[n]!=="optional")return r+1;return 0}function fc(e,n,r){e.issues.length&&n.issues.push(...he(r,e.issues)),n.value[r]=e.value}function pc(e,n,r,i,t){for(let o=0;o=t){n.value.length=o;break}n.issues.push(...he(o,a.issues))}n.value[o]=a.value}for(let o=n.value.length-1;o>=i.length&&(r[o]._zod.optout==="optional"&&n.value[o]===void 0);o--)n.value.length=o;return n}const gc=g("$ZodRecord",(e,n)=>{F.init(e,n),e._zod.parse=(r,i)=>{const t=r.value;if(!Ce(t))return r.issues.push({expected:"record",code:"invalid_type",input:t,inst:e}),r;const o=[],a=n.keyType._zod.values;if(a){r.value={};const c=new Set;for(const s of a)if(typeof s=="string"||typeof s=="number"||typeof s=="symbol"){c.add(typeof s=="number"?s.toString():s);const m=n.keyType._zod.run({value:s,issues:[]},i);if(m instanceof Promise)throw new Error("Async schemas not supported in object keys currently");if(m.issues.length){r.issues.push({code:"invalid_key",origin:"record",issues:m.issues.map(p=>fe(p,i,ie())),input:s,path:[s],inst:e});continue}const d=m.value,f=n.valueType._zod.run({value:t[s],issues:[]},i);f instanceof Promise?o.push(f.then(p=>{p.issues.length&&r.issues.push(...he(s,p.issues)),r.value[d]=p.value})):(f.issues.length&&r.issues.push(...he(s,f.issues)),r.value[d]=f.value)}let u;for(const s in t)c.has(s)||(u=u??[],u.push(s));u&&u.length>0&&r.issues.push({code:"unrecognized_keys",input:t,inst:e,keys:u})}else{r.value={};for(const c of Reflect.ownKeys(t)){if(c==="__proto__"||!Object.prototype.propertyIsEnumerable.call(t,c))continue;let u=n.keyType._zod.run({value:c,issues:[]},i);if(u instanceof Promise)throw new Error("Async schemas not supported in object keys currently");if(typeof c=="string"&&$r.test(c)&&u.issues.length){const d=n.keyType._zod.run({value:Number(c),issues:[]},i);if(d instanceof Promise)throw new Error("Async schemas not supported in object keys currently");d.issues.length===0&&(u=d)}if(u.issues.length){n.mode==="loose"?r.value[c]=t[c]:r.issues.push({code:"invalid_key",origin:"record",issues:u.issues.map(d=>fe(d,i,ie())),input:c,path:[c],inst:e});continue}const m=n.valueType._zod.run({value:t[c],issues:[]},i);m instanceof Promise?o.push(m.then(d=>{d.issues.length&&r.issues.push(...he(c,d.issues)),r.value[u.value]=d.value})):(m.issues.length&&r.issues.push(...he(c,m.issues)),r.value[u.value]=m.value)}}return o.length?Promise.all(o).then(()=>r):r}}),vc=g("$ZodMap",(e,n)=>{F.init(e,n),e._zod.parse=(r,i)=>{const t=r.value;if(!(t instanceof Map))return r.issues.push({expected:"map",code:"invalid_type",input:t,inst:e}),r;const o=[];r.value=new Map;for(const[a,c]of t){const u=n.keyType._zod.run({value:a,issues:[]},i),s=n.valueType._zod.run({value:c,issues:[]},i);u instanceof Promise||s instanceof Promise?o.push(Promise.all([u,s]).then(([m,d])=>{hc(m,d,r,a,t,e,i)})):hc(u,s,r,a,t,e,i)}return o.length?Promise.all(o).then(()=>r):r}});function hc(e,n,r,i,t,o,a){e.issues.length&&(qt.has(typeof i)?r.issues.push(...he(i,e.issues)):r.issues.push({code:"invalid_key",origin:"map",input:t,inst:o,issues:e.issues.map(c=>fe(c,a,ie()))})),n.issues.length&&(qt.has(typeof i)?r.issues.push(...he(i,n.issues)):r.issues.push({origin:"map",code:"invalid_element",input:t,inst:o,key:i,issues:n.issues.map(c=>fe(c,a,ie()))})),r.value.set(e.value,n.value)}const $c=g("$ZodSet",(e,n)=>{F.init(e,n),e._zod.parse=(r,i)=>{const t=r.value;if(!(t instanceof Set))return r.issues.push({input:t,inst:e,expected:"set",code:"invalid_type"}),r;const o=[];r.value=new Set;for(const a of t){const c=n.valueType._zod.run({value:a,issues:[]},i);c instanceof Promise?o.push(c.then(u=>bc(u,r))):bc(c,r)}return o.length?Promise.all(o).then(()=>r):r}});function bc(e,n){e.issues.length&&n.issues.push(...e.issues),n.value.add(e.value)}const _c=g("$ZodEnum",(e,n)=>{F.init(e,n);const r=er(n.entries),i=new Set(r);e._zod.values=i,e._zod.pattern=new RegExp(`^(${r.filter(t=>qt.has(typeof t)).map(t=>typeof t=="string"?we(t):t.toString()).join("|")})$`),e._zod.parse=(t,o)=>{const a=t.value;return i.has(a)||t.issues.push({code:"invalid_value",values:r,input:a,inst:e}),t}}),yc=g("$ZodLiteral",(e,n)=>{if(F.init(e,n),n.values.length===0)throw new Error("Cannot create literal schema with no valid values");const r=new Set(n.values);e._zod.values=r,e._zod.pattern=new RegExp(`^(${n.values.map(i=>typeof i=="string"?we(i):i?we(i.toString()):String(i)).join("|")})$`),e._zod.parse=(i,t)=>{const o=i.value;return r.has(o)||i.issues.push({code:"invalid_value",values:n.values,input:o,inst:e}),i}}),kc=g("$ZodFile",(e,n)=>{F.init(e,n),e._zod.parse=(r,i)=>{const t=r.value;return t instanceof File||r.issues.push({expected:"file",code:"invalid_type",input:t,inst:e}),r}}),Sc=g("$ZodTransform",(e,n)=>{F.init(e,n),e._zod.optin="optional",e._zod.parse=(r,i)=>{if(i.direction==="backward")throw new Ft(e.constructor.name);const t=n.transform(r.value,r);if(i.async)return(t instanceof Promise?t:Promise.resolve(t)).then(a=>(r.value=a,r.fallback=!0,r));if(t instanceof Promise)throw new Te;return r.value=t,r.fallback=!0,r}});function wc(e,n){return n===void 0&&(e.issues.length||e.fallback)?{issues:[],value:void 0}:e}const Nr=g("$ZodOptional",(e,n)=>{F.init(e,n),e._zod.optin="optional",e._zod.optout="optional",R(e._zod,"values",()=>n.innerType._zod.values?new Set([...n.innerType._zod.values,void 0]):void 0),R(e._zod,"pattern",()=>{const r=n.innerType._zod.pattern;return r?new RegExp(`^(${Rt(r.source)})?$`):void 0}),e._zod.parse=(r,i)=>{if(n.innerType._zod.optin==="optional"){const t=r.value,o=n.innerType._zod.run(r,i);return o instanceof Promise?o.then(a=>wc(a,t)):wc(o,t)}return r.value===void 0?r:n.innerType._zod.run(r,i)}}),Ic=g("$ZodExactOptional",(e,n)=>{Nr.init(e,n),R(e._zod,"values",()=>n.innerType._zod.values),R(e._zod,"pattern",()=>n.innerType._zod.pattern),e._zod.parse=(r,i)=>n.innerType._zod.run(r,i)}),zc=g("$ZodNullable",(e,n)=>{F.init(e,n),R(e._zod,"optin",()=>n.innerType._zod.optin),R(e._zod,"optout",()=>n.innerType._zod.optout),R(e._zod,"pattern",()=>{const r=n.innerType._zod.pattern;return r?new RegExp(`^(${Rt(r.source)}|null)$`):void 0}),R(e._zod,"values",()=>n.innerType._zod.values?new Set([...n.innerType._zod.values,null]):void 0),e._zod.parse=(r,i)=>r.value===null?r:n.innerType._zod.run(r,i)}),Ec=g("$ZodDefault",(e,n)=>{F.init(e,n),e._zod.optin="optional",R(e._zod,"values",()=>n.innerType._zod.values),e._zod.parse=(r,i)=>{if(i.direction==="backward")return n.innerType._zod.run(r,i);if(r.value===void 0)return r.value=n.defaultValue,r;const t=n.innerType._zod.run(r,i);return t instanceof Promise?t.then(o=>Nc(o,n)):Nc(t,n)}});function Nc(e,n){return e.value===void 0&&(e.value=n.defaultValue),e}const Dc=g("$ZodPrefault",(e,n)=>{F.init(e,n),e._zod.optin="optional",R(e._zod,"values",()=>n.innerType._zod.values),e._zod.parse=(r,i)=>(i.direction==="backward"||r.value===void 0&&(r.value=n.defaultValue),n.innerType._zod.run(r,i))}),jc=g("$ZodNonOptional",(e,n)=>{F.init(e,n),R(e._zod,"values",()=>{const r=n.innerType._zod.values;return r?new Set([...r].filter(i=>i!==void 0)):void 0}),e._zod.parse=(r,i)=>{const t=n.innerType._zod.run(r,i);return t instanceof Promise?t.then(o=>Oc(o,e)):Oc(t,e)}});function Oc(e,n){return!e.issues.length&&e.value===void 0&&e.issues.push({code:"invalid_type",expected:"nonoptional",input:e.value,inst:n}),e}const xc=g("$ZodSuccess",(e,n)=>{F.init(e,n),e._zod.parse=(r,i)=>{if(i.direction==="backward")throw new Ft("ZodSuccess");const t=n.innerType._zod.run(r,i);return t instanceof Promise?t.then(o=>(r.value=o.issues.length===0,r)):(r.value=t.issues.length===0,r)}}),Tc=g("$ZodCatch",(e,n)=>{F.init(e,n),e._zod.optin="optional",R(e._zod,"optout",()=>n.innerType._zod.optout),R(e._zod,"values",()=>n.innerType._zod.values),e._zod.parse=(r,i)=>{if(i.direction==="backward")return n.innerType._zod.run(r,i);const t=n.innerType._zod.run(r,i);return t instanceof Promise?t.then(o=>(r.value=o.value,o.issues.length&&(r.value=n.catchValue({...r,error:{issues:o.issues.map(a=>fe(a,i,ie()))},input:r.value}),r.issues=[],r.fallback=!0),r)):(r.value=t.value,t.issues.length&&(r.value=n.catchValue({...r,error:{issues:t.issues.map(o=>fe(o,i,ie()))},input:r.value}),r.issues=[],r.fallback=!0),r)}}),Uc=g("$ZodNaN",(e,n)=>{F.init(e,n),e._zod.parse=(r,i)=>((typeof r.value!="number"||!Number.isNaN(r.value))&&r.issues.push({input:r.value,inst:e,expected:"nan",code:"invalid_type"}),r)}),Dr=g("$ZodPipe",(e,n)=>{F.init(e,n),R(e._zod,"values",()=>n.in._zod.values),R(e._zod,"optin",()=>n.in._zod.optin),R(e._zod,"optout",()=>n.out._zod.optout),R(e._zod,"propValues",()=>n.in._zod.propValues),e._zod.parse=(r,i)=>{if(i.direction==="backward"){const o=n.out._zod.run(r,i);return o instanceof Promise?o.then(a=>Ht(a,n.in,i)):Ht(o,n.in,i)}const t=n.in._zod.run(r,i);return t instanceof Promise?t.then(o=>Ht(o,n.out,i)):Ht(t,n.out,i)}});function Ht(e,n,r){return e.issues.length?(e.aborted=!0,e):n._zod.run({value:e.value,issues:e.issues,fallback:e.fallback},r)}const jr=g("$ZodCodec",(e,n)=>{F.init(e,n),R(e._zod,"values",()=>n.in._zod.values),R(e._zod,"optin",()=>n.in._zod.optin),R(e._zod,"optout",()=>n.out._zod.optout),R(e._zod,"propValues",()=>n.in._zod.propValues),e._zod.parse=(r,i)=>{if((i.direction||"forward")==="forward"){const o=n.in._zod.run(r,i);return o instanceof Promise?o.then(a=>Yt(a,n,i)):Yt(o,n,i)}else{const o=n.out._zod.run(r,i);return o instanceof Promise?o.then(a=>Yt(a,n,i)):Yt(o,n,i)}}});function Yt(e,n,r){if(e.issues.length)return e.aborted=!0,e;if((r.direction||"forward")==="forward"){const t=n.transform(e.value,e);return t instanceof Promise?t.then(o=>Qt(e,o,n.out,r)):Qt(e,t,n.out,r)}else{const t=n.reverseTransform(e.value,e);return t instanceof Promise?t.then(o=>Qt(e,o,n.in,r)):Qt(e,t,n.in,r)}}function Qt(e,n,r,i){return e.issues.length?(e.aborted=!0,e):r._zod.run({value:n,issues:e.issues},i)}const Cc=g("$ZodPreprocess",(e,n)=>{Dr.init(e,n)}),Pc=g("$ZodReadonly",(e,n)=>{F.init(e,n),R(e._zod,"propValues",()=>n.innerType._zod.propValues),R(e._zod,"values",()=>n.innerType._zod.values),R(e._zod,"optin",()=>{var r,i;return(i=(r=n.innerType)==null?void 0:r._zod)==null?void 0:i.optin}),R(e._zod,"optout",()=>{var r,i;return(i=(r=n.innerType)==null?void 0:r._zod)==null?void 0:i.optout}),e._zod.parse=(r,i)=>{if(i.direction==="backward")return n.innerType._zod.run(r,i);const t=n.innerType._zod.run(r,i);return t instanceof Promise?t.then(Ac):Ac(t)}});function Ac(e){return e.value=Object.freeze(e.value),e}const Vc=g("$ZodTemplateLiteral",(e,n)=>{F.init(e,n);const r=[];for(const i of n.parts)if(typeof i=="object"&&i!==null){if(!i._zod.pattern)throw new Error(`Invalid template literal part, no pattern found: ${[...i._zod.traits].shift()}`);const t=i._zod.pattern instanceof RegExp?i._zod.pattern.source:i._zod.pattern;if(!t)throw new Error(`Invalid template literal part: ${i._zod.traits}`);const o=t.startsWith("^")?1:0,a=t.endsWith("$")?t.length-1:t.length;r.push(t.slice(o,a))}else if(i===null||Ki.has(typeof i))r.push(we(`${i}`));else throw new Error(`Invalid template literal part: ${i}`);e._zod.pattern=new RegExp(`^${r.join("")}$`),e._zod.parse=(i,t)=>typeof i.value!="string"?(i.issues.push({input:i.value,inst:e,expected:"string",code:"invalid_type"}),i):(e._zod.pattern.lastIndex=0,e._zod.pattern.test(i.value)||i.issues.push({input:i.value,inst:e,code:"invalid_format",format:n.format??"template_literal",pattern:e._zod.pattern.source}),i)}),Bc=g("$ZodFunction",(e,n)=>(F.init(e,n),e._def=n,e._zod.def=n,e.implement=r=>{if(typeof r!="function")throw new Error("implement() must be called with a function");return function(...i){const t=e._def.input?ar(e._def.input,i):i,o=Reflect.apply(r,this,t);return e._def.output?ar(e._def.output,o):o}},e.implementAsync=r=>{if(typeof r!="function")throw new Error("implementAsync() must be called with a function");return async function(...i){const t=e._def.input?await lr(e._def.input,i):i,o=await Reflect.apply(r,this,t);return e._def.output?await lr(e._def.output,o):o}},e._zod.parse=(r,i)=>typeof r.value!="function"?(r.issues.push({code:"invalid_type",expected:"function",input:r.value,inst:e}),r):(e._def.output&&e._def.output._zod.def.type==="promise"?r.value=e.implementAsync(r.value):r.value=e.implement(r.value),r),e.input=(...r)=>{const i=e.constructor;return Array.isArray(r[0])?new i({type:"function",input:new Er({type:"tuple",items:r[0],rest:r[1]}),output:e._def.output}):new i({type:"function",input:r[0],output:e._def.output})},e.output=r=>{const i=e.constructor;return new i({type:"function",input:e._def.input,output:r})},e)),Zc=g("$ZodPromise",(e,n)=>{F.init(e,n),e._zod.parse=(r,i)=>Promise.resolve(r.value).then(t=>n.innerType._zod.run({value:t,issues:[]},i))}),Mc=g("$ZodLazy",(e,n)=>{F.init(e,n),R(e._zod,"innerType",()=>{const r=n;return r._cachedInner||(r._cachedInner=n.getter()),r._cachedInner}),R(e._zod,"pattern",()=>{var r,i;return(i=(r=e._zod.innerType)==null?void 0:r._zod)==null?void 0:i.pattern}),R(e._zod,"propValues",()=>{var r,i;return(i=(r=e._zod.innerType)==null?void 0:r._zod)==null?void 0:i.propValues}),R(e._zod,"optin",()=>{var r,i;return((i=(r=e._zod.innerType)==null?void 0:r._zod)==null?void 0:i.optin)??void 0}),R(e._zod,"optout",()=>{var r,i;return((i=(r=e._zod.innerType)==null?void 0:r._zod)==null?void 0:i.optout)??void 0}),e._zod.parse=(r,i)=>e._zod.innerType._zod.run(r,i)}),Fc=g("$ZodCustom",(e,n)=>{Y.init(e,n),F.init(e,n),e._zod.parse=(r,i)=>r,e._zod.check=r=>{const i=r.value,t=n.fn(i);if(t instanceof Promise)return t.then(o=>Lc(o,r,i,e));Lc(t,r,i,e)}});function Lc(e,n,r,i){if(!e){const t={code:"custom",input:r,inst:i,path:[...i._zod.def.path??[]],continue:!i._zod.def.abort};i._zod.def.params&&(t.params=i._zod.def.params),n.issues.push(Le(t))}}const L$=()=>{const e={string:{unit:"حرف",verb:"أن يحوي"},file:{unit:"بايت",verb:"أن يحوي"},array:{unit:"عنصر",verb:"أن يحوي"},set:{unit:"عنصر",verb:"أن يحوي"}};function n(t){return e[t]??null}const r={regex:"مدخل",email:"بريد إلكتروني",url:"رابط",emoji:"إيموجي",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"تاريخ ووقت بمعيار ISO",date:"تاريخ بمعيار ISO",time:"وقت بمعيار ISO",duration:"مدة بمعيار ISO",ipv4:"عنوان IPv4",ipv6:"عنوان IPv6",cidrv4:"مدى عناوين بصيغة IPv4",cidrv6:"مدى عناوين بصيغة IPv6",base64:"نَص بترميز base64-encoded",base64url:"نَص بترميز base64url-encoded",json_string:"نَص على هيئة JSON",e164:"رقم هاتف بمعيار E.164",jwt:"JWT",template_literal:"مدخل"},i={nan:"NaN"};return t=>{switch(t.code){case"invalid_type":{const o=i[t.expected]??t.expected,a=B(t.input),c=i[a]??a;return/^[A-Z]/.test(t.expected)?`مدخلات غير مقبولة: يفترض إدخال instanceof ${t.expected}، ولكن تم إدخال ${c}`:`مدخلات غير مقبولة: يفترض إدخال ${o}، ولكن تم إدخال ${c}`}case"invalid_value":return t.values.length===1?`مدخلات غير مقبولة: يفترض إدخال ${V(t.values[0])}`:`اختيار غير مقبول: يتوقع انتقاء أحد هذه الخيارات: ${k(t.values,"|")}`;case"too_big":{const o=t.inclusive?"<=":"<",a=n(t.origin);return a?` أكبر من اللازم: يفترض أن تكون ${t.origin??"القيمة"} ${o} ${t.maximum.toString()} ${a.unit??"عنصر"}`:`أكبر من اللازم: يفترض أن تكون ${t.origin??"القيمة"} ${o} ${t.maximum.toString()}`}case"too_small":{const o=t.inclusive?">=":">",a=n(t.origin);return a?`أصغر من اللازم: يفترض لـ ${t.origin} أن يكون ${o} ${t.minimum.toString()} ${a.unit}`:`أصغر من اللازم: يفترض لـ ${t.origin} أن يكون ${o} ${t.minimum.toString()}`}case"invalid_format":{const o=t;return o.format==="starts_with"?`نَص غير مقبول: يجب أن يبدأ بـ "${t.prefix}"`:o.format==="ends_with"?`نَص غير مقبول: يجب أن ينتهي بـ "${o.suffix}"`:o.format==="includes"?`نَص غير مقبول: يجب أن يتضمَّن "${o.includes}"`:o.format==="regex"?`نَص غير مقبول: يجب أن يطابق النمط ${o.pattern}`:`${r[o.format]??t.format} غير مقبول`}case"not_multiple_of":return`رقم غير مقبول: يجب أن يكون من مضاعفات ${t.divisor}`;case"unrecognized_keys":return`معرف${t.keys.length>1?"ات":""} غريب${t.keys.length>1?"ة":""}: ${k(t.keys,"، ")}`;case"invalid_key":return`معرف غير مقبول في ${t.origin}`;case"invalid_union":return"مدخل غير مقبول";case"invalid_element":return`مدخل غير مقبول في ${t.origin}`;default:return"مدخل غير مقبول"}}};function R$(){return{localeError:L$()}}const J$=()=>{const e={string:{unit:"simvol",verb:"olmalıdır"},file:{unit:"bayt",verb:"olmalıdır"},array:{unit:"element",verb:"olmalıdır"},set:{unit:"element",verb:"olmalıdır"}};function n(t){return e[t]??null}const r={regex:"input",email:"email address",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO datetime",date:"ISO date",time:"ISO time",duration:"ISO duration",ipv4:"IPv4 address",ipv6:"IPv6 address",cidrv4:"IPv4 range",cidrv6:"IPv6 range",base64:"base64-encoded string",base64url:"base64url-encoded string",json_string:"JSON string",e164:"E.164 number",jwt:"JWT",template_literal:"input"},i={nan:"NaN"};return t=>{switch(t.code){case"invalid_type":{const o=i[t.expected]??t.expected,a=B(t.input),c=i[a]??a;return/^[A-Z]/.test(t.expected)?`Yanlış dəyər: gözlənilən instanceof ${t.expected}, daxil olan ${c}`:`Yanlış dəyər: gözlənilən ${o}, daxil olan ${c}`}case"invalid_value":return t.values.length===1?`Yanlış dəyər: gözlənilən ${V(t.values[0])}`:`Yanlış seçim: aşağıdakılardan biri olmalıdır: ${k(t.values,"|")}`;case"too_big":{const o=t.inclusive?"<=":"<",a=n(t.origin);return a?`Çox böyük: gözlənilən ${t.origin??"dəyər"} ${o}${t.maximum.toString()} ${a.unit??"element"}`:`Çox böyük: gözlənilən ${t.origin??"dəyər"} ${o}${t.maximum.toString()}`}case"too_small":{const o=t.inclusive?">=":">",a=n(t.origin);return a?`Çox kiçik: gözlənilən ${t.origin} ${o}${t.minimum.toString()} ${a.unit}`:`Çox kiçik: gözlənilən ${t.origin} ${o}${t.minimum.toString()}`}case"invalid_format":{const o=t;return o.format==="starts_with"?`Yanlış mətn: "${o.prefix}" ilə başlamalıdır`:o.format==="ends_with"?`Yanlış mətn: "${o.suffix}" ilə bitməlidir`:o.format==="includes"?`Yanlış mətn: "${o.includes}" daxil olmalıdır`:o.format==="regex"?`Yanlış mətn: ${o.pattern} şablonuna uyğun olmalıdır`:`Yanlış ${r[o.format]??t.format}`}case"not_multiple_of":return`Yanlış ədəd: ${t.divisor} ilə bölünə bilən olmalıdır`;case"unrecognized_keys":return`Tanınmayan açar${t.keys.length>1?"lar":""}: ${k(t.keys,", ")}`;case"invalid_key":return`${t.origin} daxilində yanlış açar`;case"invalid_union":return"Yanlış dəyər";case"invalid_element":return`${t.origin} daxilində yanlış dəyər`;default:return"Yanlış dəyər"}}};function q$(){return{localeError:J$()}}function Rc(e,n,r,i){const t=Math.abs(e),o=t%10,a=t%100;return a>=11&&a<=19?i:o===1?n:o>=2&&o<=4?r:i}const G$=()=>{const e={string:{unit:{one:"сімвал",few:"сімвалы",many:"сімвалаў"},verb:"мець"},array:{unit:{one:"элемент",few:"элементы",many:"элементаў"},verb:"мець"},set:{unit:{one:"элемент",few:"элементы",many:"элементаў"},verb:"мець"},file:{unit:{one:"байт",few:"байты",many:"байтаў"},verb:"мець"}};function n(t){return e[t]??null}const r={regex:"увод",email:"email адрас",url:"URL",emoji:"эмодзі",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO дата і час",date:"ISO дата",time:"ISO час",duration:"ISO працягласць",ipv4:"IPv4 адрас",ipv6:"IPv6 адрас",cidrv4:"IPv4 дыяпазон",cidrv6:"IPv6 дыяпазон",base64:"радок у фармаце base64",base64url:"радок у фармаце base64url",json_string:"JSON радок",e164:"нумар E.164",jwt:"JWT",template_literal:"увод"},i={nan:"NaN",number:"лік",array:"масіў"};return t=>{switch(t.code){case"invalid_type":{const o=i[t.expected]??t.expected,a=B(t.input),c=i[a]??a;return/^[A-Z]/.test(t.expected)?`Няправільны ўвод: чакаўся instanceof ${t.expected}, атрымана ${c}`:`Няправільны ўвод: чакаўся ${o}, атрымана ${c}`}case"invalid_value":return t.values.length===1?`Няправільны ўвод: чакалася ${V(t.values[0])}`:`Няправільны варыянт: чакаўся адзін з ${k(t.values,"|")}`;case"too_big":{const o=t.inclusive?"<=":"<",a=n(t.origin);if(a){const c=Number(t.maximum),u=Rc(c,a.unit.one,a.unit.few,a.unit.many);return`Занадта вялікі: чакалася, што ${t.origin??"значэнне"} павінна ${a.verb} ${o}${t.maximum.toString()} ${u}`}return`Занадта вялікі: чакалася, што ${t.origin??"значэнне"} павінна быць ${o}${t.maximum.toString()}`}case"too_small":{const o=t.inclusive?">=":">",a=n(t.origin);if(a){const c=Number(t.minimum),u=Rc(c,a.unit.one,a.unit.few,a.unit.many);return`Занадта малы: чакалася, што ${t.origin} павінна ${a.verb} ${o}${t.minimum.toString()} ${u}`}return`Занадта малы: чакалася, што ${t.origin} павінна быць ${o}${t.minimum.toString()}`}case"invalid_format":{const o=t;return o.format==="starts_with"?`Няправільны радок: павінен пачынацца з "${o.prefix}"`:o.format==="ends_with"?`Няправільны радок: павінен заканчвацца на "${o.suffix}"`:o.format==="includes"?`Няправільны радок: павінен змяшчаць "${o.includes}"`:o.format==="regex"?`Няправільны радок: павінен адпавядаць шаблону ${o.pattern}`:`Няправільны ${r[o.format]??t.format}`}case"not_multiple_of":return`Няправільны лік: павінен быць кратным ${t.divisor}`;case"unrecognized_keys":return`Нераспазнаны ${t.keys.length>1?"ключы":"ключ"}: ${k(t.keys,", ")}`;case"invalid_key":return`Няправільны ключ у ${t.origin}`;case"invalid_union":return"Няправільны ўвод";case"invalid_element":return`Няправільнае значэнне ў ${t.origin}`;default:return"Няправільны ўвод"}}};function K$(){return{localeError:G$()}}const W$=()=>{const e={string:{unit:"символа",verb:"да съдържа"},file:{unit:"байта",verb:"да съдържа"},array:{unit:"елемента",verb:"да съдържа"},set:{unit:"елемента",verb:"да съдържа"}};function n(t){return e[t]??null}const r={regex:"вход",email:"имейл адрес",url:"URL",emoji:"емоджи",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO време",date:"ISO дата",time:"ISO време",duration:"ISO продължителност",ipv4:"IPv4 адрес",ipv6:"IPv6 адрес",cidrv4:"IPv4 диапазон",cidrv6:"IPv6 диапазон",base64:"base64-кодиран низ",base64url:"base64url-кодиран низ",json_string:"JSON низ",e164:"E.164 номер",jwt:"JWT",template_literal:"вход"},i={nan:"NaN",number:"число",array:"масив"};return t=>{switch(t.code){case"invalid_type":{const o=i[t.expected]??t.expected,a=B(t.input),c=i[a]??a;return/^[A-Z]/.test(t.expected)?`Невалиден вход: очакван instanceof ${t.expected}, получен ${c}`:`Невалиден вход: очакван ${o}, получен ${c}`}case"invalid_value":return t.values.length===1?`Невалиден вход: очакван ${V(t.values[0])}`:`Невалидна опция: очаквано едно от ${k(t.values,"|")}`;case"too_big":{const o=t.inclusive?"<=":"<",a=n(t.origin);return a?`Твърде голямо: очаква се ${t.origin??"стойност"} да съдържа ${o}${t.maximum.toString()} ${a.unit??"елемента"}`:`Твърде голямо: очаква се ${t.origin??"стойност"} да бъде ${o}${t.maximum.toString()}`}case"too_small":{const o=t.inclusive?">=":">",a=n(t.origin);return a?`Твърде малко: очаква се ${t.origin} да съдържа ${o}${t.minimum.toString()} ${a.unit}`:`Твърде малко: очаква се ${t.origin} да бъде ${o}${t.minimum.toString()}`}case"invalid_format":{const o=t;if(o.format==="starts_with")return`Невалиден низ: трябва да започва с "${o.prefix}"`;if(o.format==="ends_with")return`Невалиден низ: трябва да завършва с "${o.suffix}"`;if(o.format==="includes")return`Невалиден низ: трябва да включва "${o.includes}"`;if(o.format==="regex")return`Невалиден низ: трябва да съвпада с ${o.pattern}`;let a="Невалиден";return o.format==="emoji"&&(a="Невалидно"),o.format==="datetime"&&(a="Невалидно"),o.format==="date"&&(a="Невалидна"),o.format==="time"&&(a="Невалидно"),o.format==="duration"&&(a="Невалидна"),`${a} ${r[o.format]??t.format}`}case"not_multiple_of":return`Невалидно число: трябва да бъде кратно на ${t.divisor}`;case"unrecognized_keys":return`Неразпознат${t.keys.length>1?"и":""} ключ${t.keys.length>1?"ове":""}: ${k(t.keys,", ")}`;case"invalid_key":return`Невалиден ключ в ${t.origin}`;case"invalid_union":return"Невалиден вход";case"invalid_element":return`Невалидна стойност в ${t.origin}`;default:return"Невалиден вход"}}};function X$(){return{localeError:W$()}}const H$=()=>{const e={string:{unit:"caràcters",verb:"contenir"},file:{unit:"bytes",verb:"contenir"},array:{unit:"elements",verb:"contenir"},set:{unit:"elements",verb:"contenir"}};function n(t){return e[t]??null}const r={regex:"entrada",email:"adreça electrònica",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"data i hora ISO",date:"data ISO",time:"hora ISO",duration:"durada ISO",ipv4:"adreça IPv4",ipv6:"adreça IPv6",cidrv4:"rang IPv4",cidrv6:"rang IPv6",base64:"cadena codificada en base64",base64url:"cadena codificada en base64url",json_string:"cadena JSON",e164:"número E.164",jwt:"JWT",template_literal:"entrada"},i={nan:"NaN"};return t=>{switch(t.code){case"invalid_type":{const o=i[t.expected]??t.expected,a=B(t.input),c=i[a]??a;return/^[A-Z]/.test(t.expected)?`Tipus invàlid: s'esperava instanceof ${t.expected}, s'ha rebut ${c}`:`Tipus invàlid: s'esperava ${o}, s'ha rebut ${c}`}case"invalid_value":return t.values.length===1?`Valor invàlid: s'esperava ${V(t.values[0])}`:`Opció invàlida: s'esperava una de ${k(t.values," o ")}`;case"too_big":{const o=t.inclusive?"com a màxim":"menys de",a=n(t.origin);return a?`Massa gran: s'esperava que ${t.origin??"el valor"} contingués ${o} ${t.maximum.toString()} ${a.unit??"elements"}`:`Massa gran: s'esperava que ${t.origin??"el valor"} fos ${o} ${t.maximum.toString()}`}case"too_small":{const o=t.inclusive?"com a mínim":"més de",a=n(t.origin);return a?`Massa petit: s'esperava que ${t.origin} contingués ${o} ${t.minimum.toString()} ${a.unit}`:`Massa petit: s'esperava que ${t.origin} fos ${o} ${t.minimum.toString()}`}case"invalid_format":{const o=t;return o.format==="starts_with"?`Format invàlid: ha de començar amb "${o.prefix}"`:o.format==="ends_with"?`Format invàlid: ha d'acabar amb "${o.suffix}"`:o.format==="includes"?`Format invàlid: ha d'incloure "${o.includes}"`:o.format==="regex"?`Format invàlid: ha de coincidir amb el patró ${o.pattern}`:`Format invàlid per a ${r[o.format]??t.format}`}case"not_multiple_of":return`Número invàlid: ha de ser múltiple de ${t.divisor}`;case"unrecognized_keys":return`Clau${t.keys.length>1?"s":""} no reconeguda${t.keys.length>1?"s":""}: ${k(t.keys,", ")}`;case"invalid_key":return`Clau invàlida a ${t.origin}`;case"invalid_union":return"Entrada invàlida";case"invalid_element":return`Element invàlid a ${t.origin}`;default:return"Entrada invàlida"}}};function Y$(){return{localeError:H$()}}const Q$=()=>{const e={string:{unit:"znaků",verb:"mít"},file:{unit:"bajtů",verb:"mít"},array:{unit:"prvků",verb:"mít"},set:{unit:"prvků",verb:"mít"}};function n(t){return e[t]??null}const r={regex:"regulární výraz",email:"e-mailová adresa",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"datum a čas ve formátu ISO",date:"datum ve formátu ISO",time:"čas ve formátu ISO",duration:"doba trvání ISO",ipv4:"IPv4 adresa",ipv6:"IPv6 adresa",cidrv4:"rozsah IPv4",cidrv6:"rozsah IPv6",base64:"řetězec zakódovaný ve formátu base64",base64url:"řetězec zakódovaný ve formátu base64url",json_string:"řetězec ve formátu JSON",e164:"číslo E.164",jwt:"JWT",template_literal:"vstup"},i={nan:"NaN",number:"číslo",string:"řetězec",function:"funkce",array:"pole"};return t=>{switch(t.code){case"invalid_type":{const o=i[t.expected]??t.expected,a=B(t.input),c=i[a]??a;return/^[A-Z]/.test(t.expected)?`Neplatný vstup: očekáváno instanceof ${t.expected}, obdrženo ${c}`:`Neplatný vstup: očekáváno ${o}, obdrženo ${c}`}case"invalid_value":return t.values.length===1?`Neplatný vstup: očekáváno ${V(t.values[0])}`:`Neplatná možnost: očekávána jedna z hodnot ${k(t.values,"|")}`;case"too_big":{const o=t.inclusive?"<=":"<",a=n(t.origin);return a?`Hodnota je příliš velká: ${t.origin??"hodnota"} musí mít ${o}${t.maximum.toString()} ${a.unit??"prvků"}`:`Hodnota je příliš velká: ${t.origin??"hodnota"} musí být ${o}${t.maximum.toString()}`}case"too_small":{const o=t.inclusive?">=":">",a=n(t.origin);return a?`Hodnota je příliš malá: ${t.origin??"hodnota"} musí mít ${o}${t.minimum.toString()} ${a.unit??"prvků"}`:`Hodnota je příliš malá: ${t.origin??"hodnota"} musí být ${o}${t.minimum.toString()}`}case"invalid_format":{const o=t;return o.format==="starts_with"?`Neplatný řetězec: musí začínat na "${o.prefix}"`:o.format==="ends_with"?`Neplatný řetězec: musí končit na "${o.suffix}"`:o.format==="includes"?`Neplatný řetězec: musí obsahovat "${o.includes}"`:o.format==="regex"?`Neplatný řetězec: musí odpovídat vzoru ${o.pattern}`:`Neplatný formát ${r[o.format]??t.format}`}case"not_multiple_of":return`Neplatné číslo: musí být násobkem ${t.divisor}`;case"unrecognized_keys":return`Neznámé klíče: ${k(t.keys,", ")}`;case"invalid_key":return`Neplatný klíč v ${t.origin}`;case"invalid_union":return"Neplatný vstup";case"invalid_element":return`Neplatná hodnota v ${t.origin}`;default:return"Neplatný vstup"}}};function eb(){return{localeError:Q$()}}const tb=()=>{const e={string:{unit:"tegn",verb:"havde"},file:{unit:"bytes",verb:"havde"},array:{unit:"elementer",verb:"indeholdt"},set:{unit:"elementer",verb:"indeholdt"}};function n(t){return e[t]??null}const r={regex:"input",email:"e-mailadresse",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO dato- og klokkeslæt",date:"ISO-dato",time:"ISO-klokkeslæt",duration:"ISO-varighed",ipv4:"IPv4-område",ipv6:"IPv6-område",cidrv4:"IPv4-spektrum",cidrv6:"IPv6-spektrum",base64:"base64-kodet streng",base64url:"base64url-kodet streng",json_string:"JSON-streng",e164:"E.164-nummer",jwt:"JWT",template_literal:"input"},i={nan:"NaN",string:"streng",number:"tal",boolean:"boolean",array:"liste",object:"objekt",set:"sæt",file:"fil"};return t=>{switch(t.code){case"invalid_type":{const o=i[t.expected]??t.expected,a=B(t.input),c=i[a]??a;return/^[A-Z]/.test(t.expected)?`Ugyldigt input: forventede instanceof ${t.expected}, fik ${c}`:`Ugyldigt input: forventede ${o}, fik ${c}`}case"invalid_value":return t.values.length===1?`Ugyldig værdi: forventede ${V(t.values[0])}`:`Ugyldigt valg: forventede en af følgende ${k(t.values,"|")}`;case"too_big":{const o=t.inclusive?"<=":"<",a=n(t.origin),c=i[t.origin]??t.origin;return a?`For stor: forventede ${c??"value"} ${a.verb} ${o} ${t.maximum.toString()} ${a.unit??"elementer"}`:`For stor: forventede ${c??"value"} havde ${o} ${t.maximum.toString()}`}case"too_small":{const o=t.inclusive?">=":">",a=n(t.origin),c=i[t.origin]??t.origin;return a?`For lille: forventede ${c} ${a.verb} ${o} ${t.minimum.toString()} ${a.unit}`:`For lille: forventede ${c} havde ${o} ${t.minimum.toString()}`}case"invalid_format":{const o=t;return o.format==="starts_with"?`Ugyldig streng: skal starte med "${o.prefix}"`:o.format==="ends_with"?`Ugyldig streng: skal ende med "${o.suffix}"`:o.format==="includes"?`Ugyldig streng: skal indeholde "${o.includes}"`:o.format==="regex"?`Ugyldig streng: skal matche mønsteret ${o.pattern}`:`Ugyldig ${r[o.format]??t.format}`}case"not_multiple_of":return`Ugyldigt tal: skal være deleligt med ${t.divisor}`;case"unrecognized_keys":return`${t.keys.length>1?"Ukendte nøgler":"Ukendt nøgle"}: ${k(t.keys,", ")}`;case"invalid_key":return`Ugyldig nøgle i ${t.origin}`;case"invalid_union":return"Ugyldigt input: matcher ingen af de tilladte typer";case"invalid_element":return`Ugyldig værdi i ${t.origin}`;default:return"Ugyldigt input"}}};function nb(){return{localeError:tb()}}const rb=()=>{const e={string:{unit:"Zeichen",verb:"zu haben"},file:{unit:"Bytes",verb:"zu haben"},array:{unit:"Elemente",verb:"zu haben"},set:{unit:"Elemente",verb:"zu haben"}};function n(t){return e[t]??null}const r={regex:"Eingabe",email:"E-Mail-Adresse",url:"URL",emoji:"Emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO-Datum und -Uhrzeit",date:"ISO-Datum",time:"ISO-Uhrzeit",duration:"ISO-Dauer",ipv4:"IPv4-Adresse",ipv6:"IPv6-Adresse",cidrv4:"IPv4-Bereich",cidrv6:"IPv6-Bereich",base64:"Base64-codierter String",base64url:"Base64-URL-codierter String",json_string:"JSON-String",e164:"E.164-Nummer",jwt:"JWT",template_literal:"Eingabe"},i={nan:"NaN",number:"Zahl",array:"Array"};return t=>{switch(t.code){case"invalid_type":{const o=i[t.expected]??t.expected,a=B(t.input),c=i[a]??a;return/^[A-Z]/.test(t.expected)?`Ungültige Eingabe: erwartet instanceof ${t.expected}, erhalten ${c}`:`Ungültige Eingabe: erwartet ${o}, erhalten ${c}`}case"invalid_value":return t.values.length===1?`Ungültige Eingabe: erwartet ${V(t.values[0])}`:`Ungültige Option: erwartet eine von ${k(t.values,"|")}`;case"too_big":{const o=t.inclusive?"<=":"<",a=n(t.origin);return a?`Zu groß: erwartet, dass ${t.origin??"Wert"} ${o}${t.maximum.toString()} ${a.unit??"Elemente"} hat`:`Zu groß: erwartet, dass ${t.origin??"Wert"} ${o}${t.maximum.toString()} ist`}case"too_small":{const o=t.inclusive?">=":">",a=n(t.origin);return a?`Zu klein: erwartet, dass ${t.origin} ${o}${t.minimum.toString()} ${a.unit} hat`:`Zu klein: erwartet, dass ${t.origin} ${o}${t.minimum.toString()} ist`}case"invalid_format":{const o=t;return o.format==="starts_with"?`Ungültiger String: muss mit "${o.prefix}" beginnen`:o.format==="ends_with"?`Ungültiger String: muss mit "${o.suffix}" enden`:o.format==="includes"?`Ungültiger String: muss "${o.includes}" enthalten`:o.format==="regex"?`Ungültiger String: muss dem Muster ${o.pattern} entsprechen`:`Ungültig: ${r[o.format]??t.format}`}case"not_multiple_of":return`Ungültige Zahl: muss ein Vielfaches von ${t.divisor} sein`;case"unrecognized_keys":return`${t.keys.length>1?"Unbekannte Schlüssel":"Unbekannter Schlüssel"}: ${k(t.keys,", ")}`;case"invalid_key":return`Ungültiger Schlüssel in ${t.origin}`;case"invalid_union":return"Ungültige Eingabe";case"invalid_element":return`Ungültiger Wert in ${t.origin}`;default:return"Ungültige Eingabe"}}};function ob(){return{localeError:rb()}}const ib=()=>{const e={string:{unit:"χαρακτήρες",verb:"να έχει"},file:{unit:"bytes",verb:"να έχει"},array:{unit:"στοιχεία",verb:"να έχει"},set:{unit:"στοιχεία",verb:"να έχει"},map:{unit:"καταχωρήσεις",verb:"να έχει"}};function n(t){return e[t]??null}const r={regex:"είσοδος",email:"διεύθυνση email",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO ημερομηνία και ώρα",date:"ISO ημερομηνία",time:"ISO ώρα",duration:"ISO διάρκεια",ipv4:"διεύθυνση IPv4",ipv6:"διεύθυνση IPv6",mac:"διεύθυνση MAC",cidrv4:"εύρος IPv4",cidrv6:"εύρος IPv6",base64:"συμβολοσειρά κωδικοποιημένη σε base64",base64url:"συμβολοσειρά κωδικοποιημένη σε base64url",json_string:"συμβολοσειρά JSON",e164:"αριθμός E.164",jwt:"JWT",template_literal:"είσοδος"},i={nan:"NaN"};return t=>{switch(t.code){case"invalid_type":{const o=i[t.expected]??t.expected,a=B(t.input),c=i[a]??a;return typeof t.expected=="string"&&/^[A-Z]/.test(t.expected)?`Μη έγκυρη είσοδος: αναμενόταν instanceof ${t.expected}, λήφθηκε ${c}`:`Μη έγκυρη είσοδος: αναμενόταν ${o}, λήφθηκε ${c}`}case"invalid_value":return t.values.length===1?`Μη έγκυρη είσοδος: αναμενόταν ${V(t.values[0])}`:`Μη έγκυρη επιλογή: αναμενόταν ένα από ${k(t.values,"|")}`;case"too_big":{const o=t.inclusive?"<=":"<",a=n(t.origin);return a?`Πολύ μεγάλο: αναμενόταν ${t.origin??"τιμή"} να έχει ${o}${t.maximum.toString()} ${a.unit??"στοιχεία"}`:`Πολύ μεγάλο: αναμενόταν ${t.origin??"τιμή"} να είναι ${o}${t.maximum.toString()}`}case"too_small":{const o=t.inclusive?">=":">",a=n(t.origin);return a?`Πολύ μικρό: αναμενόταν ${t.origin} να έχει ${o}${t.minimum.toString()} ${a.unit}`:`Πολύ μικρό: αναμενόταν ${t.origin} να είναι ${o}${t.minimum.toString()}`}case"invalid_format":{const o=t;return o.format==="starts_with"?`Μη έγκυρη συμβολοσειρά: πρέπει να ξεκινά με "${o.prefix}"`:o.format==="ends_with"?`Μη έγκυρη συμβολοσειρά: πρέπει να τελειώνει με "${o.suffix}"`:o.format==="includes"?`Μη έγκυρη συμβολοσειρά: πρέπει να περιέχει "${o.includes}"`:o.format==="regex"?`Μη έγκυρη συμβολοσειρά: πρέπει να ταιριάζει με το μοτίβο ${o.pattern}`:`Μη έγκυρο: ${r[o.format]??t.format}`}case"not_multiple_of":return`Μη έγκυρος αριθμός: πρέπει να είναι πολλαπλάσιο του ${t.divisor}`;case"unrecognized_keys":return`Άγνωστ${t.keys.length>1?"α":"ο"} κλειδ${t.keys.length>1?"ιά":"ί"}: ${k(t.keys,", ")}`;case"invalid_key":return`Μη έγκυρο κλειδί στο ${t.origin}`;case"invalid_union":return"Μη έγκυρη είσοδος";case"invalid_element":return`Μη έγκυρη τιμή στο ${t.origin}`;default:return"Μη έγκυρη είσοδος"}}};function ab(){return{localeError:ib()}}const lb=()=>{const e={string:{unit:"characters",verb:"to have"},file:{unit:"bytes",verb:"to have"},array:{unit:"items",verb:"to have"},set:{unit:"items",verb:"to have"},map:{unit:"entries",verb:"to have"}};function n(t){return e[t]??null}const r={regex:"input",email:"email address",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO datetime",date:"ISO date",time:"ISO time",duration:"ISO duration",ipv4:"IPv4 address",ipv6:"IPv6 address",mac:"MAC address",cidrv4:"IPv4 range",cidrv6:"IPv6 range",base64:"base64-encoded string",base64url:"base64url-encoded string",json_string:"JSON string",e164:"E.164 number",jwt:"JWT",template_literal:"input"},i={nan:"NaN"};return t=>{switch(t.code){case"invalid_type":{const o=i[t.expected]??t.expected,a=B(t.input),c=i[a]??a;return`Invalid input: expected ${o}, received ${c}`}case"invalid_value":return t.values.length===1?`Invalid input: expected ${V(t.values[0])}`:`Invalid option: expected one of ${k(t.values,"|")}`;case"too_big":{const o=t.inclusive?"<=":"<",a=n(t.origin);return a?`Too big: expected ${t.origin??"value"} to have ${o}${t.maximum.toString()} ${a.unit??"elements"}`:`Too big: expected ${t.origin??"value"} to be ${o}${t.maximum.toString()}`}case"too_small":{const o=t.inclusive?">=":">",a=n(t.origin);return a?`Too small: expected ${t.origin} to have ${o}${t.minimum.toString()} ${a.unit}`:`Too small: expected ${t.origin} to be ${o}${t.minimum.toString()}`}case"invalid_format":{const o=t;return o.format==="starts_with"?`Invalid string: must start with "${o.prefix}"`:o.format==="ends_with"?`Invalid string: must end with "${o.suffix}"`:o.format==="includes"?`Invalid string: must include "${o.includes}"`:o.format==="regex"?`Invalid string: must match pattern ${o.pattern}`:`Invalid ${r[o.format]??t.format}`}case"not_multiple_of":return`Invalid number: must be a multiple of ${t.divisor}`;case"unrecognized_keys":return`Unrecognized key${t.keys.length>1?"s":""}: ${k(t.keys,", ")}`;case"invalid_key":return`Invalid key in ${t.origin}`;case"invalid_union":return t.options&&Array.isArray(t.options)&&t.options.length>0?`Invalid discriminator value. Expected ${t.options.map(a=>`'${a}'`).join(" | ")}`:"Invalid input";case"invalid_element":return`Invalid value in ${t.origin}`;default:return"Invalid input"}}};function Jc(){return{localeError:lb()}}const cb=()=>{const e={string:{unit:"karaktrojn",verb:"havi"},file:{unit:"bajtojn",verb:"havi"},array:{unit:"elementojn",verb:"havi"},set:{unit:"elementojn",verb:"havi"}};function n(t){return e[t]??null}const r={regex:"enigo",email:"retadreso",url:"URL",emoji:"emoĝio",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO-datotempo",date:"ISO-dato",time:"ISO-tempo",duration:"ISO-daŭro",ipv4:"IPv4-adreso",ipv6:"IPv6-adreso",cidrv4:"IPv4-rango",cidrv6:"IPv6-rango",base64:"64-ume kodita karaktraro",base64url:"URL-64-ume kodita karaktraro",json_string:"JSON-karaktraro",e164:"E.164-nombro",jwt:"JWT",template_literal:"enigo"},i={nan:"NaN",number:"nombro",array:"tabelo",null:"senvalora"};return t=>{switch(t.code){case"invalid_type":{const o=i[t.expected]??t.expected,a=B(t.input),c=i[a]??a;return/^[A-Z]/.test(t.expected)?`Nevalida enigo: atendiĝis instanceof ${t.expected}, riceviĝis ${c}`:`Nevalida enigo: atendiĝis ${o}, riceviĝis ${c}`}case"invalid_value":return t.values.length===1?`Nevalida enigo: atendiĝis ${V(t.values[0])}`:`Nevalida opcio: atendiĝis unu el ${k(t.values,"|")}`;case"too_big":{const o=t.inclusive?"<=":"<",a=n(t.origin);return a?`Tro granda: atendiĝis ke ${t.origin??"valoro"} havu ${o}${t.maximum.toString()} ${a.unit??"elementojn"}`:`Tro granda: atendiĝis ke ${t.origin??"valoro"} havu ${o}${t.maximum.toString()}`}case"too_small":{const o=t.inclusive?">=":">",a=n(t.origin);return a?`Tro malgranda: atendiĝis ke ${t.origin} havu ${o}${t.minimum.toString()} ${a.unit}`:`Tro malgranda: atendiĝis ke ${t.origin} estu ${o}${t.minimum.toString()}`}case"invalid_format":{const o=t;return o.format==="starts_with"?`Nevalida karaktraro: devas komenciĝi per "${o.prefix}"`:o.format==="ends_with"?`Nevalida karaktraro: devas finiĝi per "${o.suffix}"`:o.format==="includes"?`Nevalida karaktraro: devas inkluzivi "${o.includes}"`:o.format==="regex"?`Nevalida karaktraro: devas kongrui kun la modelo ${o.pattern}`:`Nevalida ${r[o.format]??t.format}`}case"not_multiple_of":return`Nevalida nombro: devas esti oblo de ${t.divisor}`;case"unrecognized_keys":return`Nekonata${t.keys.length>1?"j":""} ŝlosilo${t.keys.length>1?"j":""}: ${k(t.keys,", ")}`;case"invalid_key":return`Nevalida ŝlosilo en ${t.origin}`;case"invalid_union":return"Nevalida enigo";case"invalid_element":return`Nevalida valoro en ${t.origin}`;default:return"Nevalida enigo"}}};function sb(){return{localeError:cb()}}const ub=()=>{const e={string:{unit:"caracteres",verb:"tener"},file:{unit:"bytes",verb:"tener"},array:{unit:"elementos",verb:"tener"},set:{unit:"elementos",verb:"tener"}};function n(t){return e[t]??null}const r={regex:"entrada",email:"dirección de correo electrónico",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"fecha y hora ISO",date:"fecha ISO",time:"hora ISO",duration:"duración ISO",ipv4:"dirección IPv4",ipv6:"dirección IPv6",cidrv4:"rango IPv4",cidrv6:"rango IPv6",base64:"cadena codificada en base64",base64url:"URL codificada en base64",json_string:"cadena JSON",e164:"número E.164",jwt:"JWT",template_literal:"entrada"},i={nan:"NaN",string:"texto",number:"número",boolean:"booleano",array:"arreglo",object:"objeto",set:"conjunto",file:"archivo",date:"fecha",bigint:"número grande",symbol:"símbolo",undefined:"indefinido",null:"nulo",function:"función",map:"mapa",record:"registro",tuple:"tupla",enum:"enumeración",union:"unión",literal:"literal",promise:"promesa",void:"vacío",never:"nunca",unknown:"desconocido",any:"cualquiera"};return t=>{switch(t.code){case"invalid_type":{const o=i[t.expected]??t.expected,a=B(t.input),c=i[a]??a;return/^[A-Z]/.test(t.expected)?`Entrada inválida: se esperaba instanceof ${t.expected}, recibido ${c}`:`Entrada inválida: se esperaba ${o}, recibido ${c}`}case"invalid_value":return t.values.length===1?`Entrada inválida: se esperaba ${V(t.values[0])}`:`Opción inválida: se esperaba una de ${k(t.values,"|")}`;case"too_big":{const o=t.inclusive?"<=":"<",a=n(t.origin),c=i[t.origin]??t.origin;return a?`Demasiado grande: se esperaba que ${c??"valor"} tuviera ${o}${t.maximum.toString()} ${a.unit??"elementos"}`:`Demasiado grande: se esperaba que ${c??"valor"} fuera ${o}${t.maximum.toString()}`}case"too_small":{const o=t.inclusive?">=":">",a=n(t.origin),c=i[t.origin]??t.origin;return a?`Demasiado pequeño: se esperaba que ${c} tuviera ${o}${t.minimum.toString()} ${a.unit}`:`Demasiado pequeño: se esperaba que ${c} fuera ${o}${t.minimum.toString()}`}case"invalid_format":{const o=t;return o.format==="starts_with"?`Cadena inválida: debe comenzar con "${o.prefix}"`:o.format==="ends_with"?`Cadena inválida: debe terminar en "${o.suffix}"`:o.format==="includes"?`Cadena inválida: debe incluir "${o.includes}"`:o.format==="regex"?`Cadena inválida: debe coincidir con el patrón ${o.pattern}`:`Inválido ${r[o.format]??t.format}`}case"not_multiple_of":return`Número inválido: debe ser múltiplo de ${t.divisor}`;case"unrecognized_keys":return`Llave${t.keys.length>1?"s":""} desconocida${t.keys.length>1?"s":""}: ${k(t.keys,", ")}`;case"invalid_key":return`Llave inválida en ${i[t.origin]??t.origin}`;case"invalid_union":return"Entrada inválida";case"invalid_element":return`Valor inválido en ${i[t.origin]??t.origin}`;default:return"Entrada inválida"}}};function db(){return{localeError:ub()}}const mb=()=>{const e={string:{unit:"کاراکتر",verb:"داشته باشد"},file:{unit:"بایت",verb:"داشته باشد"},array:{unit:"آیتم",verb:"داشته باشد"},set:{unit:"آیتم",verb:"داشته باشد"}};function n(t){return e[t]??null}const r={regex:"ورودی",email:"آدرس ایمیل",url:"URL",emoji:"ایموجی",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"تاریخ و زمان ایزو",date:"تاریخ ایزو",time:"زمان ایزو",duration:"مدت زمان ایزو",ipv4:"IPv4 آدرس",ipv6:"IPv6 آدرس",cidrv4:"IPv4 دامنه",cidrv6:"IPv6 دامنه",base64:"base64-encoded رشته",base64url:"base64url-encoded رشته",json_string:"JSON رشته",e164:"E.164 عدد",jwt:"JWT",template_literal:"ورودی"},i={nan:"NaN",number:"عدد",array:"آرایه"};return t=>{switch(t.code){case"invalid_type":{const o=i[t.expected]??t.expected,a=B(t.input),c=i[a]??a;return/^[A-Z]/.test(t.expected)?`ورودی نامعتبر: می‌بایست instanceof ${t.expected} می‌بود، ${c} دریافت شد`:`ورودی نامعتبر: می‌بایست ${o} می‌بود، ${c} دریافت شد`}case"invalid_value":return t.values.length===1?`ورودی نامعتبر: می‌بایست ${V(t.values[0])} می‌بود`:`گزینه نامعتبر: می‌بایست یکی از ${k(t.values,"|")} می‌بود`;case"too_big":{const o=t.inclusive?"<=":"<",a=n(t.origin);return a?`خیلی بزرگ: ${t.origin??"مقدار"} باید ${o}${t.maximum.toString()} ${a.unit??"عنصر"} باشد`:`خیلی بزرگ: ${t.origin??"مقدار"} باید ${o}${t.maximum.toString()} باشد`}case"too_small":{const o=t.inclusive?">=":">",a=n(t.origin);return a?`خیلی کوچک: ${t.origin} باید ${o}${t.minimum.toString()} ${a.unit} باشد`:`خیلی کوچک: ${t.origin} باید ${o}${t.minimum.toString()} باشد`}case"invalid_format":{const o=t;return o.format==="starts_with"?`رشته نامعتبر: باید با "${o.prefix}" شروع شود`:o.format==="ends_with"?`رشته نامعتبر: باید با "${o.suffix}" تمام شود`:o.format==="includes"?`رشته نامعتبر: باید شامل "${o.includes}" باشد`:o.format==="regex"?`رشته نامعتبر: باید با الگوی ${o.pattern} مطابقت داشته باشد`:`${r[o.format]??t.format} نامعتبر`}case"not_multiple_of":return`عدد نامعتبر: باید مضرب ${t.divisor} باشد`;case"unrecognized_keys":return`کلید${t.keys.length>1?"های":""} ناشناس: ${k(t.keys,", ")}`;case"invalid_key":return`کلید ناشناس در ${t.origin}`;case"invalid_union":return"ورودی نامعتبر";case"invalid_element":return`مقدار نامعتبر در ${t.origin}`;default:return"ورودی نامعتبر"}}};function fb(){return{localeError:mb()}}const pb=()=>{const e={string:{unit:"merkkiä",subject:"merkkijonon"},file:{unit:"tavua",subject:"tiedoston"},array:{unit:"alkiota",subject:"listan"},set:{unit:"alkiota",subject:"joukon"},number:{unit:"",subject:"luvun"},bigint:{unit:"",subject:"suuren kokonaisluvun"},int:{unit:"",subject:"kokonaisluvun"},date:{unit:"",subject:"päivämäärän"}};function n(t){return e[t]??null}const r={regex:"säännöllinen lauseke",email:"sähköpostiosoite",url:"URL-osoite",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO-aikaleima",date:"ISO-päivämäärä",time:"ISO-aika",duration:"ISO-kesto",ipv4:"IPv4-osoite",ipv6:"IPv6-osoite",cidrv4:"IPv4-alue",cidrv6:"IPv6-alue",base64:"base64-koodattu merkkijono",base64url:"base64url-koodattu merkkijono",json_string:"JSON-merkkijono",e164:"E.164-luku",jwt:"JWT",template_literal:"templaattimerkkijono"},i={nan:"NaN"};return t=>{switch(t.code){case"invalid_type":{const o=i[t.expected]??t.expected,a=B(t.input),c=i[a]??a;return/^[A-Z]/.test(t.expected)?`Virheellinen tyyppi: odotettiin instanceof ${t.expected}, oli ${c}`:`Virheellinen tyyppi: odotettiin ${o}, oli ${c}`}case"invalid_value":return t.values.length===1?`Virheellinen syöte: täytyy olla ${V(t.values[0])}`:`Virheellinen valinta: täytyy olla yksi seuraavista: ${k(t.values,"|")}`;case"too_big":{const o=t.inclusive?"<=":"<",a=n(t.origin);return a?`Liian suuri: ${a.subject} täytyy olla ${o}${t.maximum.toString()} ${a.unit}`.trim():`Liian suuri: arvon täytyy olla ${o}${t.maximum.toString()}`}case"too_small":{const o=t.inclusive?">=":">",a=n(t.origin);return a?`Liian pieni: ${a.subject} täytyy olla ${o}${t.minimum.toString()} ${a.unit}`.trim():`Liian pieni: arvon täytyy olla ${o}${t.minimum.toString()}`}case"invalid_format":{const o=t;return o.format==="starts_with"?`Virheellinen syöte: täytyy alkaa "${o.prefix}"`:o.format==="ends_with"?`Virheellinen syöte: täytyy loppua "${o.suffix}"`:o.format==="includes"?`Virheellinen syöte: täytyy sisältää "${o.includes}"`:o.format==="regex"?`Virheellinen syöte: täytyy vastata säännöllistä lauseketta ${o.pattern}`:`Virheellinen ${r[o.format]??t.format}`}case"not_multiple_of":return`Virheellinen luku: täytyy olla luvun ${t.divisor} monikerta`;case"unrecognized_keys":return`${t.keys.length>1?"Tuntemattomat avaimet":"Tuntematon avain"}: ${k(t.keys,", ")}`;case"invalid_key":return"Virheellinen avain tietueessa";case"invalid_union":return"Virheellinen unioni";case"invalid_element":return"Virheellinen arvo joukossa";default:return"Virheellinen syöte"}}};function gb(){return{localeError:pb()}}const vb=()=>{const e={string:{unit:"caractères",verb:"avoir"},file:{unit:"octets",verb:"avoir"},array:{unit:"éléments",verb:"avoir"},set:{unit:"éléments",verb:"avoir"}};function n(t){return e[t]??null}const r={regex:"entrée",email:"adresse e-mail",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"date et heure ISO",date:"date ISO",time:"heure ISO",duration:"durée ISO",ipv4:"adresse IPv4",ipv6:"adresse IPv6",cidrv4:"plage IPv4",cidrv6:"plage IPv6",base64:"chaîne encodée en base64",base64url:"chaîne encodée en base64url",json_string:"chaîne JSON",e164:"numéro E.164",jwt:"JWT",template_literal:"entrée"},i={string:"chaîne",number:"nombre",int:"entier",boolean:"booléen",bigint:"grand entier",symbol:"symbole",undefined:"indéfini",null:"null",never:"jamais",void:"vide",date:"date",array:"tableau",object:"objet",tuple:"tuple",record:"enregistrement",map:"carte",set:"ensemble",file:"fichier",nonoptional:"non-optionnel",nan:"NaN",function:"fonction"};return t=>{switch(t.code){case"invalid_type":{const o=i[t.expected]??t.expected,a=B(t.input),c=i[a]??a;return/^[A-Z]/.test(t.expected)?`Entrée invalide : instanceof ${t.expected} attendu, ${c} reçu`:`Entrée invalide : ${o} attendu, ${c} reçu`}case"invalid_value":return t.values.length===1?`Entrée invalide : ${V(t.values[0])} attendu`:`Option invalide : une valeur parmi ${k(t.values,"|")} attendue`;case"too_big":{const o=t.inclusive?"<=":"<",a=n(t.origin);return a?`Trop grand : ${i[t.origin]??"valeur"} doit ${a.verb} ${o}${t.maximum.toString()} ${a.unit??"élément(s)"}`:`Trop grand : ${i[t.origin]??"valeur"} doit être ${o}${t.maximum.toString()}`}case"too_small":{const o=t.inclusive?">=":">",a=n(t.origin);return a?`Trop petit : ${i[t.origin]??"valeur"} doit ${a.verb} ${o}${t.minimum.toString()} ${a.unit}`:`Trop petit : ${i[t.origin]??"valeur"} doit être ${o}${t.minimum.toString()}`}case"invalid_format":{const o=t;return o.format==="starts_with"?`Chaîne invalide : doit commencer par "${o.prefix}"`:o.format==="ends_with"?`Chaîne invalide : doit se terminer par "${o.suffix}"`:o.format==="includes"?`Chaîne invalide : doit inclure "${o.includes}"`:o.format==="regex"?`Chaîne invalide : doit correspondre au modèle ${o.pattern}`:`${r[o.format]??t.format} invalide`}case"not_multiple_of":return`Nombre invalide : doit être un multiple de ${t.divisor}`;case"unrecognized_keys":return`Clé${t.keys.length>1?"s":""} non reconnue${t.keys.length>1?"s":""} : ${k(t.keys,", ")}`;case"invalid_key":return`Clé invalide dans ${t.origin}`;case"invalid_union":return"Entrée invalide";case"invalid_element":return`Valeur invalide dans ${t.origin}`;default:return"Entrée invalide"}}};function hb(){return{localeError:vb()}}const $b=()=>{const e={string:{unit:"caractères",verb:"avoir"},file:{unit:"octets",verb:"avoir"},array:{unit:"éléments",verb:"avoir"},set:{unit:"éléments",verb:"avoir"}};function n(t){return e[t]??null}const r={regex:"entrée",email:"adresse courriel",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"date-heure ISO",date:"date ISO",time:"heure ISO",duration:"durée ISO",ipv4:"adresse IPv4",ipv6:"adresse IPv6",cidrv4:"plage IPv4",cidrv6:"plage IPv6",base64:"chaîne encodée en base64",base64url:"chaîne encodée en base64url",json_string:"chaîne JSON",e164:"numéro E.164",jwt:"JWT",template_literal:"entrée"},i={nan:"NaN"};return t=>{switch(t.code){case"invalid_type":{const o=i[t.expected]??t.expected,a=B(t.input),c=i[a]??a;return/^[A-Z]/.test(t.expected)?`Entrée invalide : attendu instanceof ${t.expected}, reçu ${c}`:`Entrée invalide : attendu ${o}, reçu ${c}`}case"invalid_value":return t.values.length===1?`Entrée invalide : attendu ${V(t.values[0])}`:`Option invalide : attendu l'une des valeurs suivantes ${k(t.values,"|")}`;case"too_big":{const o=t.inclusive?"≤":"<",a=n(t.origin);return a?`Trop grand : attendu que ${t.origin??"la valeur"} ait ${o}${t.maximum.toString()} ${a.unit}`:`Trop grand : attendu que ${t.origin??"la valeur"} soit ${o}${t.maximum.toString()}`}case"too_small":{const o=t.inclusive?"≥":">",a=n(t.origin);return a?`Trop petit : attendu que ${t.origin} ait ${o}${t.minimum.toString()} ${a.unit}`:`Trop petit : attendu que ${t.origin} soit ${o}${t.minimum.toString()}`}case"invalid_format":{const o=t;return o.format==="starts_with"?`Chaîne invalide : doit commencer par "${o.prefix}"`:o.format==="ends_with"?`Chaîne invalide : doit se terminer par "${o.suffix}"`:o.format==="includes"?`Chaîne invalide : doit inclure "${o.includes}"`:o.format==="regex"?`Chaîne invalide : doit correspondre au motif ${o.pattern}`:`${r[o.format]??t.format} invalide`}case"not_multiple_of":return`Nombre invalide : doit être un multiple de ${t.divisor}`;case"unrecognized_keys":return`Clé${t.keys.length>1?"s":""} non reconnue${t.keys.length>1?"s":""} : ${k(t.keys,", ")}`;case"invalid_key":return`Clé invalide dans ${t.origin}`;case"invalid_union":return"Entrée invalide";case"invalid_element":return`Valeur invalide dans ${t.origin}`;default:return"Entrée invalide"}}};function bb(){return{localeError:$b()}}const _b=()=>{const e={string:{label:"מחרוזת",gender:"f"},number:{label:"מספר",gender:"m"},boolean:{label:"ערך בוליאני",gender:"m"},bigint:{label:"BigInt",gender:"m"},date:{label:"תאריך",gender:"m"},array:{label:"מערך",gender:"m"},object:{label:"אובייקט",gender:"m"},null:{label:"ערך ריק (null)",gender:"m"},undefined:{label:"ערך לא מוגדר (undefined)",gender:"m"},symbol:{label:"סימבול (Symbol)",gender:"m"},function:{label:"פונקציה",gender:"f"},map:{label:"מפה (Map)",gender:"f"},set:{label:"קבוצה (Set)",gender:"f"},file:{label:"קובץ",gender:"m"},promise:{label:"Promise",gender:"m"},NaN:{label:"NaN",gender:"m"},unknown:{label:"ערך לא ידוע",gender:"m"},value:{label:"ערך",gender:"m"}},n={string:{unit:"תווים",shortLabel:"קצר",longLabel:"ארוך"},file:{unit:"בייטים",shortLabel:"קטן",longLabel:"גדול"},array:{unit:"פריטים",shortLabel:"קטן",longLabel:"גדול"},set:{unit:"פריטים",shortLabel:"קטן",longLabel:"גדול"},number:{unit:"",shortLabel:"קטן",longLabel:"גדול"}},r=s=>s?e[s]:void 0,i=s=>{const m=r(s);return m?m.label:s??e.unknown.label},t=s=>`ה${i(s)}`,o=s=>{const m=r(s);return((m==null?void 0:m.gender)??"m")==="f"?"צריכה להיות":"צריך להיות"},a=s=>s?n[s]??null:null,c={regex:{label:"קלט",gender:"m"},email:{label:"כתובת אימייל",gender:"f"},url:{label:"כתובת רשת",gender:"f"},emoji:{label:"אימוג'י",gender:"m"},uuid:{label:"UUID",gender:"m"},nanoid:{label:"nanoid",gender:"m"},guid:{label:"GUID",gender:"m"},cuid:{label:"cuid",gender:"m"},cuid2:{label:"cuid2",gender:"m"},ulid:{label:"ULID",gender:"m"},xid:{label:"XID",gender:"m"},ksuid:{label:"KSUID",gender:"m"},datetime:{label:"תאריך וזמן ISO",gender:"m"},date:{label:"תאריך ISO",gender:"m"},time:{label:"זמן ISO",gender:"m"},duration:{label:"משך זמן ISO",gender:"m"},ipv4:{label:"כתובת IPv4",gender:"f"},ipv6:{label:"כתובת IPv6",gender:"f"},cidrv4:{label:"טווח IPv4",gender:"m"},cidrv6:{label:"טווח IPv6",gender:"m"},base64:{label:"מחרוזת בבסיס 64",gender:"f"},base64url:{label:"מחרוזת בבסיס 64 לכתובות רשת",gender:"f"},json_string:{label:"מחרוזת JSON",gender:"f"},e164:{label:"מספר E.164",gender:"m"},jwt:{label:"JWT",gender:"m"},ends_with:{label:"קלט",gender:"m"},includes:{label:"קלט",gender:"m"},lowercase:{label:"קלט",gender:"m"},starts_with:{label:"קלט",gender:"m"},uppercase:{label:"קלט",gender:"m"}},u={nan:"NaN"};return s=>{var m;switch(s.code){case"invalid_type":{const d=s.expected,f=u[d??""]??i(d),p=B(s.input),v=u[p]??((m=e[p])==null?void 0:m.label)??p;return/^[A-Z]/.test(s.expected)?`קלט לא תקין: צריך להיות instanceof ${s.expected}, התקבל ${v}`:`קלט לא תקין: צריך להיות ${f}, התקבל ${v}`}case"invalid_value":{if(s.values.length===1)return`ערך לא תקין: הערך חייב להיות ${V(s.values[0])}`;const d=s.values.map(v=>V(v));if(s.values.length===2)return`ערך לא תקין: האפשרויות המתאימות הן ${d[0]} או ${d[1]}`;const f=d[d.length-1];return`ערך לא תקין: האפשרויות המתאימות הן ${d.slice(0,-1).join(", ")} או ${f}`}case"too_big":{const d=a(s.origin),f=t(s.origin??"value");if(s.origin==="string")return`${(d==null?void 0:d.longLabel)??"ארוך"} מדי: ${f} צריכה להכיל ${s.maximum.toString()} ${(d==null?void 0:d.unit)??""} ${s.inclusive?"או פחות":"לכל היותר"}`.trim();if(s.origin==="number"){const _=s.inclusive?`קטן או שווה ל-${s.maximum}`:`קטן מ-${s.maximum}`;return`גדול מדי: ${f} צריך להיות ${_}`}if(s.origin==="array"||s.origin==="set"){const _=s.origin==="set"?"צריכה":"צריך",O=s.inclusive?`${s.maximum} ${(d==null?void 0:d.unit)??""} או פחות`:`פחות מ-${s.maximum} ${(d==null?void 0:d.unit)??""}`;return`גדול מדי: ${f} ${_} להכיל ${O}`.trim()}const p=s.inclusive?"<=":"<",v=o(s.origin??"value");return d!=null&&d.unit?`${d.longLabel} מדי: ${f} ${v} ${p}${s.maximum.toString()} ${d.unit}`:`${(d==null?void 0:d.longLabel)??"גדול"} מדי: ${f} ${v} ${p}${s.maximum.toString()}`}case"too_small":{const d=a(s.origin),f=t(s.origin??"value");if(s.origin==="string")return`${(d==null?void 0:d.shortLabel)??"קצר"} מדי: ${f} צריכה להכיל ${s.minimum.toString()} ${(d==null?void 0:d.unit)??""} ${s.inclusive?"או יותר":"לפחות"}`.trim();if(s.origin==="number"){const _=s.inclusive?`גדול או שווה ל-${s.minimum}`:`גדול מ-${s.minimum}`;return`קטן מדי: ${f} צריך להיות ${_}`}if(s.origin==="array"||s.origin==="set"){const _=s.origin==="set"?"צריכה":"צריך";if(s.minimum===1&&s.inclusive){const N=(s.origin==="set","לפחות פריט אחד");return`קטן מדי: ${f} ${_} להכיל ${N}`}const O=s.inclusive?`${s.minimum} ${(d==null?void 0:d.unit)??""} או יותר`:`יותר מ-${s.minimum} ${(d==null?void 0:d.unit)??""}`;return`קטן מדי: ${f} ${_} להכיל ${O}`.trim()}const p=s.inclusive?">=":">",v=o(s.origin??"value");return d!=null&&d.unit?`${d.shortLabel} מדי: ${f} ${v} ${p}${s.minimum.toString()} ${d.unit}`:`${(d==null?void 0:d.shortLabel)??"קטן"} מדי: ${f} ${v} ${p}${s.minimum.toString()}`}case"invalid_format":{const d=s;if(d.format==="starts_with")return`המחרוזת חייבת להתחיל ב "${d.prefix}"`;if(d.format==="ends_with")return`המחרוזת חייבת להסתיים ב "${d.suffix}"`;if(d.format==="includes")return`המחרוזת חייבת לכלול "${d.includes}"`;if(d.format==="regex")return`המחרוזת חייבת להתאים לתבנית ${d.pattern}`;const f=c[d.format],p=(f==null?void 0:f.label)??d.format,_=((f==null?void 0:f.gender)??"m")==="f"?"תקינה":"תקין";return`${p} לא ${_}`}case"not_multiple_of":return`מספר לא תקין: חייב להיות מכפלה של ${s.divisor}`;case"unrecognized_keys":return`מפתח${s.keys.length>1?"ות":""} לא מזוה${s.keys.length>1?"ים":"ה"}: ${k(s.keys,", ")}`;case"invalid_key":return"שדה לא תקין באובייקט";case"invalid_union":return"קלט לא תקין";case"invalid_element":return`ערך לא תקין ב${t(s.origin??"array")}`;default:return"קלט לא תקין"}}};function yb(){return{localeError:_b()}}const kb=()=>{const e={string:{unit:"znakova",verb:"imati"},file:{unit:"bajtova",verb:"imati"},array:{unit:"stavki",verb:"imati"},set:{unit:"stavki",verb:"imati"}};function n(t){return e[t]??null}const r={regex:"unos",email:"email adresa",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO datum i vrijeme",date:"ISO datum",time:"ISO vrijeme",duration:"ISO trajanje",ipv4:"IPv4 adresa",ipv6:"IPv6 adresa",cidrv4:"IPv4 raspon",cidrv6:"IPv6 raspon",base64:"base64 kodirani tekst",base64url:"base64url kodirani tekst",json_string:"JSON tekst",e164:"E.164 broj",jwt:"JWT",template_literal:"unos"},i={nan:"NaN",string:"tekst",number:"broj",boolean:"boolean",array:"niz",object:"objekt",set:"skup",file:"datoteka",date:"datum",bigint:"bigint",symbol:"simbol",undefined:"undefined",null:"null",function:"funkcija",map:"mapa"};return t=>{switch(t.code){case"invalid_type":{const o=i[t.expected]??t.expected,a=B(t.input),c=i[a]??a;return/^[A-Z]/.test(t.expected)?`Neispravan unos: očekuje se instanceof ${t.expected}, a primljeno je ${c}`:`Neispravan unos: očekuje se ${o}, a primljeno je ${c}`}case"invalid_value":return t.values.length===1?`Neispravna vrijednost: očekivano ${V(t.values[0])}`:`Neispravna opcija: očekivano jedno od ${k(t.values,"|")}`;case"too_big":{const o=t.inclusive?"<=":"<",a=n(t.origin),c=i[t.origin]??t.origin;return a?`Preveliko: očekivano da ${c??"vrijednost"} ima ${o}${t.maximum.toString()} ${a.unit??"elemenata"}`:`Preveliko: očekivano da ${c??"vrijednost"} bude ${o}${t.maximum.toString()}`}case"too_small":{const o=t.inclusive?">=":">",a=n(t.origin),c=i[t.origin]??t.origin;return a?`Premalo: očekivano da ${c} ima ${o}${t.minimum.toString()} ${a.unit}`:`Premalo: očekivano da ${c} bude ${o}${t.minimum.toString()}`}case"invalid_format":{const o=t;return o.format==="starts_with"?`Neispravan tekst: mora započinjati s "${o.prefix}"`:o.format==="ends_with"?`Neispravan tekst: mora završavati s "${o.suffix}"`:o.format==="includes"?`Neispravan tekst: mora sadržavati "${o.includes}"`:o.format==="regex"?`Neispravan tekst: mora odgovarati uzorku ${o.pattern}`:`Neispravna ${r[o.format]??t.format}`}case"not_multiple_of":return`Neispravan broj: mora biti višekratnik od ${t.divisor}`;case"unrecognized_keys":return`Neprepoznat${t.keys.length>1?"i ključevi":" ključ"}: ${k(t.keys,", ")}`;case"invalid_key":return`Neispravan ključ u ${i[t.origin]??t.origin}`;case"invalid_union":return"Neispravan unos";case"invalid_element":return`Neispravna vrijednost u ${i[t.origin]??t.origin}`;default:return"Neispravan unos"}}};function Sb(){return{localeError:kb()}}const wb=()=>{const e={string:{unit:"karakter",verb:"legyen"},file:{unit:"byte",verb:"legyen"},array:{unit:"elem",verb:"legyen"},set:{unit:"elem",verb:"legyen"}};function n(t){return e[t]??null}const r={regex:"bemenet",email:"email cím",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO időbélyeg",date:"ISO dátum",time:"ISO idő",duration:"ISO időintervallum",ipv4:"IPv4 cím",ipv6:"IPv6 cím",cidrv4:"IPv4 tartomány",cidrv6:"IPv6 tartomány",base64:"base64-kódolt string",base64url:"base64url-kódolt string",json_string:"JSON string",e164:"E.164 szám",jwt:"JWT",template_literal:"bemenet"},i={nan:"NaN",number:"szám",array:"tömb"};return t=>{switch(t.code){case"invalid_type":{const o=i[t.expected]??t.expected,a=B(t.input),c=i[a]??a;return/^[A-Z]/.test(t.expected)?`Érvénytelen bemenet: a várt érték instanceof ${t.expected}, a kapott érték ${c}`:`Érvénytelen bemenet: a várt érték ${o}, a kapott érték ${c}`}case"invalid_value":return t.values.length===1?`Érvénytelen bemenet: a várt érték ${V(t.values[0])}`:`Érvénytelen opció: valamelyik érték várt ${k(t.values,"|")}`;case"too_big":{const o=t.inclusive?"<=":"<",a=n(t.origin);return a?`Túl nagy: ${t.origin??"érték"} mérete túl nagy ${o}${t.maximum.toString()} ${a.unit??"elem"}`:`Túl nagy: a bemeneti érték ${t.origin??"érték"} túl nagy: ${o}${t.maximum.toString()}`}case"too_small":{const o=t.inclusive?">=":">",a=n(t.origin);return a?`Túl kicsi: a bemeneti érték ${t.origin} mérete túl kicsi ${o}${t.minimum.toString()} ${a.unit}`:`Túl kicsi: a bemeneti érték ${t.origin} túl kicsi ${o}${t.minimum.toString()}`}case"invalid_format":{const o=t;return o.format==="starts_with"?`Érvénytelen string: "${o.prefix}" értékkel kell kezdődnie`:o.format==="ends_with"?`Érvénytelen string: "${o.suffix}" értékkel kell végződnie`:o.format==="includes"?`Érvénytelen string: "${o.includes}" értéket kell tartalmaznia`:o.format==="regex"?`Érvénytelen string: ${o.pattern} mintának kell megfelelnie`:`Érvénytelen ${r[o.format]??t.format}`}case"not_multiple_of":return`Érvénytelen szám: ${t.divisor} többszörösének kell lennie`;case"unrecognized_keys":return`Ismeretlen kulcs${t.keys.length>1?"s":""}: ${k(t.keys,", ")}`;case"invalid_key":return`Érvénytelen kulcs ${t.origin}`;case"invalid_union":return"Érvénytelen bemenet";case"invalid_element":return`Érvénytelen érték: ${t.origin}`;default:return"Érvénytelen bemenet"}}};function Ib(){return{localeError:wb()}}function qc(e,n,r){return Math.abs(e)===1?n:r}function Je(e){if(!e)return"";const n=["ա","ե","ը","ի","ո","ու","օ"],r=e[e.length-1];return e+(n.includes(r)?"ն":"ը")}const zb=()=>{const e={string:{unit:{one:"նշան",many:"նշաններ"},verb:"ունենալ"},file:{unit:{one:"բայթ",many:"բայթեր"},verb:"ունենալ"},array:{unit:{one:"տարր",many:"տարրեր"},verb:"ունենալ"},set:{unit:{one:"տարր",many:"տարրեր"},verb:"ունենալ"}};function n(t){return e[t]??null}const r={regex:"մուտք",email:"էլ. հասցե",url:"URL",emoji:"էմոջի",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO ամսաթիվ և ժամ",date:"ISO ամսաթիվ",time:"ISO ժամ",duration:"ISO տևողություն",ipv4:"IPv4 հասցե",ipv6:"IPv6 հասցե",cidrv4:"IPv4 միջակայք",cidrv6:"IPv6 միջակայք",base64:"base64 ձևաչափով տող",base64url:"base64url ձևաչափով տող",json_string:"JSON տող",e164:"E.164 համար",jwt:"JWT",template_literal:"մուտք"},i={nan:"NaN",number:"թիվ",array:"զանգված"};return t=>{switch(t.code){case"invalid_type":{const o=i[t.expected]??t.expected,a=B(t.input),c=i[a]??a;return/^[A-Z]/.test(t.expected)?`Սխալ մուտքագրում․ սպասվում էր instanceof ${t.expected}, ստացվել է ${c}`:`Սխալ մուտքագրում․ սպասվում էր ${o}, ստացվել է ${c}`}case"invalid_value":return t.values.length===1?`Սխալ մուտքագրում․ սպասվում էր ${V(t.values[1])}`:`Սխալ տարբերակ․ սպասվում էր հետևյալներից մեկը՝ ${k(t.values,"|")}`;case"too_big":{const o=t.inclusive?"<=":"<",a=n(t.origin);if(a){const c=Number(t.maximum),u=qc(c,a.unit.one,a.unit.many);return`Չափազանց մեծ արժեք․ սպասվում է, որ ${Je(t.origin??"արժեք")} կունենա ${o}${t.maximum.toString()} ${u}`}return`Չափազանց մեծ արժեք․ սպասվում է, որ ${Je(t.origin??"արժեք")} լինի ${o}${t.maximum.toString()}`}case"too_small":{const o=t.inclusive?">=":">",a=n(t.origin);if(a){const c=Number(t.minimum),u=qc(c,a.unit.one,a.unit.many);return`Չափազանց փոքր արժեք․ սպասվում է, որ ${Je(t.origin)} կունենա ${o}${t.minimum.toString()} ${u}`}return`Չափազանց փոքր արժեք․ սպասվում է, որ ${Je(t.origin)} լինի ${o}${t.minimum.toString()}`}case"invalid_format":{const o=t;return o.format==="starts_with"?`Սխալ տող․ պետք է սկսվի "${o.prefix}"-ով`:o.format==="ends_with"?`Սխալ տող․ պետք է ավարտվի "${o.suffix}"-ով`:o.format==="includes"?`Սխալ տող․ պետք է պարունակի "${o.includes}"`:o.format==="regex"?`Սխալ տող․ պետք է համապատասխանի ${o.pattern} ձևաչափին`:`Սխալ ${r[o.format]??t.format}`}case"not_multiple_of":return`Սխալ թիվ․ պետք է բազմապատիկ լինի ${t.divisor}-ի`;case"unrecognized_keys":return`Չճանաչված բանալի${t.keys.length>1?"ներ":""}. ${k(t.keys,", ")}`;case"invalid_key":return`Սխալ բանալի ${Je(t.origin)}-ում`;case"invalid_union":return"Սխալ մուտքագրում";case"invalid_element":return`Սխալ արժեք ${Je(t.origin)}-ում`;default:return"Սխալ մուտքագրում"}}};function Eb(){return{localeError:zb()}}const Nb=()=>{const e={string:{unit:"karakter",verb:"memiliki"},file:{unit:"byte",verb:"memiliki"},array:{unit:"item",verb:"memiliki"},set:{unit:"item",verb:"memiliki"}};function n(t){return e[t]??null}const r={regex:"input",email:"alamat email",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"tanggal dan waktu format ISO",date:"tanggal format ISO",time:"jam format ISO",duration:"durasi format ISO",ipv4:"alamat IPv4",ipv6:"alamat IPv6",cidrv4:"rentang alamat IPv4",cidrv6:"rentang alamat IPv6",base64:"string dengan enkode base64",base64url:"string dengan enkode base64url",json_string:"string JSON",e164:"angka E.164",jwt:"JWT",template_literal:"input"},i={nan:"NaN"};return t=>{switch(t.code){case"invalid_type":{const o=i[t.expected]??t.expected,a=B(t.input),c=i[a]??a;return/^[A-Z]/.test(t.expected)?`Input tidak valid: diharapkan instanceof ${t.expected}, diterima ${c}`:`Input tidak valid: diharapkan ${o}, diterima ${c}`}case"invalid_value":return t.values.length===1?`Input tidak valid: diharapkan ${V(t.values[0])}`:`Pilihan tidak valid: diharapkan salah satu dari ${k(t.values,"|")}`;case"too_big":{const o=t.inclusive?"<=":"<",a=n(t.origin);return a?`Terlalu besar: diharapkan ${t.origin??"value"} memiliki ${o}${t.maximum.toString()} ${a.unit??"elemen"}`:`Terlalu besar: diharapkan ${t.origin??"value"} menjadi ${o}${t.maximum.toString()}`}case"too_small":{const o=t.inclusive?">=":">",a=n(t.origin);return a?`Terlalu kecil: diharapkan ${t.origin} memiliki ${o}${t.minimum.toString()} ${a.unit}`:`Terlalu kecil: diharapkan ${t.origin} menjadi ${o}${t.minimum.toString()}`}case"invalid_format":{const o=t;return o.format==="starts_with"?`String tidak valid: harus dimulai dengan "${o.prefix}"`:o.format==="ends_with"?`String tidak valid: harus berakhir dengan "${o.suffix}"`:o.format==="includes"?`String tidak valid: harus menyertakan "${o.includes}"`:o.format==="regex"?`String tidak valid: harus sesuai pola ${o.pattern}`:`${r[o.format]??t.format} tidak valid`}case"not_multiple_of":return`Angka tidak valid: harus kelipatan dari ${t.divisor}`;case"unrecognized_keys":return`Kunci tidak dikenali ${t.keys.length>1?"s":""}: ${k(t.keys,", ")}`;case"invalid_key":return`Kunci tidak valid di ${t.origin}`;case"invalid_union":return"Input tidak valid";case"invalid_element":return`Nilai tidak valid di ${t.origin}`;default:return"Input tidak valid"}}};function Db(){return{localeError:Nb()}}const jb=()=>{const e={string:{unit:"stafi",verb:"að hafa"},file:{unit:"bæti",verb:"að hafa"},array:{unit:"hluti",verb:"að hafa"},set:{unit:"hluti",verb:"að hafa"}};function n(t){return e[t]??null}const r={regex:"gildi",email:"netfang",url:"vefslóð",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO dagsetning og tími",date:"ISO dagsetning",time:"ISO tími",duration:"ISO tímalengd",ipv4:"IPv4 address",ipv6:"IPv6 address",cidrv4:"IPv4 range",cidrv6:"IPv6 range",base64:"base64-encoded strengur",base64url:"base64url-encoded strengur",json_string:"JSON strengur",e164:"E.164 tölugildi",jwt:"JWT",template_literal:"gildi"},i={nan:"NaN",number:"númer",array:"fylki"};return t=>{switch(t.code){case"invalid_type":{const o=i[t.expected]??t.expected,a=B(t.input),c=i[a]??a;return/^[A-Z]/.test(t.expected)?`Rangt gildi: Þú slóst inn ${c} þar sem á að vera instanceof ${t.expected}`:`Rangt gildi: Þú slóst inn ${c} þar sem á að vera ${o}`}case"invalid_value":return t.values.length===1?`Rangt gildi: gert ráð fyrir ${V(t.values[0])}`:`Ógilt val: má vera eitt af eftirfarandi ${k(t.values,"|")}`;case"too_big":{const o=t.inclusive?"<=":"<",a=n(t.origin);return a?`Of stórt: gert er ráð fyrir að ${t.origin??"gildi"} hafi ${o}${t.maximum.toString()} ${a.unit??"hluti"}`:`Of stórt: gert er ráð fyrir að ${t.origin??"gildi"} sé ${o}${t.maximum.toString()}`}case"too_small":{const o=t.inclusive?">=":">",a=n(t.origin);return a?`Of lítið: gert er ráð fyrir að ${t.origin} hafi ${o}${t.minimum.toString()} ${a.unit}`:`Of lítið: gert er ráð fyrir að ${t.origin} sé ${o}${t.minimum.toString()}`}case"invalid_format":{const o=t;return o.format==="starts_with"?`Ógildur strengur: verður að byrja á "${o.prefix}"`:o.format==="ends_with"?`Ógildur strengur: verður að enda á "${o.suffix}"`:o.format==="includes"?`Ógildur strengur: verður að innihalda "${o.includes}"`:o.format==="regex"?`Ógildur strengur: verður að fylgja mynstri ${o.pattern}`:`Rangt ${r[o.format]??t.format}`}case"not_multiple_of":return`Röng tala: verður að vera margfeldi af ${t.divisor}`;case"unrecognized_keys":return`Óþekkt ${t.keys.length>1?"ir lyklar":"ur lykill"}: ${k(t.keys,", ")}`;case"invalid_key":return`Rangur lykill í ${t.origin}`;case"invalid_union":return"Rangt gildi";case"invalid_element":return`Rangt gildi í ${t.origin}`;default:return"Rangt gildi"}}};function Ob(){return{localeError:jb()}}const xb=()=>{const e={string:{unit:"caratteri",verb:"avere"},file:{unit:"byte",verb:"avere"},array:{unit:"elementi",verb:"avere"},set:{unit:"elementi",verb:"avere"}};function n(t){return e[t]??null}const r={regex:"input",email:"indirizzo email",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"data e ora ISO",date:"data ISO",time:"ora ISO",duration:"durata ISO",ipv4:"indirizzo IPv4",ipv6:"indirizzo IPv6",cidrv4:"intervallo IPv4",cidrv6:"intervallo IPv6",base64:"stringa codificata in base64",base64url:"URL codificata in base64",json_string:"stringa JSON",e164:"numero E.164",jwt:"JWT",template_literal:"input"},i={nan:"NaN",number:"numero",array:"vettore"};return t=>{switch(t.code){case"invalid_type":{const o=i[t.expected]??t.expected,a=B(t.input),c=i[a]??a;return/^[A-Z]/.test(t.expected)?`Input non valido: atteso instanceof ${t.expected}, ricevuto ${c}`:`Input non valido: atteso ${o}, ricevuto ${c}`}case"invalid_value":return t.values.length===1?`Input non valido: atteso ${V(t.values[0])}`:`Opzione non valida: atteso uno tra ${k(t.values,"|")}`;case"too_big":{const o=t.inclusive?"<=":"<",a=n(t.origin);return a?`Troppo grande: ${t.origin??"valore"} deve avere ${o}${t.maximum.toString()} ${a.unit??"elementi"}`:`Troppo grande: ${t.origin??"valore"} deve essere ${o}${t.maximum.toString()}`}case"too_small":{const o=t.inclusive?">=":">",a=n(t.origin);return a?`Troppo piccolo: ${t.origin} deve avere ${o}${t.minimum.toString()} ${a.unit}`:`Troppo piccolo: ${t.origin} deve essere ${o}${t.minimum.toString()}`}case"invalid_format":{const o=t;return o.format==="starts_with"?`Stringa non valida: deve iniziare con "${o.prefix}"`:o.format==="ends_with"?`Stringa non valida: deve terminare con "${o.suffix}"`:o.format==="includes"?`Stringa non valida: deve includere "${o.includes}"`:o.format==="regex"?`Stringa non valida: deve corrispondere al pattern ${o.pattern}`:`Input non valido: ${r[o.format]??t.format}`}case"not_multiple_of":return`Numero non valido: deve essere un multiplo di ${t.divisor}`;case"unrecognized_keys":return`Chiav${t.keys.length>1?"i":"e"} non riconosciut${t.keys.length>1?"e":"a"}: ${k(t.keys,", ")}`;case"invalid_key":return`Chiave non valida in ${t.origin}`;case"invalid_union":return"Input non valido";case"invalid_element":return`Valore non valido in ${t.origin}`;default:return"Input non valido"}}};function Tb(){return{localeError:xb()}}const Ub=()=>{const e={string:{unit:"文字",verb:"である"},file:{unit:"バイト",verb:"である"},array:{unit:"要素",verb:"である"},set:{unit:"要素",verb:"である"}};function n(t){return e[t]??null}const r={regex:"入力値",email:"メールアドレス",url:"URL",emoji:"絵文字",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO日時",date:"ISO日付",time:"ISO時刻",duration:"ISO期間",ipv4:"IPv4アドレス",ipv6:"IPv6アドレス",cidrv4:"IPv4範囲",cidrv6:"IPv6範囲",base64:"base64エンコード文字列",base64url:"base64urlエンコード文字列",json_string:"JSON文字列",e164:"E.164番号",jwt:"JWT",template_literal:"入力値"},i={nan:"NaN",number:"数値",array:"配列"};return t=>{switch(t.code){case"invalid_type":{const o=i[t.expected]??t.expected,a=B(t.input),c=i[a]??a;return/^[A-Z]/.test(t.expected)?`無効な入力: instanceof ${t.expected}が期待されましたが、${c}が入力されました`:`無効な入力: ${o}が期待されましたが、${c}が入力されました`}case"invalid_value":return t.values.length===1?`無効な入力: ${V(t.values[0])}が期待されました`:`無効な選択: ${k(t.values,"、")}のいずれかである必要があります`;case"too_big":{const o=t.inclusive?"以下である":"より小さい",a=n(t.origin);return a?`大きすぎる値: ${t.origin??"値"}は${t.maximum.toString()}${a.unit??"要素"}${o}必要があります`:`大きすぎる値: ${t.origin??"値"}は${t.maximum.toString()}${o}必要があります`}case"too_small":{const o=t.inclusive?"以上である":"より大きい",a=n(t.origin);return a?`小さすぎる値: ${t.origin}は${t.minimum.toString()}${a.unit}${o}必要があります`:`小さすぎる値: ${t.origin}は${t.minimum.toString()}${o}必要があります`}case"invalid_format":{const o=t;return o.format==="starts_with"?`無効な文字列: "${o.prefix}"で始まる必要があります`:o.format==="ends_with"?`無効な文字列: "${o.suffix}"で終わる必要があります`:o.format==="includes"?`無効な文字列: "${o.includes}"を含む必要があります`:o.format==="regex"?`無効な文字列: パターン${o.pattern}に一致する必要があります`:`無効な${r[o.format]??t.format}`}case"not_multiple_of":return`無効な数値: ${t.divisor}の倍数である必要があります`;case"unrecognized_keys":return`認識されていないキー${t.keys.length>1?"群":""}: ${k(t.keys,"、")}`;case"invalid_key":return`${t.origin}内の無効なキー`;case"invalid_union":return"無効な入力";case"invalid_element":return`${t.origin}内の無効な値`;default:return"無効な入力"}}};function Cb(){return{localeError:Ub()}}const Pb=()=>{const e={string:{unit:"სიმბოლო",verb:"უნდა შეიცავდეს"},file:{unit:"ბაიტი",verb:"უნდა შეიცავდეს"},array:{unit:"ელემენტი",verb:"უნდა შეიცავდეს"},set:{unit:"ელემენტი",verb:"უნდა შეიცავდეს"}};function n(t){return e[t]??null}const r={regex:"შეყვანა",email:"ელ-ფოსტის მისამართი",url:"URL",emoji:"ემოჯი",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"თარიღი-დრო",date:"თარიღი",time:"დრო",duration:"ხანგრძლივობა",ipv4:"IPv4 მისამართი",ipv6:"IPv6 მისამართი",cidrv4:"IPv4 დიაპაზონი",cidrv6:"IPv6 დიაპაზონი",base64:"base64-კოდირებული ველი",base64url:"base64url-კოდირებული ველი",json_string:"JSON ველი",e164:"E.164 ნომერი",jwt:"JWT",template_literal:"შეყვანა"},i={nan:"NaN",number:"რიცხვი",string:"ველი",boolean:"ბულეანი",function:"ფუნქცია",array:"მასივი"};return t=>{switch(t.code){case"invalid_type":{const o=i[t.expected]??t.expected,a=B(t.input),c=i[a]??a;return/^[A-Z]/.test(t.expected)?`არასწორი შეყვანა: მოსალოდნელი instanceof ${t.expected}, მიღებული ${c}`:`არასწორი შეყვანა: მოსალოდნელი ${o}, მიღებული ${c}`}case"invalid_value":return t.values.length===1?`არასწორი შეყვანა: მოსალოდნელი ${V(t.values[0])}`:`არასწორი ვარიანტი: მოსალოდნელია ერთ-ერთი ${k(t.values,"|")}-დან`;case"too_big":{const o=t.inclusive?"<=":"<",a=n(t.origin);return a?`ზედმეტად დიდი: მოსალოდნელი ${t.origin??"მნიშვნელობა"} ${a.verb} ${o}${t.maximum.toString()} ${a.unit}`:`ზედმეტად დიდი: მოსალოდნელი ${t.origin??"მნიშვნელობა"} იყოს ${o}${t.maximum.toString()}`}case"too_small":{const o=t.inclusive?">=":">",a=n(t.origin);return a?`ზედმეტად პატარა: მოსალოდნელი ${t.origin} ${a.verb} ${o}${t.minimum.toString()} ${a.unit}`:`ზედმეტად პატარა: მოსალოდნელი ${t.origin} იყოს ${o}${t.minimum.toString()}`}case"invalid_format":{const o=t;return o.format==="starts_with"?`არასწორი ველი: უნდა იწყებოდეს "${o.prefix}"-ით`:o.format==="ends_with"?`არასწორი ველი: უნდა მთავრდებოდეს "${o.suffix}"-ით`:o.format==="includes"?`არასწორი ველი: უნდა შეიცავდეს "${o.includes}"-ს`:o.format==="regex"?`არასწორი ველი: უნდა შეესაბამებოდეს შაბლონს ${o.pattern}`:`არასწორი ${r[o.format]??t.format}`}case"not_multiple_of":return`არასწორი რიცხვი: უნდა იყოს ${t.divisor}-ის ჯერადი`;case"unrecognized_keys":return`უცნობი გასაღებ${t.keys.length>1?"ები":"ი"}: ${k(t.keys,", ")}`;case"invalid_key":return`არასწორი გასაღები ${t.origin}-ში`;case"invalid_union":return"არასწორი შეყვანა";case"invalid_element":return`არასწორი მნიშვნელობა ${t.origin}-ში`;default:return"არასწორი შეყვანა"}}};function Ab(){return{localeError:Pb()}}const Vb=()=>{const e={string:{unit:"តួអក្សរ",verb:"គួរមាន"},file:{unit:"បៃ",verb:"គួរមាន"},array:{unit:"ធាតុ",verb:"គួរមាន"},set:{unit:"ធាតុ",verb:"គួរមាន"}};function n(t){return e[t]??null}const r={regex:"ទិន្នន័យបញ្ចូល",email:"អាសយដ្ឋានអ៊ីមែល",url:"URL",emoji:"សញ្ញាអារម្មណ៍",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"កាលបរិច្ឆេទ និងម៉ោង ISO",date:"កាលបរិច្ឆេទ ISO",time:"ម៉ោង ISO",duration:"រយៈពេល ISO",ipv4:"អាសយដ្ឋាន IPv4",ipv6:"អាសយដ្ឋាន IPv6",cidrv4:"ដែនអាសយដ្ឋាន IPv4",cidrv6:"ដែនអាសយដ្ឋាន IPv6",base64:"ខ្សែអក្សរអ៊ិកូដ base64",base64url:"ខ្សែអក្សរអ៊ិកូដ base64url",json_string:"ខ្សែអក្សរ JSON",e164:"លេខ E.164",jwt:"JWT",template_literal:"ទិន្នន័យបញ្ចូល"},i={nan:"NaN",number:"លេខ",array:"អារេ (Array)",null:"គ្មានតម្លៃ (null)"};return t=>{switch(t.code){case"invalid_type":{const o=i[t.expected]??t.expected,a=B(t.input),c=i[a]??a;return/^[A-Z]/.test(t.expected)?`ទិន្នន័យបញ្ចូលមិនត្រឹមត្រូវ៖ ត្រូវការ instanceof ${t.expected} ប៉ុន្តែទទួលបាន ${c}`:`ទិន្នន័យបញ្ចូលមិនត្រឹមត្រូវ៖ ត្រូវការ ${o} ប៉ុន្តែទទួលបាន ${c}`}case"invalid_value":return t.values.length===1?`ទិន្នន័យបញ្ចូលមិនត្រឹមត្រូវ៖ ត្រូវការ ${V(t.values[0])}`:`ជម្រើសមិនត្រឹមត្រូវ៖ ត្រូវជាមួយក្នុងចំណោម ${k(t.values,"|")}`;case"too_big":{const o=t.inclusive?"<=":"<",a=n(t.origin);return a?`ធំពេក៖ ត្រូវការ ${t.origin??"តម្លៃ"} ${o} ${t.maximum.toString()} ${a.unit??"ធាតុ"}`:`ធំពេក៖ ត្រូវការ ${t.origin??"តម្លៃ"} ${o} ${t.maximum.toString()}`}case"too_small":{const o=t.inclusive?">=":">",a=n(t.origin);return a?`តូចពេក៖ ត្រូវការ ${t.origin} ${o} ${t.minimum.toString()} ${a.unit}`:`តូចពេក៖ ត្រូវការ ${t.origin} ${o} ${t.minimum.toString()}`}case"invalid_format":{const o=t;return o.format==="starts_with"?`ខ្សែអក្សរមិនត្រឹមត្រូវ៖ ត្រូវចាប់ផ្តើមដោយ "${o.prefix}"`:o.format==="ends_with"?`ខ្សែអក្សរមិនត្រឹមត្រូវ៖ ត្រូវបញ្ចប់ដោយ "${o.suffix}"`:o.format==="includes"?`ខ្សែអក្សរមិនត្រឹមត្រូវ៖ ត្រូវមាន "${o.includes}"`:o.format==="regex"?`ខ្សែអក្សរមិនត្រឹមត្រូវ៖ ត្រូវតែផ្គូផ្គងនឹងទម្រង់ដែលបានកំណត់ ${o.pattern}`:`មិនត្រឹមត្រូវ៖ ${r[o.format]??t.format}`}case"not_multiple_of":return`លេខមិនត្រឹមត្រូវ៖ ត្រូវតែជាពហុគុណនៃ ${t.divisor}`;case"unrecognized_keys":return`រកឃើញសោមិនស្គាល់៖ ${k(t.keys,", ")}`;case"invalid_key":return`សោមិនត្រឹមត្រូវនៅក្នុង ${t.origin}`;case"invalid_union":return"ទិន្នន័យមិនត្រឹមត្រូវ";case"invalid_element":return`ទិន្នន័យមិនត្រឹមត្រូវនៅក្នុង ${t.origin}`;default:return"ទិន្នន័យមិនត្រឹមត្រូវ"}}};function Gc(){return{localeError:Vb()}}function Bb(){return Gc()}const Zb=()=>{const e={string:{unit:"문자",verb:"to have"},file:{unit:"바이트",verb:"to have"},array:{unit:"개",verb:"to have"},set:{unit:"개",verb:"to have"}};function n(t){return e[t]??null}const r={regex:"입력",email:"이메일 주소",url:"URL",emoji:"이모지",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO 날짜시간",date:"ISO 날짜",time:"ISO 시간",duration:"ISO 기간",ipv4:"IPv4 주소",ipv6:"IPv6 주소",cidrv4:"IPv4 범위",cidrv6:"IPv6 범위",base64:"base64 인코딩 문자열",base64url:"base64url 인코딩 문자열",json_string:"JSON 문자열",e164:"E.164 번호",jwt:"JWT",template_literal:"입력"},i={nan:"NaN"};return t=>{switch(t.code){case"invalid_type":{const o=i[t.expected]??t.expected,a=B(t.input),c=i[a]??a;return/^[A-Z]/.test(t.expected)?`잘못된 입력: 예상 타입은 instanceof ${t.expected}, 받은 타입은 ${c}입니다`:`잘못된 입력: 예상 타입은 ${o}, 받은 타입은 ${c}입니다`}case"invalid_value":return t.values.length===1?`잘못된 입력: 값은 ${V(t.values[0])} 이어야 합니다`:`잘못된 옵션: ${k(t.values,"또는 ")} 중 하나여야 합니다`;case"too_big":{const o=t.inclusive?"이하":"미만",a=o==="미만"?"이어야 합니다":"여야 합니다",c=n(t.origin),u=(c==null?void 0:c.unit)??"요소";return c?`${t.origin??"값"}이 너무 큽니다: ${t.maximum.toString()}${u} ${o}${a}`:`${t.origin??"값"}이 너무 큽니다: ${t.maximum.toString()} ${o}${a}`}case"too_small":{const o=t.inclusive?"이상":"초과",a=o==="이상"?"이어야 합니다":"여야 합니다",c=n(t.origin),u=(c==null?void 0:c.unit)??"요소";return c?`${t.origin??"값"}이 너무 작습니다: ${t.minimum.toString()}${u} ${o}${a}`:`${t.origin??"값"}이 너무 작습니다: ${t.minimum.toString()} ${o}${a}`}case"invalid_format":{const o=t;return o.format==="starts_with"?`잘못된 문자열: "${o.prefix}"(으)로 시작해야 합니다`:o.format==="ends_with"?`잘못된 문자열: "${o.suffix}"(으)로 끝나야 합니다`:o.format==="includes"?`잘못된 문자열: "${o.includes}"을(를) 포함해야 합니다`:o.format==="regex"?`잘못된 문자열: 정규식 ${o.pattern} 패턴과 일치해야 합니다`:`잘못된 ${r[o.format]??t.format}`}case"not_multiple_of":return`잘못된 숫자: ${t.divisor}의 배수여야 합니다`;case"unrecognized_keys":return`인식할 수 없는 키: ${k(t.keys,", ")}`;case"invalid_key":return`잘못된 키: ${t.origin}`;case"invalid_union":return"잘못된 입력";case"invalid_element":return`잘못된 값: ${t.origin}`;default:return"잘못된 입력"}}};function Mb(){return{localeError:Zb()}}const mt=e=>e.charAt(0).toUpperCase()+e.slice(1);function Kc(e){const n=Math.abs(e),r=n%10,i=n%100;return i>=11&&i<=19||r===0?"many":r===1?"one":"few"}const Fb=()=>{const e={string:{unit:{one:"simbolis",few:"simboliai",many:"simbolių"},verb:{smaller:{inclusive:"turi būti ne ilgesnė kaip",notInclusive:"turi būti trumpesnė kaip"},bigger:{inclusive:"turi būti ne trumpesnė kaip",notInclusive:"turi būti ilgesnė kaip"}}},file:{unit:{one:"baitas",few:"baitai",many:"baitų"},verb:{smaller:{inclusive:"turi būti ne didesnis kaip",notInclusive:"turi būti mažesnis kaip"},bigger:{inclusive:"turi būti ne mažesnis kaip",notInclusive:"turi būti didesnis kaip"}}},array:{unit:{one:"elementą",few:"elementus",many:"elementų"},verb:{smaller:{inclusive:"turi turėti ne daugiau kaip",notInclusive:"turi turėti mažiau kaip"},bigger:{inclusive:"turi turėti ne mažiau kaip",notInclusive:"turi turėti daugiau kaip"}}},set:{unit:{one:"elementą",few:"elementus",many:"elementų"},verb:{smaller:{inclusive:"turi turėti ne daugiau kaip",notInclusive:"turi turėti mažiau kaip"},bigger:{inclusive:"turi turėti ne mažiau kaip",notInclusive:"turi turėti daugiau kaip"}}}};function n(t,o,a,c){const u=e[t]??null;return u===null?u:{unit:u.unit[o],verb:u.verb[c][a?"inclusive":"notInclusive"]}}const r={regex:"įvestis",email:"el. pašto adresas",url:"URL",emoji:"jaustukas",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO data ir laikas",date:"ISO data",time:"ISO laikas",duration:"ISO trukmė",ipv4:"IPv4 adresas",ipv6:"IPv6 adresas",cidrv4:"IPv4 tinklo prefiksas (CIDR)",cidrv6:"IPv6 tinklo prefiksas (CIDR)",base64:"base64 užkoduota eilutė",base64url:"base64url užkoduota eilutė",json_string:"JSON eilutė",e164:"E.164 numeris",jwt:"JWT",template_literal:"įvestis"},i={nan:"NaN",number:"skaičius",bigint:"sveikasis skaičius",string:"eilutė",boolean:"loginė reikšmė",undefined:"neapibrėžta reikšmė",function:"funkcija",symbol:"simbolis",array:"masyvas",object:"objektas",null:"nulinė reikšmė"};return t=>{switch(t.code){case"invalid_type":{const o=i[t.expected]??t.expected,a=B(t.input),c=i[a]??a;return/^[A-Z]/.test(t.expected)?`Gautas tipas ${c}, o tikėtasi - instanceof ${t.expected}`:`Gautas tipas ${c}, o tikėtasi - ${o}`}case"invalid_value":return t.values.length===1?`Privalo būti ${V(t.values[0])}`:`Privalo būti vienas iš ${k(t.values,"|")} pasirinkimų`;case"too_big":{const o=i[t.origin]??t.origin,a=n(t.origin,Kc(Number(t.maximum)),t.inclusive??!1,"smaller");if(a!=null&&a.verb)return`${mt(o??t.origin??"reikšmė")} ${a.verb} ${t.maximum.toString()} ${a.unit??"elementų"}`;const c=t.inclusive?"ne didesnis kaip":"mažesnis kaip";return`${mt(o??t.origin??"reikšmė")} turi būti ${c} ${t.maximum.toString()} ${a==null?void 0:a.unit}`}case"too_small":{const o=i[t.origin]??t.origin,a=n(t.origin,Kc(Number(t.minimum)),t.inclusive??!1,"bigger");if(a!=null&&a.verb)return`${mt(o??t.origin??"reikšmė")} ${a.verb} ${t.minimum.toString()} ${a.unit??"elementų"}`;const c=t.inclusive?"ne mažesnis kaip":"didesnis kaip";return`${mt(o??t.origin??"reikšmė")} turi būti ${c} ${t.minimum.toString()} ${a==null?void 0:a.unit}`}case"invalid_format":{const o=t;return o.format==="starts_with"?`Eilutė privalo prasidėti "${o.prefix}"`:o.format==="ends_with"?`Eilutė privalo pasibaigti "${o.suffix}"`:o.format==="includes"?`Eilutė privalo įtraukti "${o.includes}"`:o.format==="regex"?`Eilutė privalo atitikti ${o.pattern}`:`Neteisingas ${r[o.format]??t.format}`}case"not_multiple_of":return`Skaičius privalo būti ${t.divisor} kartotinis.`;case"unrecognized_keys":return`Neatpažint${t.keys.length>1?"i":"as"} rakt${t.keys.length>1?"ai":"as"}: ${k(t.keys,", ")}`;case"invalid_key":return"Rastas klaidingas raktas";case"invalid_union":return"Klaidinga įvestis";case"invalid_element":{const o=i[t.origin]??t.origin;return`${mt(o??t.origin??"reikšmė")} turi klaidingą įvestį`}default:return"Klaidinga įvestis"}}};function Lb(){return{localeError:Fb()}}const Rb=()=>{const e={string:{unit:"знаци",verb:"да имаат"},file:{unit:"бајти",verb:"да имаат"},array:{unit:"ставки",verb:"да имаат"},set:{unit:"ставки",verb:"да имаат"}};function n(t){return e[t]??null}const r={regex:"внес",email:"адреса на е-пошта",url:"URL",emoji:"емоџи",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO датум и време",date:"ISO датум",time:"ISO време",duration:"ISO времетраење",ipv4:"IPv4 адреса",ipv6:"IPv6 адреса",cidrv4:"IPv4 опсег",cidrv6:"IPv6 опсег",base64:"base64-енкодирана низа",base64url:"base64url-енкодирана низа",json_string:"JSON низа",e164:"E.164 број",jwt:"JWT",template_literal:"внес"},i={nan:"NaN",number:"број",array:"низа"};return t=>{switch(t.code){case"invalid_type":{const o=i[t.expected]??t.expected,a=B(t.input),c=i[a]??a;return/^[A-Z]/.test(t.expected)?`Грешен внес: се очекува instanceof ${t.expected}, примено ${c}`:`Грешен внес: се очекува ${o}, примено ${c}`}case"invalid_value":return t.values.length===1?`Invalid input: expected ${V(t.values[0])}`:`Грешана опција: се очекува една ${k(t.values,"|")}`;case"too_big":{const o=t.inclusive?"<=":"<",a=n(t.origin);return a?`Премногу голем: се очекува ${t.origin??"вредноста"} да има ${o}${t.maximum.toString()} ${a.unit??"елементи"}`:`Премногу голем: се очекува ${t.origin??"вредноста"} да биде ${o}${t.maximum.toString()}`}case"too_small":{const o=t.inclusive?">=":">",a=n(t.origin);return a?`Премногу мал: се очекува ${t.origin} да има ${o}${t.minimum.toString()} ${a.unit}`:`Премногу мал: се очекува ${t.origin} да биде ${o}${t.minimum.toString()}`}case"invalid_format":{const o=t;return o.format==="starts_with"?`Неважечка низа: мора да започнува со "${o.prefix}"`:o.format==="ends_with"?`Неважечка низа: мора да завршува со "${o.suffix}"`:o.format==="includes"?`Неважечка низа: мора да вклучува "${o.includes}"`:o.format==="regex"?`Неважечка низа: мора да одгоара на патернот ${o.pattern}`:`Invalid ${r[o.format]??t.format}`}case"not_multiple_of":return`Грешен број: мора да биде делив со ${t.divisor}`;case"unrecognized_keys":return`${t.keys.length>1?"Непрепознаени клучеви":"Непрепознаен клуч"}: ${k(t.keys,", ")}`;case"invalid_key":return`Грешен клуч во ${t.origin}`;case"invalid_union":return"Грешен внес";case"invalid_element":return`Грешна вредност во ${t.origin}`;default:return"Грешен внес"}}};function Jb(){return{localeError:Rb()}}const qb=()=>{const e={string:{unit:"aksara",verb:"mempunyai"},file:{unit:"bait",verb:"mempunyai"},array:{unit:"elemen",verb:"mempunyai"},set:{unit:"elemen",verb:"mempunyai"}};function n(t){return e[t]??null}const r={regex:"input",email:"alamat e-mel",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"tarikh masa ISO",date:"tarikh ISO",time:"masa ISO",duration:"tempoh ISO",ipv4:"alamat IPv4",ipv6:"alamat IPv6",cidrv4:"julat IPv4",cidrv6:"julat IPv6",base64:"string dikodkan base64",base64url:"string dikodkan base64url",json_string:"string JSON",e164:"nombor E.164",jwt:"JWT",template_literal:"input"},i={nan:"NaN",number:"nombor"};return t=>{switch(t.code){case"invalid_type":{const o=i[t.expected]??t.expected,a=B(t.input),c=i[a]??a;return/^[A-Z]/.test(t.expected)?`Input tidak sah: dijangka instanceof ${t.expected}, diterima ${c}`:`Input tidak sah: dijangka ${o}, diterima ${c}`}case"invalid_value":return t.values.length===1?`Input tidak sah: dijangka ${V(t.values[0])}`:`Pilihan tidak sah: dijangka salah satu daripada ${k(t.values,"|")}`;case"too_big":{const o=t.inclusive?"<=":"<",a=n(t.origin);return a?`Terlalu besar: dijangka ${t.origin??"nilai"} ${a.verb} ${o}${t.maximum.toString()} ${a.unit??"elemen"}`:`Terlalu besar: dijangka ${t.origin??"nilai"} adalah ${o}${t.maximum.toString()}`}case"too_small":{const o=t.inclusive?">=":">",a=n(t.origin);return a?`Terlalu kecil: dijangka ${t.origin} ${a.verb} ${o}${t.minimum.toString()} ${a.unit}`:`Terlalu kecil: dijangka ${t.origin} adalah ${o}${t.minimum.toString()}`}case"invalid_format":{const o=t;return o.format==="starts_with"?`String tidak sah: mesti bermula dengan "${o.prefix}"`:o.format==="ends_with"?`String tidak sah: mesti berakhir dengan "${o.suffix}"`:o.format==="includes"?`String tidak sah: mesti mengandungi "${o.includes}"`:o.format==="regex"?`String tidak sah: mesti sepadan dengan corak ${o.pattern}`:`${r[o.format]??t.format} tidak sah`}case"not_multiple_of":return`Nombor tidak sah: perlu gandaan ${t.divisor}`;case"unrecognized_keys":return`Kunci tidak dikenali: ${k(t.keys,", ")}`;case"invalid_key":return`Kunci tidak sah dalam ${t.origin}`;case"invalid_union":return"Input tidak sah";case"invalid_element":return`Nilai tidak sah dalam ${t.origin}`;default:return"Input tidak sah"}}};function Gb(){return{localeError:qb()}}const Kb=()=>{const e={string:{unit:"tekens",verb:"heeft"},file:{unit:"bytes",verb:"heeft"},array:{unit:"elementen",verb:"heeft"},set:{unit:"elementen",verb:"heeft"}};function n(t){return e[t]??null}const r={regex:"invoer",email:"emailadres",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO datum en tijd",date:"ISO datum",time:"ISO tijd",duration:"ISO duur",ipv4:"IPv4-adres",ipv6:"IPv6-adres",cidrv4:"IPv4-bereik",cidrv6:"IPv6-bereik",base64:"base64-gecodeerde tekst",base64url:"base64 URL-gecodeerde tekst",json_string:"JSON string",e164:"E.164-nummer",jwt:"JWT",template_literal:"invoer"},i={nan:"NaN",number:"getal"};return t=>{switch(t.code){case"invalid_type":{const o=i[t.expected]??t.expected,a=B(t.input),c=i[a]??a;return/^[A-Z]/.test(t.expected)?`Ongeldige invoer: verwacht instanceof ${t.expected}, ontving ${c}`:`Ongeldige invoer: verwacht ${o}, ontving ${c}`}case"invalid_value":return t.values.length===1?`Ongeldige invoer: verwacht ${V(t.values[0])}`:`Ongeldige optie: verwacht één van ${k(t.values,"|")}`;case"too_big":{const o=t.inclusive?"<=":"<",a=n(t.origin),c=t.origin==="date"?"laat":t.origin==="string"?"lang":"groot";return a?`Te ${c}: verwacht dat ${t.origin??"waarde"} ${o}${t.maximum.toString()} ${a.unit??"elementen"} ${a.verb}`:`Te ${c}: verwacht dat ${t.origin??"waarde"} ${o}${t.maximum.toString()} is`}case"too_small":{const o=t.inclusive?">=":">",a=n(t.origin),c=t.origin==="date"?"vroeg":t.origin==="string"?"kort":"klein";return a?`Te ${c}: verwacht dat ${t.origin} ${o}${t.minimum.toString()} ${a.unit} ${a.verb}`:`Te ${c}: verwacht dat ${t.origin} ${o}${t.minimum.toString()} is`}case"invalid_format":{const o=t;return o.format==="starts_with"?`Ongeldige tekst: moet met "${o.prefix}" beginnen`:o.format==="ends_with"?`Ongeldige tekst: moet op "${o.suffix}" eindigen`:o.format==="includes"?`Ongeldige tekst: moet "${o.includes}" bevatten`:o.format==="regex"?`Ongeldige tekst: moet overeenkomen met patroon ${o.pattern}`:`Ongeldig: ${r[o.format]??t.format}`}case"not_multiple_of":return`Ongeldig getal: moet een veelvoud van ${t.divisor} zijn`;case"unrecognized_keys":return`Onbekende key${t.keys.length>1?"s":""}: ${k(t.keys,", ")}`;case"invalid_key":return`Ongeldige key in ${t.origin}`;case"invalid_union":return"Ongeldige invoer";case"invalid_element":return`Ongeldige waarde in ${t.origin}`;default:return"Ongeldige invoer"}}};function Wb(){return{localeError:Kb()}}const Xb=()=>{const e={string:{unit:"tegn",verb:"å ha"},file:{unit:"bytes",verb:"å ha"},array:{unit:"elementer",verb:"å inneholde"},set:{unit:"elementer",verb:"å inneholde"}};function n(t){return e[t]??null}const r={regex:"input",email:"e-postadresse",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO dato- og klokkeslett",date:"ISO-dato",time:"ISO-klokkeslett",duration:"ISO-varighet",ipv4:"IPv4-område",ipv6:"IPv6-område",cidrv4:"IPv4-spekter",cidrv6:"IPv6-spekter",base64:"base64-enkodet streng",base64url:"base64url-enkodet streng",json_string:"JSON-streng",e164:"E.164-nummer",jwt:"JWT",template_literal:"input"},i={nan:"NaN",number:"tall",array:"liste"};return t=>{switch(t.code){case"invalid_type":{const o=i[t.expected]??t.expected,a=B(t.input),c=i[a]??a;return/^[A-Z]/.test(t.expected)?`Ugyldig input: forventet instanceof ${t.expected}, fikk ${c}`:`Ugyldig input: forventet ${o}, fikk ${c}`}case"invalid_value":return t.values.length===1?`Ugyldig verdi: forventet ${V(t.values[0])}`:`Ugyldig valg: forventet en av ${k(t.values,"|")}`;case"too_big":{const o=t.inclusive?"<=":"<",a=n(t.origin);return a?`For stor(t): forventet ${t.origin??"value"} til å ha ${o}${t.maximum.toString()} ${a.unit??"elementer"}`:`For stor(t): forventet ${t.origin??"value"} til å ha ${o}${t.maximum.toString()}`}case"too_small":{const o=t.inclusive?">=":">",a=n(t.origin);return a?`For lite(n): forventet ${t.origin} til å ha ${o}${t.minimum.toString()} ${a.unit}`:`For lite(n): forventet ${t.origin} til å ha ${o}${t.minimum.toString()}`}case"invalid_format":{const o=t;return o.format==="starts_with"?`Ugyldig streng: må starte med "${o.prefix}"`:o.format==="ends_with"?`Ugyldig streng: må ende med "${o.suffix}"`:o.format==="includes"?`Ugyldig streng: må inneholde "${o.includes}"`:o.format==="regex"?`Ugyldig streng: må matche mønsteret ${o.pattern}`:`Ugyldig ${r[o.format]??t.format}`}case"not_multiple_of":return`Ugyldig tall: må være et multiplum av ${t.divisor}`;case"unrecognized_keys":return`${t.keys.length>1?"Ukjente nøkler":"Ukjent nøkkel"}: ${k(t.keys,", ")}`;case"invalid_key":return`Ugyldig nøkkel i ${t.origin}`;case"invalid_union":return"Ugyldig input";case"invalid_element":return`Ugyldig verdi i ${t.origin}`;default:return"Ugyldig input"}}};function Hb(){return{localeError:Xb()}}const Yb=()=>{const e={string:{unit:"harf",verb:"olmalıdır"},file:{unit:"bayt",verb:"olmalıdır"},array:{unit:"unsur",verb:"olmalıdır"},set:{unit:"unsur",verb:"olmalıdır"}};function n(t){return e[t]??null}const r={regex:"giren",email:"epostagâh",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO hengâmı",date:"ISO tarihi",time:"ISO zamanı",duration:"ISO müddeti",ipv4:"IPv4 nişânı",ipv6:"IPv6 nişânı",cidrv4:"IPv4 menzili",cidrv6:"IPv6 menzili",base64:"base64-şifreli metin",base64url:"base64url-şifreli metin",json_string:"JSON metin",e164:"E.164 sayısı",jwt:"JWT",template_literal:"giren"},i={nan:"NaN",number:"numara",array:"saf",null:"gayb"};return t=>{switch(t.code){case"invalid_type":{const o=i[t.expected]??t.expected,a=B(t.input),c=i[a]??a;return/^[A-Z]/.test(t.expected)?`Fâsit giren: umulan instanceof ${t.expected}, alınan ${c}`:`Fâsit giren: umulan ${o}, alınan ${c}`}case"invalid_value":return t.values.length===1?`Fâsit giren: umulan ${V(t.values[0])}`:`Fâsit tercih: mûteberler ${k(t.values,"|")}`;case"too_big":{const o=t.inclusive?"<=":"<",a=n(t.origin);return a?`Fazla büyük: ${t.origin??"value"}, ${o}${t.maximum.toString()} ${a.unit??"elements"} sahip olmalıydı.`:`Fazla büyük: ${t.origin??"value"}, ${o}${t.maximum.toString()} olmalıydı.`}case"too_small":{const o=t.inclusive?">=":">",a=n(t.origin);return a?`Fazla küçük: ${t.origin}, ${o}${t.minimum.toString()} ${a.unit} sahip olmalıydı.`:`Fazla küçük: ${t.origin}, ${o}${t.minimum.toString()} olmalıydı.`}case"invalid_format":{const o=t;return o.format==="starts_with"?`Fâsit metin: "${o.prefix}" ile başlamalı.`:o.format==="ends_with"?`Fâsit metin: "${o.suffix}" ile bitmeli.`:o.format==="includes"?`Fâsit metin: "${o.includes}" ihtivâ etmeli.`:o.format==="regex"?`Fâsit metin: ${o.pattern} nakşına uymalı.`:`Fâsit ${r[o.format]??t.format}`}case"not_multiple_of":return`Fâsit sayı: ${t.divisor} katı olmalıydı.`;case"unrecognized_keys":return`Tanınmayan anahtar ${t.keys.length>1?"s":""}: ${k(t.keys,", ")}`;case"invalid_key":return`${t.origin} için tanınmayan anahtar var.`;case"invalid_union":return"Giren tanınamadı.";case"invalid_element":return`${t.origin} için tanınmayan kıymet var.`;default:return"Kıymet tanınamadı."}}};function Qb(){return{localeError:Yb()}}const e_=()=>{const e={string:{unit:"توکي",verb:"ولري"},file:{unit:"بایټس",verb:"ولري"},array:{unit:"توکي",verb:"ولري"},set:{unit:"توکي",verb:"ولري"}};function n(t){return e[t]??null}const r={regex:"ورودي",email:"بریښنالیک",url:"یو آر ال",emoji:"ایموجي",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"نیټه او وخت",date:"نېټه",time:"وخت",duration:"موده",ipv4:"د IPv4 پته",ipv6:"د IPv6 پته",cidrv4:"د IPv4 ساحه",cidrv6:"د IPv6 ساحه",base64:"base64-encoded متن",base64url:"base64url-encoded متن",json_string:"JSON متن",e164:"د E.164 شمېره",jwt:"JWT",template_literal:"ورودي"},i={nan:"NaN",number:"عدد",array:"ارې"};return t=>{switch(t.code){case"invalid_type":{const o=i[t.expected]??t.expected,a=B(t.input),c=i[a]??a;return/^[A-Z]/.test(t.expected)?`ناسم ورودي: باید instanceof ${t.expected} وای, مګر ${c} ترلاسه شو`:`ناسم ورودي: باید ${o} وای, مګر ${c} ترلاسه شو`}case"invalid_value":return t.values.length===1?`ناسم ورودي: باید ${V(t.values[0])} وای`:`ناسم انتخاب: باید یو له ${k(t.values,"|")} څخه وای`;case"too_big":{const o=t.inclusive?"<=":"<",a=n(t.origin);return a?`ډیر لوی: ${t.origin??"ارزښت"} باید ${o}${t.maximum.toString()} ${a.unit??"عنصرونه"} ولري`:`ډیر لوی: ${t.origin??"ارزښت"} باید ${o}${t.maximum.toString()} وي`}case"too_small":{const o=t.inclusive?">=":">",a=n(t.origin);return a?`ډیر کوچنی: ${t.origin} باید ${o}${t.minimum.toString()} ${a.unit} ولري`:`ډیر کوچنی: ${t.origin} باید ${o}${t.minimum.toString()} وي`}case"invalid_format":{const o=t;return o.format==="starts_with"?`ناسم متن: باید د "${o.prefix}" سره پیل شي`:o.format==="ends_with"?`ناسم متن: باید د "${o.suffix}" سره پای ته ورسيږي`:o.format==="includes"?`ناسم متن: باید "${o.includes}" ولري`:o.format==="regex"?`ناسم متن: باید د ${o.pattern} سره مطابقت ولري`:`${r[o.format]??t.format} ناسم دی`}case"not_multiple_of":return`ناسم عدد: باید د ${t.divisor} مضرب وي`;case"unrecognized_keys":return`ناسم ${t.keys.length>1?"کلیډونه":"کلیډ"}: ${k(t.keys,", ")}`;case"invalid_key":return`ناسم کلیډ په ${t.origin} کې`;case"invalid_union":return"ناسمه ورودي";case"invalid_element":return`ناسم عنصر په ${t.origin} کې`;default:return"ناسمه ورودي"}}};function t_(){return{localeError:e_()}}const n_=()=>{const e={string:{unit:"znaków",verb:"mieć"},file:{unit:"bajtów",verb:"mieć"},array:{unit:"elementów",verb:"mieć"},set:{unit:"elementów",verb:"mieć"}};function n(t){return e[t]??null}const r={regex:"wyrażenie",email:"adres email",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"data i godzina w formacie ISO",date:"data w formacie ISO",time:"godzina w formacie ISO",duration:"czas trwania ISO",ipv4:"adres IPv4",ipv6:"adres IPv6",cidrv4:"zakres IPv4",cidrv6:"zakres IPv6",base64:"ciąg znaków zakodowany w formacie base64",base64url:"ciąg znaków zakodowany w formacie base64url",json_string:"ciąg znaków w formacie JSON",e164:"liczba E.164",jwt:"JWT",template_literal:"wejście"},i={nan:"NaN",number:"liczba",array:"tablica"};return t=>{switch(t.code){case"invalid_type":{const o=i[t.expected]??t.expected,a=B(t.input),c=i[a]??a;return/^[A-Z]/.test(t.expected)?`Nieprawidłowe dane wejściowe: oczekiwano instanceof ${t.expected}, otrzymano ${c}`:`Nieprawidłowe dane wejściowe: oczekiwano ${o}, otrzymano ${c}`}case"invalid_value":return t.values.length===1?`Nieprawidłowe dane wejściowe: oczekiwano ${V(t.values[0])}`:`Nieprawidłowa opcja: oczekiwano jednej z wartości ${k(t.values,"|")}`;case"too_big":{const o=t.inclusive?"<=":"<",a=n(t.origin);return a?`Za duża wartość: oczekiwano, że ${t.origin??"wartość"} będzie mieć ${o}${t.maximum.toString()} ${a.unit??"elementów"}`:`Zbyt duż(y/a/e): oczekiwano, że ${t.origin??"wartość"} będzie wynosić ${o}${t.maximum.toString()}`}case"too_small":{const o=t.inclusive?">=":">",a=n(t.origin);return a?`Za mała wartość: oczekiwano, że ${t.origin??"wartość"} będzie mieć ${o}${t.minimum.toString()} ${a.unit??"elementów"}`:`Zbyt mał(y/a/e): oczekiwano, że ${t.origin??"wartość"} będzie wynosić ${o}${t.minimum.toString()}`}case"invalid_format":{const o=t;return o.format==="starts_with"?`Nieprawidłowy ciąg znaków: musi zaczynać się od "${o.prefix}"`:o.format==="ends_with"?`Nieprawidłowy ciąg znaków: musi kończyć się na "${o.suffix}"`:o.format==="includes"?`Nieprawidłowy ciąg znaków: musi zawierać "${o.includes}"`:o.format==="regex"?`Nieprawidłowy ciąg znaków: musi odpowiadać wzorcowi ${o.pattern}`:`Nieprawidłow(y/a/e) ${r[o.format]??t.format}`}case"not_multiple_of":return`Nieprawidłowa liczba: musi być wielokrotnością ${t.divisor}`;case"unrecognized_keys":return`Nierozpoznane klucze${t.keys.length>1?"s":""}: ${k(t.keys,", ")}`;case"invalid_key":return`Nieprawidłowy klucz w ${t.origin}`;case"invalid_union":return"Nieprawidłowe dane wejściowe";case"invalid_element":return`Nieprawidłowa wartość w ${t.origin}`;default:return"Nieprawidłowe dane wejściowe"}}};function r_(){return{localeError:n_()}}const o_=()=>{const e={string:{unit:"caracteres",verb:"ter"},file:{unit:"bytes",verb:"ter"},array:{unit:"itens",verb:"ter"},set:{unit:"itens",verb:"ter"}};function n(t){return e[t]??null}const r={regex:"padrão",email:"endereço de e-mail",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"data e hora ISO",date:"data ISO",time:"hora ISO",duration:"duração ISO",ipv4:"endereço IPv4",ipv6:"endereço IPv6",cidrv4:"faixa de IPv4",cidrv6:"faixa de IPv6",base64:"texto codificado em base64",base64url:"URL codificada em base64",json_string:"texto JSON",e164:"número E.164",jwt:"JWT",template_literal:"entrada"},i={nan:"NaN",number:"número",null:"nulo"};return t=>{switch(t.code){case"invalid_type":{const o=i[t.expected]??t.expected,a=B(t.input),c=i[a]??a;return/^[A-Z]/.test(t.expected)?`Tipo inválido: esperado instanceof ${t.expected}, recebido ${c}`:`Tipo inválido: esperado ${o}, recebido ${c}`}case"invalid_value":return t.values.length===1?`Entrada inválida: esperado ${V(t.values[0])}`:`Opção inválida: esperada uma das ${k(t.values,"|")}`;case"too_big":{const o=t.inclusive?"<=":"<",a=n(t.origin);return a?`Muito grande: esperado que ${t.origin??"valor"} tivesse ${o}${t.maximum.toString()} ${a.unit??"elementos"}`:`Muito grande: esperado que ${t.origin??"valor"} fosse ${o}${t.maximum.toString()}`}case"too_small":{const o=t.inclusive?">=":">",a=n(t.origin);return a?`Muito pequeno: esperado que ${t.origin} tivesse ${o}${t.minimum.toString()} ${a.unit}`:`Muito pequeno: esperado que ${t.origin} fosse ${o}${t.minimum.toString()}`}case"invalid_format":{const o=t;return o.format==="starts_with"?`Texto inválido: deve começar com "${o.prefix}"`:o.format==="ends_with"?`Texto inválido: deve terminar com "${o.suffix}"`:o.format==="includes"?`Texto inválido: deve incluir "${o.includes}"`:o.format==="regex"?`Texto inválido: deve corresponder ao padrão ${o.pattern}`:`${r[o.format]??t.format} inválido`}case"not_multiple_of":return`Número inválido: deve ser múltiplo de ${t.divisor}`;case"unrecognized_keys":return`Chave${t.keys.length>1?"s":""} desconhecida${t.keys.length>1?"s":""}: ${k(t.keys,", ")}`;case"invalid_key":return`Chave inválida em ${t.origin}`;case"invalid_union":return"Entrada inválida";case"invalid_element":return`Valor inválido em ${t.origin}`;default:return"Campo inválido"}}};function i_(){return{localeError:o_()}}const a_=()=>{const e={string:{unit:"caractere",verb:"să aibă"},file:{unit:"octeți",verb:"să aibă"},array:{unit:"elemente",verb:"să aibă"},set:{unit:"elemente",verb:"să aibă"},map:{unit:"intrări",verb:"să aibă"}};function n(t){return e[t]??null}const r={regex:"intrare",email:"adresă de email",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"dată și oră ISO",date:"dată ISO",time:"oră ISO",duration:"durată ISO",ipv4:"adresă IPv4",ipv6:"adresă IPv6",mac:"adresă MAC",cidrv4:"interval IPv4",cidrv6:"interval IPv6",base64:"șir codat base64",base64url:"șir codat base64url",json_string:"șir JSON",e164:"număr E.164",jwt:"JWT",template_literal:"intrare"},i={nan:"NaN",string:"șir",number:"număr",boolean:"boolean",function:"funcție",array:"matrice",object:"obiect",undefined:"nedefinit",symbol:"simbol",bigint:"număr mare",void:"void",never:"never",map:"hartă",set:"set"};return t=>{switch(t.code){case"invalid_type":{const o=i[t.expected]??t.expected,a=B(t.input),c=i[a]??a;return`Intrare invalidă: așteptat ${o}, primit ${c}`}case"invalid_value":return t.values.length===1?`Intrare invalidă: așteptat ${V(t.values[0])}`:`Opțiune invalidă: așteptat una dintre ${k(t.values,"|")}`;case"too_big":{const o=t.inclusive?"<=":"<",a=n(t.origin);return a?`Prea mare: așteptat ca ${t.origin??"valoarea"} ${a.verb} ${o}${t.maximum.toString()} ${a.unit??"elemente"}`:`Prea mare: așteptat ca ${t.origin??"valoarea"} să fie ${o}${t.maximum.toString()}`}case"too_small":{const o=t.inclusive?">=":">",a=n(t.origin);return a?`Prea mic: așteptat ca ${t.origin} ${a.verb} ${o}${t.minimum.toString()} ${a.unit}`:`Prea mic: așteptat ca ${t.origin} să fie ${o}${t.minimum.toString()}`}case"invalid_format":{const o=t;return o.format==="starts_with"?`Șir invalid: trebuie să înceapă cu "${o.prefix}"`:o.format==="ends_with"?`Șir invalid: trebuie să se termine cu "${o.suffix}"`:o.format==="includes"?`Șir invalid: trebuie să includă "${o.includes}"`:o.format==="regex"?`Șir invalid: trebuie să se potrivească cu modelul ${o.pattern}`:`Format invalid: ${r[o.format]??t.format}`}case"not_multiple_of":return`Număr invalid: trebuie să fie multiplu de ${t.divisor}`;case"unrecognized_keys":return`Chei nerecunoscute: ${k(t.keys,", ")}`;case"invalid_key":return`Cheie invalidă în ${t.origin}`;case"invalid_union":return"Intrare invalidă";case"invalid_element":return`Valoare invalidă în ${t.origin}`;default:return"Intrare invalidă"}}};function l_(){return{localeError:a_()}}function Wc(e,n,r,i){const t=Math.abs(e),o=t%10,a=t%100;return a>=11&&a<=19?i:o===1?n:o>=2&&o<=4?r:i}const c_=()=>{const e={string:{unit:{one:"символ",few:"символа",many:"символов"},verb:"иметь"},file:{unit:{one:"байт",few:"байта",many:"байт"},verb:"иметь"},array:{unit:{one:"элемент",few:"элемента",many:"элементов"},verb:"иметь"},set:{unit:{one:"элемент",few:"элемента",many:"элементов"},verb:"иметь"}};function n(t){return e[t]??null}const r={regex:"ввод",email:"email адрес",url:"URL",emoji:"эмодзи",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO дата и время",date:"ISO дата",time:"ISO время",duration:"ISO длительность",ipv4:"IPv4 адрес",ipv6:"IPv6 адрес",cidrv4:"IPv4 диапазон",cidrv6:"IPv6 диапазон",base64:"строка в формате base64",base64url:"строка в формате base64url",json_string:"JSON строка",e164:"номер E.164",jwt:"JWT",template_literal:"ввод"},i={nan:"NaN",number:"число",array:"массив"};return t=>{switch(t.code){case"invalid_type":{const o=i[t.expected]??t.expected,a=B(t.input),c=i[a]??a;return/^[A-Z]/.test(t.expected)?`Неверный ввод: ожидалось instanceof ${t.expected}, получено ${c}`:`Неверный ввод: ожидалось ${o}, получено ${c}`}case"invalid_value":return t.values.length===1?`Неверный ввод: ожидалось ${V(t.values[0])}`:`Неверный вариант: ожидалось одно из ${k(t.values,"|")}`;case"too_big":{const o=t.inclusive?"<=":"<",a=n(t.origin);if(a){const c=Number(t.maximum),u=Wc(c,a.unit.one,a.unit.few,a.unit.many);return`Слишком большое значение: ожидалось, что ${t.origin??"значение"} будет иметь ${o}${t.maximum.toString()} ${u}`}return`Слишком большое значение: ожидалось, что ${t.origin??"значение"} будет ${o}${t.maximum.toString()}`}case"too_small":{const o=t.inclusive?">=":">",a=n(t.origin);if(a){const c=Number(t.minimum),u=Wc(c,a.unit.one,a.unit.few,a.unit.many);return`Слишком маленькое значение: ожидалось, что ${t.origin} будет иметь ${o}${t.minimum.toString()} ${u}`}return`Слишком маленькое значение: ожидалось, что ${t.origin} будет ${o}${t.minimum.toString()}`}case"invalid_format":{const o=t;return o.format==="starts_with"?`Неверная строка: должна начинаться с "${o.prefix}"`:o.format==="ends_with"?`Неверная строка: должна заканчиваться на "${o.suffix}"`:o.format==="includes"?`Неверная строка: должна содержать "${o.includes}"`:o.format==="regex"?`Неверная строка: должна соответствовать шаблону ${o.pattern}`:`Неверный ${r[o.format]??t.format}`}case"not_multiple_of":return`Неверное число: должно быть кратным ${t.divisor}`;case"unrecognized_keys":return`Нераспознанн${t.keys.length>1?"ые":"ый"} ключ${t.keys.length>1?"и":""}: ${k(t.keys,", ")}`;case"invalid_key":return`Неверный ключ в ${t.origin}`;case"invalid_union":return"Неверные входные данные";case"invalid_element":return`Неверное значение в ${t.origin}`;default:return"Неверные входные данные"}}};function s_(){return{localeError:c_()}}const u_=()=>{const e={string:{unit:"znakov",verb:"imeti"},file:{unit:"bajtov",verb:"imeti"},array:{unit:"elementov",verb:"imeti"},set:{unit:"elementov",verb:"imeti"}};function n(t){return e[t]??null}const r={regex:"vnos",email:"e-poštni naslov",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO datum in čas",date:"ISO datum",time:"ISO čas",duration:"ISO trajanje",ipv4:"IPv4 naslov",ipv6:"IPv6 naslov",cidrv4:"obseg IPv4",cidrv6:"obseg IPv6",base64:"base64 kodiran niz",base64url:"base64url kodiran niz",json_string:"JSON niz",e164:"E.164 številka",jwt:"JWT",template_literal:"vnos"},i={nan:"NaN",number:"število",array:"tabela"};return t=>{switch(t.code){case"invalid_type":{const o=i[t.expected]??t.expected,a=B(t.input),c=i[a]??a;return/^[A-Z]/.test(t.expected)?`Neveljaven vnos: pričakovano instanceof ${t.expected}, prejeto ${c}`:`Neveljaven vnos: pričakovano ${o}, prejeto ${c}`}case"invalid_value":return t.values.length===1?`Neveljaven vnos: pričakovano ${V(t.values[0])}`:`Neveljavna možnost: pričakovano eno izmed ${k(t.values,"|")}`;case"too_big":{const o=t.inclusive?"<=":"<",a=n(t.origin);return a?`Preveliko: pričakovano, da bo ${t.origin??"vrednost"} imelo ${o}${t.maximum.toString()} ${a.unit??"elementov"}`:`Preveliko: pričakovano, da bo ${t.origin??"vrednost"} ${o}${t.maximum.toString()}`}case"too_small":{const o=t.inclusive?">=":">",a=n(t.origin);return a?`Premajhno: pričakovano, da bo ${t.origin} imelo ${o}${t.minimum.toString()} ${a.unit}`:`Premajhno: pričakovano, da bo ${t.origin} ${o}${t.minimum.toString()}`}case"invalid_format":{const o=t;return o.format==="starts_with"?`Neveljaven niz: mora se začeti z "${o.prefix}"`:o.format==="ends_with"?`Neveljaven niz: mora se končati z "${o.suffix}"`:o.format==="includes"?`Neveljaven niz: mora vsebovati "${o.includes}"`:o.format==="regex"?`Neveljaven niz: mora ustrezati vzorcu ${o.pattern}`:`Neveljaven ${r[o.format]??t.format}`}case"not_multiple_of":return`Neveljavno število: mora biti večkratnik ${t.divisor}`;case"unrecognized_keys":return`Neprepoznan${t.keys.length>1?"i ključi":" ključ"}: ${k(t.keys,", ")}`;case"invalid_key":return`Neveljaven ključ v ${t.origin}`;case"invalid_union":return"Neveljaven vnos";case"invalid_element":return`Neveljavna vrednost v ${t.origin}`;default:return"Neveljaven vnos"}}};function d_(){return{localeError:u_()}}const m_=()=>{const e={string:{unit:"tecken",verb:"att ha"},file:{unit:"bytes",verb:"att ha"},array:{unit:"objekt",verb:"att innehålla"},set:{unit:"objekt",verb:"att innehålla"}};function n(t){return e[t]??null}const r={regex:"reguljärt uttryck",email:"e-postadress",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO-datum och tid",date:"ISO-datum",time:"ISO-tid",duration:"ISO-varaktighet",ipv4:"IPv4-intervall",ipv6:"IPv6-intervall",cidrv4:"IPv4-spektrum",cidrv6:"IPv6-spektrum",base64:"base64-kodad sträng",base64url:"base64url-kodad sträng",json_string:"JSON-sträng",e164:"E.164-nummer",jwt:"JWT",template_literal:"mall-literal"},i={nan:"NaN",number:"antal",array:"lista"};return t=>{switch(t.code){case"invalid_type":{const o=i[t.expected]??t.expected,a=B(t.input),c=i[a]??a;return/^[A-Z]/.test(t.expected)?`Ogiltig inmatning: förväntat instanceof ${t.expected}, fick ${c}`:`Ogiltig inmatning: förväntat ${o}, fick ${c}`}case"invalid_value":return t.values.length===1?`Ogiltig inmatning: förväntat ${V(t.values[0])}`:`Ogiltigt val: förväntade en av ${k(t.values,"|")}`;case"too_big":{const o=t.inclusive?"<=":"<",a=n(t.origin);return a?`För stor(t): förväntade ${t.origin??"värdet"} att ha ${o}${t.maximum.toString()} ${a.unit??"element"}`:`För stor(t): förväntat ${t.origin??"värdet"} att ha ${o}${t.maximum.toString()}`}case"too_small":{const o=t.inclusive?">=":">",a=n(t.origin);return a?`För lite(t): förväntade ${t.origin??"värdet"} att ha ${o}${t.minimum.toString()} ${a.unit}`:`För lite(t): förväntade ${t.origin??"värdet"} att ha ${o}${t.minimum.toString()}`}case"invalid_format":{const o=t;return o.format==="starts_with"?`Ogiltig sträng: måste börja med "${o.prefix}"`:o.format==="ends_with"?`Ogiltig sträng: måste sluta med "${o.suffix}"`:o.format==="includes"?`Ogiltig sträng: måste innehålla "${o.includes}"`:o.format==="regex"?`Ogiltig sträng: måste matcha mönstret "${o.pattern}"`:`Ogiltig(t) ${r[o.format]??t.format}`}case"not_multiple_of":return`Ogiltigt tal: måste vara en multipel av ${t.divisor}`;case"unrecognized_keys":return`${t.keys.length>1?"Okända nycklar":"Okänd nyckel"}: ${k(t.keys,", ")}`;case"invalid_key":return`Ogiltig nyckel i ${t.origin??"värdet"}`;case"invalid_union":return"Ogiltig input";case"invalid_element":return`Ogiltigt värde i ${t.origin??"värdet"}`;default:return"Ogiltig input"}}};function f_(){return{localeError:m_()}}const p_=()=>{const e={string:{unit:"எழுத்துக்கள்",verb:"கொண்டிருக்க வேண்டும்"},file:{unit:"பைட்டுகள்",verb:"கொண்டிருக்க வேண்டும்"},array:{unit:"உறுப்புகள்",verb:"கொண்டிருக்க வேண்டும்"},set:{unit:"உறுப்புகள்",verb:"கொண்டிருக்க வேண்டும்"}};function n(t){return e[t]??null}const r={regex:"உள்ளீடு",email:"மின்னஞ்சல் முகவரி",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO தேதி நேரம்",date:"ISO தேதி",time:"ISO நேரம்",duration:"ISO கால அளவு",ipv4:"IPv4 முகவரி",ipv6:"IPv6 முகவரி",cidrv4:"IPv4 வரம்பு",cidrv6:"IPv6 வரம்பு",base64:"base64-encoded சரம்",base64url:"base64url-encoded சரம்",json_string:"JSON சரம்",e164:"E.164 எண்",jwt:"JWT",template_literal:"input"},i={nan:"NaN",number:"எண்",array:"அணி",null:"வெறுமை"};return t=>{switch(t.code){case"invalid_type":{const o=i[t.expected]??t.expected,a=B(t.input),c=i[a]??a;return/^[A-Z]/.test(t.expected)?`தவறான உள்ளீடு: எதிர்பார்க்கப்பட்டது instanceof ${t.expected}, பெறப்பட்டது ${c}`:`தவறான உள்ளீடு: எதிர்பார்க்கப்பட்டது ${o}, பெறப்பட்டது ${c}`}case"invalid_value":return t.values.length===1?`தவறான உள்ளீடு: எதிர்பார்க்கப்பட்டது ${V(t.values[0])}`:`தவறான விருப்பம்: எதிர்பார்க்கப்பட்டது ${k(t.values,"|")} இல் ஒன்று`;case"too_big":{const o=t.inclusive?"<=":"<",a=n(t.origin);return a?`மிக பெரியது: எதிர்பார்க்கப்பட்டது ${t.origin??"மதிப்பு"} ${o}${t.maximum.toString()} ${a.unit??"உறுப்புகள்"} ஆக இருக்க வேண்டும்`:`மிக பெரியது: எதிர்பார்க்கப்பட்டது ${t.origin??"மதிப்பு"} ${o}${t.maximum.toString()} ஆக இருக்க வேண்டும்`}case"too_small":{const o=t.inclusive?">=":">",a=n(t.origin);return a?`மிகச் சிறியது: எதிர்பார்க்கப்பட்டது ${t.origin} ${o}${t.minimum.toString()} ${a.unit} ஆக இருக்க வேண்டும்`:`மிகச் சிறியது: எதிர்பார்க்கப்பட்டது ${t.origin} ${o}${t.minimum.toString()} ஆக இருக்க வேண்டும்`}case"invalid_format":{const o=t;return o.format==="starts_with"?`தவறான சரம்: "${o.prefix}" இல் தொடங்க வேண்டும்`:o.format==="ends_with"?`தவறான சரம்: "${o.suffix}" இல் முடிவடைய வேண்டும்`:o.format==="includes"?`தவறான சரம்: "${o.includes}" ஐ உள்ளடக்க வேண்டும்`:o.format==="regex"?`தவறான சரம்: ${o.pattern} முறைபாட்டுடன் பொருந்த வேண்டும்`:`தவறான ${r[o.format]??t.format}`}case"not_multiple_of":return`தவறான எண்: ${t.divisor} இன் பலமாக இருக்க வேண்டும்`;case"unrecognized_keys":return`அடையாளம் தெரியாத விசை${t.keys.length>1?"கள்":""}: ${k(t.keys,", ")}`;case"invalid_key":return`${t.origin} இல் தவறான விசை`;case"invalid_union":return"தவறான உள்ளீடு";case"invalid_element":return`${t.origin} இல் தவறான மதிப்பு`;default:return"தவறான உள்ளீடு"}}};function g_(){return{localeError:p_()}}const v_=()=>{const e={string:{unit:"ตัวอักษร",verb:"ควรมี"},file:{unit:"ไบต์",verb:"ควรมี"},array:{unit:"รายการ",verb:"ควรมี"},set:{unit:"รายการ",verb:"ควรมี"}};function n(t){return e[t]??null}const r={regex:"ข้อมูลที่ป้อน",email:"ที่อยู่อีเมล",url:"URL",emoji:"อิโมจิ",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"วันที่เวลาแบบ ISO",date:"วันที่แบบ ISO",time:"เวลาแบบ ISO",duration:"ช่วงเวลาแบบ ISO",ipv4:"ที่อยู่ IPv4",ipv6:"ที่อยู่ IPv6",cidrv4:"ช่วง IP แบบ IPv4",cidrv6:"ช่วง IP แบบ IPv6",base64:"ข้อความแบบ Base64",base64url:"ข้อความแบบ Base64 สำหรับ URL",json_string:"ข้อความแบบ JSON",e164:"เบอร์โทรศัพท์ระหว่างประเทศ (E.164)",jwt:"โทเคน JWT",template_literal:"ข้อมูลที่ป้อน"},i={nan:"NaN",number:"ตัวเลข",array:"อาร์เรย์ (Array)",null:"ไม่มีค่า (null)"};return t=>{switch(t.code){case"invalid_type":{const o=i[t.expected]??t.expected,a=B(t.input),c=i[a]??a;return/^[A-Z]/.test(t.expected)?`ประเภทข้อมูลไม่ถูกต้อง: ควรเป็น instanceof ${t.expected} แต่ได้รับ ${c}`:`ประเภทข้อมูลไม่ถูกต้อง: ควรเป็น ${o} แต่ได้รับ ${c}`}case"invalid_value":return t.values.length===1?`ค่าไม่ถูกต้อง: ควรเป็น ${V(t.values[0])}`:`ตัวเลือกไม่ถูกต้อง: ควรเป็นหนึ่งใน ${k(t.values,"|")}`;case"too_big":{const o=t.inclusive?"ไม่เกิน":"น้อยกว่า",a=n(t.origin);return a?`เกินกำหนด: ${t.origin??"ค่า"} ควรมี${o} ${t.maximum.toString()} ${a.unit??"รายการ"}`:`เกินกำหนด: ${t.origin??"ค่า"} ควรมี${o} ${t.maximum.toString()}`}case"too_small":{const o=t.inclusive?"อย่างน้อย":"มากกว่า",a=n(t.origin);return a?`น้อยกว่ากำหนด: ${t.origin} ควรมี${o} ${t.minimum.toString()} ${a.unit}`:`น้อยกว่ากำหนด: ${t.origin} ควรมี${o} ${t.minimum.toString()}`}case"invalid_format":{const o=t;return o.format==="starts_with"?`รูปแบบไม่ถูกต้อง: ข้อความต้องขึ้นต้นด้วย "${o.prefix}"`:o.format==="ends_with"?`รูปแบบไม่ถูกต้อง: ข้อความต้องลงท้ายด้วย "${o.suffix}"`:o.format==="includes"?`รูปแบบไม่ถูกต้อง: ข้อความต้องมี "${o.includes}" อยู่ในข้อความ`:o.format==="regex"?`รูปแบบไม่ถูกต้อง: ต้องตรงกับรูปแบบที่กำหนด ${o.pattern}`:`รูปแบบไม่ถูกต้อง: ${r[o.format]??t.format}`}case"not_multiple_of":return`ตัวเลขไม่ถูกต้อง: ต้องเป็นจำนวนที่หารด้วย ${t.divisor} ได้ลงตัว`;case"unrecognized_keys":return`พบคีย์ที่ไม่รู้จัก: ${k(t.keys,", ")}`;case"invalid_key":return`คีย์ไม่ถูกต้องใน ${t.origin}`;case"invalid_union":return"ข้อมูลไม่ถูกต้อง: ไม่ตรงกับรูปแบบยูเนียนที่กำหนดไว้";case"invalid_element":return`ข้อมูลไม่ถูกต้องใน ${t.origin}`;default:return"ข้อมูลไม่ถูกต้อง"}}};function h_(){return{localeError:v_()}}const $_=()=>{const e={string:{unit:"karakter",verb:"olmalı"},file:{unit:"bayt",verb:"olmalı"},array:{unit:"öğe",verb:"olmalı"},set:{unit:"öğe",verb:"olmalı"}};function n(t){return e[t]??null}const r={regex:"girdi",email:"e-posta adresi",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO tarih ve saat",date:"ISO tarih",time:"ISO saat",duration:"ISO süre",ipv4:"IPv4 adresi",ipv6:"IPv6 adresi",cidrv4:"IPv4 aralığı",cidrv6:"IPv6 aralığı",base64:"base64 ile şifrelenmiş metin",base64url:"base64url ile şifrelenmiş metin",json_string:"JSON dizesi",e164:"E.164 sayısı",jwt:"JWT",template_literal:"Şablon dizesi"},i={nan:"NaN"};return t=>{switch(t.code){case"invalid_type":{const o=i[t.expected]??t.expected,a=B(t.input),c=i[a]??a;return/^[A-Z]/.test(t.expected)?`Geçersiz değer: beklenen instanceof ${t.expected}, alınan ${c}`:`Geçersiz değer: beklenen ${o}, alınan ${c}`}case"invalid_value":return t.values.length===1?`Geçersiz değer: beklenen ${V(t.values[0])}`:`Geçersiz seçenek: aşağıdakilerden biri olmalı: ${k(t.values,"|")}`;case"too_big":{const o=t.inclusive?"<=":"<",a=n(t.origin);return a?`Çok büyük: beklenen ${t.origin??"değer"} ${o}${t.maximum.toString()} ${a.unit??"öğe"}`:`Çok büyük: beklenen ${t.origin??"değer"} ${o}${t.maximum.toString()}`}case"too_small":{const o=t.inclusive?">=":">",a=n(t.origin);return a?`Çok küçük: beklenen ${t.origin} ${o}${t.minimum.toString()} ${a.unit}`:`Çok küçük: beklenen ${t.origin} ${o}${t.minimum.toString()}`}case"invalid_format":{const o=t;return o.format==="starts_with"?`Geçersiz metin: "${o.prefix}" ile başlamalı`:o.format==="ends_with"?`Geçersiz metin: "${o.suffix}" ile bitmeli`:o.format==="includes"?`Geçersiz metin: "${o.includes}" içermeli`:o.format==="regex"?`Geçersiz metin: ${o.pattern} desenine uymalı`:`Geçersiz ${r[o.format]??t.format}`}case"not_multiple_of":return`Geçersiz sayı: ${t.divisor} ile tam bölünebilmeli`;case"unrecognized_keys":return`Tanınmayan anahtar${t.keys.length>1?"lar":""}: ${k(t.keys,", ")}`;case"invalid_key":return`${t.origin} içinde geçersiz anahtar`;case"invalid_union":return"Geçersiz değer";case"invalid_element":return`${t.origin} içinde geçersiz değer`;default:return"Geçersiz değer"}}};function b_(){return{localeError:$_()}}const __=()=>{const e={string:{unit:"символів",verb:"матиме"},file:{unit:"байтів",verb:"матиме"},array:{unit:"елементів",verb:"матиме"},set:{unit:"елементів",verb:"матиме"}};function n(t){return e[t]??null}const r={regex:"вхідні дані",email:"адреса електронної пошти",url:"URL",emoji:"емодзі",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"дата та час ISO",date:"дата ISO",time:"час ISO",duration:"тривалість ISO",ipv4:"адреса IPv4",ipv6:"адреса IPv6",cidrv4:"діапазон IPv4",cidrv6:"діапазон IPv6",base64:"рядок у кодуванні base64",base64url:"рядок у кодуванні base64url",json_string:"рядок JSON",e164:"номер E.164",jwt:"JWT",template_literal:"вхідні дані"},i={nan:"NaN",number:"число",array:"масив"};return t=>{switch(t.code){case"invalid_type":{const o=i[t.expected]??t.expected,a=B(t.input),c=i[a]??a;return/^[A-Z]/.test(t.expected)?`Неправильні вхідні дані: очікується instanceof ${t.expected}, отримано ${c}`:`Неправильні вхідні дані: очікується ${o}, отримано ${c}`}case"invalid_value":return t.values.length===1?`Неправильні вхідні дані: очікується ${V(t.values[0])}`:`Неправильна опція: очікується одне з ${k(t.values,"|")}`;case"too_big":{const o=t.inclusive?"<=":"<",a=n(t.origin);return a?`Занадто велике: очікується, що ${t.origin??"значення"} ${a.verb} ${o}${t.maximum.toString()} ${a.unit??"елементів"}`:`Занадто велике: очікується, що ${t.origin??"значення"} буде ${o}${t.maximum.toString()}`}case"too_small":{const o=t.inclusive?">=":">",a=n(t.origin);return a?`Занадто мале: очікується, що ${t.origin} ${a.verb} ${o}${t.minimum.toString()} ${a.unit}`:`Занадто мале: очікується, що ${t.origin} буде ${o}${t.minimum.toString()}`}case"invalid_format":{const o=t;return o.format==="starts_with"?`Неправильний рядок: повинен починатися з "${o.prefix}"`:o.format==="ends_with"?`Неправильний рядок: повинен закінчуватися на "${o.suffix}"`:o.format==="includes"?`Неправильний рядок: повинен містити "${o.includes}"`:o.format==="regex"?`Неправильний рядок: повинен відповідати шаблону ${o.pattern}`:`Неправильний ${r[o.format]??t.format}`}case"not_multiple_of":return`Неправильне число: повинно бути кратним ${t.divisor}`;case"unrecognized_keys":return`Нерозпізнаний ключ${t.keys.length>1?"і":""}: ${k(t.keys,", ")}`;case"invalid_key":return`Неправильний ключ у ${t.origin}`;case"invalid_union":return"Неправильні вхідні дані";case"invalid_element":return`Неправильне значення у ${t.origin}`;default:return"Неправильні вхідні дані"}}};function Xc(){return{localeError:__()}}function y_(){return Xc()}const k_=()=>{const e={string:{unit:"حروف",verb:"ہونا"},file:{unit:"بائٹس",verb:"ہونا"},array:{unit:"آئٹمز",verb:"ہونا"},set:{unit:"آئٹمز",verb:"ہونا"}};function n(t){return e[t]??null}const r={regex:"ان پٹ",email:"ای میل ایڈریس",url:"یو آر ایل",emoji:"ایموجی",uuid:"یو یو آئی ڈی",uuidv4:"یو یو آئی ڈی وی 4",uuidv6:"یو یو آئی ڈی وی 6",nanoid:"نینو آئی ڈی",guid:"جی یو آئی ڈی",cuid:"سی یو آئی ڈی",cuid2:"سی یو آئی ڈی 2",ulid:"یو ایل آئی ڈی",xid:"ایکس آئی ڈی",ksuid:"کے ایس یو آئی ڈی",datetime:"آئی ایس او ڈیٹ ٹائم",date:"آئی ایس او تاریخ",time:"آئی ایس او وقت",duration:"آئی ایس او مدت",ipv4:"آئی پی وی 4 ایڈریس",ipv6:"آئی پی وی 6 ایڈریس",cidrv4:"آئی پی وی 4 رینج",cidrv6:"آئی پی وی 6 رینج",base64:"بیس 64 ان کوڈڈ سٹرنگ",base64url:"بیس 64 یو آر ایل ان کوڈڈ سٹرنگ",json_string:"جے ایس او این سٹرنگ",e164:"ای 164 نمبر",jwt:"جے ڈبلیو ٹی",template_literal:"ان پٹ"},i={nan:"NaN",number:"نمبر",array:"آرے",null:"نل"};return t=>{switch(t.code){case"invalid_type":{const o=i[t.expected]??t.expected,a=B(t.input),c=i[a]??a;return/^[A-Z]/.test(t.expected)?`غلط ان پٹ: instanceof ${t.expected} متوقع تھا، ${c} موصول ہوا`:`غلط ان پٹ: ${o} متوقع تھا، ${c} موصول ہوا`}case"invalid_value":return t.values.length===1?`غلط ان پٹ: ${V(t.values[0])} متوقع تھا`:`غلط آپشن: ${k(t.values,"|")} میں سے ایک متوقع تھا`;case"too_big":{const o=t.inclusive?"<=":"<",a=n(t.origin);return a?`بہت بڑا: ${t.origin??"ویلیو"} کے ${o}${t.maximum.toString()} ${a.unit??"عناصر"} ہونے متوقع تھے`:`بہت بڑا: ${t.origin??"ویلیو"} کا ${o}${t.maximum.toString()} ہونا متوقع تھا`}case"too_small":{const o=t.inclusive?">=":">",a=n(t.origin);return a?`بہت چھوٹا: ${t.origin} کے ${o}${t.minimum.toString()} ${a.unit} ہونے متوقع تھے`:`بہت چھوٹا: ${t.origin} کا ${o}${t.minimum.toString()} ہونا متوقع تھا`}case"invalid_format":{const o=t;return o.format==="starts_with"?`غلط سٹرنگ: "${o.prefix}" سے شروع ہونا چاہیے`:o.format==="ends_with"?`غلط سٹرنگ: "${o.suffix}" پر ختم ہونا چاہیے`:o.format==="includes"?`غلط سٹرنگ: "${o.includes}" شامل ہونا چاہیے`:o.format==="regex"?`غلط سٹرنگ: پیٹرن ${o.pattern} سے میچ ہونا چاہیے`:`غلط ${r[o.format]??t.format}`}case"not_multiple_of":return`غلط نمبر: ${t.divisor} کا مضاعف ہونا چاہیے`;case"unrecognized_keys":return`غیر تسلیم شدہ کی${t.keys.length>1?"ز":""}: ${k(t.keys,"، ")}`;case"invalid_key":return`${t.origin} میں غلط کی`;case"invalid_union":return"غلط ان پٹ";case"invalid_element":return`${t.origin} میں غلط ویلیو`;default:return"غلط ان پٹ"}}};function S_(){return{localeError:k_()}}const w_=()=>{const e={string:{unit:"belgi",verb:"bo‘lishi kerak"},file:{unit:"bayt",verb:"bo‘lishi kerak"},array:{unit:"element",verb:"bo‘lishi kerak"},set:{unit:"element",verb:"bo‘lishi kerak"},map:{unit:"yozuv",verb:"bo‘lishi kerak"}};function n(t){return e[t]??null}const r={regex:"kirish",email:"elektron pochta manzili",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO sana va vaqti",date:"ISO sana",time:"ISO vaqt",duration:"ISO davomiylik",ipv4:"IPv4 manzil",ipv6:"IPv6 manzil",mac:"MAC manzil",cidrv4:"IPv4 diapazon",cidrv6:"IPv6 diapazon",base64:"base64 kodlangan satr",base64url:"base64url kodlangan satr",json_string:"JSON satr",e164:"E.164 raqam",jwt:"JWT",template_literal:"kirish"},i={nan:"NaN",number:"raqam",array:"massiv"};return t=>{switch(t.code){case"invalid_type":{const o=i[t.expected]??t.expected,a=B(t.input),c=i[a]??a;return/^[A-Z]/.test(t.expected)?`Noto‘g‘ri kirish: kutilgan instanceof ${t.expected}, qabul qilingan ${c}`:`Noto‘g‘ri kirish: kutilgan ${o}, qabul qilingan ${c}`}case"invalid_value":return t.values.length===1?`Noto‘g‘ri kirish: kutilgan ${V(t.values[0])}`:`Noto‘g‘ri variant: quyidagilardan biri kutilgan ${k(t.values,"|")}`;case"too_big":{const o=t.inclusive?"<=":"<",a=n(t.origin);return a?`Juda katta: kutilgan ${t.origin??"qiymat"} ${o}${t.maximum.toString()} ${a.unit} ${a.verb}`:`Juda katta: kutilgan ${t.origin??"qiymat"} ${o}${t.maximum.toString()}`}case"too_small":{const o=t.inclusive?">=":">",a=n(t.origin);return a?`Juda kichik: kutilgan ${t.origin} ${o}${t.minimum.toString()} ${a.unit} ${a.verb}`:`Juda kichik: kutilgan ${t.origin} ${o}${t.minimum.toString()}`}case"invalid_format":{const o=t;return o.format==="starts_with"?`Noto‘g‘ri satr: "${o.prefix}" bilan boshlanishi kerak`:o.format==="ends_with"?`Noto‘g‘ri satr: "${o.suffix}" bilan tugashi kerak`:o.format==="includes"?`Noto‘g‘ri satr: "${o.includes}" ni o‘z ichiga olishi kerak`:o.format==="regex"?`Noto‘g‘ri satr: ${o.pattern} shabloniga mos kelishi kerak`:`Noto‘g‘ri ${r[o.format]??t.format}`}case"not_multiple_of":return`Noto‘g‘ri raqam: ${t.divisor} ning karralisi bo‘lishi kerak`;case"unrecognized_keys":return`Noma’lum kalit${t.keys.length>1?"lar":""}: ${k(t.keys,", ")}`;case"invalid_key":return`${t.origin} dagi kalit noto‘g‘ri`;case"invalid_union":return"Noto‘g‘ri kirish";case"invalid_element":return`${t.origin} da noto‘g‘ri qiymat`;default:return"Noto‘g‘ri kirish"}}};function I_(){return{localeError:w_()}}const z_=()=>{const e={string:{unit:"ký tự",verb:"có"},file:{unit:"byte",verb:"có"},array:{unit:"phần tử",verb:"có"},set:{unit:"phần tử",verb:"có"}};function n(t){return e[t]??null}const r={regex:"đầu vào",email:"địa chỉ email",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ngày giờ ISO",date:"ngày ISO",time:"giờ ISO",duration:"khoảng thời gian ISO",ipv4:"địa chỉ IPv4",ipv6:"địa chỉ IPv6",cidrv4:"dải IPv4",cidrv6:"dải IPv6",base64:"chuỗi mã hóa base64",base64url:"chuỗi mã hóa base64url",json_string:"chuỗi JSON",e164:"số E.164",jwt:"JWT",template_literal:"đầu vào"},i={nan:"NaN",number:"số",array:"mảng"};return t=>{switch(t.code){case"invalid_type":{const o=i[t.expected]??t.expected,a=B(t.input),c=i[a]??a;return/^[A-Z]/.test(t.expected)?`Đầu vào không hợp lệ: mong đợi instanceof ${t.expected}, nhận được ${c}`:`Đầu vào không hợp lệ: mong đợi ${o}, nhận được ${c}`}case"invalid_value":return t.values.length===1?`Đầu vào không hợp lệ: mong đợi ${V(t.values[0])}`:`Tùy chọn không hợp lệ: mong đợi một trong các giá trị ${k(t.values,"|")}`;case"too_big":{const o=t.inclusive?"<=":"<",a=n(t.origin);return a?`Quá lớn: mong đợi ${t.origin??"giá trị"} ${a.verb} ${o}${t.maximum.toString()} ${a.unit??"phần tử"}`:`Quá lớn: mong đợi ${t.origin??"giá trị"} ${o}${t.maximum.toString()}`}case"too_small":{const o=t.inclusive?">=":">",a=n(t.origin);return a?`Quá nhỏ: mong đợi ${t.origin} ${a.verb} ${o}${t.minimum.toString()} ${a.unit}`:`Quá nhỏ: mong đợi ${t.origin} ${o}${t.minimum.toString()}`}case"invalid_format":{const o=t;return o.format==="starts_with"?`Chuỗi không hợp lệ: phải bắt đầu bằng "${o.prefix}"`:o.format==="ends_with"?`Chuỗi không hợp lệ: phải kết thúc bằng "${o.suffix}"`:o.format==="includes"?`Chuỗi không hợp lệ: phải bao gồm "${o.includes}"`:o.format==="regex"?`Chuỗi không hợp lệ: phải khớp với mẫu ${o.pattern}`:`${r[o.format]??t.format} không hợp lệ`}case"not_multiple_of":return`Số không hợp lệ: phải là bội số của ${t.divisor}`;case"unrecognized_keys":return`Khóa không được nhận dạng: ${k(t.keys,", ")}`;case"invalid_key":return`Khóa không hợp lệ trong ${t.origin}`;case"invalid_union":return"Đầu vào không hợp lệ";case"invalid_element":return`Giá trị không hợp lệ trong ${t.origin}`;default:return"Đầu vào không hợp lệ"}}};function E_(){return{localeError:z_()}}const N_=()=>{const e={string:{unit:"字符",verb:"包含"},file:{unit:"字节",verb:"包含"},array:{unit:"项",verb:"包含"},set:{unit:"项",verb:"包含"}};function n(t){return e[t]??null}const r={regex:"输入",email:"电子邮件",url:"URL",emoji:"表情符号",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO日期时间",date:"ISO日期",time:"ISO时间",duration:"ISO时长",ipv4:"IPv4地址",ipv6:"IPv6地址",cidrv4:"IPv4网段",cidrv6:"IPv6网段",base64:"base64编码字符串",base64url:"base64url编码字符串",json_string:"JSON字符串",e164:"E.164号码",jwt:"JWT",template_literal:"输入"},i={nan:"NaN",number:"数字",array:"数组",null:"空值(null)"};return t=>{switch(t.code){case"invalid_type":{const o=i[t.expected]??t.expected,a=B(t.input),c=i[a]??a;return/^[A-Z]/.test(t.expected)?`无效输入:期望 instanceof ${t.expected},实际接收 ${c}`:`无效输入:期望 ${o},实际接收 ${c}`}case"invalid_value":return t.values.length===1?`无效输入:期望 ${V(t.values[0])}`:`无效选项:期望以下之一 ${k(t.values,"|")}`;case"too_big":{const o=t.inclusive?"<=":"<",a=n(t.origin);return a?`数值过大:期望 ${t.origin??"值"} ${o}${t.maximum.toString()} ${a.unit??"个元素"}`:`数值过大:期望 ${t.origin??"值"} ${o}${t.maximum.toString()}`}case"too_small":{const o=t.inclusive?">=":">",a=n(t.origin);return a?`数值过小:期望 ${t.origin} ${o}${t.minimum.toString()} ${a.unit}`:`数值过小:期望 ${t.origin} ${o}${t.minimum.toString()}`}case"invalid_format":{const o=t;return o.format==="starts_with"?`无效字符串:必须以 "${o.prefix}" 开头`:o.format==="ends_with"?`无效字符串:必须以 "${o.suffix}" 结尾`:o.format==="includes"?`无效字符串:必须包含 "${o.includes}"`:o.format==="regex"?`无效字符串:必须满足正则表达式 ${o.pattern}`:`无效${r[o.format]??t.format}`}case"not_multiple_of":return`无效数字:必须是 ${t.divisor} 的倍数`;case"unrecognized_keys":return`出现未知的键(key): ${k(t.keys,", ")}`;case"invalid_key":return`${t.origin} 中的键(key)无效`;case"invalid_union":return"无效输入";case"invalid_element":return`${t.origin} 中包含无效值(value)`;default:return"无效输入"}}};function D_(){return{localeError:N_()}}const j_=()=>{const e={string:{unit:"字元",verb:"擁有"},file:{unit:"位元組",verb:"擁有"},array:{unit:"項目",verb:"擁有"},set:{unit:"項目",verb:"擁有"}};function n(t){return e[t]??null}const r={regex:"輸入",email:"郵件地址",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO 日期時間",date:"ISO 日期",time:"ISO 時間",duration:"ISO 期間",ipv4:"IPv4 位址",ipv6:"IPv6 位址",cidrv4:"IPv4 範圍",cidrv6:"IPv6 範圍",base64:"base64 編碼字串",base64url:"base64url 編碼字串",json_string:"JSON 字串",e164:"E.164 數值",jwt:"JWT",template_literal:"輸入"},i={nan:"NaN"};return t=>{switch(t.code){case"invalid_type":{const o=i[t.expected]??t.expected,a=B(t.input),c=i[a]??a;return/^[A-Z]/.test(t.expected)?`無效的輸入值:預期為 instanceof ${t.expected},但收到 ${c}`:`無效的輸入值:預期為 ${o},但收到 ${c}`}case"invalid_value":return t.values.length===1?`無效的輸入值:預期為 ${V(t.values[0])}`:`無效的選項:預期為以下其中之一 ${k(t.values,"|")}`;case"too_big":{const o=t.inclusive?"<=":"<",a=n(t.origin);return a?`數值過大:預期 ${t.origin??"值"} 應為 ${o}${t.maximum.toString()} ${a.unit??"個元素"}`:`數值過大:預期 ${t.origin??"值"} 應為 ${o}${t.maximum.toString()}`}case"too_small":{const o=t.inclusive?">=":">",a=n(t.origin);return a?`數值過小:預期 ${t.origin} 應為 ${o}${t.minimum.toString()} ${a.unit}`:`數值過小:預期 ${t.origin} 應為 ${o}${t.minimum.toString()}`}case"invalid_format":{const o=t;return o.format==="starts_with"?`無效的字串:必須以 "${o.prefix}" 開頭`:o.format==="ends_with"?`無效的字串:必須以 "${o.suffix}" 結尾`:o.format==="includes"?`無效的字串:必須包含 "${o.includes}"`:o.format==="regex"?`無效的字串:必須符合格式 ${o.pattern}`:`無效的 ${r[o.format]??t.format}`}case"not_multiple_of":return`無效的數字:必須為 ${t.divisor} 的倍數`;case"unrecognized_keys":return`無法識別的鍵值${t.keys.length>1?"們":""}:${k(t.keys,"、")}`;case"invalid_key":return`${t.origin} 中有無效的鍵值`;case"invalid_union":return"無效的輸入值";case"invalid_element":return`${t.origin} 中有無效的值`;default:return"無效的輸入值"}}};function O_(){return{localeError:j_()}}const x_=()=>{const e={string:{unit:"àmi",verb:"ní"},file:{unit:"bytes",verb:"ní"},array:{unit:"nkan",verb:"ní"},set:{unit:"nkan",verb:"ní"}};function n(t){return e[t]??null}const r={regex:"ẹ̀rọ ìbáwọlé",email:"àdírẹ́sì ìmẹ́lì",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"àkókò ISO",date:"ọjọ́ ISO",time:"àkókò ISO",duration:"àkókò tó pé ISO",ipv4:"àdírẹ́sì IPv4",ipv6:"àdírẹ́sì IPv6",cidrv4:"àgbègbè IPv4",cidrv6:"àgbègbè IPv6",base64:"ọ̀rọ̀ tí a kọ́ ní base64",base64url:"ọ̀rọ̀ base64url",json_string:"ọ̀rọ̀ JSON",e164:"nọ́mbà E.164",jwt:"JWT",template_literal:"ẹ̀rọ ìbáwọlé"},i={nan:"NaN",number:"nọ́mbà",array:"akopọ"};return t=>{switch(t.code){case"invalid_type":{const o=i[t.expected]??t.expected,a=B(t.input),c=i[a]??a;return/^[A-Z]/.test(t.expected)?`Ìbáwọlé aṣìṣe: a ní láti fi instanceof ${t.expected}, àmọ̀ a rí ${c}`:`Ìbáwọlé aṣìṣe: a ní láti fi ${o}, àmọ̀ a rí ${c}`}case"invalid_value":return t.values.length===1?`Ìbáwọlé aṣìṣe: a ní láti fi ${V(t.values[0])}`:`Àṣàyàn aṣìṣe: yan ọ̀kan lára ${k(t.values,"|")}`;case"too_big":{const o=t.inclusive?"<=":"<",a=n(t.origin);return a?`Tó pọ̀ jù: a ní láti jẹ́ pé ${t.origin??"iye"} ${a.verb} ${o}${t.maximum} ${a.unit}`:`Tó pọ̀ jù: a ní láti jẹ́ ${o}${t.maximum}`}case"too_small":{const o=t.inclusive?">=":">",a=n(t.origin);return a?`Kéré ju: a ní láti jẹ́ pé ${t.origin} ${a.verb} ${o}${t.minimum} ${a.unit}`:`Kéré ju: a ní láti jẹ́ ${o}${t.minimum}`}case"invalid_format":{const o=t;return o.format==="starts_with"?`Ọ̀rọ̀ aṣìṣe: gbọ́dọ̀ bẹ̀rẹ̀ pẹ̀lú "${o.prefix}"`:o.format==="ends_with"?`Ọ̀rọ̀ aṣìṣe: gbọ́dọ̀ parí pẹ̀lú "${o.suffix}"`:o.format==="includes"?`Ọ̀rọ̀ aṣìṣe: gbọ́dọ̀ ní "${o.includes}"`:o.format==="regex"?`Ọ̀rọ̀ aṣìṣe: gbọ́dọ̀ bá àpẹẹrẹ mu ${o.pattern}`:`Aṣìṣe: ${r[o.format]??t.format}`}case"not_multiple_of":return`Nọ́mbà aṣìṣe: gbọ́dọ̀ jẹ́ èyà pípín ti ${t.divisor}`;case"unrecognized_keys":return`Bọtìnì àìmọ̀: ${k(t.keys,", ")}`;case"invalid_key":return`Bọtìnì aṣìṣe nínú ${t.origin}`;case"invalid_union":return"Ìbáwọlé aṣìṣe";case"invalid_element":return`Iye aṣìṣe nínú ${t.origin}`;default:return"Ìbáwọlé aṣìṣe"}}};function T_(){return{localeError:x_()}}const Hc=Object.freeze(Object.defineProperty({__proto__:null,ar:R$,az:q$,be:K$,bg:X$,ca:Y$,cs:eb,da:nb,de:ob,el:ab,en:Jc,eo:sb,es:db,fa:fb,fi:gb,fr:hb,frCA:bb,he:yb,hr:Sb,hu:Ib,hy:Eb,id:Db,is:Ob,it:Tb,ja:Cb,ka:Ab,kh:Bb,km:Gc,ko:Mb,lt:Lb,mk:Jb,ms:Gb,nl:Wb,no:Hb,ota:Qb,pl:r_,ps:t_,pt:i_,ro:l_,ru:s_,sl:d_,sv:f_,ta:g_,th:h_,tr:b_,ua:y_,uk:Xc,ur:S_,uz:I_,vi:E_,yo:T_,zhCN:D_,zhTW:O_},Symbol.toStringTag,{value:"Module"}));var Yc;const Qc=Symbol("ZodOutput"),es=Symbol("ZodInput");class ts{constructor(){this._map=new WeakMap,this._idmap=new Map}add(n,...r){const i=r[0];return this._map.set(n,i),i&&typeof i=="object"&&"id"in i&&this._idmap.set(i.id,n),this}clear(){return this._map=new WeakMap,this._idmap=new Map,this}remove(n){const r=this._map.get(n);return r&&typeof r=="object"&&"id"in r&&this._idmap.delete(r.id),this._map.delete(n),this}get(n){const r=n._zod.parent;if(r){const i={...this.get(r)??{}};delete i.id;const t={...i,...this._map.get(n)};return Object.keys(t).length?t:void 0}return this._map.get(n)}has(n){return this._map.has(n)}}function Or(){return new ts}(Yc=globalThis).__zod_globalRegistry??(Yc.__zod_globalRegistry=Or());const $e=globalThis.__zod_globalRegistry;function ns(e,n){return new e({type:"string",...b(n)})}function rs(e,n){return new e({type:"string",coerce:!0,...b(n)})}function xr(e,n){return new e({type:"string",format:"email",check:"string_format",abort:!1,...b(n)})}function en(e,n){return new e({type:"string",format:"guid",check:"string_format",abort:!1,...b(n)})}function Tr(e,n){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,...b(n)})}function Ur(e,n){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v4",...b(n)})}function Cr(e,n){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v6",...b(n)})}function Pr(e,n){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v7",...b(n)})}function tn(e,n){return new e({type:"string",format:"url",check:"string_format",abort:!1,...b(n)})}function Ar(e,n){return new e({type:"string",format:"emoji",check:"string_format",abort:!1,...b(n)})}function Vr(e,n){return new e({type:"string",format:"nanoid",check:"string_format",abort:!1,...b(n)})}function Br(e,n){return new e({type:"string",format:"cuid",check:"string_format",abort:!1,...b(n)})}function Zr(e,n){return new e({type:"string",format:"cuid2",check:"string_format",abort:!1,...b(n)})}function Mr(e,n){return new e({type:"string",format:"ulid",check:"string_format",abort:!1,...b(n)})}function Fr(e,n){return new e({type:"string",format:"xid",check:"string_format",abort:!1,...b(n)})}function Lr(e,n){return new e({type:"string",format:"ksuid",check:"string_format",abort:!1,...b(n)})}function Rr(e,n){return new e({type:"string",format:"ipv4",check:"string_format",abort:!1,...b(n)})}function Jr(e,n){return new e({type:"string",format:"ipv6",check:"string_format",abort:!1,...b(n)})}function os(e,n){return new e({type:"string",format:"mac",check:"string_format",abort:!1,...b(n)})}function qr(e,n){return new e({type:"string",format:"cidrv4",check:"string_format",abort:!1,...b(n)})}function Gr(e,n){return new e({type:"string",format:"cidrv6",check:"string_format",abort:!1,...b(n)})}function Kr(e,n){return new e({type:"string",format:"base64",check:"string_format",abort:!1,...b(n)})}function Wr(e,n){return new e({type:"string",format:"base64url",check:"string_format",abort:!1,...b(n)})}function Xr(e,n){return new e({type:"string",format:"e164",check:"string_format",abort:!1,...b(n)})}function Hr(e,n){return new e({type:"string",format:"jwt",check:"string_format",abort:!1,...b(n)})}const is={Any:null,Minute:-1,Second:0,Millisecond:3,Microsecond:6};function as(e,n){return new e({type:"string",format:"datetime",check:"string_format",offset:!1,local:!1,precision:null,...b(n)})}function ls(e,n){return new e({type:"string",format:"date",check:"string_format",...b(n)})}function cs(e,n){return new e({type:"string",format:"time",check:"string_format",precision:null,...b(n)})}function ss(e,n){return new e({type:"string",format:"duration",check:"string_format",...b(n)})}function us(e,n){return new e({type:"number",checks:[],...b(n)})}function ds(e,n){return new e({type:"number",coerce:!0,checks:[],...b(n)})}function ms(e,n){return new e({type:"number",check:"number_format",abort:!1,format:"safeint",...b(n)})}function fs(e,n){return new e({type:"number",check:"number_format",abort:!1,format:"float32",...b(n)})}function ps(e,n){return new e({type:"number",check:"number_format",abort:!1,format:"float64",...b(n)})}function gs(e,n){return new e({type:"number",check:"number_format",abort:!1,format:"int32",...b(n)})}function vs(e,n){return new e({type:"number",check:"number_format",abort:!1,format:"uint32",...b(n)})}function hs(e,n){return new e({type:"boolean",...b(n)})}function $s(e,n){return new e({type:"boolean",coerce:!0,...b(n)})}function bs(e,n){return new e({type:"bigint",...b(n)})}function _s(e,n){return new e({type:"bigint",coerce:!0,...b(n)})}function ys(e,n){return new e({type:"bigint",check:"bigint_format",abort:!1,format:"int64",...b(n)})}function ks(e,n){return new e({type:"bigint",check:"bigint_format",abort:!1,format:"uint64",...b(n)})}function Ss(e,n){return new e({type:"symbol",...b(n)})}function ws(e,n){return new e({type:"undefined",...b(n)})}function Is(e,n){return new e({type:"null",...b(n)})}function zs(e){return new e({type:"any"})}function Es(e){return new e({type:"unknown"})}function Ns(e,n){return new e({type:"never",...b(n)})}function Ds(e,n){return new e({type:"void",...b(n)})}function js(e,n){return new e({type:"date",...b(n)})}function Os(e,n){return new e({type:"date",coerce:!0,...b(n)})}function xs(e,n){return new e({type:"nan",...b(n)})}function Ne(e,n){return new _r({check:"less_than",...b(n),value:e,inclusive:!1})}function be(e,n){return new _r({check:"less_than",...b(n),value:e,inclusive:!0})}function De(e,n){return new yr({check:"greater_than",...b(n),value:e,inclusive:!1})}function ue(e,n){return new yr({check:"greater_than",...b(n),value:e,inclusive:!0})}function Yr(e){return De(0,e)}function Qr(e){return Ne(0,e)}function eo(e){return be(0,e)}function to(e){return ue(0,e)}function qe(e,n){return new Xa({check:"multiple_of",...b(n),value:e})}function Ge(e,n){return new Qa({check:"max_size",...b(n),maximum:e})}function je(e,n){return new el({check:"min_size",...b(n),minimum:e})}function ft(e,n){return new tl({check:"size_equals",...b(n),size:e})}function pt(e,n){return new nl({check:"max_length",...b(n),maximum:e})}function Ae(e,n){return new rl({check:"min_length",...b(n),minimum:e})}function gt(e,n){return new ol({check:"length_equals",...b(n),length:e})}function nn(e,n){return new il({check:"string_format",format:"regex",...b(n),pattern:e})}function rn(e){return new al({check:"string_format",format:"lowercase",...b(e)})}function on(e){return new ll({check:"string_format",format:"uppercase",...b(e)})}function an(e,n){return new cl({check:"string_format",format:"includes",...b(n),includes:e})}function ln(e,n){return new sl({check:"string_format",format:"starts_with",...b(n),prefix:e})}function cn(e,n){return new ul({check:"string_format",format:"ends_with",...b(n),suffix:e})}function no(e,n,r){return new ml({check:"property",property:e,schema:n,...b(r)})}function sn(e,n){return new fl({check:"mime_type",mime:e,...b(n)})}function Ie(e){return new pl({check:"overwrite",tx:e})}function un(e){return Ie(n=>n.normalize(e))}function dn(){return Ie(e=>e.trim())}function mn(){return Ie(e=>e.toLowerCase())}function fn(){return Ie(e=>e.toUpperCase())}function pn(){return Ie(e=>qi(e))}function Ts(e,n,r){return new e({type:"array",element:n,...b(r)})}function U_(e,n,r){return new e({type:"union",options:n,...b(r)})}function C_(e,n,r){return new e({type:"union",options:n,inclusive:!1,...b(r)})}function P_(e,n,r,i){return new e({type:"union",options:r,discriminator:n,...b(i)})}function A_(e,n,r){return new e({type:"intersection",left:n,right:r})}function V_(e,n,r,i){const t=r instanceof F,o=t?i:r,a=t?r:null;return new e({type:"tuple",items:n,rest:a,...b(o)})}function B_(e,n,r,i){return new e({type:"record",keyType:n,valueType:r,...b(i)})}function Z_(e,n,r,i){return new e({type:"map",keyType:n,valueType:r,...b(i)})}function M_(e,n,r){return new e({type:"set",valueType:n,...b(r)})}function F_(e,n,r){const i=Array.isArray(n)?Object.fromEntries(n.map(t=>[t,t])):n;return new e({type:"enum",entries:i,...b(r)})}function L_(e,n,r){return new e({type:"enum",entries:n,...b(r)})}function R_(e,n,r){return new e({type:"literal",values:Array.isArray(n)?n:[n],...b(r)})}function Us(e,n){return new e({type:"file",...b(n)})}function J_(e,n){return new e({type:"transform",transform:n})}function q_(e,n){return new e({type:"optional",innerType:n})}function G_(e,n){return new e({type:"nullable",innerType:n})}function K_(e,n,r){return new e({type:"default",innerType:n,get defaultValue(){return typeof r=="function"?r():Jt(r)}})}function W_(e,n,r){return new e({type:"nonoptional",innerType:n,...b(r)})}function X_(e,n){return new e({type:"success",innerType:n})}function H_(e,n,r){return new e({type:"catch",innerType:n,catchValue:typeof r=="function"?r:()=>r})}function Y_(e,n,r){return new e({type:"pipe",in:n,out:r})}function Q_(e,n){return new e({type:"readonly",innerType:n})}function ey(e,n,r){return new e({type:"template_literal",parts:n,...b(r)})}function ty(e,n){return new e({type:"lazy",getter:n})}function ny(e,n){return new e({type:"promise",innerType:n})}function Cs(e,n,r){const i=b(r);return i.abort??(i.abort=!0),new e({type:"custom",check:"custom",fn:n,...i})}function Ps(e,n,r){return new e({type:"custom",check:"custom",fn:n,...b(r)})}function As(e,n){const r=Vs(i=>(i.addIssue=t=>{if(typeof t=="string")i.issues.push(Le(t,i.value,r._zod.def));else{const o=t;o.fatal&&(o.continue=!1),o.code??(o.code="custom"),o.input??(o.input=i.value),o.inst??(o.inst=r),o.continue??(o.continue=!r._zod.def.abort),i.issues.push(Le(o))}},e(i.value,i)),n);return r}function Vs(e,n){const r=new Y({check:"custom",...b(n)});return r._zod.check=e,r}function Bs(e){const n=new Y({check:"describe"});return n._zod.onattach=[r=>{const i=$e.get(r)??{};$e.add(r,{...i,description:e})}],n._zod.check=()=>{},n}function Zs(e){const n=new Y({check:"meta"});return n._zod.onattach=[r=>{const i=$e.get(r)??{};$e.add(r,{...i,...e})}],n._zod.check=()=>{},n}function Ms(e,n){const r=b(n);let i=r.truthy??["true","1","yes","on","y","enabled"],t=r.falsy??["false","0","no","off","n","disabled"];r.case!=="sensitive"&&(i=i.map(p=>typeof p=="string"?p.toLowerCase():p),t=t.map(p=>typeof p=="string"?p.toLowerCase():p));const o=new Set(i),a=new Set(t),c=e.Codec??jr,u=e.Boolean??wr,s=e.String??dt,m=new s({type:"string",error:r.error}),d=new u({type:"boolean",error:r.error}),f=new c({type:"pipe",in:m,out:d,transform:((p,v)=>{let _=p;return r.case!=="sensitive"&&(_=_.toLowerCase()),o.has(_)?!0:a.has(_)?!1:(v.issues.push({code:"invalid_value",expected:"stringbool",values:[...o,...a],input:v.value,inst:f,continue:!1}),{})}),reverseTransform:((p,v)=>p===!0?i[0]||"true":t[0]||"false"),error:r.error});return f}function vt(e,n,r,i={}){const t=b(i),o={...b(i),check:"string_format",type:"string",format:n,fn:typeof r=="function"?r:c=>r.test(c),...t};return r instanceof RegExp&&(o.pattern=r),new e(o)}function Ke(e){let n=(e==null?void 0:e.target)??"draft-2020-12";return n==="draft-4"&&(n="draft-04"),n==="draft-7"&&(n="draft-07"),{processors:e.processors??{},metadataRegistry:(e==null?void 0:e.metadata)??$e,target:n,unrepresentable:(e==null?void 0:e.unrepresentable)??"throw",override:(e==null?void 0:e.override)??(()=>{}),io:(e==null?void 0:e.io)??"output",counter:0,seen:new Map,cycles:(e==null?void 0:e.cycles)??"ref",reused:(e==null?void 0:e.reused)??"inline",external:(e==null?void 0:e.external)??void 0}}function K(e,n,r={path:[],schemaPath:[]}){var m,d;var i;const t=e._zod.def,o=n.seen.get(e);if(o)return o.count++,r.schemaPath.includes(e)&&(o.cycle=r.path),o.schema;const a={schema:{},count:1,cycle:void 0,path:r.path};n.seen.set(e,a);const c=(d=(m=e._zod).toJSONSchema)==null?void 0:d.call(m);if(c)a.schema=c;else{const f={...r,schemaPath:[...r.schemaPath,e],path:r.path};if(e._zod.processJSONSchema)e._zod.processJSONSchema(n,a.schema,f);else{const v=a.schema,_=n.processors[t.type];if(!_)throw new Error(`[toJSONSchema]: Non-representable type encountered: ${t.type}`);_(e,n,v,f)}const p=e._zod.parent;p&&(a.ref||(a.ref=p),K(p,n,f),n.seen.get(p).isParent=!0)}const u=n.metadataRegistry.get(e);return u&&Object.assign(a.schema,u),n.io==="input"&&se(e)&&(delete a.schema.examples,delete a.schema.default),n.io==="input"&&"_prefault"in a.schema&&((i=a.schema).default??(i.default=a.schema._prefault)),delete a.schema._prefault,n.seen.get(e).schema}function We(e,n){var a,c,u,s;const r=e.seen.get(n);if(!r)throw new Error("Unprocessed schema. This is a bug in Zod.");const i=new Map;for(const m of e.seen.entries()){const d=(a=e.metadataRegistry.get(m[0]))==null?void 0:a.id;if(d){const f=i.get(d);if(f&&f!==m[0])throw new Error(`Duplicate schema id "${d}" detected during JSON Schema conversion. Two different schemas cannot share the same id when converted together.`);i.set(d,m[0])}}const t=m=>{var _;const d=e.target==="draft-2020-12"?"$defs":"definitions";if(e.external){const O=(_=e.external.registry.get(m[0]))==null?void 0:_.id,N=e.external.uri??(P=>P);if(O)return{ref:N(O)};const w=m[1].defId??m[1].schema.id??`schema${e.counter++}`;return m[1].defId=w,{defId:w,ref:`${N("__shared")}#/${d}/${w}`}}if(m[1]===r)return{ref:"#"};const p=`#/${d}/`,v=m[1].schema.id??`__schema${e.counter++}`;return{defId:v,ref:p+v}},o=m=>{if(m[1].schema.$ref)return;const d=m[1],{ref:f,defId:p}=t(m);d.def={...d.schema},p&&(d.defId=p);const v=d.schema;for(const _ in v)delete v[_];v.$ref=f};if(e.cycles==="throw")for(const m of e.seen.entries()){const d=m[1];if(d.cycle)throw new Error(`Cycle detected: #/${(c=d.cycle)==null?void 0:c.join("/")}/ -Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.`)}for(const m of e.seen.entries()){const d=m[1];if(n===m[0]){o(m);continue}if(e.external){const p=(u=e.external.registry.get(m[0]))==null?void 0:u.id;if(n!==m[0]&&p){o(m);continue}}if((s=e.metadataRegistry.get(m[0]))==null?void 0:s.id){o(m);continue}if(d.cycle){o(m);continue}if(d.count>1&&e.reused==="ref"){o(m);continue}}}function Xe(e,n){var c,u,s,m;const r=e.seen.get(n);if(!r)throw new Error("Unprocessed schema. This is a bug in Zod.");const i=d=>{const f=e.seen.get(d);if(f.ref===null)return;const p=f.def??f.schema,v={...p},b=f.ref;if(f.ref=null,b){i(b);const S=e.seen.get(b),w=S.schema;if(w.$ref&&(e.target==="draft-07"||e.target==="draft-04"||e.target==="openapi-3.0")?(p.allOf=p.allOf??[],p.allOf.push(w)):Object.assign(p,w),Object.assign(p,v),d._zod.parent===b)for(const U in p)U==="$ref"||U==="allOf"||U in v||delete p[U];if(w.$ref&&S.def)for(const U in p)U==="$ref"||U==="allOf"||U in S.def&&JSON.stringify(p[U])===JSON.stringify(S.def[U])&&delete p[U]}const N=d._zod.parent;if(N&&N!==b){i(N);const S=e.seen.get(N);if(S!=null&&S.schema.$ref&&(p.$ref=S.schema.$ref,S.def))for(const w in p)w==="$ref"||w==="allOf"||w in S.def&&JSON.stringify(p[w])===JSON.stringify(S.def[w])&&delete p[w]}e.override({zodSchema:d,jsonSchema:p,path:f.path??[]})};for(const d of[...e.seen.entries()].reverse())i(d[0]);const t={};if(e.target==="draft-2020-12"?t.$schema="https://json-schema.org/draft/2020-12/schema":e.target==="draft-07"?t.$schema="http://json-schema.org/draft-07/schema#":e.target==="draft-04"?t.$schema="http://json-schema.org/draft-04/schema#":e.target,(c=e.external)!=null&&c.uri){const d=(u=e.external.registry.get(n))==null?void 0:u.id;if(!d)throw new Error("Schema is missing an `id` property");t.$id=e.external.uri(d)}Object.assign(t,r.def??r.schema);const o=(s=e.metadataRegistry.get(n))==null?void 0:s.id;o!==void 0&&t.id===o&&delete t.id;const a=((m=e.external)==null?void 0:m.defs)??{};for(const d of e.seen.entries()){const f=d[1];f.def&&f.defId&&(f.def.id===f.defId&&delete f.def.id,a[f.defId]=f.def)}e.external||Object.keys(a).length>0&&(e.target==="draft-2020-12"?t.$defs=a:t.definitions=a);try{const d=JSON.parse(JSON.stringify(t));return Object.defineProperty(d,"~standard",{value:{...n["~standard"],jsonSchema:{input:$t(n,"input",e.processors),output:$t(n,"output",e.processors)}},enumerable:!1,writable:!1}),d}catch{throw new Error("Error converting schema to JSON.")}}function ce(e,n){const r=n??{seen:new Set};if(r.seen.has(e))return!1;r.seen.add(e);const i=e._zod.def;if(i.type==="transform")return!0;if(i.type==="array")return ce(i.element,r);if(i.type==="set")return ce(i.valueType,r);if(i.type==="lazy")return ce(i.getter(),r);if(i.type==="promise"||i.type==="optional"||i.type==="nonoptional"||i.type==="nullable"||i.type==="readonly"||i.type==="default"||i.type==="prefault")return ce(i.innerType,r);if(i.type==="intersection")return ce(i.left,r)||ce(i.right,r);if(i.type==="record"||i.type==="map")return ce(i.keyType,r)||ce(i.valueType,r);if(i.type==="pipe")return e._zod.traits.has("$ZodCodec")?!0:ce(i.in,r)||ce(i.out,r);if(i.type==="object"){for(const t in i.shape)if(ce(i.shape[t],r))return!0;return!1}if(i.type==="union"){for(const t of i.options)if(ce(t,r))return!0;return!1}if(i.type==="tuple"){for(const t of i.items)if(ce(t,r))return!0;return!!(i.rest&&ce(i.rest,r))}return!1}const Ms=(e,n={})=>r=>{const i=We({...r,processors:n});return W(e,i),Ke(i,e),Xe(i,e)},$t=(e,n,r={})=>i=>{const{libraryOptions:t,target:o}=i??{},a=We({...t??{},target:o,io:n,processors:r});return W(e,a),Ke(a,e),Xe(a,e)},w_={guid:"uuid",url:"uri",datetime:"date-time",json_string:"json-string",regex:""},Fs=(e,n,r,i)=>{const t=r;t.type="string";const{minimum:o,maximum:a,format:c,patterns:u,contentEncoding:s}=e._zod.bag;if(typeof o=="number"&&(t.minLength=o),typeof a=="number"&&(t.maxLength=a),c&&(t.format=w_[c]??c,t.format===""&&delete t.format,c==="time"&&delete t.format),s&&(t.contentEncoding=s),u&&u.size>0){const m=[...u];m.length===1?t.pattern=m[0].source:m.length>1&&(t.allOf=[...m.map(d=>({...n.target==="draft-07"||n.target==="draft-04"||n.target==="openapi-3.0"?{type:"string"}:{},pattern:d.source}))])}},Ls=(e,n,r,i)=>{const t=r,{minimum:o,maximum:a,format:c,multipleOf:u,exclusiveMaximum:s,exclusiveMinimum:m}=e._zod.bag;typeof c=="string"&&c.includes("int")?t.type="integer":t.type="number";const d=typeof m=="number"&&m>=(o??Number.NEGATIVE_INFINITY),f=typeof s=="number"&&s<=(a??Number.POSITIVE_INFINITY),p=n.target==="draft-04"||n.target==="openapi-3.0";d?p?(t.minimum=m,t.exclusiveMinimum=!0):t.exclusiveMinimum=m:typeof o=="number"&&(t.minimum=o),f?p?(t.maximum=s,t.exclusiveMaximum=!0):t.exclusiveMaximum=s:typeof a=="number"&&(t.maximum=a),typeof u=="number"&&(t.multipleOf=u)},Rs=(e,n,r,i)=>{r.type="boolean"},Js=(e,n,r,i)=>{if(n.unrepresentable==="throw")throw new Error("BigInt cannot be represented in JSON Schema")},qs=(e,n,r,i)=>{if(n.unrepresentable==="throw")throw new Error("Symbols cannot be represented in JSON Schema")},Gs=(e,n,r,i)=>{n.target==="openapi-3.0"?(r.type="string",r.nullable=!0,r.enum=[null]):r.type="null"},Ws=(e,n,r,i)=>{if(n.unrepresentable==="throw")throw new Error("Undefined cannot be represented in JSON Schema")},Ks=(e,n,r,i)=>{if(n.unrepresentable==="throw")throw new Error("Void cannot be represented in JSON Schema")},Xs=(e,n,r,i)=>{r.not={}},Ys=(e,n,r,i)=>{},Hs=(e,n,r,i)=>{},Qs=(e,n,r,i)=>{if(n.unrepresentable==="throw")throw new Error("Date cannot be represented in JSON Schema")},eu=(e,n,r,i)=>{const t=e._zod.def,o=er(t.entries);o.every(a=>typeof a=="number")&&(r.type="number"),o.every(a=>typeof a=="string")&&(r.type="string"),r.enum=o},tu=(e,n,r,i)=>{const t=e._zod.def,o=[];for(const a of t.values)if(a===void 0){if(n.unrepresentable==="throw")throw new Error("Literal `undefined` cannot be represented in JSON Schema")}else if(typeof a=="bigint"){if(n.unrepresentable==="throw")throw new Error("BigInt literals cannot be represented in JSON Schema");o.push(Number(a))}else o.push(a);if(o.length!==0)if(o.length===1){const a=o[0];r.type=a===null?"null":typeof a,n.target==="draft-04"||n.target==="openapi-3.0"?r.enum=[a]:r.const=a}else o.every(a=>typeof a=="number")&&(r.type="number"),o.every(a=>typeof a=="string")&&(r.type="string"),o.every(a=>typeof a=="boolean")&&(r.type="boolean"),o.every(a=>a===null)&&(r.type="null"),r.enum=o},nu=(e,n,r,i)=>{if(n.unrepresentable==="throw")throw new Error("NaN cannot be represented in JSON Schema")},ru=(e,n,r,i)=>{const t=r,o=e._zod.pattern;if(!o)throw new Error("Pattern not found in template literal");t.type="string",t.pattern=o.source},ou=(e,n,r,i)=>{const t=r,o={type:"string",format:"binary",contentEncoding:"binary"},{minimum:a,maximum:c,mime:u}=e._zod.bag;a!==void 0&&(o.minLength=a),c!==void 0&&(o.maxLength=c),u?u.length===1?(o.contentMediaType=u[0],Object.assign(t,o)):(Object.assign(t,o),t.anyOf=u.map(s=>({contentMediaType:s}))):Object.assign(t,o)},iu=(e,n,r,i)=>{r.type="boolean"},au=(e,n,r,i)=>{if(n.unrepresentable==="throw")throw new Error("Custom types cannot be represented in JSON Schema")},lu=(e,n,r,i)=>{if(n.unrepresentable==="throw")throw new Error("Function types cannot be represented in JSON Schema")},cu=(e,n,r,i)=>{if(n.unrepresentable==="throw")throw new Error("Transforms cannot be represented in JSON Schema")},su=(e,n,r,i)=>{if(n.unrepresentable==="throw")throw new Error("Map cannot be represented in JSON Schema")},uu=(e,n,r,i)=>{if(n.unrepresentable==="throw")throw new Error("Set cannot be represented in JSON Schema")},du=(e,n,r,i)=>{const t=r,o=e._zod.def,{minimum:a,maximum:c}=e._zod.bag;typeof a=="number"&&(t.minItems=a),typeof c=="number"&&(t.maxItems=c),t.type="array",t.items=W(o.element,n,{...i,path:[...i.path,"items"]})},mu=(e,n,r,i)=>{var s;const t=r,o=e._zod.def;t.type="object",t.properties={};const a=o.shape;for(const m in a)t.properties[m]=W(a[m],n,{...i,path:[...i.path,"properties",m]});const c=new Set(Object.keys(a)),u=new Set([...c].filter(m=>{const d=o.shape[m]._zod;return n.io==="input"?d.optin===void 0:d.optout===void 0}));u.size>0&&(t.required=Array.from(u)),((s=o.catchall)==null?void 0:s._zod.def.type)==="never"?t.additionalProperties=!1:o.catchall?o.catchall&&(t.additionalProperties=W(o.catchall,n,{...i,path:[...i.path,"additionalProperties"]})):n.io==="output"&&(t.additionalProperties=!1)},ro=(e,n,r,i)=>{const t=e._zod.def,o=t.inclusive===!1,a=t.options.map((c,u)=>W(c,n,{...i,path:[...i.path,o?"oneOf":"anyOf",u]}));o?r.oneOf=a:r.anyOf=a},fu=(e,n,r,i)=>{const t=e._zod.def,o=W(t.left,n,{...i,path:[...i.path,"allOf",0]}),a=W(t.right,n,{...i,path:[...i.path,"allOf",1]}),c=s=>"allOf"in s&&Object.keys(s).length===1,u=[...c(o)?o.allOf:[o],...c(a)?a.allOf:[a]];r.allOf=u},pu=(e,n,r,i)=>{const t=r,o=e._zod.def;t.type="array";const a=n.target==="draft-2020-12"?"prefixItems":"items",c=n.target==="draft-2020-12"||n.target==="openapi-3.0"?"items":"additionalItems",u=o.items.map((f,p)=>W(f,n,{...i,path:[...i.path,a,p]})),s=o.rest?W(o.rest,n,{...i,path:[...i.path,c,...n.target==="openapi-3.0"?[o.items.length]:[]]}):null;n.target==="draft-2020-12"?(t.prefixItems=u,s&&(t.items=s)):n.target==="openapi-3.0"?(t.items={anyOf:u},s&&t.items.anyOf.push(s),t.minItems=u.length,s||(t.maxItems=u.length)):(t.items=u,s&&(t.additionalItems=s));const{minimum:m,maximum:d}=e._zod.bag;typeof m=="number"&&(t.minItems=m),typeof d=="number"&&(t.maxItems=d)},gu=(e,n,r,i)=>{const t=r,o=e._zod.def;t.type="object";const a=o.keyType,c=a._zod.bag,u=c==null?void 0:c.patterns;if(o.mode==="loose"&&u&&u.size>0){const m=W(o.valueType,n,{...i,path:[...i.path,"patternProperties","*"]});t.patternProperties={};for(const d of u)t.patternProperties[d.source]=m}else(n.target==="draft-07"||n.target==="draft-2020-12")&&(t.propertyNames=W(o.keyType,n,{...i,path:[...i.path,"propertyNames"]})),t.additionalProperties=W(o.valueType,n,{...i,path:[...i.path,"additionalProperties"]});const s=a._zod.values;if(s){const m=[...s].filter(d=>typeof d=="string"||typeof d=="number");m.length>0&&(t.required=m)}},vu=(e,n,r,i)=>{const t=e._zod.def,o=W(t.innerType,n,i),a=n.seen.get(e);n.target==="openapi-3.0"?(a.ref=t.innerType,r.nullable=!0):r.anyOf=[o,{type:"null"}]},hu=(e,n,r,i)=>{const t=e._zod.def;W(t.innerType,n,i);const o=n.seen.get(e);o.ref=t.innerType},$u=(e,n,r,i)=>{const t=e._zod.def;W(t.innerType,n,i);const o=n.seen.get(e);o.ref=t.innerType,r.default=JSON.parse(JSON.stringify(t.defaultValue))},bu=(e,n,r,i)=>{const t=e._zod.def;W(t.innerType,n,i);const o=n.seen.get(e);o.ref=t.innerType,n.io==="input"&&(r._prefault=JSON.parse(JSON.stringify(t.defaultValue)))},_u=(e,n,r,i)=>{const t=e._zod.def;W(t.innerType,n,i);const o=n.seen.get(e);o.ref=t.innerType;let a;try{a=t.catchValue(void 0)}catch{throw new Error("Dynamic catch values are not supported in JSON Schema")}r.default=a},yu=(e,n,r,i)=>{const t=e._zod.def,o=t.in._zod.traits.has("$ZodTransform"),a=n.io==="input"?o?t.out:t.in:t.out;W(a,n,i);const c=n.seen.get(e);c.ref=a},ku=(e,n,r,i)=>{const t=e._zod.def;W(t.innerType,n,i);const o=n.seen.get(e);o.ref=t.innerType,r.readOnly=!0},Su=(e,n,r,i)=>{const t=e._zod.def;W(t.innerType,n,i);const o=n.seen.get(e);o.ref=t.innerType},oo=(e,n,r,i)=>{const t=e._zod.def;W(t.innerType,n,i);const o=n.seen.get(e);o.ref=t.innerType},wu=(e,n,r,i)=>{const t=e._zod.innerType;W(t,n,i);const o=n.seen.get(e);o.ref=t},io={string:Fs,number:Ls,boolean:Rs,bigint:Js,symbol:qs,null:Gs,undefined:Ws,void:Ks,never:Xs,any:Ys,unknown:Hs,date:Qs,enum:eu,literal:tu,nan:nu,template_literal:ru,file:ou,success:iu,custom:au,function:lu,transform:cu,map:su,set:uu,array:du,object:mu,union:ro,intersection:fu,tuple:pu,record:gu,nullable:vu,nonoptional:hu,default:$u,prefault:bu,catch:_u,pipe:yu,readonly:ku,promise:Su,optional:oo,lazy:wu};function Iu(e,n){if("_idmap"in e){const i=e,t=We({...n,processors:io}),o={};for(const u of i._idmap.entries()){const[s,m]=u;W(m,t)}const a={},c={registry:i,uri:n==null?void 0:n.uri,defs:o};t.external=c;for(const u of i._idmap.entries()){const[s,m]=u;Ke(t,m),a[s]=Xe(t,m)}if(Object.keys(o).length>0){const u=t.target==="draft-2020-12"?"$defs":"definitions";a.__shared={[u]:o}}return{schemas:a}}const r=We({...n,processors:io});return W(e,r),Ke(r,e),Xe(r,e)}class I_{get metadataRegistry(){return this.ctx.metadataRegistry}get target(){return this.ctx.target}get unrepresentable(){return this.ctx.unrepresentable}get override(){return this.ctx.override}get io(){return this.ctx.io}get counter(){return this.ctx.counter}set counter(n){this.ctx.counter=n}get seen(){return this.ctx.seen}constructor(n){let r=(n==null?void 0:n.target)??"draft-2020-12";r==="draft-4"&&(r="draft-04"),r==="draft-7"&&(r="draft-07"),this.ctx=We({processors:io,target:r,...(n==null?void 0:n.metadata)&&{metadata:n.metadata},...(n==null?void 0:n.unrepresentable)&&{unrepresentable:n.unrepresentable},...(n==null?void 0:n.override)&&{override:n.override},...(n==null?void 0:n.io)&&{io:n.io}})}process(n,r={path:[],schemaPath:[]}){return W(n,this.ctx,r)}emit(n,r){r&&(r.cycles&&(this.ctx.cycles=r.cycles),r.reused&&(this.ctx.reused=r.reused),r.external&&(this.ctx.external=r.external)),Ke(this.ctx,n);const i=Xe(this.ctx,n),{"~standard":t,...o}=i;return o}}const z_=Object.freeze(Object.defineProperty({__proto__:null,$ZodAny:Wl,$ZodArray:ec,$ZodAsyncError:Ue,$ZodBase64:Pl,$ZodBase64URL:Vl,$ZodBigInt:Ir,$ZodBigIntFormat:Rl,$ZodBoolean:wr,$ZodCIDRv4:Tl,$ZodCIDRv6:Cl,$ZodCUID:kl,$ZodCUID2:Sl,$ZodCatch:Oc,$ZodCheck:H,$ZodCheckBigIntFormat:Ya,$ZodCheckEndsWith:sl,$ZodCheckGreaterThan:yr,$ZodCheckIncludes:ll,$ZodCheckLengthEquals:rl,$ZodCheckLessThan:_r,$ZodCheckLowerCase:il,$ZodCheckMaxLength:tl,$ZodCheckMaxSize:Ha,$ZodCheckMimeType:ml,$ZodCheckMinLength:nl,$ZodCheckMinSize:Qa,$ZodCheckMultipleOf:Ka,$ZodCheckNumberFormat:Xa,$ZodCheckOverwrite:fl,$ZodCheckProperty:dl,$ZodCheckRegex:ol,$ZodCheckSizeEquals:el,$ZodCheckStartsWith:cl,$ZodCheckStringFormat:dt,$ZodCheckUpperCase:al,$ZodCodec:xr,$ZodCustom:Mc,$ZodCustomStringFormat:Fl,$ZodDate:Hl,$ZodDefault:zc,$ZodDiscriminatedUnion:cc,$ZodE164:Zl,$ZodEmail:$l,$ZodEmoji:_l,$ZodEncodeError:Ft,$ZodEnum:bc,$ZodError:rr,$ZodExactOptional:wc,$ZodFile:yc,$ZodFunction:Vc,$ZodGUID:vl,$ZodIPv4:jl,$ZodIPv6:Ol,$ZodISODate:Nl,$ZodISODateTime:El,$ZodISODuration:xl,$ZodISOTime:Dl,$ZodIntersection:sc,$ZodJWT:Ml,$ZodKSUID:zl,$ZodLazy:Bc,$ZodLiteral:_c,$ZodMAC:Ul,$ZodMap:gc,$ZodNaN:Uc,$ZodNanoID:yl,$ZodNever:Xl,$ZodNonOptional:Dc,$ZodNull:Gl,$ZodNullable:Ic,$ZodNumber:Sr,$ZodNumberFormat:Ll,$ZodObject:rc,$ZodObjectJIT:oc,$ZodOptional:Nr,$ZodPipe:Dr,$ZodPrefault:Nc,$ZodPreprocess:Tc,$ZodPromise:Zc,$ZodReadonly:Cc,$ZodRealError:me,$ZodRecord:pc,$ZodRegistry:es,$ZodSet:hc,$ZodString:mt,$ZodStringFormat:K,$ZodSuccess:jc,$ZodSymbol:Jl,$ZodTemplateLiteral:Ac,$ZodTransform:kc,$ZodTuple:Er,$ZodType:B,$ZodULID:wl,$ZodURL:bl,$ZodUUID:hl,$ZodUndefined:ql,$ZodUnion:Xt,$ZodUnknown:Kl,$ZodVoid:Yl,$ZodXID:Il,$ZodXor:lc,$brand:Fi,$constructor:g,$input:Qc,$output:Hc,Doc:pl,JSONSchema:Object.freeze(Object.defineProperty({__proto__:null},Symbol.toStringTag,{value:"Module"})),JSONSchemaGenerator:I_,NEVER:Mi,TimePrecision:os,_any:Is,_array:Os,_base64:Wr,_base64url:Kr,_bigint:$s,_boolean:vs,_catch:$_,_check:As,_cidrv4:qr,_cidrv6:Gr,_coercedBigint:bs,_coercedBoolean:hs,_coercedDate:xs,_coercedNumber:us,_coercedString:ns,_cuid:Zr,_cuid2:Br,_custom:Ts,_date:Ds,_decode:sr,_decodeAsync:dr,_default:g_,_discriminatedUnion:r_,_e164:Xr,_email:Or,_emoji:Ar,_encode:cr,_encodeAsync:ur,_endsWith:cn,_enum:s_,_file:Us,_float32:ms,_float64:fs,_gt:De,_gte:se,_guid:en,_includes:an,_int:ds,_int32:ps,_int64:_s,_intersection:o_,_ipv4:Rr,_ipv6:Jr,_isoDate:as,_isoDateTime:is,_isoDuration:cs,_isoTime:ls,_jwt:Yr,_ksuid:Lr,_lazy:k_,_length:vt,_literal:d_,_lowercase:rn,_lt:Ne,_lte:he,_mac:rs,_map:l_,_max:he,_maxLength:gt,_maxSize:Ge,_mime:sn,_min:se,_minLength:Ae,_minSize:xe,_multipleOf:qe,_nan:js,_nanoid:Vr,_nativeEnum:u_,_negative:Qr,_never:Es,_nonnegative:to,_nonoptional:v_,_nonpositive:eo,_normalize:un,_null:ws,_nullable:p_,_number:ss,_optional:f_,_overwrite:Ie,_parse:it,_parseAsync:at,_pipe:b_,_positive:Hr,_promise:S_,_property:no,_readonly:__,_record:a_,_refine:Cs,_regex:nn,_safeDecode:fr,_safeDecodeAsync:gr,_safeEncode:mr,_safeEncodeAsync:pr,_safeParse:lt,_safeParseAsync:ct,_set:c_,_size:pt,_slugify:pn,_startsWith:ln,_string:ts,_stringFormat:ht,_stringbool:Bs,_success:h_,_superRefine:Ps,_symbol:ks,_templateLiteral:y_,_toLowerCase:mn,_toUpperCase:fn,_transform:m_,_trim:dn,_tuple:i_,_uint32:gs,_uint64:ys,_ulid:Mr,_undefined:Ss,_union:t_,_unknown:zs,_uppercase:on,_url:tn,_uuid:Ur,_uuidv4:Tr,_uuidv6:Cr,_uuidv7:Pr,_void:Ns,_xid:Fr,_xor:n_,clone:pe,config:re,createStandardJSONSchemaMethod:$t,createToJSONSchemaMethod:Ms,decode:Wh,decodeAsync:Xh,describe:Vs,encode:Gh,encodeAsync:Kh,extractDefs:Ke,finalize:Xe,flattenError:or,formatError:ir,globalConfig:nt,globalRegistry:ve,initializeContext:We,isValidBase64:kr,isValidBase64URL:Al,isValidJWT:Bl,locales:Xc,meta:Zs,parse:ar,parseAsync:lr,prettifyError:da,process:W,regexes:br,registry:jr,safeDecode:Hh,safeDecodeAsync:e$,safeEncode:Yh,safeEncodeAsync:Qh,safeParse:ma,safeParseAsync:fa,toDotPath:ua,toJSONSchema:Iu,treeifyError:sa,util:la,version:gl},Symbol.toStringTag,{value:"Module"})),E_=Object.freeze(Object.defineProperty({__proto__:null,endsWith:cn,gt:De,gte:se,includes:an,length:vt,lowercase:rn,lt:Ne,lte:he,maxLength:gt,maxSize:Ge,mime:sn,minLength:Ae,minSize:xe,multipleOf:qe,negative:Qr,nonnegative:to,nonpositive:eo,normalize:un,overwrite:Ie,positive:Hr,property:no,regex:nn,size:pt,slugify:pn,startsWith:ln,toLowerCase:mn,toUpperCase:fn,trim:dn,uppercase:on},Symbol.toStringTag,{value:"Module"})),ao=g("ZodISODateTime",(e,n)=>{El.init(e,n),X.init(e,n)});function zu(e){return is(ao,e)}const lo=g("ZodISODate",(e,n)=>{Nl.init(e,n),X.init(e,n)});function Eu(e){return as(lo,e)}const co=g("ZodISOTime",(e,n)=>{Dl.init(e,n),X.init(e,n)});function Nu(e){return ls(co,e)}const so=g("ZodISODuration",(e,n)=>{xl.init(e,n),X.init(e,n)});function Du(e){return cs(so,e)}const xu=Object.freeze(Object.defineProperty({__proto__:null,ZodISODate:lo,ZodISODateTime:ao,ZodISODuration:so,ZodISOTime:co,date:Eu,datetime:zu,duration:Du,time:Nu},Symbol.toStringTag,{value:"Module"})),ju=(e,n)=>{rr.init(e,n),e.name="ZodError",Object.defineProperties(e,{format:{value:r=>ir(e,r)},flatten:{value:r=>or(e,r)},addIssue:{value:r=>{e.issues.push(r),e.message=JSON.stringify(e.issues,Lt,2)}},addIssues:{value:r=>{e.issues.push(...r),e.message=JSON.stringify(e.issues,Lt,2)}},isEmpty:{get(){return e.issues.length===0}}})},N_=g("ZodError",ju),fe=g("ZodError",ju,{Parent:Error}),Ou=it(fe),Uu=at(fe),Tu=lt(fe),Cu=ct(fe),Pu=cr(fe),Au=sr(fe),Vu=ur(fe),Zu=dr(fe),Bu=mr(fe),Mu=fr(fe),Fu=pr(fe),Lu=gr(fe),Ru=new WeakMap;function bt(e,n,r){const i=Object.getPrototypeOf(e);let t=Ru.get(i);if(t||(t=new Set,Ru.set(i,t)),!t.has(n)){t.add(n);for(const o in r){const a=r[o];Object.defineProperty(i,o,{configurable:!0,enumerable:!1,get(){const c=a.bind(this);return Object.defineProperty(this,o,{configurable:!0,writable:!0,enumerable:!0,value:c}),c},set(c){Object.defineProperty(this,o,{configurable:!0,writable:!0,enumerable:!0,value:c})}})}}}const L=g("ZodType",(e,n)=>(B.init(e,n),Object.assign(e["~standard"],{jsonSchema:{input:$t(e,"input"),output:$t(e,"output")}}),e.toJSONSchema=Ms(e,{}),e.def=n,e.type=n.type,Object.defineProperty(e,"_def",{value:n}),e.parse=(r,i)=>Ou(e,r,i,{callee:e.parse}),e.safeParse=(r,i)=>Tu(e,r,i),e.parseAsync=async(r,i)=>Uu(e,r,i,{callee:e.parseAsync}),e.safeParseAsync=async(r,i)=>Cu(e,r,i),e.spa=e.safeParseAsync,e.encode=(r,i)=>Pu(e,r,i),e.decode=(r,i)=>Au(e,r,i),e.encodeAsync=async(r,i)=>Vu(e,r,i),e.decodeAsync=async(r,i)=>Zu(e,r,i),e.safeEncode=(r,i)=>Bu(e,r,i),e.safeDecode=(r,i)=>Mu(e,r,i),e.safeEncodeAsync=async(r,i)=>Fu(e,r,i),e.safeDecodeAsync=async(r,i)=>Lu(e,r,i),bt(e,"ZodType",{check(...r){const i=this.def;return this.clone(_e(i,{checks:[...i.checks??[],...r.map(t=>typeof t=="function"?{_zod:{check:t,def:{check:"custom"},onattach:[]}}:t)]}),{parent:!0})},with(...r){return this.check(...r)},clone(r,i){return pe(this,r,i)},brand(){return this},register(r,i){return r.add(this,i),this},refine(r,i){return this.check(ti(r,i))},superRefine(r,i){return this.check(ni(r,i))},overwrite(r){return this.check(Ie(r))},optional(){return xt(this)},exactOptional(){return Po(this)},nullable(){return jt(this)},nullish(){return xt(jt(this))},nonoptional(r){return Fo(this,r)},array(){return Et(this)},or(r){return Pn([this,r])},and(r){return zo(this,r)},transform(r){return Mn(this,Vn(r))},default(r){return Zo(this,r)},prefault(r){return Mo(this,r)},catch(r){return Jo(this,r)},pipe(r){return Mn(this,r)},readonly(){return Ko(this)},describe(r){const i=this.clone();return ve.add(i,{description:r}),i},meta(...r){if(r.length===0)return ve.get(this);const i=this.clone();return ve.add(i,r[0]),i},isOptional(){return this.safeParse(void 0).success},isNullable(){return this.safeParse(null).success},apply(r){return r(this)}}),Object.defineProperty(e,"description",{get(){var r;return(r=ve.get(e))==null?void 0:r.description},configurable:!0}),e)),gn=g("_ZodString",(e,n)=>{mt.init(e,n),L.init(e,n),e._zod.processJSONSchema=(i,t,o)=>Fs(e,i,t);const r=e._zod.bag;e.format=r.format??null,e.minLength=r.minimum??null,e.maxLength=r.maximum??null,bt(e,"_ZodString",{regex(...i){return this.check(nn(...i))},includes(...i){return this.check(an(...i))},startsWith(...i){return this.check(ln(...i))},endsWith(...i){return this.check(cn(...i))},min(...i){return this.check(Ae(...i))},max(...i){return this.check(gt(...i))},length(...i){return this.check(vt(...i))},nonempty(...i){return this.check(Ae(1,...i))},lowercase(i){return this.check(rn(i))},uppercase(i){return this.check(on(i))},trim(){return this.check(dn())},normalize(...i){return this.check(un(...i))},toLowerCase(){return this.check(mn())},toUpperCase(){return this.check(fn())},slugify(){return this.check(pn())}})}),_t=g("ZodString",(e,n)=>{mt.init(e,n),gn.init(e,n),e.email=r=>e.check(Or(vn,r)),e.url=r=>e.check(tn(St,r)),e.jwt=r=>e.check(Yr(jn,r)),e.emoji=r=>e.check(Ar(hn,r)),e.guid=r=>e.check(en(kt,r)),e.uuid=r=>e.check(Ur(ye,r)),e.uuidv4=r=>e.check(Tr(ye,r)),e.uuidv6=r=>e.check(Cr(ye,r)),e.uuidv7=r=>e.check(Pr(ye,r)),e.nanoid=r=>e.check(Vr($n,r)),e.guid=r=>e.check(en(kt,r)),e.cuid=r=>e.check(Zr(bn,r)),e.cuid2=r=>e.check(Br(_n,r)),e.ulid=r=>e.check(Mr(yn,r)),e.base64=r=>e.check(Wr(Nn,r)),e.base64url=r=>e.check(Kr(Dn,r)),e.xid=r=>e.check(Fr(kn,r)),e.ksuid=r=>e.check(Lr(Sn,r)),e.ipv4=r=>e.check(Rr(wn,r)),e.ipv6=r=>e.check(Jr(In,r)),e.cidrv4=r=>e.check(qr(zn,r)),e.cidrv6=r=>e.check(Gr(En,r)),e.e164=r=>e.check(Xr(xn,r)),e.datetime=r=>e.check(zu(r)),e.date=r=>e.check(Eu(r)),e.time=r=>e.check(Nu(r)),e.duration=r=>e.check(Du(r))});function yt(e){return ts(_t,e)}const X=g("ZodStringFormat",(e,n)=>{K.init(e,n),gn.init(e,n)}),vn=g("ZodEmail",(e,n)=>{$l.init(e,n),X.init(e,n)});function Ju(e){return Or(vn,e)}const kt=g("ZodGUID",(e,n)=>{vl.init(e,n),X.init(e,n)});function qu(e){return en(kt,e)}const ye=g("ZodUUID",(e,n)=>{hl.init(e,n),X.init(e,n)});function Gu(e){return Ur(ye,e)}function Wu(e){return Tr(ye,e)}function Ku(e){return Cr(ye,e)}function Xu(e){return Pr(ye,e)}const St=g("ZodURL",(e,n)=>{bl.init(e,n),X.init(e,n)});function Yu(e){return tn(St,e)}function Hu(e){return tn(St,{protocol:hr,hostname:Oa,..._(e)})}const hn=g("ZodEmoji",(e,n)=>{_l.init(e,n),X.init(e,n)});function Qu(e){return Ar(hn,e)}const $n=g("ZodNanoID",(e,n)=>{yl.init(e,n),X.init(e,n)});function ed(e){return Vr($n,e)}const bn=g("ZodCUID",(e,n)=>{kl.init(e,n),X.init(e,n)});function td(e){return Zr(bn,e)}const _n=g("ZodCUID2",(e,n)=>{Sl.init(e,n),X.init(e,n)});function nd(e){return Br(_n,e)}const yn=g("ZodULID",(e,n)=>{wl.init(e,n),X.init(e,n)});function rd(e){return Mr(yn,e)}const kn=g("ZodXID",(e,n)=>{Il.init(e,n),X.init(e,n)});function od(e){return Fr(kn,e)}const Sn=g("ZodKSUID",(e,n)=>{zl.init(e,n),X.init(e,n)});function id(e){return Lr(Sn,e)}const wn=g("ZodIPv4",(e,n)=>{jl.init(e,n),X.init(e,n)});function ad(e){return Rr(wn,e)}const uo=g("ZodMAC",(e,n)=>{Ul.init(e,n),X.init(e,n)});function ld(e){return rs(uo,e)}const In=g("ZodIPv6",(e,n)=>{Ol.init(e,n),X.init(e,n)});function cd(e){return Jr(In,e)}const zn=g("ZodCIDRv4",(e,n)=>{Tl.init(e,n),X.init(e,n)});function sd(e){return qr(zn,e)}const En=g("ZodCIDRv6",(e,n)=>{Cl.init(e,n),X.init(e,n)});function ud(e){return Gr(En,e)}const Nn=g("ZodBase64",(e,n)=>{Pl.init(e,n),X.init(e,n)});function dd(e){return Wr(Nn,e)}const Dn=g("ZodBase64URL",(e,n)=>{Vl.init(e,n),X.init(e,n)});function md(e){return Kr(Dn,e)}const xn=g("ZodE164",(e,n)=>{Zl.init(e,n),X.init(e,n)});function fd(e){return Xr(xn,e)}const jn=g("ZodJWT",(e,n)=>{Ml.init(e,n),X.init(e,n)});function pd(e){return Yr(jn,e)}const Ye=g("ZodCustomStringFormat",(e,n)=>{Fl.init(e,n),X.init(e,n)});function gd(e,n,r={}){return ht(Ye,e,n,r)}function vd(e){return ht(Ye,"hostname",ja,e)}function hd(e){return ht(Ye,"hex",Ga,e)}function $d(e,n){const r=(n==null?void 0:n.enc)??"hex",i=`${e}_${r}`,t=br[i];if(!t)throw new Error(`Unrecognized hash format: ${i}`);return ht(Ye,i,t,n)}const wt=g("ZodNumber",(e,n)=>{Sr.init(e,n),L.init(e,n),e._zod.processJSONSchema=(i,t,o)=>Ls(e,i,t),bt(e,"ZodNumber",{gt(i,t){return this.check(De(i,t))},gte(i,t){return this.check(se(i,t))},min(i,t){return this.check(se(i,t))},lt(i,t){return this.check(Ne(i,t))},lte(i,t){return this.check(he(i,t))},max(i,t){return this.check(he(i,t))},int(i){return this.check(On(i))},safe(i){return this.check(On(i))},positive(i){return this.check(De(0,i))},nonnegative(i){return this.check(se(0,i))},negative(i){return this.check(Ne(0,i))},nonpositive(i){return this.check(he(0,i))},multipleOf(i,t){return this.check(qe(i,t))},step(i,t){return this.check(qe(i,t))},finite(){return this}});const r=e._zod.bag;e.minValue=Math.max(r.minimum??Number.NEGATIVE_INFINITY,r.exclusiveMinimum??Number.NEGATIVE_INFINITY)??null,e.maxValue=Math.min(r.maximum??Number.POSITIVE_INFINITY,r.exclusiveMaximum??Number.POSITIVE_INFINITY)??null,e.isInt=(r.format??"").includes("int")||Number.isSafeInteger(r.multipleOf??.5),e.isFinite=!0,e.format=r.format??null});function mo(e){return ss(wt,e)}const Ve=g("ZodNumberFormat",(e,n)=>{Ll.init(e,n),wt.init(e,n)});function On(e){return ds(Ve,e)}function bd(e){return ms(Ve,e)}function _d(e){return fs(Ve,e)}function yd(e){return ps(Ve,e)}function kd(e){return gs(Ve,e)}const It=g("ZodBoolean",(e,n)=>{wr.init(e,n),L.init(e,n),e._zod.processJSONSchema=(r,i,t)=>Rs(e,r,i)});function fo(e){return vs(It,e)}const zt=g("ZodBigInt",(e,n)=>{Ir.init(e,n),L.init(e,n),e._zod.processJSONSchema=(i,t,o)=>Js(e,i),e.gte=(i,t)=>e.check(se(i,t)),e.min=(i,t)=>e.check(se(i,t)),e.gt=(i,t)=>e.check(De(i,t)),e.gte=(i,t)=>e.check(se(i,t)),e.min=(i,t)=>e.check(se(i,t)),e.lt=(i,t)=>e.check(Ne(i,t)),e.lte=(i,t)=>e.check(he(i,t)),e.max=(i,t)=>e.check(he(i,t)),e.positive=i=>e.check(De(BigInt(0),i)),e.negative=i=>e.check(Ne(BigInt(0),i)),e.nonpositive=i=>e.check(he(BigInt(0),i)),e.nonnegative=i=>e.check(se(BigInt(0),i)),e.multipleOf=(i,t)=>e.check(qe(i,t));const r=e._zod.bag;e.minValue=r.minimum??null,e.maxValue=r.maximum??null,e.format=r.format??null});function Sd(e){return $s(zt,e)}const Un=g("ZodBigIntFormat",(e,n)=>{Rl.init(e,n),zt.init(e,n)});function wd(e){return _s(Un,e)}function Id(e){return ys(Un,e)}const po=g("ZodSymbol",(e,n)=>{Jl.init(e,n),L.init(e,n),e._zod.processJSONSchema=(r,i,t)=>qs(e,r)});function zd(e){return ks(po,e)}const go=g("ZodUndefined",(e,n)=>{ql.init(e,n),L.init(e,n),e._zod.processJSONSchema=(r,i,t)=>Ws(e,r)});function Ed(e){return Ss(go,e)}const vo=g("ZodNull",(e,n)=>{Gl.init(e,n),L.init(e,n),e._zod.processJSONSchema=(r,i,t)=>Gs(e,r,i)});function ho(e){return ws(vo,e)}const $o=g("ZodAny",(e,n)=>{Wl.init(e,n),L.init(e,n),e._zod.processJSONSchema=(r,i,t)=>Ys()});function Nd(){return Is($o)}const bo=g("ZodUnknown",(e,n)=>{Kl.init(e,n),L.init(e,n),e._zod.processJSONSchema=(r,i,t)=>Hs()});function Ze(){return zs(bo)}const _o=g("ZodNever",(e,n)=>{Xl.init(e,n),L.init(e,n),e._zod.processJSONSchema=(r,i,t)=>Xs(e,r,i)});function Tn(e){return Es(_o,e)}const yo=g("ZodVoid",(e,n)=>{Yl.init(e,n),L.init(e,n),e._zod.processJSONSchema=(r,i,t)=>Ks(e,r)});function Dd(e){return Ns(yo,e)}const Cn=g("ZodDate",(e,n)=>{Hl.init(e,n),L.init(e,n),e._zod.processJSONSchema=(i,t,o)=>Qs(e,i),e.min=(i,t)=>e.check(se(i,t)),e.max=(i,t)=>e.check(he(i,t));const r=e._zod.bag;e.minDate=r.minimum?new Date(r.minimum):null,e.maxDate=r.maximum?new Date(r.maximum):null});function xd(e){return Ds(Cn,e)}const ko=g("ZodArray",(e,n)=>{ec.init(e,n),L.init(e,n),e._zod.processJSONSchema=(r,i,t)=>du(e,r,i,t),e.element=n.element,bt(e,"ZodArray",{min(r,i){return this.check(Ae(r,i))},nonempty(r){return this.check(Ae(1,r))},max(r,i){return this.check(gt(r,i))},length(r,i){return this.check(vt(r,i))},unwrap(){return this.element}})});function Et(e,n){return Os(ko,e,n)}function jd(e){const n=e._zod.def.shape;return An(Object.keys(n))}const Nt=g("ZodObject",(e,n)=>{oc.init(e,n),L.init(e,n),e._zod.processJSONSchema=(r,i,t)=>mu(e,r,i,t),R(e,"shape",()=>n.shape),bt(e,"ZodObject",{keyof(){return An(Object.keys(this._zod.def.shape))},catchall(r){return this.clone({...this._zod.def,catchall:r})},passthrough(){return this.clone({...this._zod.def,catchall:Ze()})},loose(){return this.clone({...this._zod.def,catchall:Ze()})},strict(){return this.clone({...this._zod.def,catchall:Tn()})},strip(){return this.clone({...this._zod.def,catchall:void 0})},extend(r){return Qi(this,r)},safeExtend(r){return ea(this,r)},merge(r){return ta(this,r)},pick(r){return Yi(this,r)},omit(r){return Hi(this,r)},partial(...r){return na(Zn,this,r[0])},required(...r){return ra(Bn,this,r[0])}})});function Od(e,n){const r={type:"object",shape:e??{},..._(n)};return new Nt(r)}function Ud(e,n){return new Nt({type:"object",shape:e,catchall:Tn(),..._(n)})}function Td(e,n){return new Nt({type:"object",shape:e,catchall:Ze(),..._(n)})}const Dt=g("ZodUnion",(e,n)=>{Xt.init(e,n),L.init(e,n),e._zod.processJSONSchema=(r,i,t)=>ro(e,r,i,t),e.options=n.options});function Pn(e,n){return new Dt({type:"union",options:e,..._(n)})}const So=g("ZodXor",(e,n)=>{Dt.init(e,n),lc.init(e,n),e._zod.processJSONSchema=(r,i,t)=>ro(e,r,i,t),e.options=n.options});function Cd(e,n){return new So({type:"union",options:e,inclusive:!1,..._(n)})}const wo=g("ZodDiscriminatedUnion",(e,n)=>{Dt.init(e,n),cc.init(e,n)});function Pd(e,n,r){return new wo({type:"union",options:n,discriminator:e,..._(r)})}const Io=g("ZodIntersection",(e,n)=>{sc.init(e,n),L.init(e,n),e._zod.processJSONSchema=(r,i,t)=>fu(e,r,i,t)});function zo(e,n){return new Io({type:"intersection",left:e,right:n})}const Eo=g("ZodTuple",(e,n)=>{Er.init(e,n),L.init(e,n),e._zod.processJSONSchema=(r,i,t)=>pu(e,r,i,t),e.rest=r=>e.clone({...e._zod.def,rest:r})});function No(e,n,r){const i=n instanceof B,t=i?r:n,o=i?n:null;return new Eo({type:"tuple",items:e,rest:o,..._(t)})}const He=g("ZodRecord",(e,n)=>{pc.init(e,n),L.init(e,n),e._zod.processJSONSchema=(r,i,t)=>gu(e,r,i,t),e.keyType=n.keyType,e.valueType=n.valueType});function Do(e,n,r){return!n||!n._zod?new He({type:"record",keyType:yt(),valueType:e,..._(n)}):new He({type:"record",keyType:e,valueType:n,..._(r)})}function Ad(e,n,r){const i=pe(e);return i._zod.values=void 0,new He({type:"record",keyType:i,valueType:n,..._(r)})}function Vd(e,n,r){return new He({type:"record",keyType:e,valueType:n,mode:"loose",..._(r)})}const xo=g("ZodMap",(e,n)=>{gc.init(e,n),L.init(e,n),e._zod.processJSONSchema=(r,i,t)=>su(e,r),e.keyType=n.keyType,e.valueType=n.valueType,e.min=(...r)=>e.check(xe(...r)),e.nonempty=r=>e.check(xe(1,r)),e.max=(...r)=>e.check(Ge(...r)),e.size=(...r)=>e.check(pt(...r))});function Zd(e,n,r){return new xo({type:"map",keyType:e,valueType:n,..._(r)})}const jo=g("ZodSet",(e,n)=>{hc.init(e,n),L.init(e,n),e._zod.processJSONSchema=(r,i,t)=>uu(e,r),e.min=(...r)=>e.check(xe(...r)),e.nonempty=r=>e.check(xe(1,r)),e.max=(...r)=>e.check(Ge(...r)),e.size=(...r)=>e.check(pt(...r))});function Bd(e,n){return new jo({type:"set",valueType:e,..._(n)})}const Qe=g("ZodEnum",(e,n)=>{bc.init(e,n),L.init(e,n),e._zod.processJSONSchema=(i,t,o)=>eu(e,i,t),e.enum=n.entries,e.options=Object.values(n.entries);const r=new Set(Object.keys(n.entries));e.extract=(i,t)=>{const o={};for(const a of i)if(r.has(a))o[a]=n.entries[a];else throw new Error(`Key ${a} not found in enum`);return new Qe({...n,checks:[],..._(t),entries:o})},e.exclude=(i,t)=>{const o={...n.entries};for(const a of i)if(r.has(a))delete o[a];else throw new Error(`Key ${a} not found in enum`);return new Qe({...n,checks:[],..._(t),entries:o})}});function An(e,n){const r=Array.isArray(e)?Object.fromEntries(e.map(i=>[i,i])):e;return new Qe({type:"enum",entries:r,..._(n)})}function Md(e,n){return new Qe({type:"enum",entries:e,..._(n)})}const Oo=g("ZodLiteral",(e,n)=>{_c.init(e,n),L.init(e,n),e._zod.processJSONSchema=(r,i,t)=>tu(e,r,i),e.values=new Set(n.values),Object.defineProperty(e,"value",{get(){if(n.values.length>1)throw new Error("This schema contains multiple valid literal values. Use `.values` instead.");return n.values[0]}})});function Fd(e,n){return new Oo({type:"literal",values:Array.isArray(e)?e:[e],..._(n)})}const Uo=g("ZodFile",(e,n)=>{yc.init(e,n),L.init(e,n),e._zod.processJSONSchema=(r,i,t)=>ou(e,r,i),e.min=(r,i)=>e.check(xe(r,i)),e.max=(r,i)=>e.check(Ge(r,i)),e.mime=(r,i)=>e.check(sn(Array.isArray(r)?r:[r],i))});function Ld(e){return Us(Uo,e)}const To=g("ZodTransform",(e,n)=>{kc.init(e,n),L.init(e,n),e._zod.processJSONSchema=(r,i,t)=>cu(e,r),e._zod.parse=(r,i)=>{if(i.direction==="backward")throw new Ft(e.constructor.name);r.addIssue=o=>{if(typeof o=="string")r.issues.push(Le(o,r.value,n));else{const a=o;a.fatal&&(a.continue=!1),a.code??(a.code="custom"),a.input??(a.input=r.value),a.inst??(a.inst=e),r.issues.push(Le(a))}};const t=n.transform(r.value,r);return t instanceof Promise?t.then(o=>(r.value=o,r.fallback=!0,r)):(r.value=t,r.fallback=!0,r)}});function Vn(e){return new To({type:"transform",transform:e})}const Zn=g("ZodOptional",(e,n)=>{Nr.init(e,n),L.init(e,n),e._zod.processJSONSchema=(r,i,t)=>oo(e,r,i,t),e.unwrap=()=>e._zod.def.innerType});function xt(e){return new Zn({type:"optional",innerType:e})}const Co=g("ZodExactOptional",(e,n)=>{wc.init(e,n),L.init(e,n),e._zod.processJSONSchema=(r,i,t)=>oo(e,r,i,t),e.unwrap=()=>e._zod.def.innerType});function Po(e){return new Co({type:"optional",innerType:e})}const Ao=g("ZodNullable",(e,n)=>{Ic.init(e,n),L.init(e,n),e._zod.processJSONSchema=(r,i,t)=>vu(e,r,i,t),e.unwrap=()=>e._zod.def.innerType});function jt(e){return new Ao({type:"nullable",innerType:e})}function Rd(e){return xt(jt(e))}const Vo=g("ZodDefault",(e,n)=>{zc.init(e,n),L.init(e,n),e._zod.processJSONSchema=(r,i,t)=>$u(e,r,i,t),e.unwrap=()=>e._zod.def.innerType,e.removeDefault=e.unwrap});function Zo(e,n){return new Vo({type:"default",innerType:e,get defaultValue(){return typeof n=="function"?n():Jt(n)}})}const Bo=g("ZodPrefault",(e,n)=>{Nc.init(e,n),L.init(e,n),e._zod.processJSONSchema=(r,i,t)=>bu(e,r,i,t),e.unwrap=()=>e._zod.def.innerType});function Mo(e,n){return new Bo({type:"prefault",innerType:e,get defaultValue(){return typeof n=="function"?n():Jt(n)}})}const Bn=g("ZodNonOptional",(e,n)=>{Dc.init(e,n),L.init(e,n),e._zod.processJSONSchema=(r,i,t)=>hu(e,r,i,t),e.unwrap=()=>e._zod.def.innerType});function Fo(e,n){return new Bn({type:"nonoptional",innerType:e,..._(n)})}const Lo=g("ZodSuccess",(e,n)=>{jc.init(e,n),L.init(e,n),e._zod.processJSONSchema=(r,i,t)=>iu(e,r,i),e.unwrap=()=>e._zod.def.innerType});function Jd(e){return new Lo({type:"success",innerType:e})}const Ro=g("ZodCatch",(e,n)=>{Oc.init(e,n),L.init(e,n),e._zod.processJSONSchema=(r,i,t)=>_u(e,r,i,t),e.unwrap=()=>e._zod.def.innerType,e.removeCatch=e.unwrap});function Jo(e,n){return new Ro({type:"catch",innerType:e,catchValue:typeof n=="function"?n:()=>n})}const qo=g("ZodNaN",(e,n)=>{Uc.init(e,n),L.init(e,n),e._zod.processJSONSchema=(r,i,t)=>nu(e,r)});function qd(e){return js(qo,e)}const Ot=g("ZodPipe",(e,n)=>{Dr.init(e,n),L.init(e,n),e._zod.processJSONSchema=(r,i,t)=>yu(e,r,i,t),e.in=n.in,e.out=n.out});function Mn(e,n){return new Ot({type:"pipe",in:e,out:n})}const Ut=g("ZodCodec",(e,n)=>{Ot.init(e,n),xr.init(e,n)});function Gd(e,n,r){return new Ut({type:"pipe",in:e,out:n,transform:r.decode,reverseTransform:r.encode})}function Wd(e){const n=e._zod.def;return new Ut({type:"pipe",in:n.out,out:n.in,transform:n.reverseTransform,reverseTransform:n.transform})}const Go=g("ZodPreprocess",(e,n)=>{Ot.init(e,n),Tc.init(e,n)}),Wo=g("ZodReadonly",(e,n)=>{Cc.init(e,n),L.init(e,n),e._zod.processJSONSchema=(r,i,t)=>ku(e,r,i,t),e.unwrap=()=>e._zod.def.innerType});function Ko(e){return new Wo({type:"readonly",innerType:e})}const Xo=g("ZodTemplateLiteral",(e,n)=>{Ac.init(e,n),L.init(e,n),e._zod.processJSONSchema=(r,i,t)=>ru(e,r,i)});function Kd(e,n){return new Xo({type:"template_literal",parts:e,..._(n)})}const Yo=g("ZodLazy",(e,n)=>{Bc.init(e,n),L.init(e,n),e._zod.processJSONSchema=(r,i,t)=>wu(e,r,i,t),e.unwrap=()=>e._zod.def.getter()});function Ho(e){return new Yo({type:"lazy",getter:e})}const Qo=g("ZodPromise",(e,n)=>{Zc.init(e,n),L.init(e,n),e._zod.processJSONSchema=(r,i,t)=>Su(e,r,i,t),e.unwrap=()=>e._zod.def.innerType});function Xd(e){return new Qo({type:"promise",innerType:e})}const ei=g("ZodFunction",(e,n)=>{Vc.init(e,n),L.init(e,n),e._zod.processJSONSchema=(r,i,t)=>lu(e,r)});function Fn(e){return new ei({type:"function",input:Array.isArray(e==null?void 0:e.input)?No(e==null?void 0:e.input):(e==null?void 0:e.input)??Et(Ze()),output:(e==null?void 0:e.output)??Ze()})}const Tt=g("ZodCustom",(e,n)=>{Mc.init(e,n),L.init(e,n),e._zod.processJSONSchema=(r,i,t)=>au(e,r)});function Yd(e){const n=new H({check:"custom"});return n._zod.check=e,n}function Hd(e,n){return Ts(Tt,e??(()=>!0),n)}function ti(e,n={}){return Cs(Tt,e,n)}function ni(e,n){return Ps(e,n)}const Qd=Vs,em=Zs;function tm(e,n={}){const r=new Tt({type:"custom",check:"custom",fn:i=>i instanceof e,abort:!0,..._(n)});return r._zod.bag.Class=e,r._zod.check=i=>{i.value instanceof e||i.issues.push({code:"invalid_type",expected:e.name,input:i.value,inst:r,path:[...r._zod.def.path??[]]})},r}const nm=(...e)=>Bs({Codec:Ut,Boolean:It,String:_t},...e);function rm(e){const n=Ho(()=>Pn([yt(e),mo(),fo(),ho(),Et(n),Do(yt(),n)]));return n}function om(e,n){return new Go({type:"pipe",in:Vn(e),out:n})}const D_=Object.freeze(Object.defineProperty({__proto__:null,ZodAny:$o,ZodArray:ko,ZodBase64:Nn,ZodBase64URL:Dn,ZodBigInt:zt,ZodBigIntFormat:Un,ZodBoolean:It,ZodCIDRv4:zn,ZodCIDRv6:En,ZodCUID:bn,ZodCUID2:_n,ZodCatch:Ro,ZodCodec:Ut,ZodCustom:Tt,ZodCustomStringFormat:Ye,ZodDate:Cn,ZodDefault:Vo,ZodDiscriminatedUnion:wo,ZodE164:xn,ZodEmail:vn,ZodEmoji:hn,ZodEnum:Qe,ZodExactOptional:Co,ZodFile:Uo,ZodFunction:ei,ZodGUID:kt,ZodIPv4:wn,ZodIPv6:In,ZodIntersection:Io,ZodJWT:jn,ZodKSUID:Sn,ZodLazy:Yo,ZodLiteral:Oo,ZodMAC:uo,ZodMap:xo,ZodNaN:qo,ZodNanoID:$n,ZodNever:_o,ZodNonOptional:Bn,ZodNull:vo,ZodNullable:Ao,ZodNumber:wt,ZodNumberFormat:Ve,ZodObject:Nt,ZodOptional:Zn,ZodPipe:Ot,ZodPrefault:Bo,ZodPreprocess:Go,ZodPromise:Qo,ZodReadonly:Wo,ZodRecord:He,ZodSet:jo,ZodString:_t,ZodStringFormat:X,ZodSuccess:Lo,ZodSymbol:po,ZodTemplateLiteral:Xo,ZodTransform:To,ZodTuple:Eo,ZodType:L,ZodULID:yn,ZodURL:St,ZodUUID:ye,ZodUndefined:go,ZodUnion:Dt,ZodUnknown:bo,ZodVoid:yo,ZodXID:kn,ZodXor:So,_ZodString:gn,_default:Zo,_function:Fn,any:Nd,array:Et,base64:dd,base64url:md,bigint:Sd,boolean:fo,catch:Jo,check:Yd,cidrv4:sd,cidrv6:ud,codec:Gd,cuid:td,cuid2:nd,custom:Hd,date:xd,describe:Qd,discriminatedUnion:Pd,e164:fd,email:Ju,emoji:Qu,enum:An,exactOptional:Po,file:Ld,float32:bd,float64:_d,function:Fn,guid:qu,hash:$d,hex:hd,hostname:vd,httpUrl:Hu,instanceof:tm,int:On,int32:yd,int64:wd,intersection:zo,invertCodec:Wd,ipv4:ad,ipv6:cd,json:rm,jwt:pd,keyof:jd,ksuid:id,lazy:Ho,literal:Fd,looseObject:Td,looseRecord:Vd,mac:ld,map:Zd,meta:em,nan:qd,nanoid:ed,nativeEnum:Md,never:Tn,nonoptional:Fo,null:ho,nullable:jt,nullish:Rd,number:mo,object:Od,optional:xt,partialRecord:Ad,pipe:Mn,prefault:Mo,preprocess:om,promise:Xd,readonly:Ko,record:Do,refine:ti,set:Bd,strictObject:Ud,string:yt,stringFormat:gd,stringbool:nm,success:Jd,superRefine:ni,symbol:zd,templateLiteral:Kd,transform:Vn,tuple:No,uint32:kd,uint64:Id,ulid:rd,undefined:Ed,union:Pn,unknown:Ze,url:Yu,uuid:Gu,uuidv4:Wu,uuidv6:Ku,uuidv7:Xu,void:Dd,xid:od,xor:Cd},Symbol.toStringTag,{value:"Module"})),x_={invalid_type:"invalid_type",too_big:"too_big",too_small:"too_small",invalid_format:"invalid_format",not_multiple_of:"not_multiple_of",unrecognized_keys:"unrecognized_keys",invalid_union:"invalid_union",invalid_key:"invalid_key",invalid_element:"invalid_element",invalid_value:"invalid_value",custom:"custom"};function j_(e){re({customError:e})}function O_(){return re().customError}var ri;ri||(ri={});const x={...D_,...E_,iso:xu},U_=new Set(["$schema","$ref","$defs","definitions","$id","id","$comment","$anchor","$vocabulary","$dynamicRef","$dynamicAnchor","type","enum","const","anyOf","oneOf","allOf","not","properties","required","additionalProperties","patternProperties","propertyNames","minProperties","maxProperties","items","prefixItems","additionalItems","minItems","maxItems","uniqueItems","contains","minContains","maxContains","minLength","maxLength","pattern","format","minimum","maximum","exclusiveMinimum","exclusiveMaximum","multipleOf","description","default","contentEncoding","contentMediaType","contentSchema","unevaluatedItems","unevaluatedProperties","if","then","else","dependentSchemas","dependentRequired","nullable","readOnly"]);function T_(e,n){const r=e.$schema;return r==="https://json-schema.org/draft/2020-12/schema"?"draft-2020-12":r==="http://json-schema.org/draft-07/schema#"?"draft-7":r==="http://json-schema.org/draft-04/schema#"?"draft-4":n??"draft-2020-12"}function C_(e,n){if(!e.startsWith("#"))throw new Error("External $ref is not supported, only local refs (#/...) are allowed");const r=e.slice(1).split("/").filter(Boolean);if(r.length===0)return n.rootSchema;const i=n.version==="draft-2020-12"?"$defs":"definitions";if(r[0]===i){const t=r[1];if(!t||!n.defs[t])throw new Error(`Reference not found: ${e}`);return n.defs[t]}throw new Error(`Reference not found: ${e}`)}function im(e,n){if(e.not!==void 0){if(typeof e.not=="object"&&Object.keys(e.not).length===0)return x.never();throw new Error("not is not supported in Zod (except { not: {} } for never)")}if(e.unevaluatedItems!==void 0)throw new Error("unevaluatedItems is not supported");if(e.unevaluatedProperties!==void 0)throw new Error("unevaluatedProperties is not supported");if(e.if!==void 0||e.then!==void 0||e.else!==void 0)throw new Error("Conditional schemas (if/then/else) are not supported");if(e.dependentSchemas!==void 0||e.dependentRequired!==void 0)throw new Error("dependentSchemas and dependentRequired are not supported");if(e.$ref){const t=e.$ref;if(n.refs.has(t))return n.refs.get(t);if(n.processing.has(t))return x.lazy(()=>{if(!n.refs.has(t))throw new Error(`Circular reference not resolved: ${t}`);return n.refs.get(t)});n.processing.add(t);const o=C_(t,n),a=oe(o,n);return n.refs.set(t,a),n.processing.delete(t),a}if(e.enum!==void 0){const t=e.enum;if(n.version==="openapi-3.0"&&e.nullable===!0&&t.length===1&&t[0]===null)return x.null();if(t.length===0)return x.never();if(t.length===1)return x.literal(t[0]);if(t.every(a=>typeof a=="string"))return x.enum(t);const o=t.map(a=>x.literal(a));return o.length<2?o[0]:x.union([o[0],o[1],...o.slice(2)])}if(e.const!==void 0)return x.literal(e.const);const r=e.type;if(Array.isArray(r)){const t=r.map(o=>{const a={...e,type:o};return im(a,n)});return t.length===0?x.never():t.length===1?t[0]:x.union(t)}if(!r)return x.any();let i;switch(r){case"string":{let t=x.string();if(e.format){const o=e.format;o==="email"?t=t.check(x.email()):o==="uri"||o==="uri-reference"?t=t.check(x.url()):o==="uuid"||o==="guid"?t=t.check(x.uuid()):o==="date-time"?t=t.check(x.iso.datetime()):o==="date"?t=t.check(x.iso.date()):o==="time"?t=t.check(x.iso.time()):o==="duration"?t=t.check(x.iso.duration()):o==="ipv4"?t=t.check(x.ipv4()):o==="ipv6"?t=t.check(x.ipv6()):o==="mac"?t=t.check(x.mac()):o==="cidr"?t=t.check(x.cidrv4()):o==="cidr-v6"?t=t.check(x.cidrv6()):o==="base64"?t=t.check(x.base64()):o==="base64url"?t=t.check(x.base64url()):o==="e164"?t=t.check(x.e164()):o==="jwt"?t=t.check(x.jwt()):o==="emoji"?t=t.check(x.emoji()):o==="nanoid"?t=t.check(x.nanoid()):o==="cuid"?t=t.check(x.cuid()):o==="cuid2"?t=t.check(x.cuid2()):o==="ulid"?t=t.check(x.ulid()):o==="xid"?t=t.check(x.xid()):o==="ksuid"&&(t=t.check(x.ksuid()))}typeof e.minLength=="number"&&(t=t.min(e.minLength)),typeof e.maxLength=="number"&&(t=t.max(e.maxLength)),e.pattern&&(t=t.regex(new RegExp(e.pattern))),i=t;break}case"number":case"integer":{let t=r==="integer"?x.number().int():x.number();typeof e.minimum=="number"&&(t=t.min(e.minimum)),typeof e.maximum=="number"&&(t=t.max(e.maximum)),typeof e.exclusiveMinimum=="number"?t=t.gt(e.exclusiveMinimum):e.exclusiveMinimum===!0&&typeof e.minimum=="number"&&(t=t.gt(e.minimum)),typeof e.exclusiveMaximum=="number"?t=t.lt(e.exclusiveMaximum):e.exclusiveMaximum===!0&&typeof e.maximum=="number"&&(t=t.lt(e.maximum)),typeof e.multipleOf=="number"&&(t=t.multipleOf(e.multipleOf)),i=t;break}case"boolean":{i=x.boolean();break}case"null":{i=x.null();break}case"object":{const t={},o=e.properties||{},a=new Set(e.required||[]);for(const[u,s]of Object.entries(o)){const m=oe(s,n);t[u]=a.has(u)?m:m.optional()}if(e.propertyNames){const u=oe(e.propertyNames,n),s=e.additionalProperties&&typeof e.additionalProperties=="object"?oe(e.additionalProperties,n):x.any();if(Object.keys(t).length===0){i=x.record(u,s);break}const m=x.object(t).passthrough(),d=x.looseRecord(u,s);i=x.intersection(m,d);break}if(e.patternProperties){const u=e.patternProperties,s=Object.keys(u),m=[];for(const f of s){const p=oe(u[f],n),v=x.string().regex(new RegExp(f));m.push(x.looseRecord(v,p))}const d=[];if(Object.keys(t).length>0&&d.push(x.object(t).passthrough()),d.push(...m),d.length===0)i=x.object({}).passthrough();else if(d.length===1)i=d[0];else{let f=x.intersection(d[0],d[1]);for(let p=2;poe(u,n)),c=o&&typeof o=="object"&&!Array.isArray(o)?oe(o,n):void 0;c?i=x.tuple(a).rest(c):i=x.tuple(a),typeof e.minItems=="number"&&(i=i.check(x.minLength(e.minItems))),typeof e.maxItems=="number"&&(i=i.check(x.maxLength(e.maxItems)))}else if(Array.isArray(o)){const a=o.map(u=>oe(u,n)),c=e.additionalItems&&typeof e.additionalItems=="object"?oe(e.additionalItems,n):void 0;c?i=x.tuple(a).rest(c):i=x.tuple(a),typeof e.minItems=="number"&&(i=i.check(x.minLength(e.minItems))),typeof e.maxItems=="number"&&(i=i.check(x.maxLength(e.maxItems)))}else if(o!==void 0){const a=oe(o,n);let c=x.array(a);typeof e.minItems=="number"&&(c=c.min(e.minItems)),typeof e.maxItems=="number"&&(c=c.max(e.maxItems)),i=c}else i=x.array(x.any());break}default:throw new Error(`Unsupported type: ${r}`)}return i}function oe(e,n){if(typeof e=="boolean")return e?x.any():x.never();let r=im(e,n);const i=e.type||e.enum!==void 0||e.const!==void 0;if(e.anyOf&&Array.isArray(e.anyOf)){const c=e.anyOf.map(s=>oe(s,n)),u=x.union(c);r=i?x.intersection(r,u):u}if(e.oneOf&&Array.isArray(e.oneOf)){const c=e.oneOf.map(s=>oe(s,n)),u=x.xor(c);r=i?x.intersection(r,u):u}if(e.allOf&&Array.isArray(e.allOf))if(e.allOf.length===0)r=i?r:x.any();else{let c=i?r:oe(e.allOf[0],n);const u=i?0:1;for(let s=u;s0&&n.registry.add(r,t),e.description&&(r=r.describe(e.description)),r}function P_(e,n){if(typeof e=="boolean")return e?x.any():x.never();let r;try{r=JSON.parse(JSON.stringify(e))}catch{throw new Error("fromJSONSchema input is not valid JSON (possibly cyclic); use $defs/$ref for recursive schemas")}const i=T_(r,n==null?void 0:n.defaultTarget),t=r.$defs||r.definitions||{},o={version:i,defs:t,refs:new Map,processing:new Set,rootSchema:r,registry:(n==null?void 0:n.registry)??ve};return oe(r,o)}function A_(e){return ns(_t,e)}function V_(e){return us(wt,e)}function Z_(e){return hs(It,e)}function B_(e){return bs(zt,e)}function M_(e){return xs(Cn,e)}const F_=Object.freeze(Object.defineProperty({__proto__:null,bigint:B_,boolean:Z_,date:M_,number:V_,string:A_},Symbol.toStringTag,{value:"Module"}));re(Rc());const ee=Object.freeze(Object.defineProperty({__proto__:null,$brand:Fi,$input:Qc,$output:Hc,NEVER:Mi,TimePrecision:os,ZodAny:$o,ZodArray:ko,ZodBase64:Nn,ZodBase64URL:Dn,ZodBigInt:zt,ZodBigIntFormat:Un,ZodBoolean:It,ZodCIDRv4:zn,ZodCIDRv6:En,ZodCUID:bn,ZodCUID2:_n,ZodCatch:Ro,ZodCodec:Ut,ZodCustom:Tt,ZodCustomStringFormat:Ye,ZodDate:Cn,ZodDefault:Vo,ZodDiscriminatedUnion:wo,ZodE164:xn,ZodEmail:vn,ZodEmoji:hn,ZodEnum:Qe,ZodError:N_,ZodExactOptional:Co,ZodFile:Uo,get ZodFirstPartyTypeKind(){return ri},ZodFunction:ei,ZodGUID:kt,ZodIPv4:wn,ZodIPv6:In,ZodISODate:lo,ZodISODateTime:ao,ZodISODuration:so,ZodISOTime:co,ZodIntersection:Io,ZodIssueCode:x_,ZodJWT:jn,ZodKSUID:Sn,ZodLazy:Yo,ZodLiteral:Oo,ZodMAC:uo,ZodMap:xo,ZodNaN:qo,ZodNanoID:$n,ZodNever:_o,ZodNonOptional:Bn,ZodNull:vo,ZodNullable:Ao,ZodNumber:wt,ZodNumberFormat:Ve,ZodObject:Nt,ZodOptional:Zn,ZodPipe:Ot,ZodPrefault:Bo,ZodPreprocess:Go,ZodPromise:Qo,ZodReadonly:Wo,ZodRealError:fe,ZodRecord:He,ZodSet:jo,ZodString:_t,ZodStringFormat:X,ZodSuccess:Lo,ZodSymbol:po,ZodTemplateLiteral:Xo,ZodTransform:To,ZodTuple:Eo,ZodType:L,ZodULID:yn,ZodURL:St,ZodUUID:ye,ZodUndefined:go,ZodUnion:Dt,ZodUnknown:bo,ZodVoid:yo,ZodXID:kn,ZodXor:So,_ZodString:gn,_default:Zo,_function:Fn,any:Nd,array:Et,base64:dd,base64url:md,bigint:Sd,boolean:fo,catch:Jo,check:Yd,cidrv4:sd,cidrv6:ud,clone:pe,codec:Gd,coerce:F_,config:re,core:z_,cuid:td,cuid2:nd,custom:Hd,date:xd,decode:Au,decodeAsync:Zu,describe:Qd,discriminatedUnion:Pd,e164:fd,email:Ju,emoji:Qu,encode:Pu,encodeAsync:Vu,endsWith:cn,enum:An,exactOptional:Po,file:Ld,flattenError:or,float32:bd,float64:_d,formatError:ir,fromJSONSchema:P_,function:Fn,getErrorMap:O_,globalRegistry:ve,gt:De,gte:se,guid:qu,hash:$d,hex:hd,hostname:vd,httpUrl:Hu,includes:an,instanceof:tm,int:On,int32:yd,int64:wd,intersection:zo,invertCodec:Wd,ipv4:ad,ipv6:cd,iso:xu,json:rm,jwt:pd,keyof:jd,ksuid:id,lazy:Ho,length:vt,literal:Fd,locales:Xc,looseObject:Td,looseRecord:Vd,lowercase:rn,lt:Ne,lte:he,mac:ld,map:Zd,maxLength:gt,maxSize:Ge,meta:em,mime:sn,minLength:Ae,minSize:xe,multipleOf:qe,nan:qd,nanoid:ed,nativeEnum:Md,negative:Qr,never:Tn,nonnegative:to,nonoptional:Fo,nonpositive:eo,normalize:un,null:ho,nullable:jt,nullish:Rd,number:mo,object:Od,optional:xt,overwrite:Ie,parse:Ou,parseAsync:Uu,partialRecord:Ad,pipe:Mn,positive:Hr,prefault:Mo,preprocess:om,prettifyError:da,promise:Xd,property:no,readonly:Ko,record:Do,refine:ti,regex:nn,regexes:br,registry:jr,safeDecode:Mu,safeDecodeAsync:Lu,safeEncode:Bu,safeEncodeAsync:Fu,safeParse:Tu,safeParseAsync:Cu,set:Bd,setErrorMap:j_,size:pt,slugify:pn,startsWith:ln,strictObject:Ud,string:yt,stringFormat:gd,stringbool:nm,success:Jd,superRefine:ni,symbol:zd,templateLiteral:Kd,toJSONSchema:Iu,toLowerCase:mn,toUpperCase:fn,transform:Vn,treeifyError:sa,trim:dn,tuple:No,uint32:kd,uint64:Id,ulid:rd,undefined:Ed,union:Pn,unknown:Ze,uppercase:on,url:Yu,util:la,uuid:Gu,uuidv4:Wu,uuidv6:Ku,uuidv7:Xu,void:Dd,xid:od,xor:Cd},Symbol.toStringTag,{value:"Module"}));var L_={};globalThis.cacheMemoria_cache=L_;var R_=(e=>(e.codigo="codigo",e.excluido="excluido",e.data_hora_criacao="data_hora_criacao",e.data_hora_atualizacao="data_hora_atualizacao",e.codigo_usuario_criacao="codigo_usuario_criacao",e.codigo_usuario_atualizacao="codigo_usuario_atualizacao",e.versao="versao",e))(R_||{}),J_=(e=>(e.token="token",e))(J_||{}),q_=(e=>(e.Usuario="usuario",e.Fornecedor="fornecedor",e))(q_||{}),G_=(e=>(e["="]="=",e["!="]="!=",e[">"]=">",e[">="]=">=",e["<"]="<",e["<="]="<=",e.like="like",e.in="in",e.isNull="isNull",e))(G_||{}),W_=ee.enum(["=","!=",">",">=","<","<=","like","in","isNull"]);ee.object({coluna:ee.string(),valor:ee.any(),operador:W_,ou:ee.boolean().optional()});var K_=ee.enum([">","<",">=","<=","=","!=","in","like","∩"]),X_=/^\{[\w:]+\}$/,Y_=/^\w+(\.\w+)*$/,H_=ee.string().regex(Y_,"Coluna inválida").describe("nome da coluna ou caminho aninhado do jsonb"),Q_=ee.object({id:ee.string().describe("id da condição do filtro").regex(X_,"O id deve seguir o formato {identificador}"),coluna:H_,operador:K_,valor:ee.any().describe("valor de comparação")}),ey=e=>{let n=(e.match(/\{[\w:]+\}|\bNAO\b|\bE\b|\bOU\b|\(|\)/g)||[]).join(""),r=e.replace(/\s+/g,""),i=n.replace(/\s+/g,"");if(r!==i)return!1;let t=e.replace(/\{[\w:]+\}/g,"true").replace(/\bNAO\b/g,"!").replace(/\bE\b/g,"&&").replace(/\bOU\b/g,"||");try{return new Function(`return (${t})`)(),!0}catch{return!1}},ty=ee.object({condicoes:ee.array(Q_),formula:ee.string().refine(ey,{message:"Fórmula inválida. Use apenas referências de condições {id} ou {id:sufixo}, operadores E/OU/NAO e parênteses."})}).superRefine((e,n)=>{let r=new Set(e.condicoes.map(t=>t.id)),i=e.formula.match(/\{[\w:]+\}/g)||[];for(let t of i)r.has(t)||n.addIssue({code:"custom",path:["formula"],message:`A referência ${t} não existe em condicoes.`})}),ny=e=>ty.parse(e),ry=()=>({criarFiltroDelta:ny}),oy=(e=>(e["e-licencie"]="e-licencie",e["gov.e-licencie"]="gov.e-licencie",e))(oy||{}),iy=(e=>(e.modelo="000_modelo",e.vencida="100_vencida",e.expirado="200_expirado",e.alerta="300_alerta",e.protocoladafora="350_protocoladafora",e.protocolada="400_protocolada",e.protocoladaApenas="430_protocolada",e.protocolada_alteracao="450_protocolada",e.prazo="500_prazo",e.emitida="515_emitida",e.valida="518_valida",e.novo="520_novo",e.recebido="521_recebido",e.em_andamento="530_em_andamento",e.aguardando="530_aguardando",e.aguardandoresposta="540_aguardandoresposta",e.suspensaotemporaria="540_suspensaotemporaria",e.cancelada="550_cancelada",e.execucao="560_execucao",e.pendente="570_pendente",e.executadafora="600_executadafora",e.executada="700_executada",e.naoexecutada="701_naoexecutada",e.concluida="730_concluida",e.respondido_negado="740_respondido_negado",e.respondido_aceito="741_respondido_aceito",e.atendidoparcial="742_atendidoparcial",e.naoatendido="743_naoatendido",e.atendido="744_atendido",e.renovada="760_renovada",e.finalizada="800_finalizada",e.emitirnota="101_emitirnota",e.faturaatrasada="301_faturaatrasada",e.pagarfatura="302_pagarfatura",e.aguardandoconfirmacao="531_aguardandoconfirmacao",e.agendado="701_agendado",e.faturapaga="801_faturapaga",e.excluida="999_excluida",e.requerida="401_requerida",e.vigente="516_vigente",e.emrenovacao="402_emrenovacao",e.arquivada="801_arquivada",e.aguardando_sincronizacao="999_aguardando_sincronizacao",e.nao_conforme="710_nao_conforme",e.conforme="720_conforme",e.nao_aplicavel="730_nao_aplicavel",e.parcial="715_parcial",e))(iy||{}),ay=(e=>(e.UN="UN",e.KG="KG",e.TON="TON",e.g="g",e["M³"]="M³",e.Lt="Lt",e))(ay||{});ee.object({formato:ee.literal("decimal").default("decimal"),datum:ee.literal("EPSG:4326").default("EPSG:4326"),latitude:ee.number(),longitude:ee.number()});var ly=/^\d{2}\.\d{3}\.\d{3}\/\d{4}-\d{2}$/,cy=/^[A-Z0-9]{2}\.[A-Z0-9]{3}\.[A-Z0-9]{3}\/[A-Z0-9]{4}-\d{2}$/i,sy=Number(new Date().toISOString().slice(0,7).replace("-","")),uy=ee.string().regex(sy<202407?ly:cy).describe("Documento (CNPJ) no formato XX.XXX.XXX/XXXX-XX"),dy=ee.string().regex(/^\d{3}\.\d{3}\.\d{3}-\d{2}$/).describe("Documento (CPF) no formato XXX.XXX.XXX-XX");dy.or(uy).describe("CPF ou CNPJ");const my={install(e){e.component("EliOlaMundo",Zi),e.component("EliBotao",Jn),e.component("EliBadge",Pt),e.component("EliCartao",li),e.component("EliTabela",Ai),e.component("EliEntradaTexto",Zt),e.component("EliEntradaNumero",Wn),e.component("EliEntradaDataHora",qn),e.component("EliEntradaParagrafo",Kn),e.component("EliEntradaSelecao",Xn),e.component("EliEntradaSelecaoMultipla",Yn),e.component("EliEntradaCoordenadas",gi),e.component("EliFeedbackWidget",Vi)}};J.EliBadge=Pt,J.EliBotao=Jn,J.EliCartao=li,J.EliEntradaConfirmacao=ci,J.EliEntradaCoordenadas=gi,J.EliEntradaDataHora=qn,J.EliEntradaNumero=Wn,J.EliEntradaParagrafo=Kn,J.EliEntradaSelecao=Xn,J.EliEntradaSelecaoMultipla=Yn,J.EliEntradaTexto=Zt,J.EliFeedbackWidget=Vi,J.EliOlaMundo=Zi,J.EliTabela=Ai,J.celulaTabela=Qv,J.default=my,J.iniciarFiltroDelta=ry,Object.defineProperties(J,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})})); +Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.`)}for(const m of e.seen.entries()){const d=m[1];if(n===m[0]){o(m);continue}if(e.external){const p=(u=e.external.registry.get(m[0]))==null?void 0:u.id;if(n!==m[0]&&p){o(m);continue}}if((s=e.metadataRegistry.get(m[0]))==null?void 0:s.id){o(m);continue}if(d.cycle){o(m);continue}if(d.count>1&&e.reused==="ref"){o(m);continue}}}function Xe(e,n){var c,u,s,m;const r=e.seen.get(n);if(!r)throw new Error("Unprocessed schema. This is a bug in Zod.");const i=d=>{const f=e.seen.get(d);if(f.ref===null)return;const p=f.def??f.schema,v={...p},_=f.ref;if(f.ref=null,_){i(_);const N=e.seen.get(_),w=N.schema;if(w.$ref&&(e.target==="draft-07"||e.target==="draft-04"||e.target==="openapi-3.0")?(p.allOf=p.allOf??[],p.allOf.push(w)):Object.assign(p,w),Object.assign(p,v),d._zod.parent===_)for(const T in p)T==="$ref"||T==="allOf"||T in v||delete p[T];if(w.$ref&&N.def)for(const T in p)T==="$ref"||T==="allOf"||T in N.def&&JSON.stringify(p[T])===JSON.stringify(N.def[T])&&delete p[T]}const O=d._zod.parent;if(O&&O!==_){i(O);const N=e.seen.get(O);if(N!=null&&N.schema.$ref&&(p.$ref=N.schema.$ref,N.def))for(const w in p)w==="$ref"||w==="allOf"||w in N.def&&JSON.stringify(p[w])===JSON.stringify(N.def[w])&&delete p[w]}e.override({zodSchema:d,jsonSchema:p,path:f.path??[]})};for(const d of[...e.seen.entries()].reverse())i(d[0]);const t={};if(e.target==="draft-2020-12"?t.$schema="https://json-schema.org/draft/2020-12/schema":e.target==="draft-07"?t.$schema="http://json-schema.org/draft-07/schema#":e.target==="draft-04"?t.$schema="http://json-schema.org/draft-04/schema#":e.target,(c=e.external)!=null&&c.uri){const d=(u=e.external.registry.get(n))==null?void 0:u.id;if(!d)throw new Error("Schema is missing an `id` property");t.$id=e.external.uri(d)}Object.assign(t,r.def??r.schema);const o=(s=e.metadataRegistry.get(n))==null?void 0:s.id;o!==void 0&&t.id===o&&delete t.id;const a=((m=e.external)==null?void 0:m.defs)??{};for(const d of e.seen.entries()){const f=d[1];f.def&&f.defId&&(f.def.id===f.defId&&delete f.def.id,a[f.defId]=f.def)}e.external||Object.keys(a).length>0&&(e.target==="draft-2020-12"?t.$defs=a:t.definitions=a);try{const d=JSON.parse(JSON.stringify(t));return Object.defineProperty(d,"~standard",{value:{...n["~standard"],jsonSchema:{input:ht(n,"input",e.processors),output:ht(n,"output",e.processors)}},enumerable:!1,writable:!1}),d}catch{throw new Error("Error converting schema to JSON.")}}function se(e,n){const r=n??{seen:new Set};if(r.seen.has(e))return!1;r.seen.add(e);const i=e._zod.def;if(i.type==="transform")return!0;if(i.type==="array")return se(i.element,r);if(i.type==="set")return se(i.valueType,r);if(i.type==="lazy")return se(i.getter(),r);if(i.type==="promise"||i.type==="optional"||i.type==="nonoptional"||i.type==="nullable"||i.type==="readonly"||i.type==="default"||i.type==="prefault")return se(i.innerType,r);if(i.type==="intersection")return se(i.left,r)||se(i.right,r);if(i.type==="record"||i.type==="map")return se(i.keyType,r)||se(i.valueType,r);if(i.type==="pipe")return e._zod.traits.has("$ZodCodec")?!0:se(i.in,r)||se(i.out,r);if(i.type==="object"){for(const t in i.shape)if(se(i.shape[t],r))return!0;return!1}if(i.type==="union"){for(const t of i.options)if(se(t,r))return!0;return!1}if(i.type==="tuple"){for(const t of i.items)if(se(t,r))return!0;return!!(i.rest&&se(i.rest,r))}return!1}const Fs=(e,n={})=>r=>{const i=Ke({...r,processors:n});return K(e,i),We(i,e),Xe(i,e)},ht=(e,n,r={})=>i=>{const{libraryOptions:t,target:o}=i??{},a=Ke({...t??{},target:o,io:n,processors:r});return K(e,a),We(a,e),Xe(a,e)},ry={guid:"uuid",url:"uri",datetime:"date-time",json_string:"json-string",regex:""},Ls=(e,n,r,i)=>{const t=r;t.type="string";const{minimum:o,maximum:a,format:c,patterns:u,contentEncoding:s}=e._zod.bag;if(typeof o=="number"&&(t.minLength=o),typeof a=="number"&&(t.maxLength=a),c&&(t.format=ry[c]??c,t.format===""&&delete t.format,c==="time"&&delete t.format),s&&(t.contentEncoding=s),u&&u.size>0){const m=[...u];m.length===1?t.pattern=m[0].source:m.length>1&&(t.allOf=[...m.map(d=>({...n.target==="draft-07"||n.target==="draft-04"||n.target==="openapi-3.0"?{type:"string"}:{},pattern:d.source}))])}},Rs=(e,n,r,i)=>{const t=r,{minimum:o,maximum:a,format:c,multipleOf:u,exclusiveMaximum:s,exclusiveMinimum:m}=e._zod.bag;typeof c=="string"&&c.includes("int")?t.type="integer":t.type="number";const d=typeof m=="number"&&m>=(o??Number.NEGATIVE_INFINITY),f=typeof s=="number"&&s<=(a??Number.POSITIVE_INFINITY),p=n.target==="draft-04"||n.target==="openapi-3.0";d?p?(t.minimum=m,t.exclusiveMinimum=!0):t.exclusiveMinimum=m:typeof o=="number"&&(t.minimum=o),f?p?(t.maximum=s,t.exclusiveMaximum=!0):t.exclusiveMaximum=s:typeof a=="number"&&(t.maximum=a),typeof u=="number"&&(t.multipleOf=u)},Js=(e,n,r,i)=>{r.type="boolean"},qs=(e,n,r,i)=>{if(n.unrepresentable==="throw")throw new Error("BigInt cannot be represented in JSON Schema")},Gs=(e,n,r,i)=>{if(n.unrepresentable==="throw")throw new Error("Symbols cannot be represented in JSON Schema")},Ks=(e,n,r,i)=>{n.target==="openapi-3.0"?(r.type="string",r.nullable=!0,r.enum=[null]):r.type="null"},Ws=(e,n,r,i)=>{if(n.unrepresentable==="throw")throw new Error("Undefined cannot be represented in JSON Schema")},Xs=(e,n,r,i)=>{if(n.unrepresentable==="throw")throw new Error("Void cannot be represented in JSON Schema")},Hs=(e,n,r,i)=>{r.not={}},Ys=(e,n,r,i)=>{},Qs=(e,n,r,i)=>{},eu=(e,n,r,i)=>{if(n.unrepresentable==="throw")throw new Error("Date cannot be represented in JSON Schema")},tu=(e,n,r,i)=>{const t=e._zod.def,o=er(t.entries);o.every(a=>typeof a=="number")&&(r.type="number"),o.every(a=>typeof a=="string")&&(r.type="string"),r.enum=o},nu=(e,n,r,i)=>{const t=e._zod.def,o=[];for(const a of t.values)if(a===void 0){if(n.unrepresentable==="throw")throw new Error("Literal `undefined` cannot be represented in JSON Schema")}else if(typeof a=="bigint"){if(n.unrepresentable==="throw")throw new Error("BigInt literals cannot be represented in JSON Schema");o.push(Number(a))}else o.push(a);if(o.length!==0)if(o.length===1){const a=o[0];r.type=a===null?"null":typeof a,n.target==="draft-04"||n.target==="openapi-3.0"?r.enum=[a]:r.const=a}else o.every(a=>typeof a=="number")&&(r.type="number"),o.every(a=>typeof a=="string")&&(r.type="string"),o.every(a=>typeof a=="boolean")&&(r.type="boolean"),o.every(a=>a===null)&&(r.type="null"),r.enum=o},ru=(e,n,r,i)=>{if(n.unrepresentable==="throw")throw new Error("NaN cannot be represented in JSON Schema")},ou=(e,n,r,i)=>{const t=r,o=e._zod.pattern;if(!o)throw new Error("Pattern not found in template literal");t.type="string",t.pattern=o.source},iu=(e,n,r,i)=>{const t=r,o={type:"string",format:"binary",contentEncoding:"binary"},{minimum:a,maximum:c,mime:u}=e._zod.bag;a!==void 0&&(o.minLength=a),c!==void 0&&(o.maxLength=c),u?u.length===1?(o.contentMediaType=u[0],Object.assign(t,o)):(Object.assign(t,o),t.anyOf=u.map(s=>({contentMediaType:s}))):Object.assign(t,o)},au=(e,n,r,i)=>{r.type="boolean"},lu=(e,n,r,i)=>{if(n.unrepresentable==="throw")throw new Error("Custom types cannot be represented in JSON Schema")},cu=(e,n,r,i)=>{if(n.unrepresentable==="throw")throw new Error("Function types cannot be represented in JSON Schema")},su=(e,n,r,i)=>{if(n.unrepresentable==="throw")throw new Error("Transforms cannot be represented in JSON Schema")},uu=(e,n,r,i)=>{if(n.unrepresentable==="throw")throw new Error("Map cannot be represented in JSON Schema")},du=(e,n,r,i)=>{if(n.unrepresentable==="throw")throw new Error("Set cannot be represented in JSON Schema")},mu=(e,n,r,i)=>{const t=r,o=e._zod.def,{minimum:a,maximum:c}=e._zod.bag;typeof a=="number"&&(t.minItems=a),typeof c=="number"&&(t.maxItems=c),t.type="array",t.items=K(o.element,n,{...i,path:[...i.path,"items"]})},fu=(e,n,r,i)=>{var s;const t=r,o=e._zod.def;t.type="object",t.properties={};const a=o.shape;for(const m in a)t.properties[m]=K(a[m],n,{...i,path:[...i.path,"properties",m]});const c=new Set(Object.keys(a)),u=new Set([...c].filter(m=>{const d=o.shape[m]._zod;return n.io==="input"?d.optin===void 0:d.optout===void 0}));u.size>0&&(t.required=Array.from(u)),((s=o.catchall)==null?void 0:s._zod.def.type)==="never"?t.additionalProperties=!1:o.catchall?o.catchall&&(t.additionalProperties=K(o.catchall,n,{...i,path:[...i.path,"additionalProperties"]})):n.io==="output"&&(t.additionalProperties=!1)},ro=(e,n,r,i)=>{const t=e._zod.def,o=t.inclusive===!1,a=t.options.map((c,u)=>K(c,n,{...i,path:[...i.path,o?"oneOf":"anyOf",u]}));o?r.oneOf=a:r.anyOf=a},pu=(e,n,r,i)=>{const t=e._zod.def,o=K(t.left,n,{...i,path:[...i.path,"allOf",0]}),a=K(t.right,n,{...i,path:[...i.path,"allOf",1]}),c=s=>"allOf"in s&&Object.keys(s).length===1,u=[...c(o)?o.allOf:[o],...c(a)?a.allOf:[a]];r.allOf=u},gu=(e,n,r,i)=>{const t=r,o=e._zod.def;t.type="array";const a=n.target==="draft-2020-12"?"prefixItems":"items",c=n.target==="draft-2020-12"||n.target==="openapi-3.0"?"items":"additionalItems",u=o.items.map((f,p)=>K(f,n,{...i,path:[...i.path,a,p]})),s=o.rest?K(o.rest,n,{...i,path:[...i.path,c,...n.target==="openapi-3.0"?[o.items.length]:[]]}):null;n.target==="draft-2020-12"?(t.prefixItems=u,s&&(t.items=s)):n.target==="openapi-3.0"?(t.items={anyOf:u},s&&t.items.anyOf.push(s),t.minItems=u.length,s||(t.maxItems=u.length)):(t.items=u,s&&(t.additionalItems=s));const{minimum:m,maximum:d}=e._zod.bag;typeof m=="number"&&(t.minItems=m),typeof d=="number"&&(t.maxItems=d)},vu=(e,n,r,i)=>{const t=r,o=e._zod.def;t.type="object";const a=o.keyType,c=a._zod.bag,u=c==null?void 0:c.patterns;if(o.mode==="loose"&&u&&u.size>0){const m=K(o.valueType,n,{...i,path:[...i.path,"patternProperties","*"]});t.patternProperties={};for(const d of u)t.patternProperties[d.source]=m}else(n.target==="draft-07"||n.target==="draft-2020-12")&&(t.propertyNames=K(o.keyType,n,{...i,path:[...i.path,"propertyNames"]})),t.additionalProperties=K(o.valueType,n,{...i,path:[...i.path,"additionalProperties"]});const s=a._zod.values;if(s){const m=[...s].filter(d=>typeof d=="string"||typeof d=="number");m.length>0&&(t.required=m)}},hu=(e,n,r,i)=>{const t=e._zod.def,o=K(t.innerType,n,i),a=n.seen.get(e);n.target==="openapi-3.0"?(a.ref=t.innerType,r.nullable=!0):r.anyOf=[o,{type:"null"}]},$u=(e,n,r,i)=>{const t=e._zod.def;K(t.innerType,n,i);const o=n.seen.get(e);o.ref=t.innerType},bu=(e,n,r,i)=>{const t=e._zod.def;K(t.innerType,n,i);const o=n.seen.get(e);o.ref=t.innerType,r.default=JSON.parse(JSON.stringify(t.defaultValue))},_u=(e,n,r,i)=>{const t=e._zod.def;K(t.innerType,n,i);const o=n.seen.get(e);o.ref=t.innerType,n.io==="input"&&(r._prefault=JSON.parse(JSON.stringify(t.defaultValue)))},yu=(e,n,r,i)=>{const t=e._zod.def;K(t.innerType,n,i);const o=n.seen.get(e);o.ref=t.innerType;let a;try{a=t.catchValue(void 0)}catch{throw new Error("Dynamic catch values are not supported in JSON Schema")}r.default=a},ku=(e,n,r,i)=>{const t=e._zod.def,o=t.in._zod.traits.has("$ZodTransform"),a=n.io==="input"?o?t.out:t.in:t.out;K(a,n,i);const c=n.seen.get(e);c.ref=a},Su=(e,n,r,i)=>{const t=e._zod.def;K(t.innerType,n,i);const o=n.seen.get(e);o.ref=t.innerType,r.readOnly=!0},wu=(e,n,r,i)=>{const t=e._zod.def;K(t.innerType,n,i);const o=n.seen.get(e);o.ref=t.innerType},oo=(e,n,r,i)=>{const t=e._zod.def;K(t.innerType,n,i);const o=n.seen.get(e);o.ref=t.innerType},Iu=(e,n,r,i)=>{const t=e._zod.innerType;K(t,n,i);const o=n.seen.get(e);o.ref=t},io={string:Ls,number:Rs,boolean:Js,bigint:qs,symbol:Gs,null:Ks,undefined:Ws,void:Xs,never:Hs,any:Ys,unknown:Qs,date:eu,enum:tu,literal:nu,nan:ru,template_literal:ou,file:iu,success:au,custom:lu,function:cu,transform:su,map:uu,set:du,array:mu,object:fu,union:ro,intersection:pu,tuple:gu,record:vu,nullable:hu,nonoptional:$u,default:bu,prefault:_u,catch:yu,pipe:ku,readonly:Su,promise:wu,optional:oo,lazy:Iu};function zu(e,n){if("_idmap"in e){const i=e,t=Ke({...n,processors:io}),o={};for(const u of i._idmap.entries()){const[s,m]=u;K(m,t)}const a={},c={registry:i,uri:n==null?void 0:n.uri,defs:o};t.external=c;for(const u of i._idmap.entries()){const[s,m]=u;We(t,m),a[s]=Xe(t,m)}if(Object.keys(o).length>0){const u=t.target==="draft-2020-12"?"$defs":"definitions";a.__shared={[u]:o}}return{schemas:a}}const r=Ke({...n,processors:io});return K(e,r),We(r,e),Xe(r,e)}class oy{get metadataRegistry(){return this.ctx.metadataRegistry}get target(){return this.ctx.target}get unrepresentable(){return this.ctx.unrepresentable}get override(){return this.ctx.override}get io(){return this.ctx.io}get counter(){return this.ctx.counter}set counter(n){this.ctx.counter=n}get seen(){return this.ctx.seen}constructor(n){let r=(n==null?void 0:n.target)??"draft-2020-12";r==="draft-4"&&(r="draft-04"),r==="draft-7"&&(r="draft-07"),this.ctx=Ke({processors:io,target:r,...(n==null?void 0:n.metadata)&&{metadata:n.metadata},...(n==null?void 0:n.unrepresentable)&&{unrepresentable:n.unrepresentable},...(n==null?void 0:n.override)&&{override:n.override},...(n==null?void 0:n.io)&&{io:n.io}})}process(n,r={path:[],schemaPath:[]}){return K(n,this.ctx,r)}emit(n,r){r&&(r.cycles&&(this.ctx.cycles=r.cycles),r.reused&&(this.ctx.reused=r.reused),r.external&&(this.ctx.external=r.external)),We(this.ctx,n);const i=Xe(this.ctx,n),{"~standard":t,...o}=i;return o}}const iy=Object.freeze(Object.defineProperty({__proto__:null,$ZodAny:Wl,$ZodArray:tc,$ZodAsyncError:Te,$ZodBase64:Al,$ZodBase64URL:Bl,$ZodBigInt:Ir,$ZodBigIntFormat:Jl,$ZodBoolean:wr,$ZodCIDRv4:Cl,$ZodCIDRv6:Pl,$ZodCUID:Sl,$ZodCUID2:wl,$ZodCatch:Tc,$ZodCheck:Y,$ZodCheckBigIntFormat:Ya,$ZodCheckEndsWith:ul,$ZodCheckGreaterThan:yr,$ZodCheckIncludes:cl,$ZodCheckLengthEquals:ol,$ZodCheckLessThan:_r,$ZodCheckLowerCase:al,$ZodCheckMaxLength:nl,$ZodCheckMaxSize:Qa,$ZodCheckMimeType:fl,$ZodCheckMinLength:rl,$ZodCheckMinSize:el,$ZodCheckMultipleOf:Xa,$ZodCheckNumberFormat:Ha,$ZodCheckOverwrite:pl,$ZodCheckProperty:ml,$ZodCheckRegex:il,$ZodCheckSizeEquals:tl,$ZodCheckStartsWith:sl,$ZodCheckStringFormat:ut,$ZodCheckUpperCase:ll,$ZodCodec:jr,$ZodCustom:Fc,$ZodCustomStringFormat:Ll,$ZodDate:Ql,$ZodDefault:Ec,$ZodDiscriminatedUnion:sc,$ZodE164:Zl,$ZodEmail:bl,$ZodEmoji:yl,$ZodEncodeError:Ft,$ZodEnum:_c,$ZodError:rr,$ZodExactOptional:Ic,$ZodFile:kc,$ZodFunction:Bc,$ZodGUID:hl,$ZodIPv4:xl,$ZodIPv6:Tl,$ZodISODate:Dl,$ZodISODateTime:Nl,$ZodISODuration:Ol,$ZodISOTime:jl,$ZodIntersection:uc,$ZodJWT:Fl,$ZodKSUID:El,$ZodLazy:Mc,$ZodLiteral:yc,$ZodMAC:Ul,$ZodMap:vc,$ZodNaN:Uc,$ZodNanoID:kl,$ZodNever:Hl,$ZodNonOptional:jc,$ZodNull:Kl,$ZodNullable:zc,$ZodNumber:Sr,$ZodNumberFormat:Rl,$ZodObject:oc,$ZodObjectJIT:ic,$ZodOptional:Nr,$ZodPipe:Dr,$ZodPrefault:Dc,$ZodPreprocess:Cc,$ZodPromise:Zc,$ZodReadonly:Pc,$ZodRealError:pe,$ZodRecord:gc,$ZodRegistry:ts,$ZodSet:$c,$ZodString:dt,$ZodStringFormat:W,$ZodSuccess:xc,$ZodSymbol:ql,$ZodTemplateLiteral:Vc,$ZodTransform:Sc,$ZodTuple:Er,$ZodType:F,$ZodULID:Il,$ZodURL:_l,$ZodUUID:$l,$ZodUndefined:Gl,$ZodUnion:Xt,$ZodUnknown:Xl,$ZodVoid:Yl,$ZodXID:zl,$ZodXor:cc,$brand:Li,$constructor:g,$input:es,$output:Qc,Doc:gl,JSONSchema:Object.freeze(Object.defineProperty({__proto__:null},Symbol.toStringTag,{value:"Module"})),JSONSchemaGenerator:oy,NEVER:Fi,TimePrecision:is,_any:zs,_array:Ts,_base64:Kr,_base64url:Wr,_bigint:bs,_boolean:hs,_catch:H_,_check:Vs,_cidrv4:qr,_cidrv6:Gr,_coercedBigint:_s,_coercedBoolean:$s,_coercedDate:Os,_coercedNumber:ds,_coercedString:rs,_cuid:Br,_cuid2:Zr,_custom:Cs,_date:js,_decode:sr,_decodeAsync:dr,_default:K_,_discriminatedUnion:P_,_e164:Xr,_email:xr,_emoji:Ar,_encode:cr,_encodeAsync:ur,_endsWith:cn,_enum:F_,_file:Us,_float32:fs,_float64:ps,_gt:De,_gte:ue,_guid:en,_includes:an,_int:ms,_int32:gs,_int64:ys,_intersection:A_,_ipv4:Rr,_ipv6:Jr,_isoDate:ls,_isoDateTime:as,_isoDuration:ss,_isoTime:cs,_jwt:Hr,_ksuid:Lr,_lazy:ty,_length:gt,_literal:R_,_lowercase:rn,_lt:Ne,_lte:be,_mac:os,_map:Z_,_max:be,_maxLength:pt,_maxSize:Ge,_mime:sn,_min:ue,_minLength:Ae,_minSize:je,_multipleOf:qe,_nan:xs,_nanoid:Vr,_nativeEnum:L_,_negative:Qr,_never:Ns,_nonnegative:to,_nonoptional:W_,_nonpositive:eo,_normalize:un,_null:Is,_nullable:G_,_number:us,_optional:q_,_overwrite:Ie,_parse:ot,_parseAsync:it,_pipe:Y_,_positive:Yr,_promise:ny,_property:no,_readonly:Q_,_record:B_,_refine:Ps,_regex:nn,_safeDecode:fr,_safeDecodeAsync:gr,_safeEncode:mr,_safeEncodeAsync:pr,_safeParse:at,_safeParseAsync:lt,_set:M_,_size:ft,_slugify:pn,_startsWith:ln,_string:ns,_stringFormat:vt,_stringbool:Ms,_success:X_,_superRefine:As,_symbol:Ss,_templateLiteral:ey,_toLowerCase:mn,_toUpperCase:fn,_transform:J_,_trim:dn,_tuple:V_,_uint32:vs,_uint64:ks,_ulid:Mr,_undefined:ws,_union:U_,_unknown:Es,_uppercase:on,_url:tn,_uuid:Tr,_uuidv4:Ur,_uuidv6:Cr,_uuidv7:Pr,_void:Ds,_xid:Fr,_xor:C_,clone:ve,config:ie,createStandardJSONSchemaMethod:ht,createToJSONSchemaMethod:Fs,decode:E$,decodeAsync:D$,describe:Bs,encode:z$,encodeAsync:N$,extractDefs:We,finalize:Xe,flattenError:or,formatError:ir,globalConfig:tt,globalRegistry:$e,initializeContext:Ke,isValidBase64:kr,isValidBase64URL:Vl,isValidJWT:Ml,locales:Hc,meta:Zs,parse:ar,parseAsync:lr,prettifyError:ma,process:K,regexes:br,registry:Or,safeDecode:O$,safeDecodeAsync:T$,safeEncode:j$,safeEncodeAsync:x$,safeParse:fa,safeParseAsync:pa,toDotPath:da,toJSONSchema:zu,treeifyError:ua,util:ca,version:vl},Symbol.toStringTag,{value:"Module"})),ay=Object.freeze(Object.defineProperty({__proto__:null,endsWith:cn,gt:De,gte:ue,includes:an,length:gt,lowercase:rn,lt:Ne,lte:be,maxLength:pt,maxSize:Ge,mime:sn,minLength:Ae,minSize:je,multipleOf:qe,negative:Qr,nonnegative:to,nonpositive:eo,normalize:un,overwrite:Ie,positive:Yr,property:no,regex:nn,size:ft,slugify:pn,startsWith:ln,toLowerCase:mn,toUpperCase:fn,trim:dn,uppercase:on},Symbol.toStringTag,{value:"Module"})),ao=g("ZodISODateTime",(e,n)=>{Nl.init(e,n),X.init(e,n)});function Eu(e){return as(ao,e)}const lo=g("ZodISODate",(e,n)=>{Dl.init(e,n),X.init(e,n)});function Nu(e){return ls(lo,e)}const co=g("ZodISOTime",(e,n)=>{jl.init(e,n),X.init(e,n)});function Du(e){return cs(co,e)}const so=g("ZodISODuration",(e,n)=>{Ol.init(e,n),X.init(e,n)});function ju(e){return ss(so,e)}const Ou=Object.freeze(Object.defineProperty({__proto__:null,ZodISODate:lo,ZodISODateTime:ao,ZodISODuration:so,ZodISOTime:co,date:Nu,datetime:Eu,duration:ju,time:Du},Symbol.toStringTag,{value:"Module"})),xu=(e,n)=>{rr.init(e,n),e.name="ZodError",Object.defineProperties(e,{format:{value:r=>ir(e,r)},flatten:{value:r=>or(e,r)},addIssue:{value:r=>{e.issues.push(r),e.message=JSON.stringify(e.issues,Lt,2)}},addIssues:{value:r=>{e.issues.push(...r),e.message=JSON.stringify(e.issues,Lt,2)}},isEmpty:{get(){return e.issues.length===0}}})},ly=g("ZodError",xu),ge=g("ZodError",xu,{Parent:Error}),Tu=ot(ge),Uu=it(ge),Cu=at(ge),Pu=lt(ge),Au=cr(ge),Vu=sr(ge),Bu=ur(ge),Zu=dr(ge),Mu=mr(ge),Fu=fr(ge),Lu=pr(ge),Ru=gr(ge),Ju=new WeakMap;function $t(e,n,r){const i=Object.getPrototypeOf(e);let t=Ju.get(i);if(t||(t=new Set,Ju.set(i,t)),!t.has(n)){t.add(n);for(const o in r){const a=r[o];Object.defineProperty(i,o,{configurable:!0,enumerable:!1,get(){const c=a.bind(this);return Object.defineProperty(this,o,{configurable:!0,writable:!0,enumerable:!0,value:c}),c},set(c){Object.defineProperty(this,o,{configurable:!0,writable:!0,enumerable:!0,value:c})}})}}}const L=g("ZodType",(e,n)=>(F.init(e,n),Object.assign(e["~standard"],{jsonSchema:{input:ht(e,"input"),output:ht(e,"output")}}),e.toJSONSchema=Fs(e,{}),e.def=n,e.type=n.type,Object.defineProperty(e,"_def",{value:n}),e.parse=(r,i)=>Tu(e,r,i,{callee:e.parse}),e.safeParse=(r,i)=>Cu(e,r,i),e.parseAsync=async(r,i)=>Uu(e,r,i,{callee:e.parseAsync}),e.safeParseAsync=async(r,i)=>Pu(e,r,i),e.spa=e.safeParseAsync,e.encode=(r,i)=>Au(e,r,i),e.decode=(r,i)=>Vu(e,r,i),e.encodeAsync=async(r,i)=>Bu(e,r,i),e.decodeAsync=async(r,i)=>Zu(e,r,i),e.safeEncode=(r,i)=>Mu(e,r,i),e.safeDecode=(r,i)=>Fu(e,r,i),e.safeEncodeAsync=async(r,i)=>Lu(e,r,i),e.safeDecodeAsync=async(r,i)=>Ru(e,r,i),$t(e,"ZodType",{check(...r){const i=this.def;return this.clone(ye(i,{checks:[...i.checks??[],...r.map(t=>typeof t=="function"?{_zod:{check:t,def:{check:"custom"},onattach:[]}}:t)]}),{parent:!0})},with(...r){return this.check(...r)},clone(r,i){return ve(this,r,i)},brand(){return this},register(r,i){return r.add(this,i),this},refine(r,i){return this.check(ti(r,i))},superRefine(r,i){return this.check(ni(r,i))},overwrite(r){return this.check(Ie(r))},optional(){return Dt(this)},exactOptional(){return Po(this)},nullable(){return jt(this)},nullish(){return Dt(jt(this))},nonoptional(r){return Fo(this,r)},array(){return zt(this)},or(r){return Pn([this,r])},and(r){return zo(this,r)},transform(r){return Mn(this,Vn(r))},default(r){return Bo(this,r)},prefault(r){return Mo(this,r)},catch(r){return Jo(this,r)},pipe(r){return Mn(this,r)},readonly(){return Wo(this)},describe(r){const i=this.clone();return $e.add(i,{description:r}),i},meta(...r){if(r.length===0)return $e.get(this);const i=this.clone();return $e.add(i,r[0]),i},isOptional(){return this.safeParse(void 0).success},isNullable(){return this.safeParse(null).success},apply(r){return r(this)}}),Object.defineProperty(e,"description",{get(){var r;return(r=$e.get(e))==null?void 0:r.description},configurable:!0}),e)),gn=g("_ZodString",(e,n)=>{dt.init(e,n),L.init(e,n),e._zod.processJSONSchema=(i,t,o)=>Ls(e,i,t);const r=e._zod.bag;e.format=r.format??null,e.minLength=r.minimum??null,e.maxLength=r.maximum??null,$t(e,"_ZodString",{regex(...i){return this.check(nn(...i))},includes(...i){return this.check(an(...i))},startsWith(...i){return this.check(ln(...i))},endsWith(...i){return this.check(cn(...i))},min(...i){return this.check(Ae(...i))},max(...i){return this.check(pt(...i))},length(...i){return this.check(gt(...i))},nonempty(...i){return this.check(Ae(1,...i))},lowercase(i){return this.check(rn(i))},uppercase(i){return this.check(on(i))},trim(){return this.check(dn())},normalize(...i){return this.check(un(...i))},toLowerCase(){return this.check(mn())},toUpperCase(){return this.check(fn())},slugify(){return this.check(pn())}})}),bt=g("ZodString",(e,n)=>{dt.init(e,n),gn.init(e,n),e.email=r=>e.check(xr(vn,r)),e.url=r=>e.check(tn(kt,r)),e.jwt=r=>e.check(Hr(On,r)),e.emoji=r=>e.check(Ar(hn,r)),e.guid=r=>e.check(en(yt,r)),e.uuid=r=>e.check(Tr(ke,r)),e.uuidv4=r=>e.check(Ur(ke,r)),e.uuidv6=r=>e.check(Cr(ke,r)),e.uuidv7=r=>e.check(Pr(ke,r)),e.nanoid=r=>e.check(Vr($n,r)),e.guid=r=>e.check(en(yt,r)),e.cuid=r=>e.check(Br(bn,r)),e.cuid2=r=>e.check(Zr(_n,r)),e.ulid=r=>e.check(Mr(yn,r)),e.base64=r=>e.check(Kr(Nn,r)),e.base64url=r=>e.check(Wr(Dn,r)),e.xid=r=>e.check(Fr(kn,r)),e.ksuid=r=>e.check(Lr(Sn,r)),e.ipv4=r=>e.check(Rr(wn,r)),e.ipv6=r=>e.check(Jr(In,r)),e.cidrv4=r=>e.check(qr(zn,r)),e.cidrv6=r=>e.check(Gr(En,r)),e.e164=r=>e.check(Xr(jn,r)),e.datetime=r=>e.check(Eu(r)),e.date=r=>e.check(Nu(r)),e.time=r=>e.check(Du(r)),e.duration=r=>e.check(ju(r))});function _t(e){return ns(bt,e)}const X=g("ZodStringFormat",(e,n)=>{W.init(e,n),gn.init(e,n)}),vn=g("ZodEmail",(e,n)=>{bl.init(e,n),X.init(e,n)});function qu(e){return xr(vn,e)}const yt=g("ZodGUID",(e,n)=>{hl.init(e,n),X.init(e,n)});function Gu(e){return en(yt,e)}const ke=g("ZodUUID",(e,n)=>{$l.init(e,n),X.init(e,n)});function Ku(e){return Tr(ke,e)}function Wu(e){return Ur(ke,e)}function Xu(e){return Cr(ke,e)}function Hu(e){return Pr(ke,e)}const kt=g("ZodURL",(e,n)=>{_l.init(e,n),X.init(e,n)});function Yu(e){return tn(kt,e)}function Qu(e){return tn(kt,{protocol:hr,hostname:Ta,...b(e)})}const hn=g("ZodEmoji",(e,n)=>{yl.init(e,n),X.init(e,n)});function ed(e){return Ar(hn,e)}const $n=g("ZodNanoID",(e,n)=>{kl.init(e,n),X.init(e,n)});function td(e){return Vr($n,e)}const bn=g("ZodCUID",(e,n)=>{Sl.init(e,n),X.init(e,n)});function nd(e){return Br(bn,e)}const _n=g("ZodCUID2",(e,n)=>{wl.init(e,n),X.init(e,n)});function rd(e){return Zr(_n,e)}const yn=g("ZodULID",(e,n)=>{Il.init(e,n),X.init(e,n)});function od(e){return Mr(yn,e)}const kn=g("ZodXID",(e,n)=>{zl.init(e,n),X.init(e,n)});function id(e){return Fr(kn,e)}const Sn=g("ZodKSUID",(e,n)=>{El.init(e,n),X.init(e,n)});function ad(e){return Lr(Sn,e)}const wn=g("ZodIPv4",(e,n)=>{xl.init(e,n),X.init(e,n)});function ld(e){return Rr(wn,e)}const uo=g("ZodMAC",(e,n)=>{Ul.init(e,n),X.init(e,n)});function cd(e){return os(uo,e)}const In=g("ZodIPv6",(e,n)=>{Tl.init(e,n),X.init(e,n)});function sd(e){return Jr(In,e)}const zn=g("ZodCIDRv4",(e,n)=>{Cl.init(e,n),X.init(e,n)});function ud(e){return qr(zn,e)}const En=g("ZodCIDRv6",(e,n)=>{Pl.init(e,n),X.init(e,n)});function dd(e){return Gr(En,e)}const Nn=g("ZodBase64",(e,n)=>{Al.init(e,n),X.init(e,n)});function md(e){return Kr(Nn,e)}const Dn=g("ZodBase64URL",(e,n)=>{Bl.init(e,n),X.init(e,n)});function fd(e){return Wr(Dn,e)}const jn=g("ZodE164",(e,n)=>{Zl.init(e,n),X.init(e,n)});function pd(e){return Xr(jn,e)}const On=g("ZodJWT",(e,n)=>{Fl.init(e,n),X.init(e,n)});function gd(e){return Hr(On,e)}const He=g("ZodCustomStringFormat",(e,n)=>{Ll.init(e,n),X.init(e,n)});function vd(e,n,r={}){return vt(He,e,n,r)}function hd(e){return vt(He,"hostname",xa,e)}function $d(e){return vt(He,"hex",Ka,e)}function bd(e,n){const r=(n==null?void 0:n.enc)??"hex",i=`${e}_${r}`,t=br[i];if(!t)throw new Error(`Unrecognized hash format: ${i}`);return vt(He,i,t,n)}const St=g("ZodNumber",(e,n)=>{Sr.init(e,n),L.init(e,n),e._zod.processJSONSchema=(i,t,o)=>Rs(e,i,t),$t(e,"ZodNumber",{gt(i,t){return this.check(De(i,t))},gte(i,t){return this.check(ue(i,t))},min(i,t){return this.check(ue(i,t))},lt(i,t){return this.check(Ne(i,t))},lte(i,t){return this.check(be(i,t))},max(i,t){return this.check(be(i,t))},int(i){return this.check(xn(i))},safe(i){return this.check(xn(i))},positive(i){return this.check(De(0,i))},nonnegative(i){return this.check(ue(0,i))},negative(i){return this.check(Ne(0,i))},nonpositive(i){return this.check(be(0,i))},multipleOf(i,t){return this.check(qe(i,t))},step(i,t){return this.check(qe(i,t))},finite(){return this}});const r=e._zod.bag;e.minValue=Math.max(r.minimum??Number.NEGATIVE_INFINITY,r.exclusiveMinimum??Number.NEGATIVE_INFINITY)??null,e.maxValue=Math.min(r.maximum??Number.POSITIVE_INFINITY,r.exclusiveMaximum??Number.POSITIVE_INFINITY)??null,e.isInt=(r.format??"").includes("int")||Number.isSafeInteger(r.multipleOf??.5),e.isFinite=!0,e.format=r.format??null});function mo(e){return us(St,e)}const Ve=g("ZodNumberFormat",(e,n)=>{Rl.init(e,n),St.init(e,n)});function xn(e){return ms(Ve,e)}function _d(e){return fs(Ve,e)}function yd(e){return ps(Ve,e)}function kd(e){return gs(Ve,e)}function Sd(e){return vs(Ve,e)}const wt=g("ZodBoolean",(e,n)=>{wr.init(e,n),L.init(e,n),e._zod.processJSONSchema=(r,i,t)=>Js(e,r,i)});function fo(e){return hs(wt,e)}const It=g("ZodBigInt",(e,n)=>{Ir.init(e,n),L.init(e,n),e._zod.processJSONSchema=(i,t,o)=>qs(e,i),e.gte=(i,t)=>e.check(ue(i,t)),e.min=(i,t)=>e.check(ue(i,t)),e.gt=(i,t)=>e.check(De(i,t)),e.gte=(i,t)=>e.check(ue(i,t)),e.min=(i,t)=>e.check(ue(i,t)),e.lt=(i,t)=>e.check(Ne(i,t)),e.lte=(i,t)=>e.check(be(i,t)),e.max=(i,t)=>e.check(be(i,t)),e.positive=i=>e.check(De(BigInt(0),i)),e.negative=i=>e.check(Ne(BigInt(0),i)),e.nonpositive=i=>e.check(be(BigInt(0),i)),e.nonnegative=i=>e.check(ue(BigInt(0),i)),e.multipleOf=(i,t)=>e.check(qe(i,t));const r=e._zod.bag;e.minValue=r.minimum??null,e.maxValue=r.maximum??null,e.format=r.format??null});function wd(e){return bs(It,e)}const Tn=g("ZodBigIntFormat",(e,n)=>{Jl.init(e,n),It.init(e,n)});function Id(e){return ys(Tn,e)}function zd(e){return ks(Tn,e)}const po=g("ZodSymbol",(e,n)=>{ql.init(e,n),L.init(e,n),e._zod.processJSONSchema=(r,i,t)=>Gs(e,r)});function Ed(e){return Ss(po,e)}const go=g("ZodUndefined",(e,n)=>{Gl.init(e,n),L.init(e,n),e._zod.processJSONSchema=(r,i,t)=>Ws(e,r)});function Nd(e){return ws(go,e)}const vo=g("ZodNull",(e,n)=>{Kl.init(e,n),L.init(e,n),e._zod.processJSONSchema=(r,i,t)=>Ks(e,r,i)});function ho(e){return Is(vo,e)}const $o=g("ZodAny",(e,n)=>{Wl.init(e,n),L.init(e,n),e._zod.processJSONSchema=(r,i,t)=>Ys()});function Dd(){return zs($o)}const bo=g("ZodUnknown",(e,n)=>{Xl.init(e,n),L.init(e,n),e._zod.processJSONSchema=(r,i,t)=>Qs()});function Be(){return Es(bo)}const _o=g("ZodNever",(e,n)=>{Hl.init(e,n),L.init(e,n),e._zod.processJSONSchema=(r,i,t)=>Hs(e,r,i)});function Un(e){return Ns(_o,e)}const yo=g("ZodVoid",(e,n)=>{Yl.init(e,n),L.init(e,n),e._zod.processJSONSchema=(r,i,t)=>Xs(e,r)});function jd(e){return Ds(yo,e)}const Cn=g("ZodDate",(e,n)=>{Ql.init(e,n),L.init(e,n),e._zod.processJSONSchema=(i,t,o)=>eu(e,i),e.min=(i,t)=>e.check(ue(i,t)),e.max=(i,t)=>e.check(be(i,t));const r=e._zod.bag;e.minDate=r.minimum?new Date(r.minimum):null,e.maxDate=r.maximum?new Date(r.maximum):null});function Od(e){return js(Cn,e)}const ko=g("ZodArray",(e,n)=>{tc.init(e,n),L.init(e,n),e._zod.processJSONSchema=(r,i,t)=>mu(e,r,i,t),e.element=n.element,$t(e,"ZodArray",{min(r,i){return this.check(Ae(r,i))},nonempty(r){return this.check(Ae(1,r))},max(r,i){return this.check(pt(r,i))},length(r,i){return this.check(gt(r,i))},unwrap(){return this.element}})});function zt(e,n){return Ts(ko,e,n)}function xd(e){const n=e._zod.def.shape;return An(Object.keys(n))}const Et=g("ZodObject",(e,n)=>{ic.init(e,n),L.init(e,n),e._zod.processJSONSchema=(r,i,t)=>fu(e,r,i,t),R(e,"shape",()=>n.shape),$t(e,"ZodObject",{keyof(){return An(Object.keys(this._zod.def.shape))},catchall(r){return this.clone({...this._zod.def,catchall:r})},passthrough(){return this.clone({...this._zod.def,catchall:Be()})},loose(){return this.clone({...this._zod.def,catchall:Be()})},strict(){return this.clone({...this._zod.def,catchall:Un()})},strip(){return this.clone({...this._zod.def,catchall:void 0})},extend(r){return ea(this,r)},safeExtend(r){return ta(this,r)},merge(r){return na(this,r)},pick(r){return Yi(this,r)},omit(r){return Qi(this,r)},partial(...r){return ra(Bn,this,r[0])},required(...r){return oa(Zn,this,r[0])}})});function Td(e,n){const r={type:"object",shape:e??{},...b(n)};return new Et(r)}function Ud(e,n){return new Et({type:"object",shape:e,catchall:Un(),...b(n)})}function Cd(e,n){return new Et({type:"object",shape:e,catchall:Be(),...b(n)})}const Nt=g("ZodUnion",(e,n)=>{Xt.init(e,n),L.init(e,n),e._zod.processJSONSchema=(r,i,t)=>ro(e,r,i,t),e.options=n.options});function Pn(e,n){return new Nt({type:"union",options:e,...b(n)})}const So=g("ZodXor",(e,n)=>{Nt.init(e,n),cc.init(e,n),e._zod.processJSONSchema=(r,i,t)=>ro(e,r,i,t),e.options=n.options});function Pd(e,n){return new So({type:"union",options:e,inclusive:!1,...b(n)})}const wo=g("ZodDiscriminatedUnion",(e,n)=>{Nt.init(e,n),sc.init(e,n)});function Ad(e,n,r){return new wo({type:"union",options:n,discriminator:e,...b(r)})}const Io=g("ZodIntersection",(e,n)=>{uc.init(e,n),L.init(e,n),e._zod.processJSONSchema=(r,i,t)=>pu(e,r,i,t)});function zo(e,n){return new Io({type:"intersection",left:e,right:n})}const Eo=g("ZodTuple",(e,n)=>{Er.init(e,n),L.init(e,n),e._zod.processJSONSchema=(r,i,t)=>gu(e,r,i,t),e.rest=r=>e.clone({...e._zod.def,rest:r})});function No(e,n,r){const i=n instanceof F,t=i?r:n,o=i?n:null;return new Eo({type:"tuple",items:e,rest:o,...b(t)})}const Ye=g("ZodRecord",(e,n)=>{gc.init(e,n),L.init(e,n),e._zod.processJSONSchema=(r,i,t)=>vu(e,r,i,t),e.keyType=n.keyType,e.valueType=n.valueType});function Do(e,n,r){return!n||!n._zod?new Ye({type:"record",keyType:_t(),valueType:e,...b(n)}):new Ye({type:"record",keyType:e,valueType:n,...b(r)})}function Vd(e,n,r){const i=ve(e);return i._zod.values=void 0,new Ye({type:"record",keyType:i,valueType:n,...b(r)})}function Bd(e,n,r){return new Ye({type:"record",keyType:e,valueType:n,mode:"loose",...b(r)})}const jo=g("ZodMap",(e,n)=>{vc.init(e,n),L.init(e,n),e._zod.processJSONSchema=(r,i,t)=>uu(e,r),e.keyType=n.keyType,e.valueType=n.valueType,e.min=(...r)=>e.check(je(...r)),e.nonempty=r=>e.check(je(1,r)),e.max=(...r)=>e.check(Ge(...r)),e.size=(...r)=>e.check(ft(...r))});function Zd(e,n,r){return new jo({type:"map",keyType:e,valueType:n,...b(r)})}const Oo=g("ZodSet",(e,n)=>{$c.init(e,n),L.init(e,n),e._zod.processJSONSchema=(r,i,t)=>du(e,r),e.min=(...r)=>e.check(je(...r)),e.nonempty=r=>e.check(je(1,r)),e.max=(...r)=>e.check(Ge(...r)),e.size=(...r)=>e.check(ft(...r))});function Md(e,n){return new Oo({type:"set",valueType:e,...b(n)})}const Qe=g("ZodEnum",(e,n)=>{_c.init(e,n),L.init(e,n),e._zod.processJSONSchema=(i,t,o)=>tu(e,i,t),e.enum=n.entries,e.options=Object.values(n.entries);const r=new Set(Object.keys(n.entries));e.extract=(i,t)=>{const o={};for(const a of i)if(r.has(a))o[a]=n.entries[a];else throw new Error(`Key ${a} not found in enum`);return new Qe({...n,checks:[],...b(t),entries:o})},e.exclude=(i,t)=>{const o={...n.entries};for(const a of i)if(r.has(a))delete o[a];else throw new Error(`Key ${a} not found in enum`);return new Qe({...n,checks:[],...b(t),entries:o})}});function An(e,n){const r=Array.isArray(e)?Object.fromEntries(e.map(i=>[i,i])):e;return new Qe({type:"enum",entries:r,...b(n)})}function Fd(e,n){return new Qe({type:"enum",entries:e,...b(n)})}const xo=g("ZodLiteral",(e,n)=>{yc.init(e,n),L.init(e,n),e._zod.processJSONSchema=(r,i,t)=>nu(e,r,i),e.values=new Set(n.values),Object.defineProperty(e,"value",{get(){if(n.values.length>1)throw new Error("This schema contains multiple valid literal values. Use `.values` instead.");return n.values[0]}})});function Ld(e,n){return new xo({type:"literal",values:Array.isArray(e)?e:[e],...b(n)})}const To=g("ZodFile",(e,n)=>{kc.init(e,n),L.init(e,n),e._zod.processJSONSchema=(r,i,t)=>iu(e,r,i),e.min=(r,i)=>e.check(je(r,i)),e.max=(r,i)=>e.check(Ge(r,i)),e.mime=(r,i)=>e.check(sn(Array.isArray(r)?r:[r],i))});function Rd(e){return Us(To,e)}const Uo=g("ZodTransform",(e,n)=>{Sc.init(e,n),L.init(e,n),e._zod.processJSONSchema=(r,i,t)=>su(e,r),e._zod.parse=(r,i)=>{if(i.direction==="backward")throw new Ft(e.constructor.name);r.addIssue=o=>{if(typeof o=="string")r.issues.push(Le(o,r.value,n));else{const a=o;a.fatal&&(a.continue=!1),a.code??(a.code="custom"),a.input??(a.input=r.value),a.inst??(a.inst=e),r.issues.push(Le(a))}};const t=n.transform(r.value,r);return t instanceof Promise?t.then(o=>(r.value=o,r.fallback=!0,r)):(r.value=t,r.fallback=!0,r)}});function Vn(e){return new Uo({type:"transform",transform:e})}const Bn=g("ZodOptional",(e,n)=>{Nr.init(e,n),L.init(e,n),e._zod.processJSONSchema=(r,i,t)=>oo(e,r,i,t),e.unwrap=()=>e._zod.def.innerType});function Dt(e){return new Bn({type:"optional",innerType:e})}const Co=g("ZodExactOptional",(e,n)=>{Ic.init(e,n),L.init(e,n),e._zod.processJSONSchema=(r,i,t)=>oo(e,r,i,t),e.unwrap=()=>e._zod.def.innerType});function Po(e){return new Co({type:"optional",innerType:e})}const Ao=g("ZodNullable",(e,n)=>{zc.init(e,n),L.init(e,n),e._zod.processJSONSchema=(r,i,t)=>hu(e,r,i,t),e.unwrap=()=>e._zod.def.innerType});function jt(e){return new Ao({type:"nullable",innerType:e})}function Jd(e){return Dt(jt(e))}const Vo=g("ZodDefault",(e,n)=>{Ec.init(e,n),L.init(e,n),e._zod.processJSONSchema=(r,i,t)=>bu(e,r,i,t),e.unwrap=()=>e._zod.def.innerType,e.removeDefault=e.unwrap});function Bo(e,n){return new Vo({type:"default",innerType:e,get defaultValue(){return typeof n=="function"?n():Jt(n)}})}const Zo=g("ZodPrefault",(e,n)=>{Dc.init(e,n),L.init(e,n),e._zod.processJSONSchema=(r,i,t)=>_u(e,r,i,t),e.unwrap=()=>e._zod.def.innerType});function Mo(e,n){return new Zo({type:"prefault",innerType:e,get defaultValue(){return typeof n=="function"?n():Jt(n)}})}const Zn=g("ZodNonOptional",(e,n)=>{jc.init(e,n),L.init(e,n),e._zod.processJSONSchema=(r,i,t)=>$u(e,r,i,t),e.unwrap=()=>e._zod.def.innerType});function Fo(e,n){return new Zn({type:"nonoptional",innerType:e,...b(n)})}const Lo=g("ZodSuccess",(e,n)=>{xc.init(e,n),L.init(e,n),e._zod.processJSONSchema=(r,i,t)=>au(e,r,i),e.unwrap=()=>e._zod.def.innerType});function qd(e){return new Lo({type:"success",innerType:e})}const Ro=g("ZodCatch",(e,n)=>{Tc.init(e,n),L.init(e,n),e._zod.processJSONSchema=(r,i,t)=>yu(e,r,i,t),e.unwrap=()=>e._zod.def.innerType,e.removeCatch=e.unwrap});function Jo(e,n){return new Ro({type:"catch",innerType:e,catchValue:typeof n=="function"?n:()=>n})}const qo=g("ZodNaN",(e,n)=>{Uc.init(e,n),L.init(e,n),e._zod.processJSONSchema=(r,i,t)=>ru(e,r)});function Gd(e){return xs(qo,e)}const Ot=g("ZodPipe",(e,n)=>{Dr.init(e,n),L.init(e,n),e._zod.processJSONSchema=(r,i,t)=>ku(e,r,i,t),e.in=n.in,e.out=n.out});function Mn(e,n){return new Ot({type:"pipe",in:e,out:n})}const xt=g("ZodCodec",(e,n)=>{Ot.init(e,n),jr.init(e,n)});function Kd(e,n,r){return new xt({type:"pipe",in:e,out:n,transform:r.decode,reverseTransform:r.encode})}function Wd(e){const n=e._zod.def;return new xt({type:"pipe",in:n.out,out:n.in,transform:n.reverseTransform,reverseTransform:n.transform})}const Go=g("ZodPreprocess",(e,n)=>{Ot.init(e,n),Cc.init(e,n)}),Ko=g("ZodReadonly",(e,n)=>{Pc.init(e,n),L.init(e,n),e._zod.processJSONSchema=(r,i,t)=>Su(e,r,i,t),e.unwrap=()=>e._zod.def.innerType});function Wo(e){return new Ko({type:"readonly",innerType:e})}const Xo=g("ZodTemplateLiteral",(e,n)=>{Vc.init(e,n),L.init(e,n),e._zod.processJSONSchema=(r,i,t)=>ou(e,r,i)});function Xd(e,n){return new Xo({type:"template_literal",parts:e,...b(n)})}const Ho=g("ZodLazy",(e,n)=>{Mc.init(e,n),L.init(e,n),e._zod.processJSONSchema=(r,i,t)=>Iu(e,r,i,t),e.unwrap=()=>e._zod.def.getter()});function Yo(e){return new Ho({type:"lazy",getter:e})}const Qo=g("ZodPromise",(e,n)=>{Zc.init(e,n),L.init(e,n),e._zod.processJSONSchema=(r,i,t)=>wu(e,r,i,t),e.unwrap=()=>e._zod.def.innerType});function Hd(e){return new Qo({type:"promise",innerType:e})}const ei=g("ZodFunction",(e,n)=>{Bc.init(e,n),L.init(e,n),e._zod.processJSONSchema=(r,i,t)=>cu(e,r)});function Fn(e){return new ei({type:"function",input:Array.isArray(e==null?void 0:e.input)?No(e==null?void 0:e.input):(e==null?void 0:e.input)??zt(Be()),output:(e==null?void 0:e.output)??Be()})}const Tt=g("ZodCustom",(e,n)=>{Fc.init(e,n),L.init(e,n),e._zod.processJSONSchema=(r,i,t)=>lu(e,r)});function Yd(e){const n=new Y({check:"custom"});return n._zod.check=e,n}function Qd(e,n){return Cs(Tt,e??(()=>!0),n)}function ti(e,n={}){return Ps(Tt,e,n)}function ni(e,n){return As(e,n)}const em=Bs,tm=Zs;function nm(e,n={}){const r=new Tt({type:"custom",check:"custom",fn:i=>i instanceof e,abort:!0,...b(n)});return r._zod.bag.Class=e,r._zod.check=i=>{i.value instanceof e||i.issues.push({code:"invalid_type",expected:e.name,input:i.value,inst:r,path:[...r._zod.def.path??[]]})},r}const rm=(...e)=>Ms({Codec:xt,Boolean:wt,String:bt},...e);function om(e){const n=Yo(()=>Pn([_t(e),mo(),fo(),ho(),zt(n),Do(_t(),n)]));return n}function im(e,n){return new Go({type:"pipe",in:Vn(e),out:n})}const cy=Object.freeze(Object.defineProperty({__proto__:null,ZodAny:$o,ZodArray:ko,ZodBase64:Nn,ZodBase64URL:Dn,ZodBigInt:It,ZodBigIntFormat:Tn,ZodBoolean:wt,ZodCIDRv4:zn,ZodCIDRv6:En,ZodCUID:bn,ZodCUID2:_n,ZodCatch:Ro,ZodCodec:xt,ZodCustom:Tt,ZodCustomStringFormat:He,ZodDate:Cn,ZodDefault:Vo,ZodDiscriminatedUnion:wo,ZodE164:jn,ZodEmail:vn,ZodEmoji:hn,ZodEnum:Qe,ZodExactOptional:Co,ZodFile:To,ZodFunction:ei,ZodGUID:yt,ZodIPv4:wn,ZodIPv6:In,ZodIntersection:Io,ZodJWT:On,ZodKSUID:Sn,ZodLazy:Ho,ZodLiteral:xo,ZodMAC:uo,ZodMap:jo,ZodNaN:qo,ZodNanoID:$n,ZodNever:_o,ZodNonOptional:Zn,ZodNull:vo,ZodNullable:Ao,ZodNumber:St,ZodNumberFormat:Ve,ZodObject:Et,ZodOptional:Bn,ZodPipe:Ot,ZodPrefault:Zo,ZodPreprocess:Go,ZodPromise:Qo,ZodReadonly:Ko,ZodRecord:Ye,ZodSet:Oo,ZodString:bt,ZodStringFormat:X,ZodSuccess:Lo,ZodSymbol:po,ZodTemplateLiteral:Xo,ZodTransform:Uo,ZodTuple:Eo,ZodType:L,ZodULID:yn,ZodURL:kt,ZodUUID:ke,ZodUndefined:go,ZodUnion:Nt,ZodUnknown:bo,ZodVoid:yo,ZodXID:kn,ZodXor:So,_ZodString:gn,_default:Bo,_function:Fn,any:Dd,array:zt,base64:md,base64url:fd,bigint:wd,boolean:fo,catch:Jo,check:Yd,cidrv4:ud,cidrv6:dd,codec:Kd,cuid:nd,cuid2:rd,custom:Qd,date:Od,describe:em,discriminatedUnion:Ad,e164:pd,email:qu,emoji:ed,enum:An,exactOptional:Po,file:Rd,float32:_d,float64:yd,function:Fn,guid:Gu,hash:bd,hex:$d,hostname:hd,httpUrl:Qu,instanceof:nm,int:xn,int32:kd,int64:Id,intersection:zo,invertCodec:Wd,ipv4:ld,ipv6:sd,json:om,jwt:gd,keyof:xd,ksuid:ad,lazy:Yo,literal:Ld,looseObject:Cd,looseRecord:Bd,mac:cd,map:Zd,meta:tm,nan:Gd,nanoid:td,nativeEnum:Fd,never:Un,nonoptional:Fo,null:ho,nullable:jt,nullish:Jd,number:mo,object:Td,optional:Dt,partialRecord:Vd,pipe:Mn,prefault:Mo,preprocess:im,promise:Hd,readonly:Wo,record:Do,refine:ti,set:Md,strictObject:Ud,string:_t,stringFormat:vd,stringbool:rm,success:qd,superRefine:ni,symbol:Ed,templateLiteral:Xd,transform:Vn,tuple:No,uint32:Sd,uint64:zd,ulid:od,undefined:Nd,union:Pn,unknown:Be,url:Yu,uuid:Ku,uuidv4:Wu,uuidv6:Xu,uuidv7:Hu,void:jd,xid:id,xor:Pd},Symbol.toStringTag,{value:"Module"})),sy={invalid_type:"invalid_type",too_big:"too_big",too_small:"too_small",invalid_format:"invalid_format",not_multiple_of:"not_multiple_of",unrecognized_keys:"unrecognized_keys",invalid_union:"invalid_union",invalid_key:"invalid_key",invalid_element:"invalid_element",invalid_value:"invalid_value",custom:"custom"};function uy(e){ie({customError:e})}function dy(){return ie().customError}var ri;ri||(ri={});const x={...cy,...ay,iso:Ou},my=new Set(["$schema","$ref","$defs","definitions","$id","id","$comment","$anchor","$vocabulary","$dynamicRef","$dynamicAnchor","type","enum","const","anyOf","oneOf","allOf","not","properties","required","additionalProperties","patternProperties","propertyNames","minProperties","maxProperties","items","prefixItems","additionalItems","minItems","maxItems","uniqueItems","contains","minContains","maxContains","minLength","maxLength","pattern","format","minimum","maximum","exclusiveMinimum","exclusiveMaximum","multipleOf","description","default","contentEncoding","contentMediaType","contentSchema","unevaluatedItems","unevaluatedProperties","if","then","else","dependentSchemas","dependentRequired","nullable","readOnly"]);function fy(e,n){const r=e.$schema;return r==="https://json-schema.org/draft/2020-12/schema"?"draft-2020-12":r==="http://json-schema.org/draft-07/schema#"?"draft-7":r==="http://json-schema.org/draft-04/schema#"?"draft-4":n??"draft-2020-12"}function py(e,n){if(!e.startsWith("#"))throw new Error("External $ref is not supported, only local refs (#/...) are allowed");const r=e.slice(1).split("/").filter(Boolean);if(r.length===0)return n.rootSchema;const i=n.version==="draft-2020-12"?"$defs":"definitions";if(r[0]===i){const t=r[1];if(!t||!n.defs[t])throw new Error(`Reference not found: ${e}`);return n.defs[t]}throw new Error(`Reference not found: ${e}`)}function am(e,n){if(e.not!==void 0){if(typeof e.not=="object"&&Object.keys(e.not).length===0)return x.never();throw new Error("not is not supported in Zod (except { not: {} } for never)")}if(e.unevaluatedItems!==void 0)throw new Error("unevaluatedItems is not supported");if(e.unevaluatedProperties!==void 0)throw new Error("unevaluatedProperties is not supported");if(e.if!==void 0||e.then!==void 0||e.else!==void 0)throw new Error("Conditional schemas (if/then/else) are not supported");if(e.dependentSchemas!==void 0||e.dependentRequired!==void 0)throw new Error("dependentSchemas and dependentRequired are not supported");if(e.$ref){const t=e.$ref;if(n.refs.has(t))return n.refs.get(t);if(n.processing.has(t))return x.lazy(()=>{if(!n.refs.has(t))throw new Error(`Circular reference not resolved: ${t}`);return n.refs.get(t)});n.processing.add(t);const o=py(t,n),a=ae(o,n);return n.refs.set(t,a),n.processing.delete(t),a}if(e.enum!==void 0){const t=e.enum;if(n.version==="openapi-3.0"&&e.nullable===!0&&t.length===1&&t[0]===null)return x.null();if(t.length===0)return x.never();if(t.length===1)return x.literal(t[0]);if(t.every(a=>typeof a=="string"))return x.enum(t);const o=t.map(a=>x.literal(a));return o.length<2?o[0]:x.union([o[0],o[1],...o.slice(2)])}if(e.const!==void 0)return x.literal(e.const);const r=e.type;if(Array.isArray(r)){const t=r.map(o=>{const a={...e,type:o};return am(a,n)});return t.length===0?x.never():t.length===1?t[0]:x.union(t)}if(!r)return x.any();let i;switch(r){case"string":{let t=x.string();if(e.format){const o=e.format;o==="email"?t=t.check(x.email()):o==="uri"||o==="uri-reference"?t=t.check(x.url()):o==="uuid"||o==="guid"?t=t.check(x.uuid()):o==="date-time"?t=t.check(x.iso.datetime()):o==="date"?t=t.check(x.iso.date()):o==="time"?t=t.check(x.iso.time()):o==="duration"?t=t.check(x.iso.duration()):o==="ipv4"?t=t.check(x.ipv4()):o==="ipv6"?t=t.check(x.ipv6()):o==="mac"?t=t.check(x.mac()):o==="cidr"?t=t.check(x.cidrv4()):o==="cidr-v6"?t=t.check(x.cidrv6()):o==="base64"?t=t.check(x.base64()):o==="base64url"?t=t.check(x.base64url()):o==="e164"?t=t.check(x.e164()):o==="jwt"?t=t.check(x.jwt()):o==="emoji"?t=t.check(x.emoji()):o==="nanoid"?t=t.check(x.nanoid()):o==="cuid"?t=t.check(x.cuid()):o==="cuid2"?t=t.check(x.cuid2()):o==="ulid"?t=t.check(x.ulid()):o==="xid"?t=t.check(x.xid()):o==="ksuid"&&(t=t.check(x.ksuid()))}typeof e.minLength=="number"&&(t=t.min(e.minLength)),typeof e.maxLength=="number"&&(t=t.max(e.maxLength)),e.pattern&&(t=t.regex(new RegExp(e.pattern))),i=t;break}case"number":case"integer":{let t=r==="integer"?x.number().int():x.number();typeof e.minimum=="number"&&(t=t.min(e.minimum)),typeof e.maximum=="number"&&(t=t.max(e.maximum)),typeof e.exclusiveMinimum=="number"?t=t.gt(e.exclusiveMinimum):e.exclusiveMinimum===!0&&typeof e.minimum=="number"&&(t=t.gt(e.minimum)),typeof e.exclusiveMaximum=="number"?t=t.lt(e.exclusiveMaximum):e.exclusiveMaximum===!0&&typeof e.maximum=="number"&&(t=t.lt(e.maximum)),typeof e.multipleOf=="number"&&(t=t.multipleOf(e.multipleOf)),i=t;break}case"boolean":{i=x.boolean();break}case"null":{i=x.null();break}case"object":{const t={},o=e.properties||{},a=new Set(e.required||[]);for(const[u,s]of Object.entries(o)){const m=ae(s,n);t[u]=a.has(u)?m:m.optional()}if(e.propertyNames){const u=ae(e.propertyNames,n),s=e.additionalProperties&&typeof e.additionalProperties=="object"?ae(e.additionalProperties,n):x.any();if(Object.keys(t).length===0){i=x.record(u,s);break}const m=x.object(t).passthrough(),d=x.looseRecord(u,s);i=x.intersection(m,d);break}if(e.patternProperties){const u=e.patternProperties,s=Object.keys(u),m=[];for(const f of s){const p=ae(u[f],n),v=x.string().regex(new RegExp(f));m.push(x.looseRecord(v,p))}const d=[];if(Object.keys(t).length>0&&d.push(x.object(t).passthrough()),d.push(...m),d.length===0)i=x.object({}).passthrough();else if(d.length===1)i=d[0];else{let f=x.intersection(d[0],d[1]);for(let p=2;pae(u,n)),c=o&&typeof o=="object"&&!Array.isArray(o)?ae(o,n):void 0;c?i=x.tuple(a).rest(c):i=x.tuple(a),typeof e.minItems=="number"&&(i=i.check(x.minLength(e.minItems))),typeof e.maxItems=="number"&&(i=i.check(x.maxLength(e.maxItems)))}else if(Array.isArray(o)){const a=o.map(u=>ae(u,n)),c=e.additionalItems&&typeof e.additionalItems=="object"?ae(e.additionalItems,n):void 0;c?i=x.tuple(a).rest(c):i=x.tuple(a),typeof e.minItems=="number"&&(i=i.check(x.minLength(e.minItems))),typeof e.maxItems=="number"&&(i=i.check(x.maxLength(e.maxItems)))}else if(o!==void 0){const a=ae(o,n);let c=x.array(a);typeof e.minItems=="number"&&(c=c.min(e.minItems)),typeof e.maxItems=="number"&&(c=c.max(e.maxItems)),i=c}else i=x.array(x.any());break}default:throw new Error(`Unsupported type: ${r}`)}return i}function ae(e,n){if(typeof e=="boolean")return e?x.any():x.never();let r=am(e,n);const i=e.type||e.enum!==void 0||e.const!==void 0;if(e.anyOf&&Array.isArray(e.anyOf)){const c=e.anyOf.map(s=>ae(s,n)),u=x.union(c);r=i?x.intersection(r,u):u}if(e.oneOf&&Array.isArray(e.oneOf)){const c=e.oneOf.map(s=>ae(s,n)),u=x.xor(c);r=i?x.intersection(r,u):u}if(e.allOf&&Array.isArray(e.allOf))if(e.allOf.length===0)r=i?r:x.any();else{let c=i?r:ae(e.allOf[0],n);const u=i?0:1;for(let s=u;s0&&n.registry.add(r,t),e.description&&(r=r.describe(e.description)),r}function gy(e,n){if(typeof e=="boolean")return e?x.any():x.never();let r;try{r=JSON.parse(JSON.stringify(e))}catch{throw new Error("fromJSONSchema input is not valid JSON (possibly cyclic); use $defs/$ref for recursive schemas")}const i=fy(r,n==null?void 0:n.defaultTarget),t=r.$defs||r.definitions||{},o={version:i,defs:t,refs:new Map,processing:new Set,rootSchema:r,registry:(n==null?void 0:n.registry)??$e};return ae(r,o)}function vy(e){return rs(bt,e)}function hy(e){return ds(St,e)}function $y(e){return $s(wt,e)}function by(e){return _s(It,e)}function _y(e){return Os(Cn,e)}const yy=Object.freeze(Object.defineProperty({__proto__:null,bigint:by,boolean:$y,date:_y,number:hy,string:vy},Symbol.toStringTag,{value:"Module"}));ie(Jc());const ee=Object.freeze(Object.defineProperty({__proto__:null,$brand:Li,$input:es,$output:Qc,NEVER:Fi,TimePrecision:is,ZodAny:$o,ZodArray:ko,ZodBase64:Nn,ZodBase64URL:Dn,ZodBigInt:It,ZodBigIntFormat:Tn,ZodBoolean:wt,ZodCIDRv4:zn,ZodCIDRv6:En,ZodCUID:bn,ZodCUID2:_n,ZodCatch:Ro,ZodCodec:xt,ZodCustom:Tt,ZodCustomStringFormat:He,ZodDate:Cn,ZodDefault:Vo,ZodDiscriminatedUnion:wo,ZodE164:jn,ZodEmail:vn,ZodEmoji:hn,ZodEnum:Qe,ZodError:ly,ZodExactOptional:Co,ZodFile:To,get ZodFirstPartyTypeKind(){return ri},ZodFunction:ei,ZodGUID:yt,ZodIPv4:wn,ZodIPv6:In,ZodISODate:lo,ZodISODateTime:ao,ZodISODuration:so,ZodISOTime:co,ZodIntersection:Io,ZodIssueCode:sy,ZodJWT:On,ZodKSUID:Sn,ZodLazy:Ho,ZodLiteral:xo,ZodMAC:uo,ZodMap:jo,ZodNaN:qo,ZodNanoID:$n,ZodNever:_o,ZodNonOptional:Zn,ZodNull:vo,ZodNullable:Ao,ZodNumber:St,ZodNumberFormat:Ve,ZodObject:Et,ZodOptional:Bn,ZodPipe:Ot,ZodPrefault:Zo,ZodPreprocess:Go,ZodPromise:Qo,ZodReadonly:Ko,ZodRealError:ge,ZodRecord:Ye,ZodSet:Oo,ZodString:bt,ZodStringFormat:X,ZodSuccess:Lo,ZodSymbol:po,ZodTemplateLiteral:Xo,ZodTransform:Uo,ZodTuple:Eo,ZodType:L,ZodULID:yn,ZodURL:kt,ZodUUID:ke,ZodUndefined:go,ZodUnion:Nt,ZodUnknown:bo,ZodVoid:yo,ZodXID:kn,ZodXor:So,_ZodString:gn,_default:Bo,_function:Fn,any:Dd,array:zt,base64:md,base64url:fd,bigint:wd,boolean:fo,catch:Jo,check:Yd,cidrv4:ud,cidrv6:dd,clone:ve,codec:Kd,coerce:yy,config:ie,core:iy,cuid:nd,cuid2:rd,custom:Qd,date:Od,decode:Vu,decodeAsync:Zu,describe:em,discriminatedUnion:Ad,e164:pd,email:qu,emoji:ed,encode:Au,encodeAsync:Bu,endsWith:cn,enum:An,exactOptional:Po,file:Rd,flattenError:or,float32:_d,float64:yd,formatError:ir,fromJSONSchema:gy,function:Fn,getErrorMap:dy,globalRegistry:$e,gt:De,gte:ue,guid:Gu,hash:bd,hex:$d,hostname:hd,httpUrl:Qu,includes:an,instanceof:nm,int:xn,int32:kd,int64:Id,intersection:zo,invertCodec:Wd,ipv4:ld,ipv6:sd,iso:Ou,json:om,jwt:gd,keyof:xd,ksuid:ad,lazy:Yo,length:gt,literal:Ld,locales:Hc,looseObject:Cd,looseRecord:Bd,lowercase:rn,lt:Ne,lte:be,mac:cd,map:Zd,maxLength:pt,maxSize:Ge,meta:tm,mime:sn,minLength:Ae,minSize:je,multipleOf:qe,nan:Gd,nanoid:td,nativeEnum:Fd,negative:Qr,never:Un,nonnegative:to,nonoptional:Fo,nonpositive:eo,normalize:un,null:ho,nullable:jt,nullish:Jd,number:mo,object:Td,optional:Dt,overwrite:Ie,parse:Tu,parseAsync:Uu,partialRecord:Vd,pipe:Mn,positive:Yr,prefault:Mo,preprocess:im,prettifyError:ma,promise:Hd,property:no,readonly:Wo,record:Do,refine:ti,regex:nn,regexes:br,registry:Or,safeDecode:Fu,safeDecodeAsync:Ru,safeEncode:Mu,safeEncodeAsync:Lu,safeParse:Cu,safeParseAsync:Pu,set:Md,setErrorMap:uy,size:ft,slugify:pn,startsWith:ln,strictObject:Ud,string:_t,stringFormat:vd,stringbool:rm,success:qd,superRefine:ni,symbol:Ed,templateLiteral:Xd,toJSONSchema:zu,toLowerCase:mn,toUpperCase:fn,transform:Vn,treeifyError:ua,trim:dn,tuple:No,uint32:Sd,uint64:zd,ulid:od,undefined:Nd,union:Pn,unknown:Be,uppercase:on,url:Yu,util:ca,uuid:Ku,uuidv4:Wu,uuidv6:Xu,uuidv7:Hu,void:jd,xid:id,xor:Pd},Symbol.toStringTag,{value:"Module"}));var ky={};globalThis.cacheMemoria_cache=ky;var Sy=(e=>(e.codigo="codigo",e.excluido="excluido",e.data_hora_criacao="data_hora_criacao",e.data_hora_atualizacao="data_hora_atualizacao",e.codigo_usuario_criacao="codigo_usuario_criacao",e.codigo_usuario_atualizacao="codigo_usuario_atualizacao",e.versao="versao",e))(Sy||{}),wy=(e=>(e.token="token",e))(wy||{}),Iy=(e=>(e.Usuario="usuario",e.Fornecedor="fornecedor",e))(Iy||{}),zy=(e=>(e["="]="=",e["!="]="!=",e[">"]=">",e[">="]=">=",e["<"]="<",e["<="]="<=",e.like="like",e.in="in",e.isNull="isNull",e))(zy||{}),Ey=ee.enum(["=","!=",">",">=","<","<=","like","in","isNull"]);ee.object({coluna:ee.string(),valor:ee.any(),operador:Ey,ou:ee.boolean().optional()});var Ny=ee.enum([">","<",">=","<=","=","!=","in","like","∩"]),Dy=/^\{[\w:]+\}$/,jy=/^\w+(\.\w+)*$/,Oy=ee.string().regex(jy,"Coluna inválida").describe("nome da coluna ou caminho aninhado do jsonb"),xy=ee.object({id:ee.string().describe("id da condição do filtro").regex(Dy,"O id deve seguir o formato {identificador}"),coluna:Oy,operador:Ny,valor:ee.any().describe("valor de comparação")}),Ty=e=>{let n=(e.match(/\{[\w:]+\}|\bNAO\b|\bE\b|\bOU\b|\(|\)/g)||[]).join(""),r=e.replace(/\s+/g,""),i=n.replace(/\s+/g,"");if(r!==i)return!1;let t=e.replace(/\{[\w:]+\}/g,"true").replace(/\bNAO\b/g,"!").replace(/\bE\b/g,"&&").replace(/\bOU\b/g,"||");try{return new Function(`return (${t})`)(),!0}catch{return!1}},Uy=ee.object({condicoes:ee.array(xy),formula:ee.string().refine(Ty,{message:"Fórmula inválida. Use apenas referências de condições {id} ou {id:sufixo}, operadores E/OU/NAO e parênteses."})}).superRefine((e,n)=>{let r=new Set(e.condicoes.map(t=>t.id)),i=e.formula.match(/\{[\w:]+\}/g)||[];for(let t of i)r.has(t)||n.addIssue({code:"custom",path:["formula"],message:`A referência ${t} não existe em condicoes.`})}),Cy=e=>Uy.parse(e),Py=()=>({criarFiltroDelta:Cy}),Ay=(e=>(e["e-licencie"]="e-licencie",e["gov.e-licencie"]="gov.e-licencie",e))(Ay||{}),Vy=(e=>(e.modelo="000_modelo",e.vencida="100_vencida",e.expirado="200_expirado",e.alerta="300_alerta",e.protocoladafora="350_protocoladafora",e.protocolada="400_protocolada",e.protocoladaApenas="430_protocolada",e.protocolada_alteracao="450_protocolada",e.prazo="500_prazo",e.emitida="515_emitida",e.valida="518_valida",e.novo="520_novo",e.recebido="521_recebido",e.em_andamento="530_em_andamento",e.aguardando="530_aguardando",e.aguardandoresposta="540_aguardandoresposta",e.suspensaotemporaria="540_suspensaotemporaria",e.cancelada="550_cancelada",e.execucao="560_execucao",e.pendente="570_pendente",e.executadafora="600_executadafora",e.executada="700_executada",e.naoexecutada="701_naoexecutada",e.concluida="730_concluida",e.respondido_negado="740_respondido_negado",e.respondido_aceito="741_respondido_aceito",e.atendidoparcial="742_atendidoparcial",e.naoatendido="743_naoatendido",e.atendido="744_atendido",e.renovada="760_renovada",e.finalizada="800_finalizada",e.emitirnota="101_emitirnota",e.faturaatrasada="301_faturaatrasada",e.pagarfatura="302_pagarfatura",e.aguardandoconfirmacao="531_aguardandoconfirmacao",e.agendado="701_agendado",e.faturapaga="801_faturapaga",e.excluida="999_excluida",e.requerida="401_requerida",e.vigente="516_vigente",e.emrenovacao="402_emrenovacao",e.arquivada="801_arquivada",e.aguardando_sincronizacao="999_aguardando_sincronizacao",e.nao_conforme="710_nao_conforme",e.conforme="720_conforme",e.nao_aplicavel="730_nao_aplicavel",e.parcial="715_parcial",e))(Vy||{}),By=(e=>(e.UN="UN",e.KG="KG",e.TON="TON",e.g="g",e["M³"]="M³",e.Lt="Lt",e))(By||{});ee.object({formato:ee.literal("decimal").default("decimal"),datum:ee.literal("EPSG:4326").default("EPSG:4326"),latitude:ee.number(),longitude:ee.number()});var Zy=/^\d{2}\.\d{3}\.\d{3}\/\d{4}-\d{2}$/,My=/^[A-Z0-9]{2}\.[A-Z0-9]{3}\.[A-Z0-9]{3}\/[A-Z0-9]{4}-\d{2}$/i,Fy=Number(new Date().toISOString().slice(0,7).replace("-","")),Ly=ee.string().regex(Fy<202407?Zy:My).describe("Documento (CNPJ) no formato XX.XXX.XXX/XXXX-XX"),Ry=ee.string().regex(/^\d{3}\.\d{3}\.\d{3}-\d{2}$/).describe("Documento (CPF) no formato XXX.XXX.XXX-XX");Ry.or(Ly).describe("CPF ou CNPJ");const Jy={install(e){e.component("EliOlaMundo",Zi),e.component("EliBotao",Jn),e.component("EliBadge",Pt),e.component("EliCartao",li),e.component("EliTabela",Vi),e.component("EliEntradaTexto",Zt),e.component("EliEntradaNumero",Kn),e.component("EliEntradaDataHora",qn),e.component("EliEntradaParagrafo",Wn),e.component("EliEntradaSelecao",Xn),e.component("EliEntradaSelecaoMultipla",Hn),e.component("EliEntradaCoordenadas",gi),e.component("EliFeedbackWidget",Bi)}};J.EliBadge=Pt,J.EliBotao=Jn,J.EliCartao=li,J.EliEntradaConfirmacao=ci,J.EliEntradaCoordenadas=gi,J.EliEntradaDataHora=qn,J.EliEntradaNumero=Kn,J.EliEntradaParagrafo=Wn,J.EliEntradaSelecao=Xn,J.EliEntradaSelecaoMultipla=Hn,J.EliEntradaTexto=Zt,J.EliFeedbackWidget=Bi,J.EliOlaMundo=Zi,J.EliTabela=Vi,J.celulaTabela=xh,J.default=Jy,J.iniciarFiltroDelta=Py,Object.defineProperties(J,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})})); diff --git a/dist/types/componentes/EliEntrada/EliEntradaDataHora.vue.d.ts b/dist/types/componentes/EliEntrada/EliEntradaDataHora.vue.d.ts deleted file mode 100644 index 8ad5da5..0000000 --- a/dist/types/componentes/EliEntrada/EliEntradaDataHora.vue.d.ts +++ /dev/null @@ -1,231 +0,0 @@ -import { type PropType } from "vue"; -import type { CampoDensidade, CampoVariante } from "../../tipos"; -import type { PadroesEntradas } from "./tiposEntradas"; -type EntradaDataHora = PadroesEntradas["dataHora"]; -type PropsAntigas = { - modo?: "data" | "dataHora"; - rotulo?: string; - placeholder?: string; - desabilitado?: boolean; - limpavel?: boolean; - erro?: boolean; - mensagensErro?: string | string[]; - dica?: string; - dicaPersistente?: boolean; - densidade?: CampoDensidade; - variante?: CampoVariante; - min?: string; - max?: string; -}; -declare const _default: typeof __VLS_export; -export default _default; -declare const __VLS_export: import("vue").DefineComponent; - default: undefined; - }; - opcoes: { - type: PropType; - required: false; - default: undefined; - }; - modelValue: { - type: PropType; - default: null; - }; - modo: { - type: PropType; - default: undefined; - }; - rotulo: { - type: StringConstructor; - default: undefined; - }; - placeholder: { - type: StringConstructor; - default: undefined; - }; - desabilitado: { - type: BooleanConstructor; - default: undefined; - }; - limpavel: { - type: BooleanConstructor; - default: undefined; - }; - erro: { - type: BooleanConstructor; - default: undefined; - }; - mensagensErro: { - type: PropType; - default: undefined; - }; - dica: { - type: StringConstructor; - default: undefined; - }; - dicaPersistente: { - type: BooleanConstructor; - default: undefined; - }; - densidade: { - type: PropType; - default: undefined; - }; - variante: { - type: PropType; - default: undefined; - }; - min: { - type: PropType; - default: undefined; - }; - max: { - type: PropType; - default: undefined; - }; -}>, { - attrs: import("vue").Attrs; - valor: import("vue").WritableComputedRef; - tipoInput: import("vue").ComputedRef<"date" | "datetime-local">; - minLocal: import("vue").ComputedRef; - maxLocal: import("vue").ComputedRef; - opcoesEfetivas: import("vue").ComputedRef<{ - rotulo: string; - placeholder?: string; - apenasLeitura?: boolean; - } & { - modo?: "data" | "dataHora"; - limpavel?: boolean; - erro?: boolean; - mensagensErro?: string | string[]; - dica?: string; - dicaPersistente?: boolean; - min?: string; - max?: string; - densidade?: import("../../tipos").CampoDensidade; - variante?: import("../../tipos").CampoVariante; - }>; - desabilitadoEfetivo: import("vue").ComputedRef; - emitCompatFocus: () => void; - emitCompatBlur: () => void; -}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, { - "update:value": (_v: string | null) => true; - input: (_v: string | null) => true; - change: (_v: string | null) => true; - "update:modelValue": (_v: string | null) => true; - alterar: (_v: string | null) => true; - foco: () => true; - desfoco: () => true; - focus: () => true; - blur: () => true; -}, string, import("vue").PublicProps, Readonly; - default: undefined; - }; - opcoes: { - type: PropType; - required: false; - default: undefined; - }; - modelValue: { - type: PropType; - default: null; - }; - modo: { - type: PropType; - default: undefined; - }; - rotulo: { - type: StringConstructor; - default: undefined; - }; - placeholder: { - type: StringConstructor; - default: undefined; - }; - desabilitado: { - type: BooleanConstructor; - default: undefined; - }; - limpavel: { - type: BooleanConstructor; - default: undefined; - }; - erro: { - type: BooleanConstructor; - default: undefined; - }; - mensagensErro: { - type: PropType; - default: undefined; - }; - dica: { - type: StringConstructor; - default: undefined; - }; - dicaPersistente: { - type: BooleanConstructor; - default: undefined; - }; - densidade: { - type: PropType; - default: undefined; - }; - variante: { - type: PropType; - default: undefined; - }; - min: { - type: PropType; - default: undefined; - }; - max: { - type: PropType; - default: undefined; - }; -}>> & Readonly<{ - onInput?: ((_v: string | null) => any) | undefined; - "onUpdate:modelValue"?: ((_v: string | null) => any) | undefined; - onBlur?: (() => any) | undefined; - "onUpdate:value"?: ((_v: string | null) => any) | undefined; - onChange?: ((_v: string | null) => any) | undefined; - onFocus?: (() => any) | undefined; - onAlterar?: ((_v: string | null) => any) | undefined; - onFoco?: (() => any) | undefined; - onDesfoco?: (() => any) | undefined; -}>, { - modo: "data" | "dataHora" | undefined; - limpavel: boolean; - erro: boolean; - mensagensErro: string | string[]; - dica: string; - dicaPersistente: boolean; - min: string | undefined; - max: string | undefined; - densidade: CampoDensidade; - variante: CampoVariante; - desabilitado: boolean; - opcoes: { - rotulo: string; - placeholder?: string; - apenasLeitura?: boolean; - } & { - modo?: "data" | "dataHora"; - limpavel?: boolean; - erro?: boolean; - mensagensErro?: string | string[]; - dica?: string; - dicaPersistente?: boolean; - min?: string; - max?: string; - densidade?: import("../../tipos").CampoDensidade; - variante?: import("../../tipos").CampoVariante; - }; - value: string | null | undefined; - modelValue: string | null; - rotulo: string; - placeholder: string; -}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>; diff --git a/dist/types/componentes/EliEntrada/EliEntradaDataHora/Calendario.vue.d.ts b/dist/types/componentes/EliEntrada/EliEntradaDataHora/Calendario.vue.d.ts new file mode 100644 index 0000000..3bbf723 --- /dev/null +++ b/dist/types/componentes/EliEntrada/EliEntradaDataHora/Calendario.vue.d.ts @@ -0,0 +1,144 @@ +import type dayjs from "dayjs"; +import { type PropType } from "vue"; +import type { CelulaCalendario } from "./useDataHora"; +import "./Calendario.css"; +declare const _default: typeof __VLS_export; +export default _default; +declare const __VLS_export: import("vue").DefineComponent>; + required: true; + }; + rotulo: { + type: StringConstructor; + required: true; + }; + modo: { + type: PropType<"data" | "dataHora">; + required: true; + }; + nomeMesAtual: { + type: StringConstructor; + required: true; + }; + anoAtual: { + type: NumberConstructor; + required: true; + }; + mesAtual: { + type: NumberConstructor; + required: true; + }; + listaAnos: { + type: PropType; + required: true; + }; + celulas: { + type: PropType; + required: true; + }; + diaSelecionado: { + type: PropType; + default: null; + }; + horaTemp: { + type: StringConstructor; + required: true; + }; + minutoTemp: { + type: StringConstructor; + required: true; + }; +}>, { + diasSemana: string[]; + MESES: string[]; + onMesSelectChange: (e: Event) => void; + onAnoSelectChange: (e: Event) => void; + onHoraInput: (e: Event) => void; + onHoraBlur: () => void; + onHoraKeydown: (e: KeyboardEvent) => void; + onMinutoInput: (e: Event) => void; + onMinutoBlur: () => void; + onMinutoKeydown: (e: KeyboardEvent) => void; +}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, { + fechar: () => true; + confirmar: () => true; + navegarMes: (_delta: number) => true; + selecionarDia: (_cell: CelulaCalendario) => true; + mudarMes: (_mes: number) => true; + mudarAno: (_ano: number) => true; + "update:horaTemp": (_v: string) => true; + "update:minutoTemp": (_v: string) => true; +}, string, import("vue").PublicProps, Readonly>; + required: true; + }; + rotulo: { + type: StringConstructor; + required: true; + }; + modo: { + type: PropType<"data" | "dataHora">; + required: true; + }; + nomeMesAtual: { + type: StringConstructor; + required: true; + }; + anoAtual: { + type: NumberConstructor; + required: true; + }; + mesAtual: { + type: NumberConstructor; + required: true; + }; + listaAnos: { + type: PropType; + required: true; + }; + celulas: { + type: PropType; + required: true; + }; + diaSelecionado: { + type: PropType; + default: null; + }; + horaTemp: { + type: StringConstructor; + required: true; + }; + minutoTemp: { + type: StringConstructor; + required: true; + }; +}>> & Readonly<{ + onFechar?: (() => any) | undefined; + onConfirmar?: (() => any) | undefined; + onNavegarMes?: ((_delta: number) => any) | undefined; + onSelecionarDia?: ((_cell: CelulaCalendario) => any) | undefined; + onMudarMes?: ((_mes: number) => any) | undefined; + onMudarAno?: ((_ano: number) => any) | undefined; + "onUpdate:horaTemp"?: ((_v: string) => any) | undefined; + "onUpdate:minutoTemp"?: ((_v: string) => any) | undefined; +}>, { + diaSelecionado: dayjs.Dayjs | null; +}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>; diff --git a/dist/types/componentes/EliEntrada/EliEntradaDataHora/calendarioHelpers.d.ts b/dist/types/componentes/EliEntrada/EliEntradaDataHora/calendarioHelpers.d.ts new file mode 100644 index 0000000..2d83b10 --- /dev/null +++ b/dist/types/componentes/EliEntrada/EliEntradaDataHora/calendarioHelpers.d.ts @@ -0,0 +1,13 @@ +import dayjs from "dayjs"; +import type { CelulaCalendario, EntradaDataHora } from "./useDataHora"; +/** + * Gera as 42 células (6 semanas) do calendário para o mês de referência. + * Preenche dias do mês anterior, atual e posterior para alinhar a grade. + */ +export declare function gerarCelulas(referencia: dayjs.Dayjs, diaSelecionado: dayjs.Dayjs | null, min?: string, max?: string): CelulaCalendario[]; +/** + * Formata um valor ISO para exibição no campo. + * @param valor - string ISO 8601 ou null + * @param modo - "data" exibe apenas a data, "dataHora" inclui hora + */ +export declare function formatarValor(valor: string | null, modo: EntradaDataHora["opcoes"]["modo"]): string; diff --git a/dist/types/componentes/EliEntrada/EliEntradaDataHora/index.vue.d.ts b/dist/types/componentes/EliEntrada/EliEntradaDataHora/index.vue.d.ts new file mode 100644 index 0000000..48bdd67 --- /dev/null +++ b/dist/types/componentes/EliEntrada/EliEntradaDataHora/index.vue.d.ts @@ -0,0 +1,700 @@ +import { type PropType } from "vue"; +import type { CampoDensidade, CampoVariante } from "../../../tipos"; +import "./EliEntradaDataHora.css"; +import type { EntradaDataHora } from "./useDataHora"; +declare const _default: typeof __VLS_export; +export default _default; +declare const __VLS_export: import("vue").DefineComponent; + default: undefined; + }; + opcoes: { + type: PropType; + required: false; + default: undefined; + }; + modelValue: { + type: PropType; + default: null; + }; + modo: { + type: PropType<"data" | "dataHora">; + default: undefined; + }; + rotulo: { + type: StringConstructor; + default: undefined; + }; + placeholder: { + type: StringConstructor; + default: undefined; + }; + desabilitado: { + type: BooleanConstructor; + default: undefined; + }; + limpavel: { + type: BooleanConstructor; + default: undefined; + }; + erro: { + type: BooleanConstructor; + default: undefined; + }; + mensagensErro: { + type: PropType; + default: undefined; + }; + dica: { + type: StringConstructor; + default: undefined; + }; + dicaPersistente: { + type: BooleanConstructor; + default: undefined; + }; + densidade: { + type: PropType; + default: undefined; + }; + variante: { + type: PropType; + default: undefined; + }; + min: { + type: PropType; + default: undefined; + }; + max: { + type: PropType; + default: undefined; + }; +}>, { + uid: number; + aberto: import("vue").Ref; + estiloPopover: import("vue").Ref, Record>; + referencia: import("vue").Ref<{ + clone: () => import("dayjs").Dayjs; + isValid: () => boolean; + year: { + (): number; + (value: number): import("dayjs").Dayjs; + }; + month: { + (): number; + (value: number): import("dayjs").Dayjs; + }; + date: { + (): number; + (value: number): import("dayjs").Dayjs; + }; + day: { + (): 0 | 1 | 2 | 3 | 4 | 5 | 6; + (value: number): import("dayjs").Dayjs; + }; + hour: { + (): number; + (value: number): import("dayjs").Dayjs; + }; + minute: { + (): number; + (value: number): import("dayjs").Dayjs; + }; + second: { + (): number; + (value: number): import("dayjs").Dayjs; + }; + millisecond: { + (): number; + (value: number): import("dayjs").Dayjs; + }; + set: (unit: import("dayjs").UnitType, value: number) => import("dayjs").Dayjs; + get: (unit: import("dayjs").UnitType) => number; + add: { + (value: number, unit?: import("dayjs").ManipulateType): import("dayjs").Dayjs; + (duration: plugin.Duration): import("dayjs").Dayjs; + }; + subtract: { + (value: number, unit?: import("dayjs").ManipulateType): import("dayjs").Dayjs; + (duration: plugin.Duration): import("dayjs").Dayjs; + }; + startOf: (unit: import("dayjs").OpUnitType) => import("dayjs").Dayjs; + endOf: (unit: import("dayjs").OpUnitType) => import("dayjs").Dayjs; + format: (template?: string) => string; + diff: (date?: import("dayjs").ConfigType, unit?: import("dayjs").QUnitType | import("dayjs").OpUnitType, float?: boolean) => number; + valueOf: () => number; + unix: () => number; + daysInMonth: () => number; + toDate: () => Date; + toJSON: () => string; + toISOString: () => string; + toString: () => string; + utcOffset: { + (): number; + (offset: number | string, keepLocalTime?: boolean): import("dayjs").Dayjs; + }; + isBefore: (date?: import("dayjs").ConfigType, unit?: import("dayjs").OpUnitType) => boolean; + isSame: (date?: import("dayjs").ConfigType, unit?: import("dayjs").OpUnitType) => boolean; + isAfter: (date?: import("dayjs").ConfigType, unit?: import("dayjs").OpUnitType) => boolean; + locale: { + (): string; + (preset: string | ILocale, object?: Partial): import("dayjs").Dayjs; + }; + isSameOrAfter: (date?: import("dayjs").ConfigType, unit?: import("dayjs").OpUnitType) => boolean; + isSameOrBefore: (date?: import("dayjs").ConfigType, unit?: import("dayjs").OpUnitType) => boolean; + fromNow: (withoutSuffix?: boolean) => string; + from: (compared: import("dayjs").ConfigType, withoutSuffix?: boolean) => string; + toNow: (withoutSuffix?: boolean) => string; + to: (compared: import("dayjs").ConfigType, withoutSuffix?: boolean) => string; + tz: (timezone?: string, keepLocalTime?: boolean) => import("dayjs").Dayjs; + offsetName: (type?: "short" | "long") => string | undefined; + utc: (keepLocalTime?: boolean) => import("dayjs").Dayjs; + local: () => import("dayjs").Dayjs; + isUTC: () => boolean; + week: { + (): number; + (value: number): import("dayjs").Dayjs; + }; + }, import("dayjs").Dayjs | { + clone: () => import("dayjs").Dayjs; + isValid: () => boolean; + year: { + (): number; + (value: number): import("dayjs").Dayjs; + }; + month: { + (): number; + (value: number): import("dayjs").Dayjs; + }; + date: { + (): number; + (value: number): import("dayjs").Dayjs; + }; + day: { + (): 0 | 1 | 2 | 3 | 4 | 5 | 6; + (value: number): import("dayjs").Dayjs; + }; + hour: { + (): number; + (value: number): import("dayjs").Dayjs; + }; + minute: { + (): number; + (value: number): import("dayjs").Dayjs; + }; + second: { + (): number; + (value: number): import("dayjs").Dayjs; + }; + millisecond: { + (): number; + (value: number): import("dayjs").Dayjs; + }; + set: (unit: import("dayjs").UnitType, value: number) => import("dayjs").Dayjs; + get: (unit: import("dayjs").UnitType) => number; + add: { + (value: number, unit?: import("dayjs").ManipulateType): import("dayjs").Dayjs; + (duration: plugin.Duration): import("dayjs").Dayjs; + }; + subtract: { + (value: number, unit?: import("dayjs").ManipulateType): import("dayjs").Dayjs; + (duration: plugin.Duration): import("dayjs").Dayjs; + }; + startOf: (unit: import("dayjs").OpUnitType) => import("dayjs").Dayjs; + endOf: (unit: import("dayjs").OpUnitType) => import("dayjs").Dayjs; + format: (template?: string) => string; + diff: (date?: import("dayjs").ConfigType, unit?: import("dayjs").QUnitType | import("dayjs").OpUnitType, float?: boolean) => number; + valueOf: () => number; + unix: () => number; + daysInMonth: () => number; + toDate: () => Date; + toJSON: () => string; + toISOString: () => string; + toString: () => string; + utcOffset: { + (): number; + (offset: number | string, keepLocalTime?: boolean): import("dayjs").Dayjs; + }; + isBefore: (date?: import("dayjs").ConfigType, unit?: import("dayjs").OpUnitType) => boolean; + isSame: (date?: import("dayjs").ConfigType, unit?: import("dayjs").OpUnitType) => boolean; + isAfter: (date?: import("dayjs").ConfigType, unit?: import("dayjs").OpUnitType) => boolean; + locale: { + (): string; + (preset: string | ILocale, object?: Partial): import("dayjs").Dayjs; + }; + isSameOrAfter: (date?: import("dayjs").ConfigType, unit?: import("dayjs").OpUnitType) => boolean; + isSameOrBefore: (date?: import("dayjs").ConfigType, unit?: import("dayjs").OpUnitType) => boolean; + fromNow: (withoutSuffix?: boolean) => string; + from: (compared: import("dayjs").ConfigType, withoutSuffix?: boolean) => string; + toNow: (withoutSuffix?: boolean) => string; + to: (compared: import("dayjs").ConfigType, withoutSuffix?: boolean) => string; + tz: (timezone?: string, keepLocalTime?: boolean) => import("dayjs").Dayjs; + offsetName: (type?: "short" | "long") => string | undefined; + utc: (keepLocalTime?: boolean) => import("dayjs").Dayjs; + local: () => import("dayjs").Dayjs; + isUTC: () => boolean; + week: { + (): number; + (value: number): import("dayjs").Dayjs; + }; + }>; + diaSelecionado: import("vue").Ref<{ + clone: () => import("dayjs").Dayjs; + isValid: () => boolean; + year: { + (): number; + (value: number): import("dayjs").Dayjs; + }; + month: { + (): number; + (value: number): import("dayjs").Dayjs; + }; + date: { + (): number; + (value: number): import("dayjs").Dayjs; + }; + day: { + (): 0 | 1 | 2 | 3 | 4 | 5 | 6; + (value: number): import("dayjs").Dayjs; + }; + hour: { + (): number; + (value: number): import("dayjs").Dayjs; + }; + minute: { + (): number; + (value: number): import("dayjs").Dayjs; + }; + second: { + (): number; + (value: number): import("dayjs").Dayjs; + }; + millisecond: { + (): number; + (value: number): import("dayjs").Dayjs; + }; + set: (unit: import("dayjs").UnitType, value: number) => import("dayjs").Dayjs; + get: (unit: import("dayjs").UnitType) => number; + add: { + (value: number, unit?: import("dayjs").ManipulateType): import("dayjs").Dayjs; + (duration: plugin.Duration): import("dayjs").Dayjs; + }; + subtract: { + (value: number, unit?: import("dayjs").ManipulateType): import("dayjs").Dayjs; + (duration: plugin.Duration): import("dayjs").Dayjs; + }; + startOf: (unit: import("dayjs").OpUnitType) => import("dayjs").Dayjs; + endOf: (unit: import("dayjs").OpUnitType) => import("dayjs").Dayjs; + format: (template?: string) => string; + diff: (date?: import("dayjs").ConfigType, unit?: import("dayjs").QUnitType | import("dayjs").OpUnitType, float?: boolean) => number; + valueOf: () => number; + unix: () => number; + daysInMonth: () => number; + toDate: () => Date; + toJSON: () => string; + toISOString: () => string; + toString: () => string; + utcOffset: { + (): number; + (offset: number | string, keepLocalTime?: boolean): import("dayjs").Dayjs; + }; + isBefore: (date?: import("dayjs").ConfigType, unit?: import("dayjs").OpUnitType) => boolean; + isSame: (date?: import("dayjs").ConfigType, unit?: import("dayjs").OpUnitType) => boolean; + isAfter: (date?: import("dayjs").ConfigType, unit?: import("dayjs").OpUnitType) => boolean; + locale: { + (): string; + (preset: string | ILocale, object?: Partial): import("dayjs").Dayjs; + }; + isSameOrAfter: (date?: import("dayjs").ConfigType, unit?: import("dayjs").OpUnitType) => boolean; + isSameOrBefore: (date?: import("dayjs").ConfigType, unit?: import("dayjs").OpUnitType) => boolean; + fromNow: (withoutSuffix?: boolean) => string; + from: (compared: import("dayjs").ConfigType, withoutSuffix?: boolean) => string; + toNow: (withoutSuffix?: boolean) => string; + to: (compared: import("dayjs").ConfigType, withoutSuffix?: boolean) => string; + tz: (timezone?: string, keepLocalTime?: boolean) => import("dayjs").Dayjs; + offsetName: (type?: "short" | "long") => string | undefined; + utc: (keepLocalTime?: boolean) => import("dayjs").Dayjs; + local: () => import("dayjs").Dayjs; + isUTC: () => boolean; + week: { + (): number; + (value: number): import("dayjs").Dayjs; + }; + } | null, import("dayjs").Dayjs | { + clone: () => import("dayjs").Dayjs; + isValid: () => boolean; + year: { + (): number; + (value: number): import("dayjs").Dayjs; + }; + month: { + (): number; + (value: number): import("dayjs").Dayjs; + }; + date: { + (): number; + (value: number): import("dayjs").Dayjs; + }; + day: { + (): 0 | 1 | 2 | 3 | 4 | 5 | 6; + (value: number): import("dayjs").Dayjs; + }; + hour: { + (): number; + (value: number): import("dayjs").Dayjs; + }; + minute: { + (): number; + (value: number): import("dayjs").Dayjs; + }; + second: { + (): number; + (value: number): import("dayjs").Dayjs; + }; + millisecond: { + (): number; + (value: number): import("dayjs").Dayjs; + }; + set: (unit: import("dayjs").UnitType, value: number) => import("dayjs").Dayjs; + get: (unit: import("dayjs").UnitType) => number; + add: { + (value: number, unit?: import("dayjs").ManipulateType): import("dayjs").Dayjs; + (duration: plugin.Duration): import("dayjs").Dayjs; + }; + subtract: { + (value: number, unit?: import("dayjs").ManipulateType): import("dayjs").Dayjs; + (duration: plugin.Duration): import("dayjs").Dayjs; + }; + startOf: (unit: import("dayjs").OpUnitType) => import("dayjs").Dayjs; + endOf: (unit: import("dayjs").OpUnitType) => import("dayjs").Dayjs; + format: (template?: string) => string; + diff: (date?: import("dayjs").ConfigType, unit?: import("dayjs").QUnitType | import("dayjs").OpUnitType, float?: boolean) => number; + valueOf: () => number; + unix: () => number; + daysInMonth: () => number; + toDate: () => Date; + toJSON: () => string; + toISOString: () => string; + toString: () => string; + utcOffset: { + (): number; + (offset: number | string, keepLocalTime?: boolean): import("dayjs").Dayjs; + }; + isBefore: (date?: import("dayjs").ConfigType, unit?: import("dayjs").OpUnitType) => boolean; + isSame: (date?: import("dayjs").ConfigType, unit?: import("dayjs").OpUnitType) => boolean; + isAfter: (date?: import("dayjs").ConfigType, unit?: import("dayjs").OpUnitType) => boolean; + locale: { + (): string; + (preset: string | ILocale, object?: Partial): import("dayjs").Dayjs; + }; + isSameOrAfter: (date?: import("dayjs").ConfigType, unit?: import("dayjs").OpUnitType) => boolean; + isSameOrBefore: (date?: import("dayjs").ConfigType, unit?: import("dayjs").OpUnitType) => boolean; + fromNow: (withoutSuffix?: boolean) => string; + from: (compared: import("dayjs").ConfigType, withoutSuffix?: boolean) => string; + toNow: (withoutSuffix?: boolean) => string; + to: (compared: import("dayjs").ConfigType, withoutSuffix?: boolean) => string; + tz: (timezone?: string, keepLocalTime?: boolean) => import("dayjs").Dayjs; + offsetName: (type?: "short" | "long") => string | undefined; + utc: (keepLocalTime?: boolean) => import("dayjs").Dayjs; + local: () => import("dayjs").Dayjs; + isUTC: () => boolean; + week: { + (): number; + (value: number): import("dayjs").Dayjs; + }; + } | null>; + horaTemp: import("vue").Ref; + minutoTemp: import("vue").Ref; + opcoesEfetivas: import("vue").ComputedRef<{ + rotulo: string; + placeholder?: string; + apenasLeitura?: boolean; + } & { + modo?: "data" | "dataHora"; + limpavel?: boolean; + erro?: boolean; + mensagensErro?: string | string[]; + dica?: string; + dicaPersistente?: boolean; + min?: string; + max?: string; + densidade?: import("../../../tipos").CampoDensidade; + variante?: import("../../../tipos").CampoVariante; + }>; + modoEfetivo: import("vue").ComputedRef<"data" | "dataHora">; + desabilitadoEfetivo: import("vue").ComputedRef; + valor: import("vue").ComputedRef; + valorFormatado: import("vue").ComputedRef; + mensagensVisiveis: import("vue").ComputedRef; + nomeMesAtual: import("vue").ComputedRef; + anoAtual: import("vue").ComputedRef; + mesAtual: import("vue").ComputedRef; + listaAnos: import("vue").ComputedRef; + mudarMes: (mes: number) => void; + mudarAno: (ano: number) => void; + celulas: import("vue").ComputedRef; + abrirSeHabilitado: () => void; + fechar: () => void; + navegarMes: (delta: number) => void; + selecionarDia: (cell: import("./useDataHora").CelulaCalendario) => void; + confirmar: () => void; + limpar: () => void; +}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, { + "update:value": (_v: string | null) => true; + input: (_v: string | null) => true; + change: (_v: string | null) => true; + "update:modelValue": (_v: string | null) => true; + alterar: (_v: string | null) => true; + foco: () => true; + desfoco: () => true; + focus: () => true; + blur: () => true; +}, string, import("vue").PublicProps, Readonly; + default: undefined; + }; + opcoes: { + type: PropType; + required: false; + default: undefined; + }; + modelValue: { + type: PropType; + default: null; + }; + modo: { + type: PropType<"data" | "dataHora">; + default: undefined; + }; + rotulo: { + type: StringConstructor; + default: undefined; + }; + placeholder: { + type: StringConstructor; + default: undefined; + }; + desabilitado: { + type: BooleanConstructor; + default: undefined; + }; + limpavel: { + type: BooleanConstructor; + default: undefined; + }; + erro: { + type: BooleanConstructor; + default: undefined; + }; + mensagensErro: { + type: PropType; + default: undefined; + }; + dica: { + type: StringConstructor; + default: undefined; + }; + dicaPersistente: { + type: BooleanConstructor; + default: undefined; + }; + densidade: { + type: PropType; + default: undefined; + }; + variante: { + type: PropType; + default: undefined; + }; + min: { + type: PropType; + default: undefined; + }; + max: { + type: PropType; + default: undefined; + }; +}>> & Readonly<{ + onInput?: ((_v: string | null) => any) | undefined; + "onUpdate:modelValue"?: ((_v: string | null) => any) | undefined; + onBlur?: (() => any) | undefined; + "onUpdate:value"?: ((_v: string | null) => any) | undefined; + onChange?: ((_v: string | null) => any) | undefined; + onFocus?: (() => any) | undefined; + onFoco?: (() => any) | undefined; + onDesfoco?: (() => any) | undefined; + onAlterar?: ((_v: string | null) => any) | undefined; +}>, { + modo: "data" | "dataHora"; + limpavel: boolean; + erro: boolean; + mensagensErro: string | string[]; + dica: string; + dicaPersistente: boolean; + min: string | undefined; + max: string | undefined; + densidade: CampoDensidade; + variante: CampoVariante; + desabilitado: boolean; + opcoes: { + rotulo: string; + placeholder?: string; + apenasLeitura?: boolean; + } & { + modo?: "data" | "dataHora"; + limpavel?: boolean; + erro?: boolean; + mensagensErro?: string | string[]; + dica?: string; + dicaPersistente?: boolean; + min?: string; + max?: string; + densidade?: import("../../../tipos").CampoDensidade; + variante?: import("../../../tipos").CampoVariante; + }; + value: string | null | undefined; + modelValue: string | null; + rotulo: string; + placeholder: string; +}, {}, { + Calendario: import("vue").DefineComponent>; + required: true; + }; + rotulo: { + type: StringConstructor; + required: true; + }; + modo: { + type: PropType<"data" | "dataHora">; + required: true; + }; + nomeMesAtual: { + type: StringConstructor; + required: true; + }; + anoAtual: { + type: NumberConstructor; + required: true; + }; + mesAtual: { + type: NumberConstructor; + required: true; + }; + listaAnos: { + type: PropType; + required: true; + }; + celulas: { + type: PropType; + required: true; + }; + diaSelecionado: { + type: PropType; + default: null; + }; + horaTemp: { + type: StringConstructor; + required: true; + }; + minutoTemp: { + type: StringConstructor; + required: true; + }; + }>, { + diasSemana: string[]; + MESES: string[]; + onMesSelectChange: (e: Event) => void; + onAnoSelectChange: (e: Event) => void; + onHoraInput: (e: Event) => void; + onHoraBlur: () => void; + onHoraKeydown: (e: KeyboardEvent) => void; + onMinutoInput: (e: Event) => void; + onMinutoBlur: () => void; + onMinutoKeydown: (e: KeyboardEvent) => void; + }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, { + fechar: () => true; + confirmar: () => true; + navegarMes: (_delta: number) => true; + selecionarDia: (_cell: import("./useDataHora").CelulaCalendario) => true; + mudarMes: (_mes: number) => true; + mudarAno: (_ano: number) => true; + "update:horaTemp": (_v: string) => true; + "update:minutoTemp": (_v: string) => true; + }, string, import("vue").PublicProps, Readonly>; + required: true; + }; + rotulo: { + type: StringConstructor; + required: true; + }; + modo: { + type: PropType<"data" | "dataHora">; + required: true; + }; + nomeMesAtual: { + type: StringConstructor; + required: true; + }; + anoAtual: { + type: NumberConstructor; + required: true; + }; + mesAtual: { + type: NumberConstructor; + required: true; + }; + listaAnos: { + type: PropType; + required: true; + }; + celulas: { + type: PropType; + required: true; + }; + diaSelecionado: { + type: PropType; + default: null; + }; + horaTemp: { + type: StringConstructor; + required: true; + }; + minutoTemp: { + type: StringConstructor; + required: true; + }; + }>> & Readonly<{ + onFechar?: (() => any) | undefined; + onConfirmar?: (() => any) | undefined; + onNavegarMes?: ((_delta: number) => any) | undefined; + onSelecionarDia?: ((_cell: import("./useDataHora").CelulaCalendario) => any) | undefined; + onMudarMes?: ((_mes: number) => any) | undefined; + onMudarAno?: ((_ano: number) => any) | undefined; + "onUpdate:horaTemp"?: ((_v: string) => any) | undefined; + "onUpdate:minutoTemp"?: ((_v: string) => any) | undefined; + }>, { + diaSelecionado: import("dayjs").Dayjs | null; + }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>; +}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>; diff --git a/dist/types/componentes/EliEntrada/EliEntradaDataHora/useDataHora.d.ts b/dist/types/componentes/EliEntrada/EliEntradaDataHora/useDataHora.d.ts new file mode 100644 index 0000000..bfde80e --- /dev/null +++ b/dist/types/componentes/EliEntrada/EliEntradaDataHora/useDataHora.d.ts @@ -0,0 +1,408 @@ +import dayjs from "dayjs"; +import "dayjs/locale/pt-br"; +import type { CampoDensidade, CampoVariante } from "../../../tipos"; +import type { PadroesEntradas } from "../tiposEntradas"; +export type EntradaDataHora = PadroesEntradas["dataHora"]; +export interface CelulaCalendario { + dia: number; + data: dayjs.Dayjs; + atual: boolean; + hoje: boolean; + selecionado: boolean; + desabilitado: boolean; +} +export declare const MESES: string[]; +export declare const diasSemana: string[]; +/** Função de emit genérica do Vue (compatível com defineComponent) */ +type EmitFn = (event: string, payload?: unknown) => void; +type Props = { + value?: string | null; + opcoes?: EntradaDataHora["opcoes"]; + modelValue?: string | null; + modo?: "data" | "dataHora"; + rotulo?: string; + placeholder?: string; + desabilitado?: boolean; + limpavel?: boolean; + erro?: boolean; + mensagensErro?: string | string[]; + dica?: string; + dicaPersistente?: boolean; + densidade?: CampoDensidade; + variante?: CampoVariante; + min?: string; + max?: string; +}; +/** Composable principal do EliEntradaDataHora. */ +export declare function useDataHora(props: Props, emit: EmitFn): { + uid: number; + aberto: import("vue").Ref; + estiloPopover: import("vue").Ref, Record>; + referencia: import("vue").Ref<{ + clone: () => dayjs.Dayjs; + isValid: () => boolean; + year: { + (): number; + (value: number): dayjs.Dayjs; + }; + month: { + (): number; + (value: number): dayjs.Dayjs; + }; + date: { + (): number; + (value: number): dayjs.Dayjs; + }; + day: { + (): 0 | 1 | 2 | 3 | 4 | 5 | 6; + (value: number): dayjs.Dayjs; + }; + hour: { + (): number; + (value: number): dayjs.Dayjs; + }; + minute: { + (): number; + (value: number): dayjs.Dayjs; + }; + second: { + (): number; + (value: number): dayjs.Dayjs; + }; + millisecond: { + (): number; + (value: number): dayjs.Dayjs; + }; + set: (unit: dayjs.UnitType, value: number) => dayjs.Dayjs; + get: (unit: dayjs.UnitType) => number; + add: { + (value: number, unit?: dayjs.ManipulateType): dayjs.Dayjs; + (duration: plugin.Duration): dayjs.Dayjs; + }; + subtract: { + (value: number, unit?: dayjs.ManipulateType): dayjs.Dayjs; + (duration: plugin.Duration): dayjs.Dayjs; + }; + startOf: (unit: dayjs.OpUnitType) => dayjs.Dayjs; + endOf: (unit: dayjs.OpUnitType) => dayjs.Dayjs; + format: (template?: string) => string; + diff: (date?: dayjs.ConfigType, unit?: dayjs.QUnitType | dayjs.OpUnitType, float?: boolean) => number; + valueOf: () => number; + unix: () => number; + daysInMonth: () => number; + toDate: () => Date; + toJSON: () => string; + toISOString: () => string; + toString: () => string; + utcOffset: { + (): number; + (offset: number | string, keepLocalTime?: boolean): dayjs.Dayjs; + }; + isBefore: (date?: dayjs.ConfigType, unit?: dayjs.OpUnitType) => boolean; + isSame: (date?: dayjs.ConfigType, unit?: dayjs.OpUnitType) => boolean; + isAfter: (date?: dayjs.ConfigType, unit?: dayjs.OpUnitType) => boolean; + locale: { + (): string; + (preset: string | ILocale, object?: Partial): dayjs.Dayjs; + }; + isSameOrAfter: (date?: dayjs.ConfigType, unit?: dayjs.OpUnitType) => boolean; + isSameOrBefore: (date?: dayjs.ConfigType, unit?: dayjs.OpUnitType) => boolean; + fromNow: (withoutSuffix?: boolean) => string; + from: (compared: dayjs.ConfigType, withoutSuffix?: boolean) => string; + toNow: (withoutSuffix?: boolean) => string; + to: (compared: dayjs.ConfigType, withoutSuffix?: boolean) => string; + tz: (timezone?: string, keepLocalTime?: boolean) => dayjs.Dayjs; + offsetName: (type?: "short" | "long") => string | undefined; + utc: (keepLocalTime?: boolean) => dayjs.Dayjs; + local: () => dayjs.Dayjs; + isUTC: () => boolean; + week: { + (): number; + (value: number): dayjs.Dayjs; + }; + }, dayjs.Dayjs | { + clone: () => dayjs.Dayjs; + isValid: () => boolean; + year: { + (): number; + (value: number): dayjs.Dayjs; + }; + month: { + (): number; + (value: number): dayjs.Dayjs; + }; + date: { + (): number; + (value: number): dayjs.Dayjs; + }; + day: { + (): 0 | 1 | 2 | 3 | 4 | 5 | 6; + (value: number): dayjs.Dayjs; + }; + hour: { + (): number; + (value: number): dayjs.Dayjs; + }; + minute: { + (): number; + (value: number): dayjs.Dayjs; + }; + second: { + (): number; + (value: number): dayjs.Dayjs; + }; + millisecond: { + (): number; + (value: number): dayjs.Dayjs; + }; + set: (unit: dayjs.UnitType, value: number) => dayjs.Dayjs; + get: (unit: dayjs.UnitType) => number; + add: { + (value: number, unit?: dayjs.ManipulateType): dayjs.Dayjs; + (duration: plugin.Duration): dayjs.Dayjs; + }; + subtract: { + (value: number, unit?: dayjs.ManipulateType): dayjs.Dayjs; + (duration: plugin.Duration): dayjs.Dayjs; + }; + startOf: (unit: dayjs.OpUnitType) => dayjs.Dayjs; + endOf: (unit: dayjs.OpUnitType) => dayjs.Dayjs; + format: (template?: string) => string; + diff: (date?: dayjs.ConfigType, unit?: dayjs.QUnitType | dayjs.OpUnitType, float?: boolean) => number; + valueOf: () => number; + unix: () => number; + daysInMonth: () => number; + toDate: () => Date; + toJSON: () => string; + toISOString: () => string; + toString: () => string; + utcOffset: { + (): number; + (offset: number | string, keepLocalTime?: boolean): dayjs.Dayjs; + }; + isBefore: (date?: dayjs.ConfigType, unit?: dayjs.OpUnitType) => boolean; + isSame: (date?: dayjs.ConfigType, unit?: dayjs.OpUnitType) => boolean; + isAfter: (date?: dayjs.ConfigType, unit?: dayjs.OpUnitType) => boolean; + locale: { + (): string; + (preset: string | ILocale, object?: Partial): dayjs.Dayjs; + }; + isSameOrAfter: (date?: dayjs.ConfigType, unit?: dayjs.OpUnitType) => boolean; + isSameOrBefore: (date?: dayjs.ConfigType, unit?: dayjs.OpUnitType) => boolean; + fromNow: (withoutSuffix?: boolean) => string; + from: (compared: dayjs.ConfigType, withoutSuffix?: boolean) => string; + toNow: (withoutSuffix?: boolean) => string; + to: (compared: dayjs.ConfigType, withoutSuffix?: boolean) => string; + tz: (timezone?: string, keepLocalTime?: boolean) => dayjs.Dayjs; + offsetName: (type?: "short" | "long") => string | undefined; + utc: (keepLocalTime?: boolean) => dayjs.Dayjs; + local: () => dayjs.Dayjs; + isUTC: () => boolean; + week: { + (): number; + (value: number): dayjs.Dayjs; + }; + }>; + diaSelecionado: import("vue").Ref<{ + clone: () => dayjs.Dayjs; + isValid: () => boolean; + year: { + (): number; + (value: number): dayjs.Dayjs; + }; + month: { + (): number; + (value: number): dayjs.Dayjs; + }; + date: { + (): number; + (value: number): dayjs.Dayjs; + }; + day: { + (): 0 | 1 | 2 | 3 | 4 | 5 | 6; + (value: number): dayjs.Dayjs; + }; + hour: { + (): number; + (value: number): dayjs.Dayjs; + }; + minute: { + (): number; + (value: number): dayjs.Dayjs; + }; + second: { + (): number; + (value: number): dayjs.Dayjs; + }; + millisecond: { + (): number; + (value: number): dayjs.Dayjs; + }; + set: (unit: dayjs.UnitType, value: number) => dayjs.Dayjs; + get: (unit: dayjs.UnitType) => number; + add: { + (value: number, unit?: dayjs.ManipulateType): dayjs.Dayjs; + (duration: plugin.Duration): dayjs.Dayjs; + }; + subtract: { + (value: number, unit?: dayjs.ManipulateType): dayjs.Dayjs; + (duration: plugin.Duration): dayjs.Dayjs; + }; + startOf: (unit: dayjs.OpUnitType) => dayjs.Dayjs; + endOf: (unit: dayjs.OpUnitType) => dayjs.Dayjs; + format: (template?: string) => string; + diff: (date?: dayjs.ConfigType, unit?: dayjs.QUnitType | dayjs.OpUnitType, float?: boolean) => number; + valueOf: () => number; + unix: () => number; + daysInMonth: () => number; + toDate: () => Date; + toJSON: () => string; + toISOString: () => string; + toString: () => string; + utcOffset: { + (): number; + (offset: number | string, keepLocalTime?: boolean): dayjs.Dayjs; + }; + isBefore: (date?: dayjs.ConfigType, unit?: dayjs.OpUnitType) => boolean; + isSame: (date?: dayjs.ConfigType, unit?: dayjs.OpUnitType) => boolean; + isAfter: (date?: dayjs.ConfigType, unit?: dayjs.OpUnitType) => boolean; + locale: { + (): string; + (preset: string | ILocale, object?: Partial): dayjs.Dayjs; + }; + isSameOrAfter: (date?: dayjs.ConfigType, unit?: dayjs.OpUnitType) => boolean; + isSameOrBefore: (date?: dayjs.ConfigType, unit?: dayjs.OpUnitType) => boolean; + fromNow: (withoutSuffix?: boolean) => string; + from: (compared: dayjs.ConfigType, withoutSuffix?: boolean) => string; + toNow: (withoutSuffix?: boolean) => string; + to: (compared: dayjs.ConfigType, withoutSuffix?: boolean) => string; + tz: (timezone?: string, keepLocalTime?: boolean) => dayjs.Dayjs; + offsetName: (type?: "short" | "long") => string | undefined; + utc: (keepLocalTime?: boolean) => dayjs.Dayjs; + local: () => dayjs.Dayjs; + isUTC: () => boolean; + week: { + (): number; + (value: number): dayjs.Dayjs; + }; + } | null, dayjs.Dayjs | { + clone: () => dayjs.Dayjs; + isValid: () => boolean; + year: { + (): number; + (value: number): dayjs.Dayjs; + }; + month: { + (): number; + (value: number): dayjs.Dayjs; + }; + date: { + (): number; + (value: number): dayjs.Dayjs; + }; + day: { + (): 0 | 1 | 2 | 3 | 4 | 5 | 6; + (value: number): dayjs.Dayjs; + }; + hour: { + (): number; + (value: number): dayjs.Dayjs; + }; + minute: { + (): number; + (value: number): dayjs.Dayjs; + }; + second: { + (): number; + (value: number): dayjs.Dayjs; + }; + millisecond: { + (): number; + (value: number): dayjs.Dayjs; + }; + set: (unit: dayjs.UnitType, value: number) => dayjs.Dayjs; + get: (unit: dayjs.UnitType) => number; + add: { + (value: number, unit?: dayjs.ManipulateType): dayjs.Dayjs; + (duration: plugin.Duration): dayjs.Dayjs; + }; + subtract: { + (value: number, unit?: dayjs.ManipulateType): dayjs.Dayjs; + (duration: plugin.Duration): dayjs.Dayjs; + }; + startOf: (unit: dayjs.OpUnitType) => dayjs.Dayjs; + endOf: (unit: dayjs.OpUnitType) => dayjs.Dayjs; + format: (template?: string) => string; + diff: (date?: dayjs.ConfigType, unit?: dayjs.QUnitType | dayjs.OpUnitType, float?: boolean) => number; + valueOf: () => number; + unix: () => number; + daysInMonth: () => number; + toDate: () => Date; + toJSON: () => string; + toISOString: () => string; + toString: () => string; + utcOffset: { + (): number; + (offset: number | string, keepLocalTime?: boolean): dayjs.Dayjs; + }; + isBefore: (date?: dayjs.ConfigType, unit?: dayjs.OpUnitType) => boolean; + isSame: (date?: dayjs.ConfigType, unit?: dayjs.OpUnitType) => boolean; + isAfter: (date?: dayjs.ConfigType, unit?: dayjs.OpUnitType) => boolean; + locale: { + (): string; + (preset: string | ILocale, object?: Partial): dayjs.Dayjs; + }; + isSameOrAfter: (date?: dayjs.ConfigType, unit?: dayjs.OpUnitType) => boolean; + isSameOrBefore: (date?: dayjs.ConfigType, unit?: dayjs.OpUnitType) => boolean; + fromNow: (withoutSuffix?: boolean) => string; + from: (compared: dayjs.ConfigType, withoutSuffix?: boolean) => string; + toNow: (withoutSuffix?: boolean) => string; + to: (compared: dayjs.ConfigType, withoutSuffix?: boolean) => string; + tz: (timezone?: string, keepLocalTime?: boolean) => dayjs.Dayjs; + offsetName: (type?: "short" | "long") => string | undefined; + utc: (keepLocalTime?: boolean) => dayjs.Dayjs; + local: () => dayjs.Dayjs; + isUTC: () => boolean; + week: { + (): number; + (value: number): dayjs.Dayjs; + }; + } | null>; + horaTemp: import("vue").Ref; + minutoTemp: import("vue").Ref; + opcoesEfetivas: import("vue").ComputedRef<{ + rotulo: string; + placeholder?: string; + apenasLeitura?: boolean; + } & { + modo?: "data" | "dataHora"; + limpavel?: boolean; + erro?: boolean; + mensagensErro?: string | string[]; + dica?: string; + dicaPersistente?: boolean; + min?: string; + max?: string; + densidade?: import("../../../tipos").CampoDensidade; + variante?: import("../../../tipos").CampoVariante; + }>; + modoEfetivo: import("vue").ComputedRef<"data" | "dataHora">; + desabilitadoEfetivo: import("vue").ComputedRef; + valor: import("vue").ComputedRef; + valorFormatado: import("vue").ComputedRef; + mensagensVisiveis: import("vue").ComputedRef; + nomeMesAtual: import("vue").ComputedRef; + anoAtual: import("vue").ComputedRef; + mesAtual: import("vue").ComputedRef; + listaAnos: import("vue").ComputedRef; + mudarMes: (mes: number) => void; + mudarAno: (ano: number) => void; + celulas: import("vue").ComputedRef; + abrirSeHabilitado: () => void; + fechar: () => void; + navegarMes: (delta: number) => void; + selecionarDia: (cell: CelulaCalendario) => void; + confirmar: () => void; + limpar: () => void; +}; +export {}; diff --git a/dist/types/componentes/EliEntrada/EliEntradaSelecao.vue.d.ts b/dist/types/componentes/EliEntrada/EliEntradaSelecao.vue.d.ts index 88aaabf..3993e92 100644 --- a/dist/types/componentes/EliEntrada/EliEntradaSelecao.vue.d.ts +++ b/dist/types/componentes/EliEntrada/EliEntradaSelecao.vue.d.ts @@ -7481,7 +7481,7 @@ declare const __VLS_export: import("vue").DefineComponent any) | undefined; "onUpdate:focused"?: ((focused: boolean) => any) | undefined; "onUpdate:modelValue"?: ((val: string) => any) | undefined; - }, "flat" | "name" | "type" | "variant" | "size" | "disabled" | "reverse" | "required" | "normalize" | "error" | "form" | "select" | "style" | "title" | "animate" | "pattern" | "min" | "max" | "value" | "isValid" | "reset" | "resetValidation" | "validate" | "centerAffix" | "density" | "errorMessages" | "focused" | "glow" | "hideSpinButtons" | "maxErrors" | "messages" | "persistentHint" | "readonly" | "rules" | "width" | "id" | "multiple" | "indeterminate" | "blur" | "focus" | "_allExposed" | "prepend" | "append" | "remove" | "click" | "draggable" | "alt" | "height" | "slot" | "placeholder" | "rounded" | "tile" | "clearable" | "clearIcon" | "active" | "dirty" | "persistentClear" | "singleLine" | "autocomplete" | "autofocus" | "prefix" | "persistentPlaceholder" | "persistentCounter" | "defaultValue" | "dirName" | "labels" | "maxLength" | "minLength" | "readOnly" | "selectionDirection" | "selectionEnd" | "selectionStart" | "validationMessage" | "validity" | "willValidate" | "checkValidity" | "reportValidity" | "setCustomValidity" | "setRangeText" | "setSelectionRange" | "addEventListener" | "removeEventListener" | "accessKey" | "accessKeyLabel" | "autocapitalize" | "dir" | "hidden" | "inert" | "innerText" | "lang" | "offsetHeight" | "offsetLeft" | "offsetParent" | "offsetTop" | "offsetWidth" | "outerText" | "popover" | "spellcheck" | "translate" | "writingSuggestions" | "attachInternals" | "hidePopover" | "showPopover" | "togglePopover" | "attributes" | "classList" | "className" | "clientHeight" | "clientLeft" | "clientTop" | "clientWidth" | "currentCSSZoom" | "innerHTML" | "localName" | "namespaceURI" | "onfullscreenchange" | "onfullscreenerror" | "outerHTML" | "ownerDocument" | "part" | "scrollHeight" | "scrollLeft" | "scrollTop" | "scrollWidth" | "shadowRoot" | "tagName" | "attachShadow" | "checkVisibility" | "closest" | "computedStyleMap" | "getAttribute" | "getAttributeNS" | "getAttributeNames" | "getAttributeNode" | "getAttributeNodeNS" | "getBoundingClientRect" | "getClientRects" | "getElementsByClassName" | "getElementsByTagName" | "getElementsByTagNameNS" | "getHTML" | "hasAttribute" | "hasAttributeNS" | "hasAttributes" | "hasPointerCapture" | "insertAdjacentElement" | "insertAdjacentHTML" | "insertAdjacentText" | "matches" | "releasePointerCapture" | "removeAttribute" | "removeAttributeNS" | "removeAttributeNode" | "requestFullscreen" | "requestPointerLock" | "scroll" | "scrollBy" | "scrollIntoView" | "scrollTo" | "setAttribute" | "setAttributeNS" | "setAttributeNode" | "setAttributeNodeNS" | "setHTMLUnsafe" | "setPointerCapture" | "toggleAttribute" | "webkitMatchesSelector" | "textContent" | "baseURI" | "childNodes" | "firstChild" | "isConnected" | "lastChild" | "nextSibling" | "nodeName" | "nodeType" | "nodeValue" | "parentElement" | "parentNode" | "previousSibling" | "appendChild" | "cloneNode" | "compareDocumentPosition" | "contains" | "getRootNode" | "hasChildNodes" | "insertBefore" | "isDefaultNamespace" | "isEqualNode" | "isSameNode" | "lookupNamespaceURI" | "lookupPrefix" | "removeChild" | "replaceChild" | "ELEMENT_NODE" | "ATTRIBUTE_NODE" | "TEXT_NODE" | "CDATA_SECTION_NODE" | "ENTITY_REFERENCE_NODE" | "ENTITY_NODE" | "PROCESSING_INSTRUCTION_NODE" | "COMMENT_NODE" | "DOCUMENT_NODE" | "DOCUMENT_TYPE_NODE" | "DOCUMENT_FRAGMENT_NODE" | "NOTATION_NODE" | "DOCUMENT_POSITION_DISCONNECTED" | "DOCUMENT_POSITION_PRECEDING" | "DOCUMENT_POSITION_FOLLOWING" | "DOCUMENT_POSITION_CONTAINS" | "DOCUMENT_POSITION_CONTAINED_BY" | "DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC" | "dispatchEvent" | "ariaAtomic" | "ariaAutoComplete" | "ariaBrailleLabel" | "ariaBrailleRoleDescription" | "ariaBusy" | "ariaChecked" | "ariaColCount" | "ariaColIndex" | "ariaColIndexText" | "ariaColSpan" | "ariaCurrent" | "ariaDescription" | "ariaDisabled" | "ariaExpanded" | "ariaHasPopup" | "ariaHidden" | "ariaInvalid" | "ariaKeyShortcuts" | "ariaLabel" | "ariaLevel" | "ariaLive" | "ariaModal" | "ariaMultiLine" | "ariaMultiSelectable" | "ariaOrientation" | "ariaPlaceholder" | "ariaPosInSet" | "ariaPressed" | "ariaReadOnly" | "ariaRelevant" | "ariaRequired" | "ariaRoleDescription" | "ariaRowCount" | "ariaRowIndex" | "ariaRowIndexText" | "ariaRowSpan" | "ariaSelected" | "ariaSetSize" | "ariaSort" | "ariaValueMax" | "ariaValueMin" | "ariaValueNow" | "ariaValueText" | "role" | "getAnimations" | "after" | "before" | "replaceWith" | "nextElementSibling" | "previousElementSibling" | "childElementCount" | "children" | "firstElementChild" | "lastElementChild" | "querySelector" | "querySelectorAll" | "replaceChildren" | "assignedSlot" | "attributeStyleMap" | "contentEditable" | "enterKeyHint" | "inputMode" | "isContentEditable" | "onabort" | "onanimationcancel" | "onanimationend" | "onanimationiteration" | "onanimationstart" | "onauxclick" | "onbeforeinput" | "onbeforetoggle" | "onblur" | "oncancel" | "oncanplay" | "oncanplaythrough" | "onchange" | "onclick" | "onclose" | "oncontextlost" | "oncontextmenu" | "oncontextrestored" | "oncopy" | "oncuechange" | "oncut" | "ondblclick" | "ondrag" | "ondragend" | "ondragenter" | "ondragleave" | "ondragover" | "ondragstart" | "ondrop" | "ondurationchange" | "onemptied" | "onended" | "onerror" | "onfocus" | "onformdata" | "ongotpointercapture" | "oninput" | "oninvalid" | "onkeydown" | "onkeypress" | "onkeyup" | "onload" | "onloadeddata" | "onloadedmetadata" | "onloadstart" | "onlostpointercapture" | "onmousedown" | "onmouseenter" | "onmouseleave" | "onmousemove" | "onmouseout" | "onmouseover" | "onmouseup" | "onpaste" | "onpause" | "onplay" | "onplaying" | "onpointercancel" | "onpointerdown" | "onpointerenter" | "onpointerleave" | "onpointermove" | "onpointerout" | "onpointerover" | "onpointerup" | "onprogress" | "onratechange" | "onreset" | "onresize" | "onscroll" | "onscrollend" | "onsecuritypolicyviolation" | "onseeked" | "onseeking" | "onselect" | "onselectionchange" | "onselectstart" | "onslotchange" | "onstalled" | "onsubmit" | "onsuspend" | "ontimeupdate" | "ontoggle" | "ontouchcancel" | "ontouchend" | "ontouchmove" | "ontouchstart" | "ontransitioncancel" | "ontransitionend" | "ontransitionrun" | "ontransitionstart" | "onvolumechange" | "onwaiting" | "onwebkitanimationend" | "onwebkitanimationiteration" | "onwebkitanimationstart" | "onwebkittransitionend" | "onwheel" | "dataset" | "nonce" | "tabIndex" | "_" | "_clickOutside" | "_mutate" | "_observe" | "_onResize" | "_onScroll" | "_ripple" | "_touchHandlers" | "_transitionInitialStyles" | "accept" | "align" | "capture" | "checked" | "controlRef" | "defaultChecked" | "fieldIconColor" | "files" | "formAction" | "formEnctype" | "formMethod" | "formNoValidate" | "formTarget" | "list" | "popoverTargetAction" | "popoverTargetElement" | "showPicker" | "src" | "step" | "stepDown" | "stepUp" | "useMap" | "valueAsDate" | "valueAsNumber" | "webkitEntries" | "webkitdirectory"> & { + }, "flat" | "name" | "type" | "variant" | "size" | "disabled" | "reverse" | "required" | "normalize" | "error" | "form" | "select" | "style" | "title" | "animate" | "pattern" | "min" | "max" | "value" | "isValid" | "reset" | "resetValidation" | "validate" | "centerAffix" | "density" | "errorMessages" | "focused" | "glow" | "hideSpinButtons" | "maxErrors" | "messages" | "persistentHint" | "readonly" | "rules" | "width" | "id" | "multiple" | "indeterminate" | "blur" | "focus" | "_allExposed" | "prepend" | "append" | "remove" | "click" | "draggable" | "alt" | "height" | "slot" | "scroll" | "role" | "hidden" | "placeholder" | "rounded" | "tile" | "clearable" | "clearIcon" | "active" | "dirty" | "persistentClear" | "singleLine" | "autocomplete" | "autofocus" | "prefix" | "persistentPlaceholder" | "persistentCounter" | "defaultValue" | "dirName" | "labels" | "maxLength" | "minLength" | "readOnly" | "selectionDirection" | "selectionEnd" | "selectionStart" | "validationMessage" | "validity" | "willValidate" | "checkValidity" | "reportValidity" | "setCustomValidity" | "setRangeText" | "setSelectionRange" | "addEventListener" | "removeEventListener" | "accessKey" | "accessKeyLabel" | "autocapitalize" | "dir" | "inert" | "innerText" | "lang" | "offsetHeight" | "offsetLeft" | "offsetParent" | "offsetTop" | "offsetWidth" | "outerText" | "popover" | "spellcheck" | "translate" | "writingSuggestions" | "attachInternals" | "hidePopover" | "showPopover" | "togglePopover" | "attributes" | "classList" | "className" | "clientHeight" | "clientLeft" | "clientTop" | "clientWidth" | "currentCSSZoom" | "innerHTML" | "localName" | "namespaceURI" | "onfullscreenchange" | "onfullscreenerror" | "outerHTML" | "ownerDocument" | "part" | "scrollHeight" | "scrollLeft" | "scrollTop" | "scrollWidth" | "shadowRoot" | "tagName" | "attachShadow" | "checkVisibility" | "closest" | "computedStyleMap" | "getAttribute" | "getAttributeNS" | "getAttributeNames" | "getAttributeNode" | "getAttributeNodeNS" | "getBoundingClientRect" | "getClientRects" | "getElementsByClassName" | "getElementsByTagName" | "getElementsByTagNameNS" | "getHTML" | "hasAttribute" | "hasAttributeNS" | "hasAttributes" | "hasPointerCapture" | "insertAdjacentElement" | "insertAdjacentHTML" | "insertAdjacentText" | "matches" | "releasePointerCapture" | "removeAttribute" | "removeAttributeNS" | "removeAttributeNode" | "requestFullscreen" | "requestPointerLock" | "scrollBy" | "scrollIntoView" | "scrollTo" | "setAttribute" | "setAttributeNS" | "setAttributeNode" | "setAttributeNodeNS" | "setHTMLUnsafe" | "setPointerCapture" | "toggleAttribute" | "webkitMatchesSelector" | "textContent" | "baseURI" | "childNodes" | "firstChild" | "isConnected" | "lastChild" | "nextSibling" | "nodeName" | "nodeType" | "nodeValue" | "parentElement" | "parentNode" | "previousSibling" | "appendChild" | "cloneNode" | "compareDocumentPosition" | "contains" | "getRootNode" | "hasChildNodes" | "insertBefore" | "isDefaultNamespace" | "isEqualNode" | "isSameNode" | "lookupNamespaceURI" | "lookupPrefix" | "removeChild" | "replaceChild" | "ELEMENT_NODE" | "ATTRIBUTE_NODE" | "TEXT_NODE" | "CDATA_SECTION_NODE" | "ENTITY_REFERENCE_NODE" | "ENTITY_NODE" | "PROCESSING_INSTRUCTION_NODE" | "COMMENT_NODE" | "DOCUMENT_NODE" | "DOCUMENT_TYPE_NODE" | "DOCUMENT_FRAGMENT_NODE" | "NOTATION_NODE" | "DOCUMENT_POSITION_DISCONNECTED" | "DOCUMENT_POSITION_PRECEDING" | "DOCUMENT_POSITION_FOLLOWING" | "DOCUMENT_POSITION_CONTAINS" | "DOCUMENT_POSITION_CONTAINED_BY" | "DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC" | "dispatchEvent" | "ariaAtomic" | "ariaAutoComplete" | "ariaBrailleLabel" | "ariaBrailleRoleDescription" | "ariaBusy" | "ariaChecked" | "ariaColCount" | "ariaColIndex" | "ariaColIndexText" | "ariaColSpan" | "ariaCurrent" | "ariaDescription" | "ariaDisabled" | "ariaExpanded" | "ariaHasPopup" | "ariaHidden" | "ariaInvalid" | "ariaKeyShortcuts" | "ariaLabel" | "ariaLevel" | "ariaLive" | "ariaModal" | "ariaMultiLine" | "ariaMultiSelectable" | "ariaOrientation" | "ariaPlaceholder" | "ariaPosInSet" | "ariaPressed" | "ariaReadOnly" | "ariaRelevant" | "ariaRequired" | "ariaRoleDescription" | "ariaRowCount" | "ariaRowIndex" | "ariaRowIndexText" | "ariaRowSpan" | "ariaSelected" | "ariaSetSize" | "ariaSort" | "ariaValueMax" | "ariaValueMin" | "ariaValueNow" | "ariaValueText" | "getAnimations" | "after" | "before" | "replaceWith" | "nextElementSibling" | "previousElementSibling" | "childElementCount" | "children" | "firstElementChild" | "lastElementChild" | "querySelector" | "querySelectorAll" | "replaceChildren" | "assignedSlot" | "attributeStyleMap" | "contentEditable" | "enterKeyHint" | "inputMode" | "isContentEditable" | "onabort" | "onanimationcancel" | "onanimationend" | "onanimationiteration" | "onanimationstart" | "onauxclick" | "onbeforeinput" | "onbeforetoggle" | "onblur" | "oncancel" | "oncanplay" | "oncanplaythrough" | "onchange" | "onclick" | "onclose" | "oncontextlost" | "oncontextmenu" | "oncontextrestored" | "oncopy" | "oncuechange" | "oncut" | "ondblclick" | "ondrag" | "ondragend" | "ondragenter" | "ondragleave" | "ondragover" | "ondragstart" | "ondrop" | "ondurationchange" | "onemptied" | "onended" | "onerror" | "onfocus" | "onformdata" | "ongotpointercapture" | "oninput" | "oninvalid" | "onkeydown" | "onkeypress" | "onkeyup" | "onload" | "onloadeddata" | "onloadedmetadata" | "onloadstart" | "onlostpointercapture" | "onmousedown" | "onmouseenter" | "onmouseleave" | "onmousemove" | "onmouseout" | "onmouseover" | "onmouseup" | "onpaste" | "onpause" | "onplay" | "onplaying" | "onpointercancel" | "onpointerdown" | "onpointerenter" | "onpointerleave" | "onpointermove" | "onpointerout" | "onpointerover" | "onpointerup" | "onprogress" | "onratechange" | "onreset" | "onresize" | "onscroll" | "onscrollend" | "onsecuritypolicyviolation" | "onseeked" | "onseeking" | "onselect" | "onselectionchange" | "onselectstart" | "onslotchange" | "onstalled" | "onsubmit" | "onsuspend" | "ontimeupdate" | "ontoggle" | "ontouchcancel" | "ontouchend" | "ontouchmove" | "ontouchstart" | "ontransitioncancel" | "ontransitionend" | "ontransitionrun" | "ontransitionstart" | "onvolumechange" | "onwaiting" | "onwebkitanimationend" | "onwebkitanimationiteration" | "onwebkitanimationstart" | "onwebkittransitionend" | "onwheel" | "dataset" | "nonce" | "tabIndex" | "_" | "_clickOutside" | "_mutate" | "_observe" | "_onResize" | "_onScroll" | "_ripple" | "_touchHandlers" | "_transitionInitialStyles" | "accept" | "align" | "capture" | "checked" | "controlRef" | "defaultChecked" | "fieldIconColor" | "files" | "formAction" | "formEnctype" | "formMethod" | "formNoValidate" | "formTarget" | "list" | "popoverTargetAction" | "popoverTargetElement" | "showPicker" | "src" | "step" | "stepDown" | "stepUp" | "useMap" | "valueAsDate" | "valueAsNumber" | "webkitEntries" | "webkitdirectory"> & { accept: string; align: string; alt: string; @@ -7934,7 +7934,7 @@ declare const __VLS_export: import("vue").DefineComponent; fieldIconColor: import("vue").ComputedRef; } | {}; - } & import("vue").ComponentCustomProperties, "flat" | "name" | "color" | "type" | "variant" | "disabled" | "loading" | "reverse" | "error" | "label" | "style" | "class" | keyof import("vue").VNodeProps | "centerAffix" | "density" | "errorMessages" | "focused" | "glow" | "hideSpinButtons" | "maxErrors" | "messages" | "persistentHint" | "readonly" | "rules" | "theme" | "onUpdate:focused" | "validateOn" | "validationValue" | "maxWidth" | "minWidth" | "width" | "id" | "appendIcon" | "baseColor" | "iconColor" | "prependIcon" | "hideDetails" | "hint" | "onClick:prepend" | "onClick:append" | "$children" | "modelValue" | "onUpdate:modelValue" | "v-slot:append" | "v-slot:default" | "v-slot:details" | "v-slot:message" | "v-slot:prepend" | "v-slots" | "v-slot:label" | "v-slot:loader" | "placeholder" | "rounded" | "tile" | "appendInnerIcon" | "bgColor" | "clearable" | "clearIcon" | "active" | "dirty" | "persistentClear" | "prependInnerIcon" | "singleLine" | "onClick:clear" | "onClick:appendInner" | "onClick:prependInner" | "autocomplete" | "autofocus" | "counter" | "counterValue" | "prefix" | "persistentPlaceholder" | "persistentCounter" | "suffix" | "modelModifiers" | "v-slot:append-inner" | "v-slot:clear" | "v-slot:counter" | "v-slot:prepend-inner" | "onClick:control" | "onMousedown:control" | "role">, `$${any}`> & { + } & import("vue").ComponentCustomProperties, "flat" | "name" | "color" | "type" | "variant" | "disabled" | "loading" | "reverse" | "error" | "label" | "style" | "class" | keyof import("vue").VNodeProps | "centerAffix" | "density" | "errorMessages" | "focused" | "glow" | "hideSpinButtons" | "maxErrors" | "messages" | "persistentHint" | "readonly" | "rules" | "theme" | "onUpdate:focused" | "validateOn" | "validationValue" | "maxWidth" | "minWidth" | "width" | "id" | "appendIcon" | "baseColor" | "iconColor" | "prependIcon" | "hideDetails" | "hint" | "onClick:prepend" | "onClick:append" | "$children" | "modelValue" | "onUpdate:modelValue" | "v-slot:append" | "v-slot:default" | "v-slot:details" | "v-slot:message" | "v-slot:prepend" | "v-slots" | "v-slot:label" | "v-slot:loader" | "role" | "placeholder" | "rounded" | "tile" | "appendInnerIcon" | "bgColor" | "clearable" | "clearIcon" | "active" | "dirty" | "persistentClear" | "prependInnerIcon" | "singleLine" | "onClick:clear" | "onClick:appendInner" | "onClick:prependInner" | "autocomplete" | "autofocus" | "counter" | "counterValue" | "prefix" | "persistentPlaceholder" | "persistentCounter" | "suffix" | "modelModifiers" | "v-slot:append-inner" | "v-slot:clear" | "v-slot:counter" | "v-slot:prepend-inner" | "onClick:control" | "onMousedown:control">, `$${any}`> & { _allExposed: { isFocused: import("vue").ShallowRef; menu: import("vue").WritableComputedRef; diff --git a/dist/types/componentes/EliEntrada/EliEntradaSelecaoMultipla.vue.d.ts b/dist/types/componentes/EliEntrada/EliEntradaSelecaoMultipla.vue.d.ts index b567050..e07e137 100644 --- a/dist/types/componentes/EliEntrada/EliEntradaSelecaoMultipla.vue.d.ts +++ b/dist/types/componentes/EliEntrada/EliEntradaSelecaoMultipla.vue.d.ts @@ -7481,7 +7481,7 @@ declare const __VLS_export: import("vue").DefineComponent any) | undefined; "onUpdate:focused"?: ((focused: boolean) => any) | undefined; "onUpdate:modelValue"?: ((val: string) => any) | undefined; - }, "flat" | "name" | "type" | "variant" | "size" | "disabled" | "reverse" | "required" | "normalize" | "error" | "form" | "select" | "style" | "title" | "animate" | "pattern" | "min" | "max" | "value" | "isValid" | "reset" | "resetValidation" | "validate" | "centerAffix" | "density" | "errorMessages" | "focused" | "glow" | "hideSpinButtons" | "maxErrors" | "messages" | "persistentHint" | "readonly" | "rules" | "width" | "id" | "multiple" | "indeterminate" | "blur" | "focus" | "_allExposed" | "prepend" | "append" | "remove" | "click" | "draggable" | "alt" | "height" | "slot" | "placeholder" | "rounded" | "tile" | "clearable" | "clearIcon" | "active" | "dirty" | "persistentClear" | "singleLine" | "autocomplete" | "autofocus" | "prefix" | "persistentPlaceholder" | "persistentCounter" | "defaultValue" | "dirName" | "labels" | "maxLength" | "minLength" | "readOnly" | "selectionDirection" | "selectionEnd" | "selectionStart" | "validationMessage" | "validity" | "willValidate" | "checkValidity" | "reportValidity" | "setCustomValidity" | "setRangeText" | "setSelectionRange" | "addEventListener" | "removeEventListener" | "accessKey" | "accessKeyLabel" | "autocapitalize" | "dir" | "hidden" | "inert" | "innerText" | "lang" | "offsetHeight" | "offsetLeft" | "offsetParent" | "offsetTop" | "offsetWidth" | "outerText" | "popover" | "spellcheck" | "translate" | "writingSuggestions" | "attachInternals" | "hidePopover" | "showPopover" | "togglePopover" | "attributes" | "classList" | "className" | "clientHeight" | "clientLeft" | "clientTop" | "clientWidth" | "currentCSSZoom" | "innerHTML" | "localName" | "namespaceURI" | "onfullscreenchange" | "onfullscreenerror" | "outerHTML" | "ownerDocument" | "part" | "scrollHeight" | "scrollLeft" | "scrollTop" | "scrollWidth" | "shadowRoot" | "tagName" | "attachShadow" | "checkVisibility" | "closest" | "computedStyleMap" | "getAttribute" | "getAttributeNS" | "getAttributeNames" | "getAttributeNode" | "getAttributeNodeNS" | "getBoundingClientRect" | "getClientRects" | "getElementsByClassName" | "getElementsByTagName" | "getElementsByTagNameNS" | "getHTML" | "hasAttribute" | "hasAttributeNS" | "hasAttributes" | "hasPointerCapture" | "insertAdjacentElement" | "insertAdjacentHTML" | "insertAdjacentText" | "matches" | "releasePointerCapture" | "removeAttribute" | "removeAttributeNS" | "removeAttributeNode" | "requestFullscreen" | "requestPointerLock" | "scroll" | "scrollBy" | "scrollIntoView" | "scrollTo" | "setAttribute" | "setAttributeNS" | "setAttributeNode" | "setAttributeNodeNS" | "setHTMLUnsafe" | "setPointerCapture" | "toggleAttribute" | "webkitMatchesSelector" | "textContent" | "baseURI" | "childNodes" | "firstChild" | "isConnected" | "lastChild" | "nextSibling" | "nodeName" | "nodeType" | "nodeValue" | "parentElement" | "parentNode" | "previousSibling" | "appendChild" | "cloneNode" | "compareDocumentPosition" | "contains" | "getRootNode" | "hasChildNodes" | "insertBefore" | "isDefaultNamespace" | "isEqualNode" | "isSameNode" | "lookupNamespaceURI" | "lookupPrefix" | "removeChild" | "replaceChild" | "ELEMENT_NODE" | "ATTRIBUTE_NODE" | "TEXT_NODE" | "CDATA_SECTION_NODE" | "ENTITY_REFERENCE_NODE" | "ENTITY_NODE" | "PROCESSING_INSTRUCTION_NODE" | "COMMENT_NODE" | "DOCUMENT_NODE" | "DOCUMENT_TYPE_NODE" | "DOCUMENT_FRAGMENT_NODE" | "NOTATION_NODE" | "DOCUMENT_POSITION_DISCONNECTED" | "DOCUMENT_POSITION_PRECEDING" | "DOCUMENT_POSITION_FOLLOWING" | "DOCUMENT_POSITION_CONTAINS" | "DOCUMENT_POSITION_CONTAINED_BY" | "DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC" | "dispatchEvent" | "ariaAtomic" | "ariaAutoComplete" | "ariaBrailleLabel" | "ariaBrailleRoleDescription" | "ariaBusy" | "ariaChecked" | "ariaColCount" | "ariaColIndex" | "ariaColIndexText" | "ariaColSpan" | "ariaCurrent" | "ariaDescription" | "ariaDisabled" | "ariaExpanded" | "ariaHasPopup" | "ariaHidden" | "ariaInvalid" | "ariaKeyShortcuts" | "ariaLabel" | "ariaLevel" | "ariaLive" | "ariaModal" | "ariaMultiLine" | "ariaMultiSelectable" | "ariaOrientation" | "ariaPlaceholder" | "ariaPosInSet" | "ariaPressed" | "ariaReadOnly" | "ariaRelevant" | "ariaRequired" | "ariaRoleDescription" | "ariaRowCount" | "ariaRowIndex" | "ariaRowIndexText" | "ariaRowSpan" | "ariaSelected" | "ariaSetSize" | "ariaSort" | "ariaValueMax" | "ariaValueMin" | "ariaValueNow" | "ariaValueText" | "role" | "getAnimations" | "after" | "before" | "replaceWith" | "nextElementSibling" | "previousElementSibling" | "childElementCount" | "children" | "firstElementChild" | "lastElementChild" | "querySelector" | "querySelectorAll" | "replaceChildren" | "assignedSlot" | "attributeStyleMap" | "contentEditable" | "enterKeyHint" | "inputMode" | "isContentEditable" | "onabort" | "onanimationcancel" | "onanimationend" | "onanimationiteration" | "onanimationstart" | "onauxclick" | "onbeforeinput" | "onbeforetoggle" | "onblur" | "oncancel" | "oncanplay" | "oncanplaythrough" | "onchange" | "onclick" | "onclose" | "oncontextlost" | "oncontextmenu" | "oncontextrestored" | "oncopy" | "oncuechange" | "oncut" | "ondblclick" | "ondrag" | "ondragend" | "ondragenter" | "ondragleave" | "ondragover" | "ondragstart" | "ondrop" | "ondurationchange" | "onemptied" | "onended" | "onerror" | "onfocus" | "onformdata" | "ongotpointercapture" | "oninput" | "oninvalid" | "onkeydown" | "onkeypress" | "onkeyup" | "onload" | "onloadeddata" | "onloadedmetadata" | "onloadstart" | "onlostpointercapture" | "onmousedown" | "onmouseenter" | "onmouseleave" | "onmousemove" | "onmouseout" | "onmouseover" | "onmouseup" | "onpaste" | "onpause" | "onplay" | "onplaying" | "onpointercancel" | "onpointerdown" | "onpointerenter" | "onpointerleave" | "onpointermove" | "onpointerout" | "onpointerover" | "onpointerup" | "onprogress" | "onratechange" | "onreset" | "onresize" | "onscroll" | "onscrollend" | "onsecuritypolicyviolation" | "onseeked" | "onseeking" | "onselect" | "onselectionchange" | "onselectstart" | "onslotchange" | "onstalled" | "onsubmit" | "onsuspend" | "ontimeupdate" | "ontoggle" | "ontouchcancel" | "ontouchend" | "ontouchmove" | "ontouchstart" | "ontransitioncancel" | "ontransitionend" | "ontransitionrun" | "ontransitionstart" | "onvolumechange" | "onwaiting" | "onwebkitanimationend" | "onwebkitanimationiteration" | "onwebkitanimationstart" | "onwebkittransitionend" | "onwheel" | "dataset" | "nonce" | "tabIndex" | "_" | "_clickOutside" | "_mutate" | "_observe" | "_onResize" | "_onScroll" | "_ripple" | "_touchHandlers" | "_transitionInitialStyles" | "accept" | "align" | "capture" | "checked" | "controlRef" | "defaultChecked" | "fieldIconColor" | "files" | "formAction" | "formEnctype" | "formMethod" | "formNoValidate" | "formTarget" | "list" | "popoverTargetAction" | "popoverTargetElement" | "showPicker" | "src" | "step" | "stepDown" | "stepUp" | "useMap" | "valueAsDate" | "valueAsNumber" | "webkitEntries" | "webkitdirectory"> & { + }, "flat" | "name" | "type" | "variant" | "size" | "disabled" | "reverse" | "required" | "normalize" | "error" | "form" | "select" | "style" | "title" | "animate" | "pattern" | "min" | "max" | "value" | "isValid" | "reset" | "resetValidation" | "validate" | "centerAffix" | "density" | "errorMessages" | "focused" | "glow" | "hideSpinButtons" | "maxErrors" | "messages" | "persistentHint" | "readonly" | "rules" | "width" | "id" | "multiple" | "indeterminate" | "blur" | "focus" | "_allExposed" | "prepend" | "append" | "remove" | "click" | "draggable" | "alt" | "height" | "slot" | "scroll" | "role" | "hidden" | "placeholder" | "rounded" | "tile" | "clearable" | "clearIcon" | "active" | "dirty" | "persistentClear" | "singleLine" | "autocomplete" | "autofocus" | "prefix" | "persistentPlaceholder" | "persistentCounter" | "defaultValue" | "dirName" | "labels" | "maxLength" | "minLength" | "readOnly" | "selectionDirection" | "selectionEnd" | "selectionStart" | "validationMessage" | "validity" | "willValidate" | "checkValidity" | "reportValidity" | "setCustomValidity" | "setRangeText" | "setSelectionRange" | "addEventListener" | "removeEventListener" | "accessKey" | "accessKeyLabel" | "autocapitalize" | "dir" | "inert" | "innerText" | "lang" | "offsetHeight" | "offsetLeft" | "offsetParent" | "offsetTop" | "offsetWidth" | "outerText" | "popover" | "spellcheck" | "translate" | "writingSuggestions" | "attachInternals" | "hidePopover" | "showPopover" | "togglePopover" | "attributes" | "classList" | "className" | "clientHeight" | "clientLeft" | "clientTop" | "clientWidth" | "currentCSSZoom" | "innerHTML" | "localName" | "namespaceURI" | "onfullscreenchange" | "onfullscreenerror" | "outerHTML" | "ownerDocument" | "part" | "scrollHeight" | "scrollLeft" | "scrollTop" | "scrollWidth" | "shadowRoot" | "tagName" | "attachShadow" | "checkVisibility" | "closest" | "computedStyleMap" | "getAttribute" | "getAttributeNS" | "getAttributeNames" | "getAttributeNode" | "getAttributeNodeNS" | "getBoundingClientRect" | "getClientRects" | "getElementsByClassName" | "getElementsByTagName" | "getElementsByTagNameNS" | "getHTML" | "hasAttribute" | "hasAttributeNS" | "hasAttributes" | "hasPointerCapture" | "insertAdjacentElement" | "insertAdjacentHTML" | "insertAdjacentText" | "matches" | "releasePointerCapture" | "removeAttribute" | "removeAttributeNS" | "removeAttributeNode" | "requestFullscreen" | "requestPointerLock" | "scrollBy" | "scrollIntoView" | "scrollTo" | "setAttribute" | "setAttributeNS" | "setAttributeNode" | "setAttributeNodeNS" | "setHTMLUnsafe" | "setPointerCapture" | "toggleAttribute" | "webkitMatchesSelector" | "textContent" | "baseURI" | "childNodes" | "firstChild" | "isConnected" | "lastChild" | "nextSibling" | "nodeName" | "nodeType" | "nodeValue" | "parentElement" | "parentNode" | "previousSibling" | "appendChild" | "cloneNode" | "compareDocumentPosition" | "contains" | "getRootNode" | "hasChildNodes" | "insertBefore" | "isDefaultNamespace" | "isEqualNode" | "isSameNode" | "lookupNamespaceURI" | "lookupPrefix" | "removeChild" | "replaceChild" | "ELEMENT_NODE" | "ATTRIBUTE_NODE" | "TEXT_NODE" | "CDATA_SECTION_NODE" | "ENTITY_REFERENCE_NODE" | "ENTITY_NODE" | "PROCESSING_INSTRUCTION_NODE" | "COMMENT_NODE" | "DOCUMENT_NODE" | "DOCUMENT_TYPE_NODE" | "DOCUMENT_FRAGMENT_NODE" | "NOTATION_NODE" | "DOCUMENT_POSITION_DISCONNECTED" | "DOCUMENT_POSITION_PRECEDING" | "DOCUMENT_POSITION_FOLLOWING" | "DOCUMENT_POSITION_CONTAINS" | "DOCUMENT_POSITION_CONTAINED_BY" | "DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC" | "dispatchEvent" | "ariaAtomic" | "ariaAutoComplete" | "ariaBrailleLabel" | "ariaBrailleRoleDescription" | "ariaBusy" | "ariaChecked" | "ariaColCount" | "ariaColIndex" | "ariaColIndexText" | "ariaColSpan" | "ariaCurrent" | "ariaDescription" | "ariaDisabled" | "ariaExpanded" | "ariaHasPopup" | "ariaHidden" | "ariaInvalid" | "ariaKeyShortcuts" | "ariaLabel" | "ariaLevel" | "ariaLive" | "ariaModal" | "ariaMultiLine" | "ariaMultiSelectable" | "ariaOrientation" | "ariaPlaceholder" | "ariaPosInSet" | "ariaPressed" | "ariaReadOnly" | "ariaRelevant" | "ariaRequired" | "ariaRoleDescription" | "ariaRowCount" | "ariaRowIndex" | "ariaRowIndexText" | "ariaRowSpan" | "ariaSelected" | "ariaSetSize" | "ariaSort" | "ariaValueMax" | "ariaValueMin" | "ariaValueNow" | "ariaValueText" | "getAnimations" | "after" | "before" | "replaceWith" | "nextElementSibling" | "previousElementSibling" | "childElementCount" | "children" | "firstElementChild" | "lastElementChild" | "querySelector" | "querySelectorAll" | "replaceChildren" | "assignedSlot" | "attributeStyleMap" | "contentEditable" | "enterKeyHint" | "inputMode" | "isContentEditable" | "onabort" | "onanimationcancel" | "onanimationend" | "onanimationiteration" | "onanimationstart" | "onauxclick" | "onbeforeinput" | "onbeforetoggle" | "onblur" | "oncancel" | "oncanplay" | "oncanplaythrough" | "onchange" | "onclick" | "onclose" | "oncontextlost" | "oncontextmenu" | "oncontextrestored" | "oncopy" | "oncuechange" | "oncut" | "ondblclick" | "ondrag" | "ondragend" | "ondragenter" | "ondragleave" | "ondragover" | "ondragstart" | "ondrop" | "ondurationchange" | "onemptied" | "onended" | "onerror" | "onfocus" | "onformdata" | "ongotpointercapture" | "oninput" | "oninvalid" | "onkeydown" | "onkeypress" | "onkeyup" | "onload" | "onloadeddata" | "onloadedmetadata" | "onloadstart" | "onlostpointercapture" | "onmousedown" | "onmouseenter" | "onmouseleave" | "onmousemove" | "onmouseout" | "onmouseover" | "onmouseup" | "onpaste" | "onpause" | "onplay" | "onplaying" | "onpointercancel" | "onpointerdown" | "onpointerenter" | "onpointerleave" | "onpointermove" | "onpointerout" | "onpointerover" | "onpointerup" | "onprogress" | "onratechange" | "onreset" | "onresize" | "onscroll" | "onscrollend" | "onsecuritypolicyviolation" | "onseeked" | "onseeking" | "onselect" | "onselectionchange" | "onselectstart" | "onslotchange" | "onstalled" | "onsubmit" | "onsuspend" | "ontimeupdate" | "ontoggle" | "ontouchcancel" | "ontouchend" | "ontouchmove" | "ontouchstart" | "ontransitioncancel" | "ontransitionend" | "ontransitionrun" | "ontransitionstart" | "onvolumechange" | "onwaiting" | "onwebkitanimationend" | "onwebkitanimationiteration" | "onwebkitanimationstart" | "onwebkittransitionend" | "onwheel" | "dataset" | "nonce" | "tabIndex" | "_" | "_clickOutside" | "_mutate" | "_observe" | "_onResize" | "_onScroll" | "_ripple" | "_touchHandlers" | "_transitionInitialStyles" | "accept" | "align" | "capture" | "checked" | "controlRef" | "defaultChecked" | "fieldIconColor" | "files" | "formAction" | "formEnctype" | "formMethod" | "formNoValidate" | "formTarget" | "list" | "popoverTargetAction" | "popoverTargetElement" | "showPicker" | "src" | "step" | "stepDown" | "stepUp" | "useMap" | "valueAsDate" | "valueAsNumber" | "webkitEntries" | "webkitdirectory"> & { accept: string; align: string; alt: string; @@ -7934,7 +7934,7 @@ declare const __VLS_export: import("vue").DefineComponent; fieldIconColor: import("vue").ComputedRef; } | {}; - } & import("vue").ComponentCustomProperties, "flat" | "name" | "color" | "type" | "variant" | "disabled" | "loading" | "reverse" | "error" | "label" | "style" | "class" | keyof import("vue").VNodeProps | "centerAffix" | "density" | "errorMessages" | "focused" | "glow" | "hideSpinButtons" | "maxErrors" | "messages" | "persistentHint" | "readonly" | "rules" | "theme" | "onUpdate:focused" | "validateOn" | "validationValue" | "maxWidth" | "minWidth" | "width" | "id" | "appendIcon" | "baseColor" | "iconColor" | "prependIcon" | "hideDetails" | "hint" | "onClick:prepend" | "onClick:append" | "$children" | "modelValue" | "onUpdate:modelValue" | "v-slot:append" | "v-slot:default" | "v-slot:details" | "v-slot:message" | "v-slot:prepend" | "v-slots" | "v-slot:label" | "v-slot:loader" | "placeholder" | "rounded" | "tile" | "appendInnerIcon" | "bgColor" | "clearable" | "clearIcon" | "active" | "dirty" | "persistentClear" | "prependInnerIcon" | "singleLine" | "onClick:clear" | "onClick:appendInner" | "onClick:prependInner" | "autocomplete" | "autofocus" | "counter" | "counterValue" | "prefix" | "persistentPlaceholder" | "persistentCounter" | "suffix" | "modelModifiers" | "v-slot:append-inner" | "v-slot:clear" | "v-slot:counter" | "v-slot:prepend-inner" | "onClick:control" | "onMousedown:control" | "role">, `$${any}`> & { + } & import("vue").ComponentCustomProperties, "flat" | "name" | "color" | "type" | "variant" | "disabled" | "loading" | "reverse" | "error" | "label" | "style" | "class" | keyof import("vue").VNodeProps | "centerAffix" | "density" | "errorMessages" | "focused" | "glow" | "hideSpinButtons" | "maxErrors" | "messages" | "persistentHint" | "readonly" | "rules" | "theme" | "onUpdate:focused" | "validateOn" | "validationValue" | "maxWidth" | "minWidth" | "width" | "id" | "appendIcon" | "baseColor" | "iconColor" | "prependIcon" | "hideDetails" | "hint" | "onClick:prepend" | "onClick:append" | "$children" | "modelValue" | "onUpdate:modelValue" | "v-slot:append" | "v-slot:default" | "v-slot:details" | "v-slot:message" | "v-slot:prepend" | "v-slots" | "v-slot:label" | "v-slot:loader" | "role" | "placeholder" | "rounded" | "tile" | "appendInnerIcon" | "bgColor" | "clearable" | "clearIcon" | "active" | "dirty" | "persistentClear" | "prependInnerIcon" | "singleLine" | "onClick:clear" | "onClick:appendInner" | "onClick:prependInner" | "autocomplete" | "autofocus" | "counter" | "counterValue" | "prefix" | "persistentPlaceholder" | "persistentCounter" | "suffix" | "modelModifiers" | "v-slot:append-inner" | "v-slot:clear" | "v-slot:counter" | "v-slot:prepend-inner" | "onClick:control" | "onMousedown:control">, `$${any}`> & { _allExposed: { isFocused: import("vue").ShallowRef; menu: import("vue").WritableComputedRef; diff --git a/dist/types/componentes/EliEntrada/index.d.ts b/dist/types/componentes/EliEntrada/index.d.ts index 6c7d4ff..9f05985 100644 --- a/dist/types/componentes/EliEntrada/index.d.ts +++ b/dist/types/componentes/EliEntrada/index.d.ts @@ -1,6 +1,6 @@ import EliEntradaConfirmacao from "./EliEntradaConfirmacao.vue"; import EliEntradaCoordenadas from "./EliEntradaCoordenadas.vue"; -import EliEntradaDataHora from "./EliEntradaDataHora.vue"; +import EliEntradaDataHora from "./EliEntradaDataHora/index.vue"; import EliEntradaNumero from "./EliEntradaNumero.vue"; import EliEntradaParagrafo from "./EliEntradaParagrafo.vue"; import EliEntradaSelecao from "./EliEntradaSelecao.vue"; diff --git a/package.json b/package.json index 8b46a05..614488f 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "eli-vue", - "version": "0.1.217", + "version": "0.1.218", "private": false, "main": "./dist/eli-vue.umd.js", "module": "./dist/eli-vue.es.js", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index f36d749..ea8ddef 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -20,9 +20,6 @@ importers: dayjs: specifier: ^1.11.19 version: 1.11.21 - leaflet: - specifier: ^1.9.4 - version: 1.9.4 p-comuns: specifier: git+https://git2.idz.one/publico/_comuns.git version: git+https://git2.idz.one/publico/_comuns.git#1e219ad6570b314d7abd26bb725a03f8c8337be1(dayjs@1.11.21)(uuid@13.0.2)(zod@4.4.3) @@ -48,11 +45,14 @@ importers: '@vitejs/plugin-vue': specifier: ^5.0.0 version: 5.2.4(vite@6.4.3(@types/node@25.9.2)(sass@1.100.0)(terser@5.48.0)(yaml@2.9.0))(vue@3.5.35(typescript@6.0.3)) + leaflet: + specifier: ^1.9.4 + version: 1.9.4 sass: specifier: ^1.94.2 version: 1.100.0 typescript: - specifier: ^6.0.3 + specifier: ^6 version: 6.0.3 vite: specifier: ^6.0.0 diff --git a/src/componentes/EliEntrada/EliEntradaDataHora.vue b/src/componentes/EliEntrada/EliEntradaDataHora.vue deleted file mode 100644 index e0b0e35..0000000 --- a/src/componentes/EliEntrada/EliEntradaDataHora.vue +++ /dev/null @@ -1,223 +0,0 @@ - - - - - diff --git a/src/componentes/EliEntrada/EliEntradaDataHora/Calendario.css b/src/componentes/EliEntrada/EliEntradaDataHora/Calendario.css new file mode 100644 index 0000000..3d91a5e --- /dev/null +++ b/src/componentes/EliEntrada/EliEntradaDataHora/Calendario.css @@ -0,0 +1,228 @@ +/* ───────────────────────────────────────────── + EliEntradaDataHora — Popover do calendário + ───────────────────────────────────────────── */ + +.eli-dh__popover { + position: absolute; + top: calc(100% + 6px); + left: 0; + z-index: 2000; + background: var(--cor-eli-superficie, #fff); + border: 1.5px solid var(--cor-eli-borda, #D5D8CC); + border-radius: 14px; + box-shadow: + 0 4px 6px -1px rgba(0, 0, 0, 0.06), + 0 10px 30px -4px rgba(0, 0, 0, 0.12); + overflow: hidden; + min-width: 300px; + transform-origin: top left; +} + +.eli-dh-pop-enter-active, +.eli-dh-pop-leave-active { transition: opacity 0.16s ease, transform 0.16s ease; } + +.eli-dh-pop-enter-from, +.eli-dh-pop-leave-to { opacity: 0; transform: translateY(-6px) scale(0.97); } + +.eli-dh__cal-header { + display: flex; + align-items: center; + justify-content: space-between; + padding: 14px 16px 10px; + background: linear-gradient(135deg, var(--cor-eli-primaria, #688C00) 0%, var(--cor-eli-primaria-acao, #8AAF00) 100%); +} + +.eli-dh__cal-nav { + display: flex; + align-items: center; + justify-content: center; + width: 32px; + height: 32px; + border: none; + background: rgba(255, 255, 255, 0.18); + border-radius: 8px; + cursor: pointer; + color: #fff; + transition: background 0.15s; + padding: 0; +} + +.eli-dh__cal-nav:hover { background: rgba(255, 255, 255, 0.30); } +.eli-dh__cal-nav svg { width: 18px; height: 18px; } + +.eli-dh__cal-titulo { + display: flex; + flex-direction: column; + align-items: center; + gap: 2px; +} + +.eli-dh__seletores { + display: flex; + align-items: center; + gap: 6px; +} + +.eli-dh__select { + border: none; + background: rgba(255, 255, 255, 0.14); + color: #fff; + font-family: inherit; + font-size: 14px; + font-weight: 700; + padding: 4px 8px; + border-radius: 6px; + cursor: pointer; + outline: none; + transition: background 0.15s; + appearance: none; + -webkit-appearance: none; +} + +.eli-dh__select:hover { + background: rgba(255, 255, 255, 0.26); +} + +.eli-dh__select option { + background: var(--cor-eli-superficie, #fff); + color: var(--cor-eli-neutro-escuro, #3E4436); + font-weight: 600; +} + +.eli-dh__cal-body { padding: 12px 14px 14px; } + +.eli-dh__cal-semana { + display: grid; + grid-template-columns: repeat(7, 1fr); + gap: 2px; + margin-bottom: 6px; +} + +.eli-dh__cal-dia-sem { + display: flex; + align-items: center; + justify-content: center; + font-size: 11px; + font-weight: 700; + color: var(--cor-eli-neutro, #5E6553); + text-transform: uppercase; + letter-spacing: 0.04em; + height: 28px; +} + +.eli-dh__cal-grade { + display: grid; + grid-template-columns: repeat(7, 1fr); + gap: 2px; +} + +.eli-dh__cal-dia { + display: flex; + align-items: center; + justify-content: center; + height: 36px; + border: none; + border-radius: 8px; + background: none; + font-size: 13px; + font-weight: 500; + color: var(--cor-eli-neutro-escuro, #3E4436); + cursor: pointer; + transition: background 0.12s, color 0.12s; + padding: 0; + font-family: inherit; +} + +.eli-dh__cal-dia:hover:not(:disabled):not(.eli-dh__cal-dia--fora):not(.eli-dh__cal-dia--selecionado) { + background: var(--cor-eli-primaria-bg, #EEF3D0); + color: var(--cor-eli-primaria, #688C00); +} + +.eli-dh__cal-dia--fora { color: var(--cor-eli-borda-forte, #B5BAA8); cursor: default; } + +.eli-dh__cal-dia--hoje { + color: var(--cor-eli-primaria, #688C00); + font-weight: 700; + position: relative; +} + +.eli-dh__cal-dia--hoje::after { + content: ""; + position: absolute; + bottom: 4px; + left: 50%; + transform: translateX(-50%); + width: 4px; + height: 4px; + border-radius: 50%; + background: var(--cor-eli-primaria, #688C00); +} + +.eli-dh__cal-dia--selecionado { background: var(--cor-eli-primaria, #688C00); color: #fff; font-weight: 700; } +.eli-dh__cal-dia--selecionado.eli-dh__cal-dia--hoje::after { background: #fff; } +.eli-dh__cal-dia--desabilitado { opacity: 0.32; cursor: not-allowed; } + +.eli-dh__hora-secao { + border-top: 1px solid var(--cor-eli-borda, #D5D8CC); + padding: 12px 16px 14px; + display: flex; + align-items: center; + gap: 10px; +} + +.eli-dh__hora-icone { width: 16px; height: 16px; color: var(--cor-eli-neutro, #5E6553); flex-shrink: 0; } + +.eli-dh__hora-campos { display: flex; align-items: center; gap: 6px; flex: 1; } + +.eli-dh__hora-input { + width: 52px; + padding: 6px 8px; + border: 1.5px solid var(--cor-eli-borda, #D5D8CC); + border-radius: 6px; + background: var(--cor-eli-superficie, #fff); + text-align: center; + font-size: 16px; + font-weight: 600; + font-family: inherit; + color: var(--cor-eli-neutro-escuro, #3E4436); + transition: border-color 0.15s; + outline: none; + -moz-appearance: textfield; +} + +.eli-dh__hora-input::-webkit-inner-spin-button, +.eli-dh__hora-input::-webkit-outer-spin-button { -webkit-appearance: none; } + +.eli-dh__hora-input:focus { + border-color: var(--cor-eli-primaria, #688C00); + box-shadow: 0 0 0 2px color-mix(in srgb, var(--cor-eli-primaria, #688C00) 14%, transparent); +} + +.eli-dh__hora-sep { font-size: 20px; font-weight: 700; color: var(--cor-eli-neutro, #5E6553); line-height: 1; margin-bottom: 2px; } + +.eli-dh__rodape { + padding: 10px 14px 12px; + display: flex; + justify-content: flex-end; + gap: 8px; + border-top: 1px solid var(--cor-eli-borda, #D5D8CC); +} + +.eli-dh__btn { + display: inline-flex; + align-items: center; + gap: 5px; + padding: 7px 16px; + border: none; + border-radius: 8px; + font-size: 13px; + font-weight: 600; + font-family: inherit; + cursor: pointer; + transition: background 0.14s, opacity 0.14s; +} + +.eli-dh__btn--cancelar { background: var(--cor-eli-fundo, #F2F3EE); color: var(--cor-eli-neutro, #5E6553); } +.eli-dh__btn--cancelar:hover { background: var(--cor-eli-borda, #D5D8CC); } +.eli-dh__btn--confirmar { background: var(--cor-eli-primaria, #688C00); color: #fff; } +.eli-dh__btn--confirmar:hover { background: var(--cor-eli-primaria-escura, #4A6500); } diff --git a/src/componentes/EliEntrada/EliEntradaDataHora/Calendario.vue b/src/componentes/EliEntrada/EliEntradaDataHora/Calendario.vue new file mode 100644 index 0000000..6e275b3 --- /dev/null +++ b/src/componentes/EliEntrada/EliEntradaDataHora/Calendario.vue @@ -0,0 +1,231 @@ + + + diff --git a/src/componentes/EliEntrada/EliEntradaDataHora/EliEntradaDataHora.css b/src/componentes/EliEntrada/EliEntradaDataHora/EliEntradaDataHora.css new file mode 100644 index 0000000..02efb49 --- /dev/null +++ b/src/componentes/EliEntrada/EliEntradaDataHora/EliEntradaDataHora.css @@ -0,0 +1,123 @@ +/* ───────────────────────────────────────────── + EliEntradaDataHora — Campo de acionamento + ───────────────────────────────────────────── */ + +.eli-dh { + position: relative; + width: 100%; + font-family: var(--eli-font-family, "Google Sans", system-ui, sans-serif); +} + +.eli-dh__campo { + display: flex; + align-items: center; + gap: 8px; + padding: 0 14px; + height: 56px; + border: 1.5px solid var(--cor-eli-borda, #D5D8CC); + border-radius: 8px; + background: var(--cor-eli-superficie, #fff); + cursor: pointer; + transition: border-color 0.18s, box-shadow 0.18s; + user-select: none; + position: relative; +} + +.eli-dh__campo:hover:not(.eli-dh__campo--desabilitado) { + border-color: var(--cor-eli-primaria-media, #ADCC44); +} + +.eli-dh__campo--focado { + border-color: var(--cor-eli-primaria, #688C00); + box-shadow: 0 0 0 3px color-mix(in srgb, var(--cor-eli-primaria, #688C00) 14%, transparent); + outline: none; +} + +.eli-dh__campo--erro { + border-color: var(--cor-eli-erro, #C62828); + box-shadow: 0 0 0 3px color-mix(in srgb, var(--cor-eli-erro, #C62828) 12%, transparent); +} + +.eli-dh__campo--desabilitado { + background: var(--cor-eli-fundo, #F2F3EE); + cursor: not-allowed; + opacity: 0.6; +} + +.eli-dh__icone { + flex-shrink: 0; + width: 20px; + height: 20px; + color: var(--cor-eli-neutro, #5E6553); + transition: color 0.18s; +} + +.eli-dh__campo--focado .eli-dh__icone { + color: var(--cor-eli-primaria, #688C00); +} + +.eli-dh__conteudo { + flex: 1; + display: flex; + flex-direction: column; + min-width: 0; + gap: 1px; +} + +.eli-dh__rotulo { + font-size: 11px; + font-weight: 600; + color: var(--cor-eli-neutro, #5E6553); + line-height: 1.2; + letter-spacing: 0.02em; + text-transform: uppercase; + transition: color 0.18s; +} + +.eli-dh__campo--focado .eli-dh__rotulo { color: var(--cor-eli-primaria, #688C00); } +.eli-dh__campo--erro .eli-dh__rotulo { color: var(--cor-eli-erro, #C62828); } + +.eli-dh__valor { + font-size: 15px; + font-weight: 500; + color: var(--cor-eli-neutro-escuro, #3E4436); + white-space: nowrap; + overflow: hidden; + text-overflow: ellipsis; +} + +.eli-dh__valor--vazio { + color: var(--cor-eli-borda-forte, #B5BAA8); + font-weight: 400; +} + +.eli-dh__limpar { + flex-shrink: 0; + display: flex; + align-items: center; + justify-content: center; + width: 24px; + height: 24px; + border: none; + background: none; + border-radius: 50%; + cursor: pointer; + color: var(--cor-eli-borda-forte, #B5BAA8); + transition: color 0.15s, background 0.15s; + padding: 0; +} + +.eli-dh__limpar:hover { + color: var(--cor-eli-erro, #C62828); + background: var(--cor-eli-erro-bg, #FFEBEE); +} + +.eli-dh__mensagem { + margin-top: 4px; + padding: 0 14px; + font-size: 12px; + line-height: 1.4; +} + +.eli-dh__mensagem--erro { color: var(--cor-eli-erro, #C62828); } +.eli-dh__mensagem--dica { color: var(--cor-eli-neutro, #5E6553); } diff --git a/src/componentes/EliEntrada/EliEntradaDataHora/calendarioHelpers.ts b/src/componentes/EliEntrada/EliEntradaDataHora/calendarioHelpers.ts new file mode 100644 index 0000000..a8240a9 --- /dev/null +++ b/src/componentes/EliEntrada/EliEntradaDataHora/calendarioHelpers.ts @@ -0,0 +1,73 @@ +import dayjs from "dayjs" +import type { CelulaCalendario, EntradaDataHora } from "./useDataHora" + +/** + * Gera as 42 células (6 semanas) do calendário para o mês de referência. + * Preenche dias do mês anterior, atual e posterior para alinhar a grade. + */ +export function gerarCelulas( + referencia: dayjs.Dayjs, + diaSelecionado: dayjs.Dayjs | null, + min?: string, + max?: string, +): CelulaCalendario[] { + const inicio = referencia.startOf("month") + const fim = referencia.endOf("month") + const hoje = dayjs() + const minDt = min ? dayjs(min).startOf("day") : null + const maxDt = max ? dayjs(max).startOf("day") : null + const lista: CelulaCalendario[] = [] + + for (let i = inicio.day() - 1; i >= 0; i--) { + const d = inicio.subtract(i + 1, "day") + lista.push({ + dia: d.date(), + data: d, + atual: false, + hoje: false, + selecionado: false, + desabilitado: true, + }) + } + + for (let d = inicio; d.isBefore(fim) || d.isSame(fim, "day"); d = d.add(1, "day")) { + lista.push({ + dia: d.date(), + data: d, + atual: true, + hoje: d.isSame(hoje, "day"), + selecionado: diaSelecionado !== null && d.isSame(diaSelecionado, "day"), + desabilitado: (minDt !== null && d.isBefore(minDt)) || (maxDt !== null && d.isAfter(maxDt)), + }) + } + + let extra = 1 + while (lista.length < 42) { + const d = fim.add(extra++, "day") + lista.push({ + dia: d.date(), + data: d, + atual: false, + hoje: false, + selecionado: false, + desabilitado: true, + }) + } + + return lista +} + +/** + * Formata um valor ISO para exibição no campo. + * @param valor - string ISO 8601 ou null + * @param modo - "data" exibe apenas a data, "dataHora" inclui hora + */ +export function formatarValor( + valor: string | null, + modo: EntradaDataHora["opcoes"]["modo"], +): string { + if (!valor) return "" + return modo === "data" + ? dayjs(valor).format("DD/MM/YYYY") + : dayjs(valor).format("DD/MM/YYYY HH:mm") +} diff --git a/src/componentes/EliEntrada/EliEntradaDataHora/index.vue b/src/componentes/EliEntrada/EliEntradaDataHora/index.vue new file mode 100644 index 0000000..3d811bb --- /dev/null +++ b/src/componentes/EliEntrada/EliEntradaDataHora/index.vue @@ -0,0 +1,133 @@ + + + diff --git a/src/componentes/EliEntrada/EliEntradaDataHora/useDataHora.ts b/src/componentes/EliEntrada/EliEntradaDataHora/useDataHora.ts new file mode 100644 index 0000000..79513f6 --- /dev/null +++ b/src/componentes/EliEntrada/EliEntradaDataHora/useDataHora.ts @@ -0,0 +1,248 @@ +import dayjs from "dayjs" +import "dayjs/locale/pt-br" +import { computed, nextTick, onBeforeUnmount, onMounted, ref, watch } from "vue" +import type { CampoDensidade, CampoVariante } from "../../../tipos" +import type { PadroesEntradas } from "../tiposEntradas" +import { formatarValor, gerarCelulas } from "./calendarioHelpers" + +dayjs.locale("pt-br") + +export type EntradaDataHora = PadroesEntradas["dataHora"] + +export interface CelulaCalendario { + dia: number + data: dayjs.Dayjs + atual: boolean + hoje: boolean + selecionado: boolean + desabilitado: boolean +} + +export const MESES = Array.from({ length: 12 }, (_, i) => { + const s = dayjs().month(i).format("MMMM") + return s.charAt(0).toUpperCase() + s.slice(1) +}) + +export const diasSemana = ["Dom", "Seg", "Ter", "Qua", "Qui", "Sex", "Sáb"] + +/** Função de emit genérica do Vue (compatível com defineComponent) */ +type EmitFn = (event: string, payload?: unknown) => void + +type Props = { + value?: string | null + opcoes?: EntradaDataHora["opcoes"] + modelValue?: string | null + modo?: "data" | "dataHora" + rotulo?: string + placeholder?: string + desabilitado?: boolean + limpavel?: boolean + erro?: boolean + mensagensErro?: string | string[] + dica?: string + dicaPersistente?: boolean + densidade?: CampoDensidade + variante?: CampoVariante + min?: string + max?: string +} + +let contadorUid = 0 + +/** Composable principal do EliEntradaDataHora. */ +export function useDataHora(props: Props, emit: EmitFn) { + const uid = ++contadorUid + const aberto = ref(false) + const estiloPopover = ref>({}) + const referencia = ref(dayjs()) + const diaSelecionado = ref(null) + const horaTemp = ref("00") + const minutoTemp = ref("00") + + const opcoesEfetivas = computed( + () => + props.opcoes ?? { + rotulo: props.rotulo ?? "Data", + placeholder: props.placeholder ?? "", + modo: props.modo ?? "dataHora", + limpavel: props.limpavel, + erro: props.erro, + mensagensErro: props.mensagensErro, + dica: props.dica, + dicaPersistente: props.dicaPersistente, + densidade: props.densidade, + variante: props.variante, + min: props.min, + max: props.max, + }, + ) + + const modoEfetivo = computed<"data" | "dataHora">(() => opcoesEfetivas.value.modo ?? "dataHora") + const desabilitadoEfetivo = computed(() => Boolean(props.desabilitado)) + + const effectiveModelValue = computed(() => + props.value !== undefined ? (props.value ?? null) : (props.modelValue ?? null), + ) + + const valor = computed(() => effectiveModelValue.value) + + const mensagensVisiveis = computed(() => { + const m = opcoesEfetivas.value.erro ? opcoesEfetivas.value.mensagensErro : null + return m ? (Array.isArray(m) ? m : [m]) : [] + }) + + const valorFormatado = computed(() => formatarValor(valor.value, modoEfetivo.value)) + + const nomeMesAtual = computed(() => MESES[referencia.value.month()]) + const anoAtual = computed(() => referencia.value.year()) + const mesAtual = computed(() => referencia.value.month()) + const listaAnos = computed(() => { + const y = referencia.value.year() + const min = opcoesEfetivas.value.min + ? dayjs(opcoesEfetivas.value.min).year() + : dayjs().year() - 80 + const max = opcoesEfetivas.value.max + ? dayjs(opcoesEfetivas.value.max).year() + : dayjs().year() + 20 + const anos: number[] = [] + for (let i = Math.min(min, y); i <= Math.max(max, y); i++) anos.push(i) + return anos + }) + + const celulas = computed(() => + gerarCelulas( + referencia.value, + diaSelecionado.value, + opcoesEfetivas.value.min, + opcoesEfetivas.value.max, + ), + ) + + watch( + effectiveModelValue, + (v) => { + if (v) { + const d = dayjs(v) + diaSelecionado.value = d.startOf("day") + referencia.value = d.startOf("month") + horaTemp.value = d.format("HH") + minutoTemp.value = d.format("mm") + } else { + diaSelecionado.value = null + horaTemp.value = "00" + minutoTemp.value = "00" + } + }, + { immediate: true }, + ) + + function calcularPosicao() { + const el = document.getElementById(`eli-dh-campo-${uid}`) + if (!el) return + const rect = el.getBoundingClientRect() + const top = rect.bottom + window.scrollY + 6 + let left = rect.left + window.scrollX + if (left + 316 > window.innerWidth + window.scrollX - 8) + left = rect.right + window.scrollX - 316 + estiloPopover.value = { position: "absolute", top: `${top}px`, left: `${left}px` } + } + + function abrirSeHabilitado() { + if (desabilitadoEfetivo.value) return + aberto.value = !aberto.value + if (aberto.value) { + emit("foco") + emit("focus") + nextTick(calcularPosicao) + } + } + + function fechar() { + if (!aberto.value) return + aberto.value = false + emit("desfoco") + emit("blur") + } + + function navegarMes(delta: number) { + referencia.value = referencia.value.add(delta, "month") + } + + function mudarMes(mes: number) { + referencia.value = referencia.value.month(mes) + } + + function mudarAno(ano: number) { + referencia.value = referencia.value.year(ano) + } + + function selecionarDia(cell: CelulaCalendario) { + if (cell.desabilitado) return + diaSelecionado.value = cell.data.startOf("day") + if (modoEfetivo.value === "data") confirmar() + } + + function emitirValor(iso: string | null) { + ;["update:value", "input", "change", "update:modelValue", "alterar"].forEach((e) => { + emit(e, iso) + }) + } + + function confirmar() { + if (!diaSelecionado.value) return + const h = Number.parseInt(horaTemp.value, 10) || 0 + const m = Number.parseInt(minutoTemp.value, 10) || 0 + const r = + modoEfetivo.value === "data" + ? diaSelecionado.value.startOf("day") + : diaSelecionado.value.hour(h).minute(m).second(0) + emitirValor(r.format()) + fechar() + } + + function limpar() { + emitirValor(null) + } + + function onDocClick(e: MouseEvent) { + if (!aberto.value) return + const alvo = e.target as Node + if ( + !document.getElementById(`eli-dh-campo-${uid}`)?.contains(alvo) && + !document.getElementById(`eli-dh-popover-${uid}`)?.contains(alvo) + ) + fechar() + } + + onMounted(() => document.addEventListener("click", onDocClick, true)) + onBeforeUnmount(() => document.removeEventListener("click", onDocClick, true)) + + return { + uid, + aberto, + estiloPopover, + referencia, + diaSelecionado, + horaTemp, + minutoTemp, + opcoesEfetivas, + modoEfetivo, + desabilitadoEfetivo, + valor, + valorFormatado, + mensagensVisiveis, + nomeMesAtual, + anoAtual, + mesAtual, + listaAnos, + mudarMes, + mudarAno, + celulas, + abrirSeHabilitado, + fechar, + navegarMes, + selecionarDia, + confirmar, + limpar, + } +} diff --git a/src/componentes/EliEntrada/index.ts b/src/componentes/EliEntrada/index.ts index 1481eec..95948d4 100644 --- a/src/componentes/EliEntrada/index.ts +++ b/src/componentes/EliEntrada/index.ts @@ -1,6 +1,6 @@ import EliEntradaConfirmacao from "./EliEntradaConfirmacao.vue" import EliEntradaCoordenadas from "./EliEntradaCoordenadas.vue" -import EliEntradaDataHora from "./EliEntradaDataHora.vue" +import EliEntradaDataHora from "./EliEntradaDataHora/index.vue" import EliEntradaNumero from "./EliEntradaNumero.vue" import EliEntradaParagrafo from "./EliEntradaParagrafo.vue" import EliEntradaSelecao from "./EliEntradaSelecao.vue" diff --git a/src/componentes/EliEntrada/registryEliEntradas.ts b/src/componentes/EliEntrada/registryEliEntradas.ts index 1a5a1f9..433afca 100644 --- a/src/componentes/EliEntrada/registryEliEntradas.ts +++ b/src/componentes/EliEntrada/registryEliEntradas.ts @@ -1,7 +1,7 @@ import type { Component } from "vue" import EliEntradaConfirmacao from "./EliEntradaConfirmacao.vue" import EliEntradaCoordenadas from "./EliEntradaCoordenadas.vue" -import EliEntradaDataHora from "./EliEntradaDataHora.vue" +import EliEntradaDataHora from "./EliEntradaDataHora/index.vue" import EliEntradaNumero from "./EliEntradaNumero.vue" import EliEntradaParagrafo from "./EliEntradaParagrafo.vue" import EliEntradaSelecao from "./EliEntradaSelecao.vue"