@thibezer/ui-components-kit 2.24.2 → 2.25.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (55) hide show
  1. package/CHANGELOG.md +1131 -1102
  2. package/README.md +822 -822
  3. package/dist/botao.cjs +1 -1
  4. package/dist/botao.js +1 -1
  5. package/dist/camadas.cjs +1 -1
  6. package/dist/camadas.js +2 -2
  7. package/dist/campo-texto.cjs +1 -1
  8. package/dist/campo-texto.js +1 -1
  9. package/dist/canvas.cjs +1 -1
  10. package/dist/canvas.js +1 -1
  11. package/dist/card.cjs +1 -1
  12. package/dist/card.js +1 -1
  13. package/dist/components/ui-canvas-prancha/index.d.ts +1 -1
  14. package/dist/components/ui-canvas-prancha/prancha-teclado.d.ts +13 -5
  15. package/dist/components/ui-canvas-prancha/ui-canvas-prancha-base.d.ts +6 -1
  16. package/dist/components/ui-canvas-prancha/ui-canvas-prancha.d.ts +2 -2
  17. package/dist/components/ui-editor-prancha/editor-barra.d.ts +19 -0
  18. package/dist/components/ui-editor-prancha/editor-modos.d.ts +26 -1
  19. package/dist/components/ui-editor-prancha/ui-editor-prancha.d.ts +32 -9
  20. package/dist/core/alvo-digitavel.d.ts +3 -0
  21. package/dist/core.cjs +1 -1
  22. package/dist/core.js +4 -4
  23. package/dist/cores.cjs +1 -1
  24. package/dist/cores.js +3 -3
  25. package/dist/custom-elements.json +16355 -15988
  26. package/dist/data.cjs +1 -1
  27. package/dist/data.js +1 -1
  28. package/dist/feedback.cjs +1 -1
  29. package/dist/feedback.js +1 -1
  30. package/dist/forms.cjs +7 -7
  31. package/dist/forms.js +160 -156
  32. package/dist/index.cjs +1 -1
  33. package/dist/index.js +3 -3
  34. package/dist/kit-base-BmkPi5Rz.cjs +2 -0
  35. package/dist/{kit-base-_THn4w3u.js → kit-base-CBXA66aM.js} +119 -114
  36. package/dist/mapa.cjs +1 -1
  37. package/dist/mapa.js +1 -1
  38. package/dist/modal.cjs +1 -1
  39. package/dist/modal.js +1 -1
  40. package/dist/prancha.cjs +6 -6
  41. package/dist/prancha.js +1707 -1470
  42. package/dist/register.cjs +1 -1
  43. package/dist/register.js +1 -1
  44. package/dist/seletor-mapa-base.cjs +1 -1
  45. package/dist/seletor-mapa-base.js +1 -1
  46. package/dist/tabela.cjs +1 -1
  47. package/dist/tabela.js +1 -1
  48. package/dist/tipos-elementos.d.ts +2 -2
  49. package/dist/tipos-vue.d.ts +2 -2
  50. package/dist/tools.cjs +1 -1
  51. package/dist/tools.js +1 -1
  52. package/dist/{ui-seletor-cor-B_twSm-V.js → ui-seletor-cor-CPjA9vhZ.js} +1 -1
  53. package/dist/{ui-seletor-cor-BGw8SBPm.cjs → ui-seletor-cor-D_ifitEN.cjs} +1 -1
  54. package/package.json +1 -1
  55. package/dist/kit-base-CGqj9aiD.cjs +0 -2
package/dist/index.cjs CHANGED
@@ -1,4 +1,4 @@
1
- "use strict";var he=Object.defineProperty;var me=(i,r,e)=>r in i?he(i,r,{enumerable:!0,configurable:!0,writable:!0,value:e}):i[r]=e;var c=(i,r,e)=>me(i,typeof r!="symbol"?r+"":r,e);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});;/* empty css */const s=require("./kit-base-CGqj9aiD.cjs"),S=require("./campo-texto.cjs"),b=require("./forms.cjs"),u=require("./camadas.cjs"),o=require("./tabela.cjs"),f=require("./feedback.cjs"),B=require("./tools.cjs"),w=require("./cores-utils-BmkzhA1v.cjs"),I=require("./data.cjs"),Z=require("./botao.cjs"),pe=require("./card.cjs"),ge=require("./cores.cjs"),T=require("./modal.cjs"),J=require("./seletor-mapa-base.cjs"),F=require("./ui-seletor-cor-BGw8SBPm.cjs"),ve=':host{display:block;box-sizing:border-box;margin:0;padding:0;color:var(--ui-cor-texto, #e1e1e6);font-family:var(--ui-fonte-base, "Inter", sans-serif)}:host([inline]){display:inline-block}.ui-texto{margin:0;padding:0;box-sizing:border-box;font-family:inherit;color:inherit;font-size:inherit;font-weight:inherit;line-height:inherit;overflow-wrap:break-word}.ui-texto--h1{font-size:var(--ui-tamanho-h1, clamp(24px, 4vw, 36px));font-weight:var(--ui-peso-negrito, 700);line-height:var(--ui-altura-linha-titulo, 1.25);letter-spacing:-.5px}.ui-texto--h2{font-size:var(--ui-tamanho-h2, clamp(20px, 3vw, 28px));font-weight:var(--ui-peso-seminegrito, 600);line-height:var(--ui-altura-linha-titulo, 1.25);letter-spacing:-.3px}.ui-texto--h3{font-size:var(--ui-tamanho-h3, clamp(18px, 2.4vw, 24px));font-weight:var(--ui-peso-seminegrito, 600);line-height:var(--ui-altura-linha-titulo, 1.25)}.ui-texto--h4{font-size:var(--ui-tamanho-h4, clamp(16px, 2vw, 20px));font-weight:var(--ui-peso-medio, 500);line-height:var(--ui-altura-linha-titulo, 1.25)}.ui-texto--h5{font-size:var(--ui-tamanho-h5, clamp(14px, 1.6vw, 18px));font-weight:var(--ui-peso-medio, 500);line-height:var(--ui-altura-linha-titulo, 1.25)}.ui-texto--h6{font-size:var(--ui-tamanho-h6, clamp(13px, 1.2vw, 16px));font-weight:var(--ui-peso-seminegrito, 600);line-height:var(--ui-altura-linha-titulo, 1.25);text-transform:uppercase;letter-spacing:.5px}.ui-texto--corpo{font-size:var(--ui-tamanho-corpo, 14px);font-weight:var(--ui-peso-normal, 400);line-height:var(--ui-altura-linha-corpo, 1.5)}.ui-texto--corpo-sm{font-size:var(--ui-tamanho-corpo-sm, 13px);font-weight:var(--ui-peso-normal, 400);line-height:var(--ui-altura-linha-corpo, 1.5)}.ui-texto--caption{font-size:var(--ui-tamanho-caption, 11px);font-weight:var(--ui-peso-normal, 400);line-height:var(--ui-altura-linha-compacta, 1.2);color:var(--ui-cor-texto-secundario, #888899)}.ui-texto--codigo{font-family:var(--ui-fonte-codigo, monospace);font-size:var(--ui-tamanho-codigo, 12px);font-weight:var(--ui-peso-normal, 400);line-height:var(--ui-altura-linha-corpo, 1.5);background:var(--ui-cor-fundo-elevado, #1a1a1e);padding:2px 6px;border-radius:var(--ui-raio-sm, 4px);border:1px solid var(--ui-cor-borda, rgba(255, 255, 255, .12))}.ui-texto--cor-primaria{color:var(--ui-cor-primaria, #00E08A)}.ui-texto--cor-secundaria{color:var(--ui-cor-texto-secundario, #888899)}.ui-texto--cor-destaque{color:var(--ui-cor-destaque, #00E08A)}.ui-texto--cor-erro{color:var(--ui-cor-texto-erro, #ff5555)}.ui-texto--cor-sucesso{color:var(--ui-cor-texto-sucesso, #00E08A)}.ui-texto--cor-alerta{color:var(--ui-cor-texto-alerta, #ffb86c)}.ui-texto--peso-normal{font-weight:var(--ui-peso-normal, 400)!important}.ui-texto--peso-medio{font-weight:var(--ui-peso-medio, 500)!important}.ui-texto--peso-seminegrito{font-weight:var(--ui-peso-seminegrito, 600)!important}.ui-texto--peso-negrito{font-weight:var(--ui-peso-negrito, 700)!important}.ui-texto--alinhamento-esquerda{text-align:left}.ui-texto--alinhamento-centro{text-align:center}.ui-texto--alinhamento-direita{text-align:right}.ui-texto--alinhamento-justificado{text-align:justify;-webkit-hyphens:auto;hyphens:auto}.ui-texto--truncar{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;display:block}.ui-texto--linhas{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:var(--ui-texto-linhas, 3);line-clamp:var(--ui-texto-linhas, 3);overflow:hidden}@media print{.ui-texto--linhas{-webkit-line-clamp:unset;line-clamp:unset;display:block;overflow:visible}}:host(.degrade) .ui-texto:not(.ui-texto--codigo),:host(.ui-degrade) .ui-texto:not(.ui-texto--codigo),:host(.gradiente) .ui-texto:not(.ui-texto--codigo),:host(.ui-gradiente) .ui-texto:not(.ui-texto--codigo),:host([degrade]:not([degrade="false"]):not([degrade="none"]):not([degrade="0"]):not([degrade="off"])) .ui-texto:not(.ui-texto--codigo),:host([gradiente]:not([gradiente="false"]):not([gradiente="none"]):not([gradiente="0"]):not([gradiente="off"])) .ui-texto:not(.ui-texto--codigo),:host([gradient]:not([gradient="false"]):not([gradient="none"]):not([gradient="0"]):not([gradient="off"])) .ui-texto:not(.ui-texto--codigo),.ui-texto[data-degrade=ativo]:not(.ui-texto--codigo){background:var(--ui-degrade-interno, var(--ui-texto-fundo, var(--ui-gradiente-texto, var(--ui-gradiente-primario))));-webkit-background-clip:text;background-clip:text;-webkit-text-fill-color:transparent;color:transparent}:host(.degrade) .ui-texto--codigo,:host(.ui-degrade) .ui-texto--codigo,:host(.gradiente) .ui-texto--codigo,:host(.ui-gradiente) .ui-texto--codigo,.ui-texto--codigo[data-degrade=ativo]{background:var(--ui-degrade-interno, var(--ui-texto-fundo, var(--ui-fundo-elevado, var(--ui-cor-fundo-elevado, #1a1a1e))))}',$=["h1","h2","h3","h4","h5","h6","corpo","corpo-sm","caption","codigo"],be=["primaria","secundaria","destaque","erro","sucesso","alerta"],fe=["normal","medio","seminegrito","negrito"],xe=["esquerda","centro","direita","justificado"],_e=new Set(["p","span","div","h1","h2","h3","h4","h5","h6","small","code","strong","em","label","blockquote","pre","b","i"]),Ae=50;class W extends s.SafeHTMLElement{constructor(){super();c(this,"container",null);c(this,"shadow",null);if(typeof this.attachShadow=="function"&&typeof document<"u"){this.shadow=this.attachShadow({mode:"open"});const e=document.createElement("p");e.className="ui-texto ui-texto--corpo",e.setAttribute("part","base"),e.appendChild(document.createElement("slot")),this.container=e,this.shadow.innerHTML=`<style>${ve}</style>`,this.shadow.appendChild(e)}}static get observedAttributes(){return["variante","tag","cor","peso","alinhamento","truncar","linhas",...s.ATRIBUTOS_DEGRADE]}connectedCallback(){this.render()}attributeChangedCallback(e,t,a){this.render()}resolveTag(){const e=this.getAttribute("tag");if(e){const a=e.toLowerCase().trim();if(_e.has(a))return a;console.warn(`[ui-texto] Tag "${e}" não permitida ou inválida. Utilizando fallback semântico.`)}const t=s.escolherOpcao(this.getAttribute("variante"),$,"corpo");switch(t){case"h1":case"h2":case"h3":case"h4":case"h5":case"h6":return t;case"caption":return"small";case"codigo":return"code";case"corpo-sm":case"corpo":default:return"p"}}render(){const{container:e,shadow:t}=this;if(!e||!t)return;const a=this.resolveTag(),n=s.escolherOpcao(this.getAttribute("variante"),$,"corpo"),l=s.escolherOpcaoOpcional(this.getAttribute("cor"),be),d=s.escolherOpcaoOpcional(this.getAttribute("peso"),fe),h=s.escolherOpcaoOpcional(this.getAttribute("alinhamento"),xe),m=this.hasAttribute("truncar"),p=m?0:s.escolherInteiro(this.getAttribute("linhas"),1,Ae,0);let g=e;e.tagName.toLowerCase()!==a&&(g=document.createElement(a),g.setAttribute("part","base"),g.appendChild(document.createElement("slot")),t.replaceChild(g,e),this.container=g);const v=["ui-texto",`ui-texto--${n}`];l&&v.push(`ui-texto--cor-${l}`),d&&v.push(`ui-texto--peso-${d}`),h&&v.push(`ui-texto--alinhamento-${h}`),m&&v.push("ui-texto--truncar"),p>0&&v.push("ui-texto--linhas"),g.className=v.join(" "),p>0?g.style.setProperty("--ui-texto-linhas",String(p)):g.style.removeProperty("--ui-texto-linhas"),s.aplicarDegradeNoElemento(this,g)}}s.definirCustomElement("ui-texto",W);const Ee=':host{display:inline-block;box-sizing:border-box;vertical-align:middle}:host([largura-total]),:host([full-width]){display:block;width:100%}.ui-texto-editavel{position:relative;display:inline-flex;align-items:center;box-sizing:border-box;width:100%}.ui-texto-editavel__botao{display:inline-flex;align-items:center;justify-content:flex-start;gap:var(--ui-espaco-xs, 4px);width:100%;height:var(--ui-campo-altura, 34px);min-height:var(--ui-campo-altura, 34px);box-sizing:border-box;padding:0 12px;border:1px solid var(--ui-cor-borda, rgba(255, 255, 255, .12));border-radius:var(--ui-raio-borda, 6px);background:var(--ui-cor-botao-secundario-fundo, #1e1e24);color:var(--ui-cor-texto, #e1e1e6);font-family:var(--ui-fonte-base, "Inter", sans-serif);font-size:clamp(11px,.85rem,13px);font-weight:500;line-height:1.2;text-align:left;-webkit-user-select:none;user-select:none;cursor:pointer;touch-action:manipulation;-webkit-tap-highlight-color:transparent;transition:background-color .15s ease,border-color .15s ease,color .15s ease,box-shadow .15s ease}.ui-texto-editavel__botao:hover:not(:disabled){background:var(--ui-cor-botao-secundario-hover, #2a2a34);border-color:color-mix(in srgb,var(--ui-cor-texto, #e1e1e6) 24%,transparent)}.ui-texto-editavel__botao:focus-visible{outline:none;box-shadow:0 0 0 2px var(--ui-cor-fundo, #0b0b0d),0 0 0 4px var(--ui-cor-primaria, #00E08A)}.ui-texto-editavel__texto{display:inline-block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:100%}.ui-texto-editavel__texto--placeholder{color:var(--ui-cor-texto-silenciado, rgba(255, 255, 255, .45));font-style:italic}.ui-texto-editavel__input{display:inline-block;width:100%;height:var(--ui-campo-altura, 34px);min-height:var(--ui-campo-altura, 34px);box-sizing:border-box;padding:0 11px;border:1px solid var(--ui-cor-primaria, #00E08A);border-radius:var(--ui-raio-borda, 6px);background:var(--ui-cor-campo-fundo, #121217);color:var(--ui-cor-texto, #ffffff);font-family:var(--ui-fonte-base, "Inter", sans-serif);font-size:clamp(11px,.85rem,13px);font-weight:500;line-height:1.2;outline:none;box-shadow:0 0 0 1px var(--ui-cor-primaria, #00E08A),0 0 0 3px color-mix(in srgb,var(--ui-cor-primaria, #00E08A) 25%,transparent);transition:border-color .15s ease,box-shadow .15s ease}.ui-texto-editavel__input::selection{background:var(--ui-cor-primaria, #00E08A);color:#000}.ui-texto-editavel[data-modo=leitura] .ui-texto-editavel__input,.ui-texto-editavel[data-modo=edicao] .ui-texto-editavel__botao{display:none!important}.ui-texto-editavel--sm .ui-texto-editavel__botao,.ui-texto-editavel--sm .ui-texto-editavel__input{height:var(--ui-campo-altura-sm, 28px);min-height:var(--ui-campo-altura-sm, 28px);font-size:11px;padding-left:8px;padding-right:8px}.ui-texto-editavel--lg .ui-texto-editavel__botao,.ui-texto-editavel--lg .ui-texto-editavel__input{height:var(--ui-campo-altura-lg, 42px);min-height:var(--ui-campo-altura-lg, 42px);font-size:15px;padding-left:14px;padding-right:14px}.ui-texto-editavel--primario .ui-texto-editavel__botao,.ui-texto-editavel--primary .ui-texto-editavel__botao{background:var(--ui-cor-primaria, #00E08A);color:var(--ui-cor-texto-sobre-primaria, #000000);border-color:transparent;font-weight:600}.ui-texto-editavel--primario .ui-texto-editavel__botao:hover:not(:disabled),.ui-texto-editavel--primary .ui-texto-editavel__botao:hover:not(:disabled){filter:brightness(1.1)}.ui-texto-editavel--ghost .ui-texto-editavel__botao,.ui-texto-editavel--terciario .ui-texto-editavel__botao{background:transparent;color:var(--ui-cor-texto, #e1e1e6);border-color:transparent}.ui-texto-editavel--ghost .ui-texto-editavel__botao:hover:not(:disabled),.ui-texto-editavel--terciario .ui-texto-editavel__botao:hover:not(:disabled){background:var(--ui-cor-hover-menu, rgba(255, 255, 255, .08))}.ui-texto-editavel--outline .ui-texto-editavel__botao,.ui-texto-editavel--borda .ui-texto-editavel__botao{background:transparent;color:var(--ui-cor-texto, #e1e1e6);border-color:var(--ui-cor-borda, rgba(255, 255, 255, .2))}.ui-texto-editavel--outline .ui-texto-editavel__botao:hover:not(:disabled),.ui-texto-editavel--borda .ui-texto-editavel__botao:hover:not(:disabled){background:var(--ui-cor-hover-menu, rgba(255, 255, 255, .06));border-color:var(--ui-cor-primaria, #00E08A)}.ui-texto-editavel--texto .ui-texto-editavel__botao,.ui-texto-editavel--plano .ui-texto-editavel__botao{background:transparent;border-color:transparent;padding:0 4px;height:auto;min-height:unset;border-radius:4px}.ui-texto-editavel--texto .ui-texto-editavel__botao:hover:not(:disabled),.ui-texto-editavel--plano .ui-texto-editavel__botao:hover:not(:disabled){background:var(--ui-cor-hover-menu, rgba(255, 255, 255, .06));border-color:color-mix(in srgb,var(--ui-cor-borda, #ffffff) 15%,transparent)}.ui-texto-editavel--destaque .ui-texto-editavel__botao{background:var(--ui-cor-destaque, var(--ui-cor-primaria, #00E08A));color:var(--ui-cor-texto-sobre-primaria, #000000);border-color:transparent}.ui-texto-editavel--destrutivo .ui-texto-editavel__botao{background:var(--ui-cor-botao-destrutivo-fundo, #ff4444);color:var(--ui-cor-botao-destrutivo-texto, #ffffff);border-color:transparent}:host([disabled]){pointer-events:none;opacity:.55;cursor:not-allowed}.ui-texto-editavel__botao:disabled{cursor:not-allowed;opacity:.55}:host([readonly]) .ui-texto-editavel__botao,:host([somente-leitura]) .ui-texto-editavel__botao{cursor:default}',ye=["valor","value","placeholder","variante","tamanho","disabled","desabilitado","readonly","somente-leitura","ao-perder-foco","obrigatorio","maxlength","limite-caracteres","name","nome"];function Ce(i){return`
1
+ "use strict";var he=Object.defineProperty;var me=(i,r,e)=>r in i?he(i,r,{enumerable:!0,configurable:!0,writable:!0,value:e}):i[r]=e;var c=(i,r,e)=>me(i,typeof r!="symbol"?r+"":r,e);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});;/* empty css */const s=require("./kit-base-BmkPi5Rz.cjs"),S=require("./campo-texto.cjs"),b=require("./forms.cjs"),u=require("./camadas.cjs"),o=require("./tabela.cjs"),f=require("./feedback.cjs"),B=require("./tools.cjs"),w=require("./cores-utils-BmkzhA1v.cjs"),I=require("./data.cjs"),Z=require("./botao.cjs"),pe=require("./card.cjs"),ge=require("./cores.cjs"),T=require("./modal.cjs"),J=require("./seletor-mapa-base.cjs"),F=require("./ui-seletor-cor-D_ifitEN.cjs"),ve=':host{display:block;box-sizing:border-box;margin:0;padding:0;color:var(--ui-cor-texto, #e1e1e6);font-family:var(--ui-fonte-base, "Inter", sans-serif)}:host([inline]){display:inline-block}.ui-texto{margin:0;padding:0;box-sizing:border-box;font-family:inherit;color:inherit;font-size:inherit;font-weight:inherit;line-height:inherit;overflow-wrap:break-word}.ui-texto--h1{font-size:var(--ui-tamanho-h1, clamp(24px, 4vw, 36px));font-weight:var(--ui-peso-negrito, 700);line-height:var(--ui-altura-linha-titulo, 1.25);letter-spacing:-.5px}.ui-texto--h2{font-size:var(--ui-tamanho-h2, clamp(20px, 3vw, 28px));font-weight:var(--ui-peso-seminegrito, 600);line-height:var(--ui-altura-linha-titulo, 1.25);letter-spacing:-.3px}.ui-texto--h3{font-size:var(--ui-tamanho-h3, clamp(18px, 2.4vw, 24px));font-weight:var(--ui-peso-seminegrito, 600);line-height:var(--ui-altura-linha-titulo, 1.25)}.ui-texto--h4{font-size:var(--ui-tamanho-h4, clamp(16px, 2vw, 20px));font-weight:var(--ui-peso-medio, 500);line-height:var(--ui-altura-linha-titulo, 1.25)}.ui-texto--h5{font-size:var(--ui-tamanho-h5, clamp(14px, 1.6vw, 18px));font-weight:var(--ui-peso-medio, 500);line-height:var(--ui-altura-linha-titulo, 1.25)}.ui-texto--h6{font-size:var(--ui-tamanho-h6, clamp(13px, 1.2vw, 16px));font-weight:var(--ui-peso-seminegrito, 600);line-height:var(--ui-altura-linha-titulo, 1.25);text-transform:uppercase;letter-spacing:.5px}.ui-texto--corpo{font-size:var(--ui-tamanho-corpo, 14px);font-weight:var(--ui-peso-normal, 400);line-height:var(--ui-altura-linha-corpo, 1.5)}.ui-texto--corpo-sm{font-size:var(--ui-tamanho-corpo-sm, 13px);font-weight:var(--ui-peso-normal, 400);line-height:var(--ui-altura-linha-corpo, 1.5)}.ui-texto--caption{font-size:var(--ui-tamanho-caption, 11px);font-weight:var(--ui-peso-normal, 400);line-height:var(--ui-altura-linha-compacta, 1.2);color:var(--ui-cor-texto-secundario, #888899)}.ui-texto--codigo{font-family:var(--ui-fonte-codigo, monospace);font-size:var(--ui-tamanho-codigo, 12px);font-weight:var(--ui-peso-normal, 400);line-height:var(--ui-altura-linha-corpo, 1.5);background:var(--ui-cor-fundo-elevado, #1a1a1e);padding:2px 6px;border-radius:var(--ui-raio-sm, 4px);border:1px solid var(--ui-cor-borda, rgba(255, 255, 255, .12))}.ui-texto--cor-primaria{color:var(--ui-cor-primaria, #00E08A)}.ui-texto--cor-secundaria{color:var(--ui-cor-texto-secundario, #888899)}.ui-texto--cor-destaque{color:var(--ui-cor-destaque, #00E08A)}.ui-texto--cor-erro{color:var(--ui-cor-texto-erro, #ff5555)}.ui-texto--cor-sucesso{color:var(--ui-cor-texto-sucesso, #00E08A)}.ui-texto--cor-alerta{color:var(--ui-cor-texto-alerta, #ffb86c)}.ui-texto--peso-normal{font-weight:var(--ui-peso-normal, 400)!important}.ui-texto--peso-medio{font-weight:var(--ui-peso-medio, 500)!important}.ui-texto--peso-seminegrito{font-weight:var(--ui-peso-seminegrito, 600)!important}.ui-texto--peso-negrito{font-weight:var(--ui-peso-negrito, 700)!important}.ui-texto--alinhamento-esquerda{text-align:left}.ui-texto--alinhamento-centro{text-align:center}.ui-texto--alinhamento-direita{text-align:right}.ui-texto--alinhamento-justificado{text-align:justify;-webkit-hyphens:auto;hyphens:auto}.ui-texto--truncar{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;display:block}.ui-texto--linhas{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:var(--ui-texto-linhas, 3);line-clamp:var(--ui-texto-linhas, 3);overflow:hidden}@media print{.ui-texto--linhas{-webkit-line-clamp:unset;line-clamp:unset;display:block;overflow:visible}}:host(.degrade) .ui-texto:not(.ui-texto--codigo),:host(.ui-degrade) .ui-texto:not(.ui-texto--codigo),:host(.gradiente) .ui-texto:not(.ui-texto--codigo),:host(.ui-gradiente) .ui-texto:not(.ui-texto--codigo),:host([degrade]:not([degrade="false"]):not([degrade="none"]):not([degrade="0"]):not([degrade="off"])) .ui-texto:not(.ui-texto--codigo),:host([gradiente]:not([gradiente="false"]):not([gradiente="none"]):not([gradiente="0"]):not([gradiente="off"])) .ui-texto:not(.ui-texto--codigo),:host([gradient]:not([gradient="false"]):not([gradient="none"]):not([gradient="0"]):not([gradient="off"])) .ui-texto:not(.ui-texto--codigo),.ui-texto[data-degrade=ativo]:not(.ui-texto--codigo){background:var(--ui-degrade-interno, var(--ui-texto-fundo, var(--ui-gradiente-texto, var(--ui-gradiente-primario))));-webkit-background-clip:text;background-clip:text;-webkit-text-fill-color:transparent;color:transparent}:host(.degrade) .ui-texto--codigo,:host(.ui-degrade) .ui-texto--codigo,:host(.gradiente) .ui-texto--codigo,:host(.ui-gradiente) .ui-texto--codigo,.ui-texto--codigo[data-degrade=ativo]{background:var(--ui-degrade-interno, var(--ui-texto-fundo, var(--ui-fundo-elevado, var(--ui-cor-fundo-elevado, #1a1a1e))))}',$=["h1","h2","h3","h4","h5","h6","corpo","corpo-sm","caption","codigo"],be=["primaria","secundaria","destaque","erro","sucesso","alerta"],fe=["normal","medio","seminegrito","negrito"],xe=["esquerda","centro","direita","justificado"],_e=new Set(["p","span","div","h1","h2","h3","h4","h5","h6","small","code","strong","em","label","blockquote","pre","b","i"]),Ae=50;class W extends s.SafeHTMLElement{constructor(){super();c(this,"container",null);c(this,"shadow",null);if(typeof this.attachShadow=="function"&&typeof document<"u"){this.shadow=this.attachShadow({mode:"open"});const e=document.createElement("p");e.className="ui-texto ui-texto--corpo",e.setAttribute("part","base"),e.appendChild(document.createElement("slot")),this.container=e,this.shadow.innerHTML=`<style>${ve}</style>`,this.shadow.appendChild(e)}}static get observedAttributes(){return["variante","tag","cor","peso","alinhamento","truncar","linhas",...s.ATRIBUTOS_DEGRADE]}connectedCallback(){this.render()}attributeChangedCallback(e,t,a){this.render()}resolveTag(){const e=this.getAttribute("tag");if(e){const a=e.toLowerCase().trim();if(_e.has(a))return a;console.warn(`[ui-texto] Tag "${e}" não permitida ou inválida. Utilizando fallback semântico.`)}const t=s.escolherOpcao(this.getAttribute("variante"),$,"corpo");switch(t){case"h1":case"h2":case"h3":case"h4":case"h5":case"h6":return t;case"caption":return"small";case"codigo":return"code";case"corpo-sm":case"corpo":default:return"p"}}render(){const{container:e,shadow:t}=this;if(!e||!t)return;const a=this.resolveTag(),n=s.escolherOpcao(this.getAttribute("variante"),$,"corpo"),l=s.escolherOpcaoOpcional(this.getAttribute("cor"),be),d=s.escolherOpcaoOpcional(this.getAttribute("peso"),fe),h=s.escolherOpcaoOpcional(this.getAttribute("alinhamento"),xe),m=this.hasAttribute("truncar"),p=m?0:s.escolherInteiro(this.getAttribute("linhas"),1,Ae,0);let g=e;e.tagName.toLowerCase()!==a&&(g=document.createElement(a),g.setAttribute("part","base"),g.appendChild(document.createElement("slot")),t.replaceChild(g,e),this.container=g);const v=["ui-texto",`ui-texto--${n}`];l&&v.push(`ui-texto--cor-${l}`),d&&v.push(`ui-texto--peso-${d}`),h&&v.push(`ui-texto--alinhamento-${h}`),m&&v.push("ui-texto--truncar"),p>0&&v.push("ui-texto--linhas"),g.className=v.join(" "),p>0?g.style.setProperty("--ui-texto-linhas",String(p)):g.style.removeProperty("--ui-texto-linhas"),s.aplicarDegradeNoElemento(this,g)}}s.definirCustomElement("ui-texto",W);const Ee=':host{display:inline-block;box-sizing:border-box;vertical-align:middle}:host([largura-total]),:host([full-width]){display:block;width:100%}.ui-texto-editavel{position:relative;display:inline-flex;align-items:center;box-sizing:border-box;width:100%}.ui-texto-editavel__botao{display:inline-flex;align-items:center;justify-content:flex-start;gap:var(--ui-espaco-xs, 4px);width:100%;height:var(--ui-campo-altura, 34px);min-height:var(--ui-campo-altura, 34px);box-sizing:border-box;padding:0 12px;border:1px solid var(--ui-cor-borda, rgba(255, 255, 255, .12));border-radius:var(--ui-raio-borda, 6px);background:var(--ui-cor-botao-secundario-fundo, #1e1e24);color:var(--ui-cor-texto, #e1e1e6);font-family:var(--ui-fonte-base, "Inter", sans-serif);font-size:clamp(11px,.85rem,13px);font-weight:500;line-height:1.2;text-align:left;-webkit-user-select:none;user-select:none;cursor:pointer;touch-action:manipulation;-webkit-tap-highlight-color:transparent;transition:background-color .15s ease,border-color .15s ease,color .15s ease,box-shadow .15s ease}.ui-texto-editavel__botao:hover:not(:disabled){background:var(--ui-cor-botao-secundario-hover, #2a2a34);border-color:color-mix(in srgb,var(--ui-cor-texto, #e1e1e6) 24%,transparent)}.ui-texto-editavel__botao:focus-visible{outline:none;box-shadow:0 0 0 2px var(--ui-cor-fundo, #0b0b0d),0 0 0 4px var(--ui-cor-primaria, #00E08A)}.ui-texto-editavel__texto{display:inline-block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:100%}.ui-texto-editavel__texto--placeholder{color:var(--ui-cor-texto-silenciado, rgba(255, 255, 255, .45));font-style:italic}.ui-texto-editavel__input{display:inline-block;width:100%;height:var(--ui-campo-altura, 34px);min-height:var(--ui-campo-altura, 34px);box-sizing:border-box;padding:0 11px;border:1px solid var(--ui-cor-primaria, #00E08A);border-radius:var(--ui-raio-borda, 6px);background:var(--ui-cor-campo-fundo, #121217);color:var(--ui-cor-texto, #ffffff);font-family:var(--ui-fonte-base, "Inter", sans-serif);font-size:clamp(11px,.85rem,13px);font-weight:500;line-height:1.2;outline:none;box-shadow:0 0 0 1px var(--ui-cor-primaria, #00E08A),0 0 0 3px color-mix(in srgb,var(--ui-cor-primaria, #00E08A) 25%,transparent);transition:border-color .15s ease,box-shadow .15s ease}.ui-texto-editavel__input::selection{background:var(--ui-cor-primaria, #00E08A);color:#000}.ui-texto-editavel[data-modo=leitura] .ui-texto-editavel__input,.ui-texto-editavel[data-modo=edicao] .ui-texto-editavel__botao{display:none!important}.ui-texto-editavel--sm .ui-texto-editavel__botao,.ui-texto-editavel--sm .ui-texto-editavel__input{height:var(--ui-campo-altura-sm, 28px);min-height:var(--ui-campo-altura-sm, 28px);font-size:11px;padding-left:8px;padding-right:8px}.ui-texto-editavel--lg .ui-texto-editavel__botao,.ui-texto-editavel--lg .ui-texto-editavel__input{height:var(--ui-campo-altura-lg, 42px);min-height:var(--ui-campo-altura-lg, 42px);font-size:15px;padding-left:14px;padding-right:14px}.ui-texto-editavel--primario .ui-texto-editavel__botao,.ui-texto-editavel--primary .ui-texto-editavel__botao{background:var(--ui-cor-primaria, #00E08A);color:var(--ui-cor-texto-sobre-primaria, #000000);border-color:transparent;font-weight:600}.ui-texto-editavel--primario .ui-texto-editavel__botao:hover:not(:disabled),.ui-texto-editavel--primary .ui-texto-editavel__botao:hover:not(:disabled){filter:brightness(1.1)}.ui-texto-editavel--ghost .ui-texto-editavel__botao,.ui-texto-editavel--terciario .ui-texto-editavel__botao{background:transparent;color:var(--ui-cor-texto, #e1e1e6);border-color:transparent}.ui-texto-editavel--ghost .ui-texto-editavel__botao:hover:not(:disabled),.ui-texto-editavel--terciario .ui-texto-editavel__botao:hover:not(:disabled){background:var(--ui-cor-hover-menu, rgba(255, 255, 255, .08))}.ui-texto-editavel--outline .ui-texto-editavel__botao,.ui-texto-editavel--borda .ui-texto-editavel__botao{background:transparent;color:var(--ui-cor-texto, #e1e1e6);border-color:var(--ui-cor-borda, rgba(255, 255, 255, .2))}.ui-texto-editavel--outline .ui-texto-editavel__botao:hover:not(:disabled),.ui-texto-editavel--borda .ui-texto-editavel__botao:hover:not(:disabled){background:var(--ui-cor-hover-menu, rgba(255, 255, 255, .06));border-color:var(--ui-cor-primaria, #00E08A)}.ui-texto-editavel--texto .ui-texto-editavel__botao,.ui-texto-editavel--plano .ui-texto-editavel__botao{background:transparent;border-color:transparent;padding:0 4px;height:auto;min-height:unset;border-radius:4px}.ui-texto-editavel--texto .ui-texto-editavel__botao:hover:not(:disabled),.ui-texto-editavel--plano .ui-texto-editavel__botao:hover:not(:disabled){background:var(--ui-cor-hover-menu, rgba(255, 255, 255, .06));border-color:color-mix(in srgb,var(--ui-cor-borda, #ffffff) 15%,transparent)}.ui-texto-editavel--destaque .ui-texto-editavel__botao{background:var(--ui-cor-destaque, var(--ui-cor-primaria, #00E08A));color:var(--ui-cor-texto-sobre-primaria, #000000);border-color:transparent}.ui-texto-editavel--destrutivo .ui-texto-editavel__botao{background:var(--ui-cor-botao-destrutivo-fundo, #ff4444);color:var(--ui-cor-botao-destrutivo-texto, #ffffff);border-color:transparent}:host([disabled]){pointer-events:none;opacity:.55;cursor:not-allowed}.ui-texto-editavel__botao:disabled{cursor:not-allowed;opacity:.55}:host([readonly]) .ui-texto-editavel__botao,:host([somente-leitura]) .ui-texto-editavel__botao{cursor:default}',ye=["valor","value","placeholder","variante","tamanho","disabled","desabilitado","readonly","somente-leitura","ao-perder-foco","obrigatorio","maxlength","limite-caracteres","name","nome"];function Ce(i){return`
2
2
  <style>${i}</style>
3
3
  <div class="ui-texto-editavel ui-texto-editavel--secundario" data-modo="leitura" part="base">
4
4
  <button
package/dist/index.js CHANGED
@@ -2,8 +2,8 @@ var Q = Object.defineProperty;
2
2
  var Y = (i, o, e) => o in i ? Q(i, o, { enumerable: !0, configurable: !0, writable: !0, value: e }) : i[o] = e;
3
3
  var s = (i, o, e) => Y(i, typeof o != "symbol" ? o + "" : o, e);
4
4
  /* empty css */
5
- import { S as C, A as U, e as A, b as w, f as E, g as q, d as f, F as H, L as j, h as ee, j as P, n as te, a as ae } from "./kit-base-_THn4w3u.js";
6
- import { C as Qe, P as Ye, k as et, U as tt, c as at, m as it, p as ot, q as rt, r as nt, s as st, t as lt, u as ct, v as dt, i as ut, w as ht, x as mt, y as pt, z as vt, B as gt, D as bt, o as ft, E as xt, G as _t, H as At, I as yt, J as Et } from "./kit-base-_THn4w3u.js";
5
+ import { S as C, A as U, e as A, b as w, f as E, g as q, d as f, F as H, L as j, h as ee, j as P, n as te, a as ae } from "./kit-base-CBXA66aM.js";
6
+ import { C as Qe, P as Ye, k as et, U as tt, c as at, m as it, p as ot, q as rt, r as nt, s as st, t as lt, u as ct, v as dt, i as ut, w as ht, x as mt, y as pt, z as vt, B as gt, D as bt, o as ft, E as xt, G as _t, H as At, I as yt, J as Et } from "./kit-base-CBXA66aM.js";
7
7
  import { ATRIBUTOS_OBSERVADOS_CAMPO_TEXTO as Ct, UICampoTexto as kt, UIInput as St, criarTemplateCampoTexto as It, sincronizarFeedbackErro as zt, sincronizarIconeSenha as Tt, sincronizarLabelEPlaceholder as Dt } from "./campo-texto.js";
8
8
  import { ATRIBUTOS_OBSERVADOS_LISTA_FLUTUANTE as Pt, ListaFlutuantePosicionamento as Ot, ListaFlutuanteTeclado as Lt, RadioGrupoRegistry as Ut, UIAreaTexto as qt, UICheckbox as jt, UIListaFlutuante as Nt, UIRadio as Rt, UISelect as Ft, UISwitch as Bt, UITextarea as Vt, UIToggle as $t, atualizarEstadoSelecaoLista as Ht, calcularContador as Gt, criarTemplateListaFlutuante as Xt, renderizarItensLista as Kt } from "./forms.js";
9
9
  import { CamadasDragDropManager as Jt, ICONES as Wt, LIMITE_FEICOES_POR_CAMADA as Qt, MAPAS_BASE_PADRAO as Yt, UICamadas as ea, UILayerPanel as ta, UIPainelCamadas as aa, calcularAreaAnelSimples as ia, calcularAreaPoligono as oa, calcularComprimentoLinha as ra, calcularDistanciaPontos as na, calcularSelecaoFeicao as sa, carregarEstadoPersistido as la, construirHierarquiaCamadas as ca, converterCamadaItemParaCanvasLayer as da, converterCanvasLayerParaCamadaItem as ua, converterFeicaoParaItem as ha, escapeHtml as ma, filtrarCamadasPorBusca as pa, filtrarFeicoesPorBusca as va, formatarMetricaFeicoes as ga, formatarOpcoesCamadasHierarquicas as ba, gerarChaveStorage as fa, limparEstadoPersistido as xa, montarEstadoPersistido as _a, nomeDoMapaBase as Aa, normalizarEstadoPersistido as ya, obterIdsVisiveisFeicoes as Ea, reidratarCamadasComOverrides as wa, removerSelecoesInvalidas as Ca, renderizarArvoreCamadas as ka, renderizarGridMapasBase as Sa, renderizarRodapeAcoes as Ia, renderizarThumbGeometria as za, rotuloRodape as Ta, salvarEstadoPersistido as Da, snapshotCamada as Ma } from "./camadas.js";
@@ -17,7 +17,7 @@ import { UICard as ar } from "./card.js";
17
17
  import { UIControleCores as or } from "./cores.js";
18
18
  import { UIDialog as nr, UIModal as sr, aplicarInertForaDoModal as lr, confirmarAcao as cr, confirmarDescarteSeSujo as dr, removerInertForaDoModal as ur } from "./modal.js";
19
19
  import { UIMapaBase as mr, UISeletorMapaBase as pr } from "./seletor-mapa-base.js";
20
- import { U as gr, a as br, f as fr } from "./ui-seletor-cor-B_twSm-V.js";
20
+ import { U as gr, a as br, f as fr } from "./ui-seletor-cor-CPjA9vhZ.js";
21
21
  const ie = ':host{display:block;box-sizing:border-box;margin:0;padding:0;color:var(--ui-cor-texto, #e1e1e6);font-family:var(--ui-fonte-base, "Inter", sans-serif)}:host([inline]){display:inline-block}.ui-texto{margin:0;padding:0;box-sizing:border-box;font-family:inherit;color:inherit;font-size:inherit;font-weight:inherit;line-height:inherit;overflow-wrap:break-word}.ui-texto--h1{font-size:var(--ui-tamanho-h1, clamp(24px, 4vw, 36px));font-weight:var(--ui-peso-negrito, 700);line-height:var(--ui-altura-linha-titulo, 1.25);letter-spacing:-.5px}.ui-texto--h2{font-size:var(--ui-tamanho-h2, clamp(20px, 3vw, 28px));font-weight:var(--ui-peso-seminegrito, 600);line-height:var(--ui-altura-linha-titulo, 1.25);letter-spacing:-.3px}.ui-texto--h3{font-size:var(--ui-tamanho-h3, clamp(18px, 2.4vw, 24px));font-weight:var(--ui-peso-seminegrito, 600);line-height:var(--ui-altura-linha-titulo, 1.25)}.ui-texto--h4{font-size:var(--ui-tamanho-h4, clamp(16px, 2vw, 20px));font-weight:var(--ui-peso-medio, 500);line-height:var(--ui-altura-linha-titulo, 1.25)}.ui-texto--h5{font-size:var(--ui-tamanho-h5, clamp(14px, 1.6vw, 18px));font-weight:var(--ui-peso-medio, 500);line-height:var(--ui-altura-linha-titulo, 1.25)}.ui-texto--h6{font-size:var(--ui-tamanho-h6, clamp(13px, 1.2vw, 16px));font-weight:var(--ui-peso-seminegrito, 600);line-height:var(--ui-altura-linha-titulo, 1.25);text-transform:uppercase;letter-spacing:.5px}.ui-texto--corpo{font-size:var(--ui-tamanho-corpo, 14px);font-weight:var(--ui-peso-normal, 400);line-height:var(--ui-altura-linha-corpo, 1.5)}.ui-texto--corpo-sm{font-size:var(--ui-tamanho-corpo-sm, 13px);font-weight:var(--ui-peso-normal, 400);line-height:var(--ui-altura-linha-corpo, 1.5)}.ui-texto--caption{font-size:var(--ui-tamanho-caption, 11px);font-weight:var(--ui-peso-normal, 400);line-height:var(--ui-altura-linha-compacta, 1.2);color:var(--ui-cor-texto-secundario, #888899)}.ui-texto--codigo{font-family:var(--ui-fonte-codigo, monospace);font-size:var(--ui-tamanho-codigo, 12px);font-weight:var(--ui-peso-normal, 400);line-height:var(--ui-altura-linha-corpo, 1.5);background:var(--ui-cor-fundo-elevado, #1a1a1e);padding:2px 6px;border-radius:var(--ui-raio-sm, 4px);border:1px solid var(--ui-cor-borda, rgba(255, 255, 255, .12))}.ui-texto--cor-primaria{color:var(--ui-cor-primaria, #00E08A)}.ui-texto--cor-secundaria{color:var(--ui-cor-texto-secundario, #888899)}.ui-texto--cor-destaque{color:var(--ui-cor-destaque, #00E08A)}.ui-texto--cor-erro{color:var(--ui-cor-texto-erro, #ff5555)}.ui-texto--cor-sucesso{color:var(--ui-cor-texto-sucesso, #00E08A)}.ui-texto--cor-alerta{color:var(--ui-cor-texto-alerta, #ffb86c)}.ui-texto--peso-normal{font-weight:var(--ui-peso-normal, 400)!important}.ui-texto--peso-medio{font-weight:var(--ui-peso-medio, 500)!important}.ui-texto--peso-seminegrito{font-weight:var(--ui-peso-seminegrito, 600)!important}.ui-texto--peso-negrito{font-weight:var(--ui-peso-negrito, 700)!important}.ui-texto--alinhamento-esquerda{text-align:left}.ui-texto--alinhamento-centro{text-align:center}.ui-texto--alinhamento-direita{text-align:right}.ui-texto--alinhamento-justificado{text-align:justify;-webkit-hyphens:auto;hyphens:auto}.ui-texto--truncar{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;display:block}.ui-texto--linhas{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:var(--ui-texto-linhas, 3);line-clamp:var(--ui-texto-linhas, 3);overflow:hidden}@media print{.ui-texto--linhas{-webkit-line-clamp:unset;line-clamp:unset;display:block;overflow:visible}}:host(.degrade) .ui-texto:not(.ui-texto--codigo),:host(.ui-degrade) .ui-texto:not(.ui-texto--codigo),:host(.gradiente) .ui-texto:not(.ui-texto--codigo),:host(.ui-gradiente) .ui-texto:not(.ui-texto--codigo),:host([degrade]:not([degrade="false"]):not([degrade="none"]):not([degrade="0"]):not([degrade="off"])) .ui-texto:not(.ui-texto--codigo),:host([gradiente]:not([gradiente="false"]):not([gradiente="none"]):not([gradiente="0"]):not([gradiente="off"])) .ui-texto:not(.ui-texto--codigo),:host([gradient]:not([gradient="false"]):not([gradient="none"]):not([gradient="0"]):not([gradient="off"])) .ui-texto:not(.ui-texto--codigo),.ui-texto[data-degrade=ativo]:not(.ui-texto--codigo){background:var(--ui-degrade-interno, var(--ui-texto-fundo, var(--ui-gradiente-texto, var(--ui-gradiente-primario))));-webkit-background-clip:text;background-clip:text;-webkit-text-fill-color:transparent;color:transparent}:host(.degrade) .ui-texto--codigo,:host(.ui-degrade) .ui-texto--codigo,:host(.gradiente) .ui-texto--codigo,:host(.ui-gradiente) .ui-texto--codigo,.ui-texto--codigo[data-degrade=ativo]{background:var(--ui-degrade-interno, var(--ui-texto-fundo, var(--ui-fundo-elevado, var(--ui-cor-fundo-elevado, #1a1a1e))))}', F = ["h1", "h2", "h3", "h4", "h5", "h6", "corpo", "corpo-sm", "caption", "codigo"], oe = ["primaria", "secundaria", "destaque", "erro", "sucesso", "alerta"], re = ["normal", "medio", "seminegrito", "negrito"], ne = ["esquerda", "centro", "direita", "justificado"], se = /* @__PURE__ */ new Set([
22
22
  "p",
23
23
  "span",
@@ -0,0 +1,2 @@
1
+ "use strict";var ne=Object.create;var z=Object.defineProperty;var le=Object.getOwnPropertyDescriptor;var se=Object.getOwnPropertyNames;var ue=Object.getPrototypeOf,ce=Object.prototype.hasOwnProperty;var fe=(e,t,r)=>t in e?z(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r;var de=(e,t,r,o)=>{if(t&&typeof t=="object"||typeof t=="function")for(let a of se(t))!ce.call(e,a)&&a!==r&&z(e,a,{get:()=>t[a],enumerable:!(o=le(t,a))||o.enumerable});return e};var me=(e,t,r)=>(r=e!=null?ne(ue(e)):{},de(t||!e||!e.__esModule?z(r,"default",{value:e,enumerable:!0}):r,e));var b=(e,t,r)=>fe(e,typeof t!="symbol"?t+"":t,r);class C{constructor(){b(this,"entries",[])}add(t,r,o,a){if(!t)return;const i=o;t.addEventListener(r,i,a),this.entries.push({target:t,type:r,listener:i,options:a})}cleanup(){this.entries.forEach(({target:t,type:r,listener:o,options:a})=>{t.removeEventListener(r,o,a)}),this.entries=[]}get size(){return this.entries.length}}const pe=typeof window<"u"&&typeof document<"u",W=typeof HTMLElement<"u"?HTMLElement:class{};function ge(e,t){typeof customElements<"u"&&!customElements.get(e)&&customElements.define(e,t)}const he=["button:not([type])",'button[type="submit"]','input[type="submit"]','input[type="image"]','ui-botao[type="submit"]',"ui-botao[tipo-submit]",'ui-botao-primario[type="submit"]',"ui-botao-primario[tipo-submit]"].join(", "),be=["input:not([type])",...["text","search","url","tel","email","password","date","month","week","time","datetime-local","number"].map(e=>`input[type="${e}"]`),"ui-campo-texto","ui-input"].join(", ");function N(e,t){const r=Array.from(e.querySelectorAll(t)).filter(a=>{const i=a.getAttribute("form");return!i||i===e.id});if(!e.id)return r;const o=Array.from(e.getRootNode().querySelectorAll(`[form="${CSS.escape(e.id)}"]`)).filter(a=>!e.contains(a)&&a.matches(t));return[...r,...o].sort((a,i)=>a.compareDocumentPosition(i)&Node.DOCUMENT_POSITION_FOLLOWING?-1:1)}function Ae(e){if(e.hasAttribute("disabled"))return!0;try{return e.matches(":disabled")}catch{return!1}}function xe(e,t,r){if(!t){e.requestSubmit();return}const o=document.createElement("button");o.type="submit",o.name=t,o.value=r??"",o.hidden=!0,e.append(o);try{e.requestSubmit(o)}finally{o.remove()}}function ve(e){const t=N(e,he)[0];if(t){Ae(t)||t.click();return}N(e,be).length===1&&e.requestSubmit()}const ye=["sm","md","lg"],T="--ui-campo-altura",Ee=15,we=200,Se=12.5,P={sm:"sm",compacta:"sm",compacto:"sm",md:"md",padrao:"md",padrão:"md",normal:"md",lg:"lg",relaxada:"lg",relaxado:"lg",conforto:"lg"},Ce={sm:"var(--ui-altura-sm, 26px)",md:"var(--ui-altura-md, 34px)",lg:"var(--ui-altura-lg, 42px)"};function H(e){const t=(e??"").trim().toLowerCase();return Object.prototype.hasOwnProperty.call(P,t)?P[t]:null}function B(e){const t=H(e);return t?Ce[t]:null}function F(e){if(e==null)return null;const t=String(e).trim().toLowerCase(),r=/^(\d+(?:\.\d+)?|\.\d+)(px|rem|em)?$/.exec(t);if(!r)return null;const o=Number(r[1]);if(!Number.isFinite(o)||o<=0)return null;const a=r[2]??"px";return a==="px"?`${Math.min(we,Math.max(Ee,o))}px`:`${Math.min(Se,o)}${a}`}function Z(e){return F(e.altura)??B(e.tamanho)}function j(e){return{altura:e.getAttribute("altura")??e.getAttribute("height"),tamanho:e.getAttribute("tamanho")??e.getAttribute("size")??e.getAttribute("densidade")}}const O=new WeakSet;function ze(e){try{const t=Z(j(e));t?(e.style.setProperty(T,t),O.add(e)):O.has(e)&&(e.style.removeProperty(T),O.delete(e))}catch{}}const G=["degrade","gradiente","gradient"],J=["degrade","ui-degrade","gradiente","ui-gradiente"],Oe=512,Re=new Set(["linear-gradient","radial-gradient","conic-gradient","repeating-linear-gradient","repeating-radial-gradient","repeating-conic-gradient"]),Te=new Set(["","true","1","sim","yes","padrao","default"]),ke=new Set(["false","0","off","none","nao","não","no"]),K=Object.freeze({primario:"var(--ui-gradiente-primario)",primaria:"var(--ui-gradiente-primario)",primary:"var(--ui-gradiente-primario)",secundario:"var(--ui-gradiente-secundario)",secundaria:"var(--ui-gradiente-secundario)",secondary:"var(--ui-gradiente-secundario)",destaque:"var(--ui-gradiente-destaque)",accent:"var(--ui-gradiente-destaque)",destrutivo:"var(--ui-gradiente-destrutivo)",destructive:"var(--ui-gradiente-destrutivo)",superficie:"var(--ui-gradiente-superficie)",surface:"var(--ui-gradiente-superficie)",fundo:"var(--ui-gradiente-superficie)",card:"var(--ui-gradiente-card)",elevado:"var(--ui-gradiente-elevado)",elevated:"var(--ui-gradiente-elevado)",sucesso:"var(--ui-gradiente-sucesso)",success:"var(--ui-gradiente-sucesso)",erro:"var(--ui-gradiente-erro)",error:"var(--ui-gradiente-erro)",perigo:"var(--ui-gradiente-erro)",danger:"var(--ui-gradiente-erro)",alerta:"var(--ui-gradiente-alerta)",warning:"var(--ui-gradiente-alerta)",aviso:"var(--ui-gradiente-alerta)",info:"var(--ui-gradiente-info)",informacao:"var(--ui-gradiente-info)",texto:"var(--ui-gradiente-texto)",text:"var(--ui-gradiente-texto)"}),Le=/[;{}<>\\"'\r\n`]|\/\*|\*\/|\b(?:url|image-set|expression|attr|env)\s*\(|(?:javascript|vbscript|data)\s*:|-moz-binding|behavior\s*:/i;function Me(e){const t=e.toLowerCase();return t==="degrade"||t==="gradiente"||t==="gradient"}function Y(e){const t=[];let r=0,o=0;for(let i=0;i<e.length;i++){const n=e[i];if(n==="(")r++;else if(n===")"){if(r--,r<0)return null}else if(n===","&&r===0){const l=e.slice(o,i).trim();if(!l)return null;t.push(l),o=i+1}}if(r!==0)return null;const a=e.slice(o).trim();return a?(t.push(a),t):null}function Ie(e){const t=e.indexOf("(");if(t<=0||!e.endsWith(")"))return!1;const r=e.slice(0,t).trim().toLowerCase(),o=e.slice(t+1,-1).trim();if(!o)return!1;if(r==="var"){const a=Y(o);return!a||a.length===0||a.length>2?!1:/^--[a-zA-Z0-9_-]{1,64}$/.test(a[0])}return Re.has(r)?/^[a-zA-Z0-9\s,#.%()+\-_/:]+$/.test(o):!1}function Q(e){if(typeof e!="string")return null;const t=e.trim();if(!t||t.length>Oe||Le.test(t))return null;const r=Y(t);if(!r||r.length===0||r.length>6)return null;for(const o of r)if(!Ie(o))return null;return t}function _(e,t){if(e==null)return{ativo:!1,explicito:null};if(typeof e!="string")return{ativo:!1,explicito:null};const r=e.trim(),o=r.toLowerCase();if(ke.has(o))return{ativo:!1,explicito:null};if(Te.has(o))return{ativo:!0,explicito:t??null};const a=K[o];if(a)return{ativo:!0,explicito:a};const i=Q(r);return i?{ativo:!0,explicito:i}:{ativo:!1,explicito:null}}function X(e){for(const t of G)if(e.hasAttribute(t))return e.getAttribute(t);return null}function De(e,t,r){const o=X(e),a=_(o,r),i=J.some(l=>e.classList.contains(l)),n=a.ativo||i;return t&&(a.explicito?t.style.setProperty("--ui-degrade-interno",a.explicito):t.style.removeProperty("--ui-degrade-interno"),n?t.setAttribute("data-degrade","ativo"):t.removeAttribute("data-degrade")),n}function Ne(e,t,r){const o=new Set((e.getAttribute("part")||"").split(/\s+/).filter(Boolean));r?o.add(t):o.delete(t),e.setAttribute("part",Array.from(o).join(" "))}function k(e){if(!e)return!1;const t=e;return t.tagName==="INPUT"||t.tagName==="TEXTAREA"||t.tagName==="SELECT"||t.isContentEditable===!0}function $(){var t;let e=typeof document>"u"?null:document.activeElement;for(;(t=e==null?void 0:e.shadowRoot)!=null&&t.activeElement;)e=e.shadowRoot.activeElement;return e}const Pe='button, a[href], summary, [role="button"], [role="menuitem"], [role="tab"], [role="switch"], [role="checkbox"], [role="option"]';function Ue(e){var r;const t=((r=e.composedPath)==null?void 0:r.call(e)[0])??e.target;return t instanceof Element?t.closest(Pe)!==null:!1}function Ve(e){var r;const t=(r=e==null?void 0:e.composedPath)==null?void 0:r.call(e)[0];return t instanceof Element?k(t):k($())}function qe(e,t,r,o){if(e.textContent=t,!r)return;const a=document.createElement("span");a.className=o,a.setAttribute("aria-hidden","true"),a.textContent="*",e.append(" ",a)}function We(e,t,r){const o=(e??"").trim().toLowerCase();return t.includes(o)?o:r}function He(e,t){const r=(e??"").trim().toLowerCase();return t.includes(r)?r:null}function Be(e,t,r,o){if(e==null||typeof e=="string"&&e.trim()==="")return o;const a=typeof e=="number"?e:Number(e.trim());return Number.isFinite(a)?Math.min(r,Math.max(t,Math.trunc(a))):o}function Fe(e,t=0){if(e==null||e.trim()==="")return null;const r=Number(e.trim());return!Number.isFinite(r)||r<t?null:Math.trunc(r)}let U=0;function Ze(e="ui"){return U+=1,`${e}-${U.toString(36)}-${Math.random().toString(36).slice(2,7)}`}function ee(e,t){if(e===t)return"";if(e.nodeType===3)return e.textContent??"";let r="";return e.childNodes.forEach(o=>{r+=ee(o,t)}),r}function te(e,t){var i,n,l;const r=(i=e.getAttribute("aria-label"))==null?void 0:i.trim();if(r)return r;const o=new Set;try{(n=t==null?void 0:t.labels)==null||n.forEach(s=>o.add(s))}catch{}if(e.id){const s=e.getRootNode();(l=s.querySelectorAll)==null||l.call(s,"label[for]").forEach(f=>{f.htmlFor===e.id&&o.add(f)})}const a=e.closest("label");return a&&o.add(a),Array.from(o).map(s=>ee(s,e).replace(/\s+/g," ").trim()).filter(Boolean).join(" ")}function je(e,t){return t.composedPath()[0]===e}class re extends W{constructor(){super();b(this,"internals");b(this,"_formDisabled",!1);b(this,"_customErrorMessage","");this.internals=typeof this.attachInternals=="function"?this.attachInternals():{}}formDisabledCallback(r){this._formDisabled=r,this.syncState()}get form(){var r;return this.closest("form")??((r=this.internals)==null?void 0:r.form)??null}get required(){return this.hasAttribute("obrigatorio")||this.hasAttribute("required")}set required(r){r?this.setAttribute("obrigatorio",""):(this.removeAttribute("obrigatorio"),this.removeAttribute("required")),this.syncState()}get obrigatorio(){return this.required}set obrigatorio(r){this.required=r}get validity(){var r;return this.atualizarValidade(),(r=this.internals)==null?void 0:r.validity}get validationMessage(){var r;return this.atualizarValidade(),((r=this.internals)==null?void 0:r.validationMessage)??""}get willValidate(){var r;return((r=this.internals)==null?void 0:r.willValidate)??!1}checkValidity(){var r,o;return this.atualizarValidade(),((o=(r=this.internals)==null?void 0:r.checkValidity)==null?void 0:o.call(r))??!0}reportValidity(){var r,o;return this.atualizarValidade(),((o=(r=this.internals)==null?void 0:r.reportValidity)==null?void 0:o.call(r))??!0}setCustomValidity(r){this._customErrorMessage=r||"",this.atualizarValidade()}}b(re,"formAssociated",!0);function Ge(e){if(e.disabled)return{valido:!0,flags:{},mensagem:""};if(e.customError&&e.customError.trim()!=="")return{valido:!1,flags:{customError:!0},mensagem:e.customError};const{val:t,rawVal:r,badInput:o,required:a,tipo:i="text",mensagemValidacao:n}=e;if(o||i==="number"&&r&&isNaN(Number(r)))return{valido:!1,flags:{badInput:!0},mensagem:n||"Insira um número válido."};if(a&&t.trim()==="")return{valido:!1,flags:{valueMissing:!0},mensagem:n||"Preencha este campo."};if(t==="")return{valido:!0,flags:{},mensagem:""};if(e.minlength!==null&&e.minlength!==void 0&&!isNaN(e.minlength)&&t.length<e.minlength)return{valido:!1,flags:{tooShort:!0},mensagem:n||`Use pelo menos ${e.minlength} caracteres (atualmente você está usando ${t.length}).`};if(e.maxlength!==null&&e.maxlength!==void 0&&!isNaN(e.maxlength)&&t.length>e.maxlength)return{valido:!1,flags:{tooLong:!0},mensagem:n||`Reduza o texto para no máximo ${e.maxlength} caracteres (atualmente você está usando ${t.length}).`};if(e.pattern)try{if(!new RegExp(`^(?:${e.pattern})$`).test(t))return{valido:!1,flags:{patternMismatch:!0},mensagem:n||"O valor não corresponde ao padrão solicitado."}}catch{}if(i==="email"&&!/^[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])?)+$/.test(t))return{valido:!1,flags:{typeMismatch:!0},mensagem:n||"Insira um endereço de e-mail válido."};if(i==="url")try{new URL(t)}catch{return{valido:!1,flags:{typeMismatch:!0},mensagem:n||"Insira uma URL válida."}}if(i==="number"){const l=Number(t);if(isNaN(l))return{valido:!1,flags:{badInput:!0},mensagem:n||"Insira um número válido."};if(e.min!==null&&e.min!==void 0&&!isNaN(e.min)&&l<e.min)return{valido:!1,flags:{rangeUnderflow:!0},mensagem:n||`O valor deve ser maior ou igual a ${e.min}.`};if(e.max!==null&&e.max!==void 0&&!isNaN(e.max)&&l>e.max)return{valido:!1,flags:{rangeOverflow:!0},mensagem:n||`O valor deve ser menor ou igual a ${e.max}.`};if(e.step&&e.step!=="any"){const s=parseFloat(e.step);if(!isNaN(s)&&s>0){const f=e.min!==null&&e.min!==void 0&&!isNaN(e.min)?e.min:0,d=Math.abs((l-f)%s);if(d>1e-6&&Math.abs(d-s)>1e-6)return{valido:!1,flags:{stepMismatch:!0},mensagem:n||"Insira um valor válido de acordo com o intervalo."}}}}return{valido:!0,flags:{},mensagem:""}}function Je(e,t,r){!e||typeof e.setValidity!="function"||(t.valido?e.setValidity({}):e.setValidity(t.flags,t.mensagem||"Valor inválido.",r))}const Ke='.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}}';class Ye{constructor(){b(this,"provedorToast",null);b(this,"listeners",new Map);b(this,"_observandoSistema",!1);this.observarTemaDoSistema()}on(t,r){return this.listeners.has(t)||this.listeners.set(t,new Set),this.listeners.get(t).add(r),()=>this.off(t,r)}once(t,r){const o=a=>{this.off(t,o),r(a)};this.on(t,o)}off(t,r){const o=this.listeners.get(t);o&&(o.delete(r),o.size===0&&this.listeners.delete(t))}emit(t,r){const o=this.listeners.get(t);o&&o.forEach(a=>{try{a(r)}catch(i){console.error(`[UIBus] Erro ao executar ouvinte do evento "${t}":`,i)}}),typeof window<"u"&&window.dispatchEvent(new CustomEvent(`uibus:${t}`,{detail:r,bubbles:!0,composed:!0}))}abrirModal(t){if(typeof document>"u")return!1;const r=document.getElementById(t);return r&&typeof r.abrir=="function"?(r.abrir(),this.emit("modal:aberto",{id:t}),!0):r?(r.setAttribute("aberto",""),this.emit("modal:aberto",{id:t}),!0):(console.warn(`[UIBus] Modal com ID "${t}" não encontrado no DOM.`),!1)}fecharModal(t){if(typeof document>"u")return!1;if(t){const r=document.getElementById(t);return r&&typeof r.fechar=="function"?(r.fechar(),r.hasAttribute("aberto")||r.hasAttribute("open")?!1:(this.emit("modal:fechado",{id:t}),!0)):r?(r.removeAttribute("aberto"),r.removeAttribute("open"),this.emit("modal:fechado",{id:t}),!0):!1}else return document.querySelectorAll("ui-modal[aberto], ui-modal[open], ui-dialog[aberto], ui-dialog[open]").forEach(o=>{typeof o.fechar=="function"?o.fechar():(o.removeAttribute("aberto"),o.removeAttribute("open"))}),this.emit("modal:fechado-todos"),!0}abrirDrawer(t){if(typeof document>"u")return!1;const r=document.getElementById(t);return r&&typeof r.abrir=="function"?(r.abrir(),this.emit("drawer:aberto",{id:t}),!0):r?(r.setAttribute("aberto",""),this.emit("drawer:aberto",{id:t}),!0):(console.warn(`[UIBus] Drawer com ID "${t}" não encontrado no DOM.`),!1)}fecharDrawer(t){if(typeof document>"u")return!1;if(t){const r=document.getElementById(t);return r&&typeof r.fechar=="function"?(r.fechar(),this.emit("drawer:fechado",{id:t}),!0):r?(r.removeAttribute("aberto"),r.removeAttribute("open"),this.emit("drawer:fechado",{id:t}),!0):!1}else return document.querySelectorAll("ui-drawer[aberto], ui-drawer[open], ui-sheet[aberto], ui-sheet[open]").forEach(o=>{typeof o.fechar=="function"?o.fechar():(o.removeAttribute("aberto"),o.removeAttribute("open"))}),this.emit("drawer:fechado-todos"),!0}notificar(t){const r=this.provedorToast;if(r)try{r(typeof t=="string"?{mensagem:t,tipo:"info"}:t)}catch(o){console.error("Erro ao exibir toast:",o)}}registrarProvedorToast(t){this.provedorToast=t}async copiar(t,r){if(typeof navigator>"u"||!navigator.clipboard)return!1;try{return await navigator.clipboard.writeText(t),r!==void 0&&this.notificar({tipo:"sucesso",mensagem:r||"Copiado para a área de transferência!"}),this.emit("clipboard:copiado",{texto:t}),!0}catch(o){return console.error("[UIBus] Falha ao copiar texto:",o),this.notificar({tipo:"erro",mensagem:"Não foi possível copiar o texto."}),!1}}definirDensidade(t){let r=34;typeof t=="number"?r=Math.max(15,t):t==="compacta"?r=26:t==="relaxada"?r=42:r=34,!(typeof document>"u")&&(document.documentElement.style.setProperty("--ui-altura-minima",`${r}px`),document.documentElement.style.setProperty("--ui-campo-altura",`${r}px`),document.documentElement.setAttribute("data-ui-densidade",typeof t=="string"?t:"custom"),this.emit("densidade:alterada",{densidade:t,alturaPx:r}))}obterTema(){if(typeof document>"u")return"escuro";const t=V(document.documentElement);return t||(Qe()?"claro":"escuro")}definirTema(t){if(typeof document>"u")return t==="claro"?"claro":"escuro";const r=document.documentElement;if(t==="auto")r.removeAttribute("data-tema"),r.removeAttribute("data-theme"),r.classList.remove("dark","light");else{const a=t||(this.obterTema()==="escuro"?"claro":"escuro");r.setAttribute("data-tema",a),r.classList.toggle("dark",a==="escuro"),r.classList.toggle("light",a==="claro")}const o=this.obterTema();return this.emit("tema:alterado",{tema:o}),o}observarTemaDoSistema(){var t,r;this._observandoSistema||typeof window>"u"||typeof window.matchMedia!="function"||(this._observandoSistema=!0,(r=(t=window.matchMedia("(prefers-color-scheme: light)")).addEventListener)==null||r.call(t,"change",()=>{V(document.documentElement)||this.emit("tema:alterado",{tema:this.obterTema()})}))}}function V(e){const t=e.getAttribute("data-tema")||e.getAttribute("data-theme");return t==="escuro"||t==="dark"?"escuro":t==="claro"||t==="light"?"claro":e.classList.contains("dark")?"escuro":e.classList.contains("light")?"claro":null}function Qe(){return typeof window<"u"&&typeof window.matchMedia=="function"&&window.matchMedia("(prefers-color-scheme: light)").matches}const p=new Ye;let q=!1;function _e(e){if(e.hasAttribute("disabled")||e.hasAttribute("carregando")||e.getAttribute("aria-disabled")==="true"||e.localName.startsWith("ui-")&&e.hasAttribute("loading"))return!0;try{return e.matches(":disabled")}catch{return!1}}function oe(){q||typeof document>"u"||(q=!0,document.addEventListener("click",e=>{const t=e.composedPath?e.composedPath():[e.target],r="[target-modal], [modal-alvo], [dismiss-modal], [fechar-modal], [target-drawer], [drawer-alvo], [dismiss-drawer], [fechar-drawer], [toast-sucesso], [toast-erro], [toast-alerta], [toast-info], [copiar-texto], [alternar-tema], [definir-densidade], [limpar-form]";let o=null;for(const m of t)if(m instanceof HTMLElement&&m.matches(r)){o=m;break}if(!o||_e(o))return;const a=o.getAttribute("target-modal")||o.getAttribute("modal-alvo");if(a&&p.abrirModal(a),o.hasAttribute("dismiss-modal")||o.hasAttribute("fechar-modal")){const m=o.getAttribute("dismiss-modal")||o.getAttribute("fechar-modal");if(m&&m!=="")p.fecharModal(m);else{let u=null;for(const c of t)if(c instanceof HTMLElement&&(c.matches("ui-modal, ui-dialog")||c.tagName==="UI-MODAL"||c.tagName==="UI-DIALOG")){u=c;break}u&&(typeof u.fechar=="function"?u.fechar():(u.removeAttribute("aberto"),u.removeAttribute("open")))}}const i=o.getAttribute("target-drawer")||o.getAttribute("drawer-alvo");if(i&&p.abrirDrawer(i),o.hasAttribute("dismiss-drawer")||o.hasAttribute("fechar-drawer")){const m=o.getAttribute("dismiss-drawer")||o.getAttribute("fechar-drawer");if(m&&m!=="")p.fecharDrawer(m);else{let u=null;for(const c of t)if(c instanceof HTMLElement&&(c.matches("ui-drawer, ui-sheet, ui-painel-lateral, ui-gaveta")||c.tagName.startsWith("UI-DRAWER")||c.tagName.startsWith("UI-SHEET"))){u=c;break}u&&(typeof u.fechar=="function"?u.fechar():(u.removeAttribute("aberto"),u.removeAttribute("open")))}}const n=o.getAttribute("toast-sucesso");n&&p.notificar({tipo:"sucesso",mensagem:n});const l=o.getAttribute("toast-erro");l&&p.notificar({tipo:"erro",mensagem:l});const s=o.getAttribute("toast-alerta");s&&p.notificar({tipo:"alerta",mensagem:s});const f=o.getAttribute("toast-info");f&&p.notificar({tipo:"info",mensagem:f});const d=o.getAttribute("copiar-texto");if(d!==null){let m=d;if(d.startsWith("#")||d.startsWith(".")||d.match(/^[a-zA-Z0-9_-]+$/))try{let c=null;d.startsWith("#")||d.startsWith(".")?c=document.querySelector(d):c=document.getElementById(d)||document.querySelector(`#${d}`),c&&(m=c.value!==void 0&&c.value!==null?c.value:c.textContent||"")}catch{}const u=o.getAttribute("copiar-mensagem")||"Copiado com sucesso!";p.copiar(m,u)}o.hasAttribute("alternar-tema")&&p.definirTema();const g=o.getAttribute("definir-densidade");g&&p.definirDensidade(g);const h=o.getAttribute("limpar-form");if(h){const m=document.getElementById(h);m&&typeof m.reset=="function"&&(m.reset(),p.notificar({tipo:"info",mensagem:"Formulário limpo."}))}}))}let v=null,x=null;async function Xe(){return typeof window<"u"&&window.L?(x=window.L,x):x||v||(v=(async()=>{try{const e=await import("leaflet");return x=e.default||e,typeof window<"u"&&!window.L&&(window.L=x),x}catch{return v=null,console.warn(`[UI Components Kit] O Leaflet não foi encontrado no ambiente.
2
+ Para utilizar componentes de mapa ou CAD (<ui-mapa>, <ui-canvas-cad>), instale o pacote "leaflet" (npm i leaflet) ou inclua o script no HTML: <script src=".../leaflet.js"><\/script>.`),null}})(),v)}function $e(){return typeof window<"u"&&window.L?window.L:x}const et=new Set(["svg","g","path","rect","circle","ellipse","line","polyline","polygon","text","tspan","title","desc","defs","symbol","use","lineargradient","radialgradient","stop","clippath","mask"]),tt=/^(javascript|data|vbscript):/i,rt=/url\s*\(\s*['"]?\s*(?!#)/i;let ot=0;function at(e,t){const r=e.toLowerCase();if(r.startsWith("on"))return!1;const o=t.replace(/[\s\u0000-\u001f]+/g,"");return tt.test(o)?!1:r==="href"||r==="xlink:href"?o.startsWith("#"):!rt.test(t)}function ae(e){Array.from(e.children).forEach(t=>{if(!et.has(t.localName.toLowerCase())){console.warn(`[svg-seguro] Elemento <${t.localName}> não permitido foi descartado pela allowlist.`),t.remove();return}ae(t)}),Array.from(e.attributes).forEach(t=>{at(t.name,t.value)||e.removeAttribute(t.name)})}function it(e){const t=`ui-svg-${++ot}-`,r=new Map;if(e.querySelectorAll("[id]").forEach(n=>{const l=n.getAttribute("id");if(l){const s=`${t}${l}`;r.set(l,s),n.setAttribute("id",s)}}),r.size===0)return;const a=[e,...Array.from(e.querySelectorAll("*"))],i=/url\(\s*#([a-zA-Z0-9_\-:]+)\s*\)/g;a.forEach(n=>{Array.from(n.attributes).forEach(l=>{const s=l.name.toLowerCase(),f=l.value;if((s==="href"||s==="xlink:href")&&f.startsWith("#")){const d=f.slice(1);r.has(d)&&n.setAttribute(l.name,`#${r.get(d)}`)}else if(f.includes("url(#")){const d=f.replace(i,(g,h)=>r.has(h)?`url(#${r.get(h)})`:g);d!==f&&n.setAttribute(l.name,d)}})})}function nt(e){if(!e||typeof e!="string"||typeof document>"u")return null;const t=document.createElement("template");t.innerHTML=e.trim();const r=t.content.querySelector("svg");return r?(ae(r),it(r),r):(e.trim().length>0&&console.warn("[svg-seguro] Código descartado: nenhum elemento <svg> válido encontrado."),null)}const E="input, select, textarea, ui-campo-texto, ui-input, ui-area-texto, ui-textarea, ui-lista-flutuante, ui-select, ui-checkbox, ui-radio, ui-switch, ui-toggle",lt='input[type="file"], input[type="hidden"], input[type="submit"], input[type="button"], input[type="reset"]',st=new Set(["ui-checkbox","ui-radio","ui-switch","ui-toggle"]);function M(e){const t=e.tagName.toLowerCase();if(st.has(t))return!0;if(t!=="input")return!1;const r=(e.getAttribute("type")||"").toLowerCase();return r==="checkbox"||r==="radio"}function w(e,t=E){if(!e||typeof e.querySelectorAll!="function")return[];try{return Array.from(e.querySelectorAll(t)).filter(r=>!r.matches(lt))}catch{return[]}}function ie(e,t){return e.getAttribute("name")||e.id||`#${t}`}function y(e){try{const t=e;if(M(e))return t.checked===!0?"1":"0";const r=t.value;return r==null?"":typeof r=="string"?r:String(r)}catch{return""}}function L(e,t){try{const r=e;M(e)?r.checked=t==="1"||t==="true":r.value=t}catch{}}function I(e,t,r){return w(e,r).find(a=>a.getAttribute("name")===t||a.id===t)??null}const ut=["input","change","ui-input","ui-change","ui-selecionar","ui-campos-preenchidos"];function R(e,t,r){const o=w(e,t).map((i,n)=>[ie(i,n),y(i)]);let a=null;if(r)try{a=r()??null}catch{a=null}try{return JSON.stringify([o,a])}catch{return JSON.stringify([o,null])}}function ct(e,t={}){const r=t.seletor??E,o=new C;let a=R(e,r,t.estadoExterno),i=!1;const n=()=>{var s;const l=R(e,r,t.estadoExterno)!==a;if(l!==i){i=l;try{(s=t.aoMudar)==null||s.call(t,i)}catch(f){console.error("[form-rascunho] aoMudar lançou exceção:",f)}}return i};return ut.forEach(l=>o.add(e,l,n)),{get sujo(){return i},avaliar:n,marcarLimpo(){a=R(e,r,t.estadoExterno),n()},destruir(){o.cleanup()}}}const ft=new Set(["__proto__","constructor","prototype"]),dt=e=>e==null?"":typeof e=="boolean"?e?"1":"0":String(e);function mt(e,t,r={}){const o=r.somenteVazios!==!1,a=r.vazioSe??((u,c)=>c.trim()===""),i=r.seletor??E,n=[],l=[],s=[],f=[],d=[];let g=!1;const h=()=>{e&&typeof e.dispatchEvent=="function"&&typeof CustomEvent<"u"&&e.dispatchEvent(new CustomEvent("ui-campos-preenchidos",{bubbles:!0,detail:{aplicados:[...n]}}))},m=(u,c,A)=>{f.push({campo:c,valor:y(c)}),L(c,A),n.includes(u)||n.push(u)};if(t&&typeof t=="object")for(const u of Object.keys(t)){if(ft.has(u))continue;const c=I(e,u,i);if(!c){s.push(u);continue}const A=dt(t[u]);if(A==="")continue;const D=y(c);A!==D&&(!o||a(u,D)?m(u,c,A):(l.push(u),d.push({chave:u,campo:c,valor:A})))}return n.length>0&&h(),{aplicados:n,conflitos:l,semAlvo:s,substituirConflitos(){g||d.length===0||(d.splice(0).forEach(({chave:u,campo:c,valor:A})=>m(u,c,A)),h())},desfazer(){if(!g){g=!0;for(let u=f.length-1;u>=0;u--)L(f[u].campo,f[u].valor);f.length=0,h()}}}}const pt="Valor inválido.";function S(e,t){t?(e.setAttribute("erro",""),e.setAttribute("mensagem-erro",t)):(e.removeAttribute("erro"),e.removeAttribute("mensagem-erro"))}function gt(e,t,r={}){var a,i,n;const o=[];if(!e||!t||typeof t!="object")return{valido:!0,erros:o};for(const l of Object.keys(t)){const s=t[l],f=I(e,l);if(!f||typeof s!="function")continue;if((a=r.ignorar)!=null&&a.call(r,f)){S(f,null);continue}let d;try{d=s(y(f),f)}catch(g){console.error(`[form-erros] regra do campo "${l}" lançou exceção:`,g),d=pt}S(f,d||null),d&&o.push({chave:l,mensagem:d,campo:f})}if(o.length>0){const l=w(e);if(o.sort((s,f)=>l.indexOf(s.campo)-l.indexOf(f.campo)),r.focarPrimeiro!==!1){const s=o[0].campo;try{(i=s.focus)==null||i.call(s),(n=s.scrollIntoView)==null||n.call(s,{block:"center",behavior:"smooth"})}catch{}}}return{valido:o.length===0,erros:o}}function ht(e){w(e).forEach(t=>S(t,null))}function bt(e,t=E){const r=new C,o=a=>{const i=a.target;if(!(i instanceof Element))return;const n=i.closest(t);n&&(n.hasAttribute("erro")||n.hasAttribute("mensagem-erro"))&&S(n,null)};return["input","change","ui-input","ui-change","ui-selecionar"].forEach(a=>r.add(e,a,o)),()=>r.cleanup()}function At(e,t){const r=new C,o=i=>{try{i()}catch(n){console.error("[form-atalhos] ação do atalho lançou exceção:",n)}},a=i=>{if(i.isComposing)return;const n=i.ctrlKey||i.metaKey;if(t.salvar&&n&&!i.altKey&&!i.shiftKey&&i.key.toLowerCase()==="s"){i.preventDefault(),o(t.salvar);return}t.cancelar&&i.key==="Escape"&&!i.defaultPrevented&&!n&&!i.altKey&&!i.shiftKey&&(i.preventDefault(),o(t.cancelar))};return r.add(e,"keydown",a),()=>r.cleanup()}typeof document<"u"&&oe();function xt({host:e,internals:t,controle:r,rotulo:o,texto:a}){if(a){o.textContent=a,o.style.display="inline",r.setAttribute("aria-labelledby",o.id),r.removeAttribute("aria-label");return}o.style.display="none",r.removeAttribute("aria-labelledby");const i=te(e,t);i?r.setAttribute("aria-label",i):r.removeAttribute("aria-label")}exports.ATRIBUTOS_DEGRADE=G;exports.CLASSES_DEGRADE=J;exports.FormAssociatedElement=re;exports.ListenerBag=C;exports.PRESETS_DEGRADE=K;exports.SELETOR_CAMPOS_PADRAO=E;exports.SafeHTMLElement=W;exports.TAMANHOS_CONTROLE=ye;exports.UIBus=p;exports.VARIAVEL_ALTURA_CONTROLE=T;exports.alternarPart=Ne;exports.alturaDoTamanho=B;exports.aplicarAlturaControle=ze;exports.aplicarDegradeNoElemento=De;exports.aplicarValidadeInternals=Je;exports.carregarLeaflet=Xe;exports.chaveDoCampo=ie;exports.cliqueVeioDeRotuloExterno=je;exports.criarRascunhoFormulario=ct;exports.definirCustomElement=ge;exports.definirValorCampo=L;exports.ehAtributoDegrade=Me;exports.ehCampoDeTexto=k;exports.ehCampoMarcavel=M;exports.elementoFocadoReal=$;exports.escolherInteiro=Be;exports.escolherOpcao=We;exports.escolherOpcaoOpcional=He;exports.focoEmCampoDeTexto=Ve;exports.focoEmControleAcionavel=Ue;exports.gerarIdUnico=Ze;exports.gradienteSeguro=Q;exports.higienizarSvg=nt;exports.initZeroJSTriggers=oe;exports.inteiroOuNulo=Fe;exports.isBrowser=pe;exports.leafletCss=Ke;exports.lerEntradaAltura=j;exports.lerValorCampo=y;exports.ligarAtalhosFormulario=At;exports.limparErros=ht;exports.listarCampos=w;exports.localizarCampo=I;exports.normalizarAltura=F;exports.normalizarTamanhoControle=H;exports.observarLimpezaDeErros=bt;exports.obterLeafletSincrono=$e;exports.obterRotuloExterno=te;exports.obterValorAtributoDegrade=X;exports.preencherCampos=mt;exports.renderizarRotulo=qe;exports.resolverAlturaControle=Z;exports.resolverDegrade=_;exports.sincronizarRotuloControle=xt;exports.submeterFormulario=xe;exports.submeterImplicitamente=ve;exports.validarCampos=gt;exports.validarRestricoesCampoTexto=Ge;