@luizleon/sf.prefeiturasp.vuecomponents 6.0.4 → 6.0.5

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.
@@ -420,6 +420,6 @@ https://sweetalert2.github.io/#ajax-request`),du(t),typeof t.title=="string"&&(t
420
420
  `).join("<br />")),Sc(t)}class fu{constructor(e,n){this.callback=e,this.remaining=n,this.running=!1,this.start()}start(){return this.running||(this.running=!0,this.started=new Date,this.id=setTimeout(this.callback,this.remaining)),this.remaining}stop(){return this.running&&(this.running=!1,clearTimeout(this.id),this.remaining-=new Date().getTime()-this.started.getTime()),this.remaining}increase(e){const n=this.running;return n&&this.stop(),this.remaining+=e,n&&this.start(),this.remaining}getTimerLeft(){return this.running&&(this.stop(),this.start()),this.remaining}isRunning(){return this.running}}const pu=()=>{pt.previousBodyPadding===null&&document.body.scrollHeight>window.innerHeight&&(pt.previousBodyPadding=parseInt(window.getComputedStyle(document.body).getPropertyValue("padding-right")),document.body.style.paddingRight=`${pt.previousBodyPadding+Tc()}px`)},hu=()=>{pt.previousBodyPadding!==null&&(document.body.style.paddingRight=`${pt.previousBodyPadding}px`,pt.previousBodyPadding=null)},gu=()=>{if((/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream||navigator.platform==="MacIntel"&&navigator.maxTouchPoints>1)&&!Me(document.body,g.iosfix)){const e=document.body.scrollTop;document.body.style.top=`${e*-1}px`,N(document.body,g.iosfix),vu(),yu()}},yu=()=>{const t=navigator.userAgent,e=!!t.match(/iPad/i)||!!t.match(/iPhone/i),n=!!t.match(/WebKit/i);e&&n&&!t.match(/CriOS/i)&&D().scrollHeight>window.innerHeight-44&&(J().style.paddingBottom="44px")},vu=()=>{const t=J();let e;t.ontouchstart=n=>{e=bu(n)},t.ontouchmove=n=>{e&&(n.preventDefault(),n.stopPropagation())}},bu=t=>{const e=t.target,n=J();return Cu(t)||wu(t)?!1:e===n||!Zr(n)&&e.tagName!=="INPUT"&&e.tagName!=="TEXTAREA"&&!(Zr(Cn())&&Cn().contains(e))},Cu=t=>t.touches&&t.touches.length&&t.touches[0].touchType==="stylus",wu=t=>t.touches&&t.touches.length>1,ku=()=>{if(Me(document.body,g.iosfix)){const t=parseInt(document.body.style.top,10);$e(document.body,g.iosfix),document.body.style.top="",document.body.scrollTop=t*-1}},li=10,Su=t=>{const e=J(),n=D();typeof t.willOpen=="function"&&t.willOpen(n);const i=window.getComputedStyle(document.body).overflowY;Tu(e,n,t),setTimeout(()=>{_u(e,n)},li),fo()&&(Eu(e,t.scrollbarPadding,i),tu()),!Sn()&&!A.previousActiveElement&&(A.previousActiveElement=document.activeElement),typeof t.didOpen=="function"&&setTimeout(()=>t.didOpen(n)),$e(e,g["no-transition"])},ci=t=>{const e=D();if(t.target!==e)return;const n=J();e.removeEventListener(qt,ci),n.style.overflowY="auto"},_u=(t,e)=>{qt&&Jr(e)?(t.style.overflowY="hidden",e.addEventListener(qt,ci)):t.style.overflowY="auto"},Eu=(t,e,n)=>{gu(),e&&n!=="hidden"&&pu(),setTimeout(()=>{t.scrollTop=0})},Tu=(t,e,n)=>{N(t,n.showClass.backdrop),e.style.setProperty("opacity","0","important"),Y(e,"grid"),setTimeout(()=>{N(e,n.showClass.popup),e.style.removeProperty("opacity")},li),N([document.documentElement,document.body],g.shown),n.heightAuto&&n.backdrop&&!n.toast&&N([document.documentElement,document.body],g["height-auto"])},gt=t=>{let e=D();e||new at,e=D();const n=ft();Sn()?ee(Kt()):Pu(e,t),Y(n),e.setAttribute("data-loading",!0),e.setAttribute("aria-busy",!0),e.focus()},Pu=(t,e)=>{const n=Wt(),o=ft();!e&&ge(Ee())&&(e=Ee()),Y(n),e&&(ee(e),o.setAttribute("data-button-to-replace",e.className)),o.parentNode.insertBefore(o,e),N([t,n],g.loading)},Iu=(t,e)=>{e.input==="select"||e.input==="radio"?Bu(t,e):["text","email","number","tel","textarea"].includes(e.input)&&(so(e.inputValue)||lo(e.inputValue))&&(gt(Ee()),Lu(t,e))},Au=(t,e)=>{const n=t.getInput();if(!n)return null;switch(e.input){case"checkbox":return xu(n);case"radio":return $u(n);case"file":return Ou(n);default:return e.inputAutoTrim?n.value.trim():n.value}},xu=t=>t.checked?1:0,$u=t=>t.checked?t.value:null,Ou=t=>t.files.length?t.getAttribute("multiple")!==null?t.files:t.files[0]:null,Bu=(t,e)=>{const n=D(),o=i=>Nu[e.input](n,bo(i),e);so(e.inputOptions)||lo(e.inputOptions)?(gt(Ee()),Ft(e.inputOptions).then(i=>{t.hideLoading(),o(i)})):typeof e.inputOptions=="object"?o(e.inputOptions):nt(`Unexpected type of inputOptions! Expected object, Map or Promise, got ${typeof e.inputOptions}`)},Lu=(t,e)=>{const n=t.getInput();ee(n),Ft(e.inputValue).then(o=>{n.value=e.input==="number"?parseFloat(o)||0:`${o}`,Y(n),n.focus(),t.hideLoading()}).catch(o=>{nt(`Error in inputValue promise: ${o}`),n.value="",Y(n),n.focus(),t.hideLoading()})},Nu={select:(t,e,n)=>{const o=Ge(t,g.select),i=(a,c,l)=>{const s=document.createElement("option");s.value=l,Q(s,c),s.selected=ui(l,n.inputValue),a.appendChild(s)};e.forEach(a=>{const c=a[0],l=a[1];if(Array.isArray(l)){const s=document.createElement("optgroup");s.label=c,s.disabled=!1,o.appendChild(s),l.forEach(u=>i(s,u[1],u[0]))}else i(o,l,c)}),o.focus()},radio:(t,e,n)=>{const o=Ge(t,g.radio);e.forEach(a=>{const c=a[0],l=a[1],s=document.createElement("input"),u=document.createElement("label");s.type="radio",s.name=g.radio,s.value=c,ui(c,n.inputValue)&&(s.checked=!0);const m=document.createElement("span");Q(m,l),m.className=g.label,u.appendChild(s),u.appendChild(m),o.appendChild(u)});const i=o.querySelectorAll("input");i.length&&i[0].focus()}},bo=t=>{const e=[];return typeof Map<"u"&&t instanceof Map?t.forEach((n,o)=>{let i=n;typeof i=="object"&&(i=bo(i)),e.push([o,i])}):Object.keys(t).forEach(n=>{let o=t[n];typeof o=="object"&&(o=bo(o)),e.push([n,o])}),e},ui=(t,e)=>e&&e.toString()===t.toString();function di(){const t=O.innerParams.get(this);if(!t)return;const e=O.domCache.get(this);ee(e.loader),Sn()?t.icon&&Y(Kt()):Mu(e),$e([e.popup,e.actions],g.loading),e.popup.removeAttribute("aria-busy"),e.popup.removeAttribute("data-loading"),e.confirmButton.disabled=!1,e.denyButton.disabled=!1,e.cancelButton.disabled=!1}const Mu=t=>{const e=t.popup.getElementsByClassName(t.loader.getAttribute("data-button-to-replace"));e.length?Y(e[0],"inline-block"):mc()&&ee(t.actions)};function Du(t){const e=O.innerParams.get(t||this),n=O.domCache.get(t||this);return n?po(n.popup,e.input):null}const Xt={swalPromiseResolve:new WeakMap,swalPromiseReject:new WeakMap},Ru=()=>ge(D()),mi=()=>Ee()&&Ee().click(),Vu=()=>We()&&We().click(),ju=()=>ot()&&ot().click(),fi=t=>{t.keydownTarget&&t.keydownHandlerAdded&&(t.keydownTarget.removeEventListener("keydown",t.keydownHandler,{capture:t.keydownListenerCapture}),t.keydownHandlerAdded=!1)},Hu=(t,e,n,o)=>{fi(e),n.toast||(e.keydownHandler=i=>Uu(t,i,o),e.keydownTarget=n.keydownListenerCapture?window:D(),e.keydownListenerCapture=n.keydownListenerCapture,e.keydownTarget.addEventListener("keydown",e.keydownHandler,{capture:e.keydownListenerCapture}),e.keydownHandlerAdded=!0)},Co=(t,e,n)=>{const o=mo();if(o.length)return e=e+n,e===o.length?e=0:e===-1&&(e=o.length-1),o[e].focus();D().focus()},pi=["ArrowRight","ArrowDown"],Fu=["ArrowLeft","ArrowUp"],Uu=(t,e,n)=>{const o=O.innerParams.get(t);o&&(e.isComposing||e.keyCode===229||(o.stopKeydownPropagation&&e.stopPropagation(),e.key==="Enter"?zu(t,e,o):e.key==="Tab"?Ku(e,o):[...pi,...Fu].includes(e.key)?Wu(e.key):e.key==="Escape"&&Gu(e,o,n)))},zu=(t,e,n)=>{if(bn(n.allowEnterKey)&&e.target&&t.getInput()&&e.target.outerHTML===t.getInput().outerHTML){if(["textarea","file"].includes(n.input))return;mi(),e.preventDefault()}},Ku=(t,e)=>{const n=t.target,o=mo();let i=-1;for(let a=0;a<o.length;a++)if(n===o[a]){i=a;break}t.shiftKey?Co(e,i,-1):Co(e,i,1),t.stopPropagation(),t.preventDefault()},Wu=t=>{const e=Ee(),n=We(),o=ot();if(![e,n,o].includes(document.activeElement))return;const i=pi.includes(t)?"nextElementSibling":"previousElementSibling";let a=document.activeElement;for(let c=0;c<Wt().children.length;c++){if(a=a[i],!a)return;if(ge(a)&&a instanceof HTMLButtonElement)break}a instanceof HTMLButtonElement&&a.focus()},Gu=(t,e,n)=>{bn(e.allowEscapeKey)&&(t.preventDefault(),n(ht.esc))};function hi(t,e,n,o){Sn()?gi(t,o):(gc(n).then(()=>gi(t,o)),fi(A)),/^((?!chrome|android).)*safari/i.test(navigator.userAgent)?(e.setAttribute("style","display:none !important"),e.removeAttribute("class"),e.innerHTML=""):e.remove(),fo()&&(hu(),ku(),ii()),qu()}function qu(){$e([document.documentElement,document.body],[g.shown,g["height-auto"],g["no-backdrop"],g["toast-shown"]])}function En(t){t=Ju(t);const e=Xt.swalPromiseResolve.get(this),n=Xu(this);this.isAwaitingPromise()?t.isDismissed||(Zt(this),e(t)):n&&e(t)}function Yu(){return!!O.awaitingPromise.get(this)}const Xu=t=>{const e=D();if(!e)return!1;const n=O.innerParams.get(t);if(!n||Me(e,n.hideClass.popup))return!1;$e(e,n.showClass.popup),N(e,n.hideClass.popup);const o=J();return $e(o,n.showClass.backdrop),N(o,n.hideClass.backdrop),Qu(t,e,n),!0};function Zu(t){const e=Xt.swalPromiseReject.get(this);Zt(this),e&&e(t)}const Zt=t=>{t.isAwaitingPromise()&&(O.awaitingPromise.delete(t),O.innerParams.get(t)||t._destroy())},Ju=t=>typeof t>"u"?{isConfirmed:!1,isDenied:!1,isDismissed:!0}:Object.assign({isConfirmed:!1,isDenied:!1,isDismissed:!1},t),Qu=(t,e,n)=>{const o=J(),i=qt&&Jr(e);typeof n.willClose=="function"&&n.willClose(e),i?ed(t,e,o,n.returnFocus,n.didClose):hi(t,o,n.returnFocus,n.didClose)},ed=(t,e,n,o,i)=>{A.swalCloseEventFinishedCallback=hi.bind(null,t,n,o,i),e.addEventListener(qt,function(a){a.target===e&&(A.swalCloseEventFinishedCallback(),delete A.swalCloseEventFinishedCallback)})},gi=(t,e)=>{setTimeout(()=>{typeof e=="function"&&e.bind(t.params)(),t._destroy()})};function yi(t,e,n){const o=O.domCache.get(t);e.forEach(i=>{o[i].disabled=n})}function vi(t,e){if(!t)return!1;if(t.type==="radio"){const o=t.parentNode.parentNode.querySelectorAll("input");for(let i=0;i<o.length;i++)o[i].disabled=e}else t.disabled=e}function td(){yi(this,["confirmButton","denyButton","cancelButton"],!1)}function nd(){yi(this,["confirmButton","denyButton","cancelButton"],!0)}function od(){return vi(this.getInput(),!1)}function rd(){return vi(this.getInput(),!0)}function id(t){const e=O.domCache.get(this),n=O.innerParams.get(this);Q(e.validationMessage,t),e.validationMessage.className=g["validation-message"],n.customClass&&n.customClass.validationMessage&&N(e.validationMessage,n.customClass.validationMessage),Y(e.validationMessage);const o=this.getInput();o&&(o.setAttribute("aria-invalid",!0),o.setAttribute("aria-describedby",g["validation-message"]),qr(o),N(o,g.inputerror))}function ad(){const t=O.domCache.get(this);t.validationMessage&&ee(t.validationMessage);const e=this.getInput();e&&(e.removeAttribute("aria-invalid"),e.removeAttribute("aria-describedby"),$e(e,g.inputerror))}function sd(){return O.domCache.get(this).progressSteps}function ld(t){const e=D(),n=O.innerParams.get(this);if(!e||Me(e,n.hideClass.popup))return ue("You're trying to update the closed or closing popup, that won't work. Use the update() method in preConfirm parameter or show a new popup.");const o=cd(t),i=Object.assign({},n,o);ri(this,i),O.innerParams.set(this,i),Object.defineProperties(this,{params:{value:Object.assign({},this.params,t),writable:!1,enumerable:!0}})}const cd=t=>{const e={};return Object.keys(t).forEach(n=>{Fr(n)?e[n]=t[n]:ue(`Invalid parameter to update: "${n}". Updatable params are listed here: https://github.com/sweetalert2/sweetalert2/blob/master/src/utils/params.js
421
421
 
422
422
  If you think this parameter should be updatable, request it here: https://github.com/sweetalert2/sweetalert2/issues/new?template=02_feature_request.md`)}),e};function ud(){const t=O.domCache.get(this),e=O.innerParams.get(this);if(!e){bi(this);return}t.popup&&A.swalCloseEventFinishedCallback&&(A.swalCloseEventFinishedCallback(),delete A.swalCloseEventFinishedCallback),A.deferDisposalTimer&&(clearTimeout(A.deferDisposalTimer),delete A.deferDisposalTimer),typeof e.didDestroy=="function"&&e.didDestroy(),dd(this)}const dd=t=>{bi(t),delete t.params,delete A.keydownHandler,delete A.keydownTarget,delete A.currentInstance},bi=t=>{t.isAwaitingPromise()?(wo(O,t),O.awaitingPromise.set(t,!0)):(wo(Xt,t),wo(O,t))},wo=(t,e)=>{for(const n in t)t[n].delete(e)},Ci=Object.freeze(Object.defineProperty({__proto__:null,_destroy:ud,close:En,closeModal:En,closePopup:En,closeToast:En,disableButtons:nd,disableInput:rd,disableLoading:di,enableButtons:td,enableInput:od,getInput:Du,getProgressSteps:sd,handleAwaitingPromise:Zt,hideLoading:di,isAwaitingPromise:Yu,rejectPromise:Zu,resetValidationMessage:ad,showValidationMessage:id,update:ld},Symbol.toStringTag,{value:"Module"})),md=t=>{const e=O.innerParams.get(t);t.disableButtons(),e.input?wi(t,"confirm"):So(t,!0)},fd=t=>{const e=O.innerParams.get(t);t.disableButtons(),e.returnInputValueOnDeny?wi(t,"deny"):ko(t,!1)},pd=(t,e)=>{t.disableButtons(),e(ht.cancel)},wi=(t,e)=>{const n=O.innerParams.get(t);if(!n.input)return nt(`The "input" parameter is needed to be set when using returnInputValueOn${ao(e)}`);const o=Au(t,n);n.inputValidator?hd(t,o,e):t.getInput().checkValidity()?e==="deny"?ko(t,o):So(t,o):(t.enableButtons(),t.showValidationMessage(n.validationMessage))},hd=(t,e,n)=>{const o=O.innerParams.get(t);t.disableInput(),Promise.resolve().then(()=>Ft(o.inputValidator(e,o.validationMessage))).then(a=>{t.enableButtons(),t.enableInput(),a?t.showValidationMessage(a):n==="deny"?ko(t,e):So(t,e)})},ko=(t,e)=>{const n=O.innerParams.get(t||void 0);n.showLoaderOnDeny&&gt(We()),n.preDeny?(O.awaitingPromise.set(t||void 0,!0),Promise.resolve().then(()=>Ft(n.preDeny(e,n.validationMessage))).then(i=>{i===!1?(t.hideLoading(),Zt(t)):t.closePopup({isDenied:!0,value:typeof i>"u"?e:i})}).catch(i=>Si(t||void 0,i))):t.closePopup({isDenied:!0,value:e})},ki=(t,e)=>{t.closePopup({isConfirmed:!0,value:e})},Si=(t,e)=>{t.rejectPromise(e)},So=(t,e)=>{const n=O.innerParams.get(t||void 0);n.showLoaderOnConfirm&&gt(),n.preConfirm?(t.resetValidationMessage(),O.awaitingPromise.set(t||void 0,!0),Promise.resolve().then(()=>Ft(n.preConfirm(e,n.validationMessage))).then(i=>{ge(wn())||i===!1?(t.hideLoading(),Zt(t)):ki(t,typeof i>"u"?e:i)}).catch(i=>Si(t||void 0,i))):ki(t,e)},gd=(t,e,n)=>{O.innerParams.get(t).toast?yd(t,e,n):(bd(e),Cd(e),wd(t,e,n))},yd=(t,e,n)=>{e.popup.onclick=()=>{const o=O.innerParams.get(t);o&&(vd(o)||o.timer||o.input)||n(ht.close)}},vd=t=>t.showConfirmButton||t.showDenyButton||t.showCancelButton||t.showCloseButton;let Tn=!1;const bd=t=>{t.popup.onmousedown=()=>{t.container.onmouseup=function(e){t.container.onmouseup=void 0,e.target===t.container&&(Tn=!0)}}},Cd=t=>{t.container.onmousedown=()=>{t.popup.onmouseup=function(e){t.popup.onmouseup=void 0,(e.target===t.popup||t.popup.contains(e.target))&&(Tn=!0)}}},wd=(t,e,n)=>{e.container.onclick=o=>{const i=O.innerParams.get(t);if(Tn){Tn=!1;return}o.target===e.container&&bn(i.allowOutsideClick)&&n(ht.backdrop)}},kd=t=>typeof t=="object"&&t.jquery,_i=t=>t instanceof Element||kd(t),Sd=t=>{const e={};return typeof t[0]=="object"&&!_i(t[0])?Object.assign(e,t[0]):["title","html","icon"].forEach((n,o)=>{const i=t[o];typeof i=="string"||_i(i)?e[n]=i:i!==void 0&&nt(`Unexpected type of ${n}! Expected "string" or "Element", got ${typeof i}`)}),e};function _d(...t){const e=this;return new e(...t)}function Ed(t){class e extends this{_main(o,i){return super._main(o,Object.assign({},t,i))}}return e}const Td=()=>A.timeout&&A.timeout.getTimerLeft(),Ei=()=>{if(A.timeout)return fc(),A.timeout.stop()},Ti=()=>{if(A.timeout){const t=A.timeout.start();return ho(t),t}},Pd=()=>{const t=A.timeout;return t&&(t.running?Ei():Ti())},Id=t=>{if(A.timeout){const e=A.timeout.increase(t);return ho(e,!0),e}},Ad=()=>A.timeout&&A.timeout.isRunning();let Pi=!1;const _o={};function xd(t="data-swal-template"){_o[t]=this,Pi||(document.body.addEventListener("click",$d),Pi=!0)}const $d=t=>{for(let e=t.target;e&&e!==document;e=e.parentNode)for(const n in _o){const o=e.getAttribute(n);if(o){_o[n].fire({template:o});return}}},Od=Object.freeze(Object.defineProperty({__proto__:null,argsToParams:Sd,bindClickHandler:xd,clickCancel:ju,clickConfirm:mi,clickDeny:Vu,enableLoading:gt,fire:_d,getActions:Wt,getCancelButton:ot,getCloseButton:uo,getConfirmButton:Ee,getContainer:J,getDenyButton:We,getFocusableElements:mo,getFooter:Gr,getHtmlContainer:Cn,getIcon:Kt,getImage:Kr,getInputLabel:lc,getLoader:ft,getPopup:D,getTimerLeft:Td,getTimerProgressBar:kn,getTitle:zr,getValidationMessage:wn,increaseTimer:Id,isDeprecatedParameter:co,isLoading:uc,isTimerRunning:Ad,isUpdatableParameter:Fr,isValidParameter:Hr,isVisible:Ru,mixin:Ed,resumeTimer:Ti,showLoading:gt,stopTimer:Ei,toggleTimer:Pd},Symbol.toStringTag,{value:"Module"}));let Eo;class yt{constructor(...e){if(typeof window>"u")return;Eo=this;const n=Object.freeze(this.constructor.argsToParams(e));Object.defineProperties(this,{params:{value:n,writable:!1,enumerable:!0,configurable:!0}});const o=this._main(this.params);O.promise.set(this,o)}_main(e,n={}){ac(Object.assign({},n,e)),A.currentInstance&&(A.currentInstance._destroy(),fo()&&ii()),A.currentInstance=this;const o=Ld(e,n);mu(o),Object.freeze(o),A.timeout&&(A.timeout.stop(),delete A.timeout),clearTimeout(A.restoreFocusTimeout);const i=Nd(this);return ri(this,o),O.innerParams.set(this,o),Bd(this,i,o)}then(e){return O.promise.get(this).then(e)}finally(e){return O.promise.get(this).finally(e)}}const Bd=(t,e,n)=>new Promise((o,i)=>{const a=c=>{t.closePopup({isDismissed:!0,dismiss:c})};Xt.swalPromiseResolve.set(t,o),Xt.swalPromiseReject.set(t,i),e.confirmButton.onclick=()=>md(t),e.denyButton.onclick=()=>fd(t),e.cancelButton.onclick=()=>pd(t,a),e.closeButton.onclick=()=>a(ht.close),gd(t,e,a),Hu(t,A,n,a),Iu(t,n),Su(n),Md(A,n,a),Dd(e,n),setTimeout(()=>{e.container.scrollTop=0})}),Ld=(t,e)=>{const n=nu(t),o=Object.assign({},mt,e,n,t);return o.showClass=Object.assign({},mt.showClass,o.showClass),o.hideClass=Object.assign({},mt.hideClass,o.hideClass),o},Nd=t=>{const e={popup:D(),container:J(),actions:Wt(),confirmButton:Ee(),denyButton:We(),cancelButton:ot(),loader:ft(),closeButton:uo(),validationMessage:wn(),progressSteps:Wr()};return O.domCache.set(t,e),e},Md=(t,e,n)=>{const o=kn();ee(o),e.timer&&(t.timeout=new fu(()=>{n("timer"),delete t.timeout},e.timer),e.timerProgressBar&&(Y(o),ve(o,e,"timerProgressBar"),setTimeout(()=>{t.timeout&&t.timeout.running&&ho(e.timer)})))},Dd=(t,e)=>{if(!e.toast){if(!bn(e.allowEnterKey))return Vd();Rd(t,e)||Co(e,-1,1)}},Rd=(t,e)=>e.focusDeny&&ge(t.denyButton)?(t.denyButton.focus(),!0):e.focusCancel&&ge(t.cancelButton)?(t.cancelButton.focus(),!0):e.focusConfirm&&ge(t.confirmButton)?(t.confirmButton.focus(),!0):!1,Vd=()=>{document.activeElement instanceof HTMLElement&&typeof document.activeElement.blur=="function"&&document.activeElement.blur()};Object.assign(yt.prototype,Ci),Object.assign(yt,Od),Object.keys(Ci).forEach(t=>{yt[t]=function(...e){if(Eo)return Eo[t](...e)}}),yt.DismissReason=ht,yt.version="11.4.8";const at=yt;at.default=at;/*! @license DOMPurify 3.2.6 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.2.6/LICENSE */const{entries:Ii,setPrototypeOf:Ai,isFrozen:jd,getPrototypeOf:Hd,getOwnPropertyDescriptor:Fd}=Object;let{freeze:ae,seal:be,create:xi}=Object,{apply:To,construct:Po}=typeof Reflect<"u"&&Reflect;ae||(ae=function(e){return e}),be||(be=function(e){return e}),To||(To=function(e,n,o){return e.apply(n,o)}),Po||(Po=function(e,n){return new e(...n)});const Pn=le(Array.prototype.forEach),Ud=le(Array.prototype.lastIndexOf),$i=le(Array.prototype.pop),Jt=le(Array.prototype.push),zd=le(Array.prototype.splice),In=le(String.prototype.toLowerCase),Io=le(String.prototype.toString),Oi=le(String.prototype.match),Qt=le(String.prototype.replace),Kd=le(String.prototype.indexOf),Wd=le(String.prototype.trim),Te=le(Object.prototype.hasOwnProperty),se=le(RegExp.prototype.test),en=Gd(TypeError);function le(t){return function(e){e instanceof RegExp&&(e.lastIndex=0);for(var n=arguments.length,o=new Array(n>1?n-1:0),i=1;i<n;i++)o[i-1]=arguments[i];return To(t,e,o)}}function Gd(t){return function(){for(var e=arguments.length,n=new Array(e),o=0;o<e;o++)n[o]=arguments[o];return Po(t,n)}}function B(t,e){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:In;Ai&&Ai(t,null);let o=e.length;for(;o--;){let i=e[o];if(typeof i=="string"){const a=n(i);a!==i&&(jd(e)||(e[o]=a),i=a)}t[i]=!0}return t}function qd(t){for(let e=0;e<t.length;e++)Te(t,e)||(t[e]=null);return t}function De(t){const e=xi(null);for(const[n,o]of Ii(t))Te(t,n)&&(Array.isArray(o)?e[n]=qd(o):o&&typeof o=="object"&&o.constructor===Object?e[n]=De(o):e[n]=o);return e}function tn(t,e){for(;t!==null;){const o=Fd(t,e);if(o){if(o.get)return le(o.get);if(typeof o.value=="function")return le(o.value)}t=Hd(t)}function n(){return null}return n}const Bi=ae(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","section","select","shadow","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),Ao=ae(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","filter","font","g","glyph","glyphref","hkern","image","line","lineargradient","marker","mask","metadata","mpath","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),xo=ae(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),Yd=ae(["animate","color-profile","cursor","discard","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),$o=ae(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover","mprescripts"]),Xd=ae(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),Li=ae(["#text"]),Ni=ae(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","face","for","headers","height","hidden","high","href","hreflang","id","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","pattern","placeholder","playsinline","popover","popovertarget","popovertargetaction","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","wrap","xmlns","slot"]),Oo=ae(["accent-height","accumulate","additive","alignment-baseline","amplitude","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dur","edgemode","elevation","end","exponent","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","intercept","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","slope","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","tablevalues","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-rendering","textlength","type","u1","u2","unicode","values","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),Mi=ae(["accent","accentunder","align","bevelled","close","columnsalign","columnlines","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lspace","lquote","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),An=ae(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),Zd=be(/\{\{[\w\W]*|[\w\W]*\}\}/gm),Jd=be(/<%[\w\W]*|[\w\W]*%>/gm),Qd=be(/\$\{[\w\W]*/gm),em=be(/^data-[\-\w.\u00B7-\uFFFF]+$/),tm=be(/^aria-[\-\w]+$/),Di=be(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),nm=be(/^(?:\w+script|data):/i),om=be(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),Ri=be(/^html$/i),rm=be(/^[a-z][.\w]*(-[.\w]+)+$/i);var Vi=Object.freeze({__proto__:null,ARIA_ATTR:tm,ATTR_WHITESPACE:om,CUSTOM_ELEMENT:rm,DATA_ATTR:em,DOCTYPE_NAME:Ri,ERB_EXPR:Jd,IS_ALLOWED_URI:Di,IS_SCRIPT_OR_DATA:nm,MUSTACHE_EXPR:Zd,TMPLIT_EXPR:Qd});const nn={element:1,text:3,progressingInstruction:7,comment:8,document:9},im=function(){return typeof window>"u"?null:window},am=function(e,n){if(typeof e!="object"||typeof e.createPolicy!="function")return null;let o=null;const i="data-tt-policy-suffix";n&&n.hasAttribute(i)&&(o=n.getAttribute(i));const a="dompurify"+(o?"#"+o:"");try{return e.createPolicy(a,{createHTML(c){return c},createScriptURL(c){return c}})}catch{return console.warn("TrustedTypes policy "+a+" could not be created."),null}},ji=function(){return{afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}};function Hi(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:im();const e=E=>Hi(E);if(e.version="3.2.6",e.removed=[],!t||!t.document||t.document.nodeType!==nn.document||!t.Element)return e.isSupported=!1,e;let{document:n}=t;const o=n,i=o.currentScript,{DocumentFragment:a,HTMLTemplateElement:c,Node:l,Element:s,NodeFilter:u,NamedNodeMap:m=t.NamedNodeMap||t.MozNamedAttrMap,HTMLFormElement:f,DOMParser:p,trustedTypes:h}=t,C=s.prototype,w=tn(C,"cloneNode"),k=tn(C,"remove"),y=tn(C,"nextSibling"),P=tn(C,"childNodes"),T=tn(C,"parentNode");if(typeof c=="function"){const E=n.createElement("template");E.content&&E.content.ownerDocument&&(n=E.content.ownerDocument)}let v,_="";const{implementation:z,createNodeIterator:X,createDocumentFragment:Ce,getElementsByTagName:te}=n,{importNode:we}=o;let I=ji();e.isSupported=typeof Ii=="function"&&typeof T=="function"&&z&&z.createHTMLDocument!==void 0;const{MUSTACHE_EXPR:V,ERB_EXPR:ne,TMPLIT_EXPR:ce,DATA_ATTR:Pe,ARIA_ATTR:Ye,IS_SCRIPT_OR_DATA:Re,ATTR_WHITESPACE:Ve,CUSTOM_ELEMENT:Xe}=Vi;let{IS_ALLOWED_URI:ke}=Vi,R=null;const Oe=B({},[...Bi,...Ao,...xo,...$o,...Li]);let K=null;const je=B({},[...Ni,...Oo,...Mi,...An]);let H=Object.seal(xi(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),Ze=null,on=null,On=!0,rn=!0,Bn=!1,Ln=!0,Je=!1,bt=!0,He=!1,an=!1,sn=!1,Qe=!1,Ct=!1,wt=!1,Nn=!0,Mn=!1;const Do="user-content-";let ln=!0,st=!1,kt={},St=null;const Zi=B({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]);let Ji=null;const Qi=B({},["audio","video","img","source","image","track"]);let Ro=null;const ea=B({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),Dn="http://www.w3.org/1998/Math/MathML",Rn="http://www.w3.org/2000/svg",Fe="http://www.w3.org/1999/xhtml";let _t=Fe,Vo=!1,jo=null;const Hm=B({},[Dn,Rn,Fe],Io);let Vn=B({},["mi","mo","mn","ms","mtext"]),jn=B({},["annotation-xml"]);const Fm=B({},["title","style","font","a","script"]);let cn=null;const Um=["application/xhtml+xml","text/html"],zm="text/html";let G=null,Et=null;const Km=n.createElement("form"),ta=function(d){return d instanceof RegExp||d instanceof Function},Ho=function(){let d=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(!(Et&&Et===d)){if((!d||typeof d!="object")&&(d={}),d=De(d),cn=Um.indexOf(d.PARSER_MEDIA_TYPE)===-1?zm:d.PARSER_MEDIA_TYPE,G=cn==="application/xhtml+xml"?Io:In,R=Te(d,"ALLOWED_TAGS")?B({},d.ALLOWED_TAGS,G):Oe,K=Te(d,"ALLOWED_ATTR")?B({},d.ALLOWED_ATTR,G):je,jo=Te(d,"ALLOWED_NAMESPACES")?B({},d.ALLOWED_NAMESPACES,Io):Hm,Ro=Te(d,"ADD_URI_SAFE_ATTR")?B(De(ea),d.ADD_URI_SAFE_ATTR,G):ea,Ji=Te(d,"ADD_DATA_URI_TAGS")?B(De(Qi),d.ADD_DATA_URI_TAGS,G):Qi,St=Te(d,"FORBID_CONTENTS")?B({},d.FORBID_CONTENTS,G):Zi,Ze=Te(d,"FORBID_TAGS")?B({},d.FORBID_TAGS,G):De({}),on=Te(d,"FORBID_ATTR")?B({},d.FORBID_ATTR,G):De({}),kt=Te(d,"USE_PROFILES")?d.USE_PROFILES:!1,On=d.ALLOW_ARIA_ATTR!==!1,rn=d.ALLOW_DATA_ATTR!==!1,Bn=d.ALLOW_UNKNOWN_PROTOCOLS||!1,Ln=d.ALLOW_SELF_CLOSE_IN_ATTR!==!1,Je=d.SAFE_FOR_TEMPLATES||!1,bt=d.SAFE_FOR_XML!==!1,He=d.WHOLE_DOCUMENT||!1,Qe=d.RETURN_DOM||!1,Ct=d.RETURN_DOM_FRAGMENT||!1,wt=d.RETURN_TRUSTED_TYPE||!1,sn=d.FORCE_BODY||!1,Nn=d.SANITIZE_DOM!==!1,Mn=d.SANITIZE_NAMED_PROPS||!1,ln=d.KEEP_CONTENT!==!1,st=d.IN_PLACE||!1,ke=d.ALLOWED_URI_REGEXP||Di,_t=d.NAMESPACE||Fe,Vn=d.MATHML_TEXT_INTEGRATION_POINTS||Vn,jn=d.HTML_INTEGRATION_POINTS||jn,H=d.CUSTOM_ELEMENT_HANDLING||{},d.CUSTOM_ELEMENT_HANDLING&&ta(d.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(H.tagNameCheck=d.CUSTOM_ELEMENT_HANDLING.tagNameCheck),d.CUSTOM_ELEMENT_HANDLING&&ta(d.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(H.attributeNameCheck=d.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),d.CUSTOM_ELEMENT_HANDLING&&typeof d.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements=="boolean"&&(H.allowCustomizedBuiltInElements=d.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),Je&&(rn=!1),Ct&&(Qe=!0),kt&&(R=B({},Li),K=[],kt.html===!0&&(B(R,Bi),B(K,Ni)),kt.svg===!0&&(B(R,Ao),B(K,Oo),B(K,An)),kt.svgFilters===!0&&(B(R,xo),B(K,Oo),B(K,An)),kt.mathMl===!0&&(B(R,$o),B(K,Mi),B(K,An))),d.ADD_TAGS&&(R===Oe&&(R=De(R)),B(R,d.ADD_TAGS,G)),d.ADD_ATTR&&(K===je&&(K=De(K)),B(K,d.ADD_ATTR,G)),d.ADD_URI_SAFE_ATTR&&B(Ro,d.ADD_URI_SAFE_ATTR,G),d.FORBID_CONTENTS&&(St===Zi&&(St=De(St)),B(St,d.FORBID_CONTENTS,G)),ln&&(R["#text"]=!0),He&&B(R,["html","head","body"]),R.table&&(B(R,["tbody"]),delete Ze.tbody),d.TRUSTED_TYPES_POLICY){if(typeof d.TRUSTED_TYPES_POLICY.createHTML!="function")throw en('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof d.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw en('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');v=d.TRUSTED_TYPES_POLICY,_=v.createHTML("")}else v===void 0&&(v=am(h,i)),v!==null&&typeof _=="string"&&(_=v.createHTML(""));ae&&ae(d),Et=d}},na=B({},[...Ao,...xo,...Yd]),oa=B({},[...$o,...Xd]),Wm=function(d){let b=T(d);(!b||!b.tagName)&&(b={namespaceURI:_t,tagName:"template"});const S=In(d.tagName),F=In(b.tagName);return jo[d.namespaceURI]?d.namespaceURI===Rn?b.namespaceURI===Fe?S==="svg":b.namespaceURI===Dn?S==="svg"&&(F==="annotation-xml"||Vn[F]):!!na[S]:d.namespaceURI===Dn?b.namespaceURI===Fe?S==="math":b.namespaceURI===Rn?S==="math"&&jn[F]:!!oa[S]:d.namespaceURI===Fe?b.namespaceURI===Rn&&!jn[F]||b.namespaceURI===Dn&&!Vn[F]?!1:!oa[S]&&(Fm[S]||!na[S]):!!(cn==="application/xhtml+xml"&&jo[d.namespaceURI]):!1},Be=function(d){Jt(e.removed,{element:d});try{T(d).removeChild(d)}catch{k(d)}},Tt=function(d,b){try{Jt(e.removed,{attribute:b.getAttributeNode(d),from:b})}catch{Jt(e.removed,{attribute:null,from:b})}if(b.removeAttribute(d),d==="is")if(Qe||Ct)try{Be(b)}catch{}else try{b.setAttribute(d,"")}catch{}},ra=function(d){let b=null,S=null;if(sn)d="<remove></remove>"+d;else{const W=Oi(d,/^[\r\n\t ]+/);S=W&&W[0]}cn==="application/xhtml+xml"&&_t===Fe&&(d='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+d+"</body></html>");const F=v?v.createHTML(d):d;if(_t===Fe)try{b=new p().parseFromString(F,cn)}catch{}if(!b||!b.documentElement){b=z.createDocument(_t,"template",null);try{b.documentElement.innerHTML=Vo?_:F}catch{}}const oe=b.body||b.documentElement;return d&&S&&oe.insertBefore(n.createTextNode(S),oe.childNodes[0]||null),_t===Fe?te.call(b,He?"html":"body")[0]:He?b.documentElement:oe},ia=function(d){return X.call(d.ownerDocument||d,d,u.SHOW_ELEMENT|u.SHOW_COMMENT|u.SHOW_TEXT|u.SHOW_PROCESSING_INSTRUCTION|u.SHOW_CDATA_SECTION,null)},Fo=function(d){return d instanceof f&&(typeof d.nodeName!="string"||typeof d.textContent!="string"||typeof d.removeChild!="function"||!(d.attributes instanceof m)||typeof d.removeAttribute!="function"||typeof d.setAttribute!="function"||typeof d.namespaceURI!="string"||typeof d.insertBefore!="function"||typeof d.hasChildNodes!="function")},aa=function(d){return typeof l=="function"&&d instanceof l};function Ue(E,d,b){Pn(E,S=>{S.call(e,d,b,Et)})}const sa=function(d){let b=null;if(Ue(I.beforeSanitizeElements,d,null),Fo(d))return Be(d),!0;const S=G(d.nodeName);if(Ue(I.uponSanitizeElement,d,{tagName:S,allowedTags:R}),bt&&d.hasChildNodes()&&!aa(d.firstElementChild)&&se(/<[/\w!]/g,d.innerHTML)&&se(/<[/\w!]/g,d.textContent)||d.nodeType===nn.progressingInstruction||bt&&d.nodeType===nn.comment&&se(/<[/\w]/g,d.data))return Be(d),!0;if(!R[S]||Ze[S]){if(!Ze[S]&&ca(S)&&(H.tagNameCheck instanceof RegExp&&se(H.tagNameCheck,S)||H.tagNameCheck instanceof Function&&H.tagNameCheck(S)))return!1;if(ln&&!St[S]){const F=T(d)||d.parentNode,oe=P(d)||d.childNodes;if(oe&&F){const W=oe.length;for(let me=W-1;me>=0;--me){const ze=w(oe[me],!0);ze.__removalCount=(d.__removalCount||0)+1,F.insertBefore(ze,y(d))}}}return Be(d),!0}return d instanceof s&&!Wm(d)||(S==="noscript"||S==="noembed"||S==="noframes")&&se(/<\/no(script|embed|frames)/i,d.innerHTML)?(Be(d),!0):(Je&&d.nodeType===nn.text&&(b=d.textContent,Pn([V,ne,ce],F=>{b=Qt(b,F," ")}),d.textContent!==b&&(Jt(e.removed,{element:d.cloneNode()}),d.textContent=b)),Ue(I.afterSanitizeElements,d,null),!1)},la=function(d,b,S){if(Nn&&(b==="id"||b==="name")&&(S in n||S in Km))return!1;if(!(rn&&!on[b]&&se(Pe,b))){if(!(On&&se(Ye,b))){if(!K[b]||on[b]){if(!(ca(d)&&(H.tagNameCheck instanceof RegExp&&se(H.tagNameCheck,d)||H.tagNameCheck instanceof Function&&H.tagNameCheck(d))&&(H.attributeNameCheck instanceof RegExp&&se(H.attributeNameCheck,b)||H.attributeNameCheck instanceof Function&&H.attributeNameCheck(b))||b==="is"&&H.allowCustomizedBuiltInElements&&(H.tagNameCheck instanceof RegExp&&se(H.tagNameCheck,S)||H.tagNameCheck instanceof Function&&H.tagNameCheck(S))))return!1}else if(!Ro[b]){if(!se(ke,Qt(S,Ve,""))){if(!((b==="src"||b==="xlink:href"||b==="href")&&d!=="script"&&Kd(S,"data:")===0&&Ji[d])){if(!(Bn&&!se(Re,Qt(S,Ve,"")))){if(S)return!1}}}}}}return!0},ca=function(d){return d!=="annotation-xml"&&Oi(d,Xe)},ua=function(d){Ue(I.beforeSanitizeAttributes,d,null);const{attributes:b}=d;if(!b||Fo(d))return;const S={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:K,forceKeepAttr:void 0};let F=b.length;for(;F--;){const oe=b[F],{name:W,namespaceURI:me,value:ze}=oe,un=G(W),Uo=ze;let re=W==="value"?Uo:Wd(Uo);if(S.attrName=un,S.attrValue=re,S.keepAttr=!0,S.forceKeepAttr=void 0,Ue(I.uponSanitizeAttribute,d,S),re=S.attrValue,Mn&&(un==="id"||un==="name")&&(Tt(W,d),re=Do+re),bt&&se(/((--!?|])>)|<\/(style|title)/i,re)){Tt(W,d);continue}if(S.forceKeepAttr)continue;if(!S.keepAttr){Tt(W,d);continue}if(!Ln&&se(/\/>/i,re)){Tt(W,d);continue}Je&&Pn([V,ne,ce],ma=>{re=Qt(re,ma," ")});const da=G(d.nodeName);if(!la(da,un,re)){Tt(W,d);continue}if(v&&typeof h=="object"&&typeof h.getAttributeType=="function"&&!me)switch(h.getAttributeType(da,un)){case"TrustedHTML":{re=v.createHTML(re);break}case"TrustedScriptURL":{re=v.createScriptURL(re);break}}if(re!==Uo)try{me?d.setAttributeNS(me,W,re):d.setAttribute(W,re),Fo(d)?Be(d):$i(e.removed)}catch{Tt(W,d)}}Ue(I.afterSanitizeAttributes,d,null)},Gm=function E(d){let b=null;const S=ia(d);for(Ue(I.beforeSanitizeShadowDOM,d,null);b=S.nextNode();)Ue(I.uponSanitizeShadowNode,b,null),sa(b),ua(b),b.content instanceof a&&E(b.content);Ue(I.afterSanitizeShadowDOM,d,null)};return e.sanitize=function(E){let d=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},b=null,S=null,F=null,oe=null;if(Vo=!E,Vo&&(E="<!-->"),typeof E!="string"&&!aa(E))if(typeof E.toString=="function"){if(E=E.toString(),typeof E!="string")throw en("dirty is not a string, aborting")}else throw en("toString is not a function");if(!e.isSupported)return E;if(an||Ho(d),e.removed=[],typeof E=="string"&&(st=!1),st){if(E.nodeName){const ze=G(E.nodeName);if(!R[ze]||Ze[ze])throw en("root node is forbidden and cannot be sanitized in-place")}}else if(E instanceof l)b=ra("<!---->"),S=b.ownerDocument.importNode(E,!0),S.nodeType===nn.element&&S.nodeName==="BODY"||S.nodeName==="HTML"?b=S:b.appendChild(S);else{if(!Qe&&!Je&&!He&&E.indexOf("<")===-1)return v&&wt?v.createHTML(E):E;if(b=ra(E),!b)return Qe?null:wt?_:""}b&&sn&&Be(b.firstChild);const W=ia(st?E:b);for(;F=W.nextNode();)sa(F),ua(F),F.content instanceof a&&Gm(F.content);if(st)return E;if(Qe){if(Ct)for(oe=Ce.call(b.ownerDocument);b.firstChild;)oe.appendChild(b.firstChild);else oe=b;return(K.shadowroot||K.shadowrootmode)&&(oe=we.call(o,oe,!0)),oe}let me=He?b.outerHTML:b.innerHTML;return He&&R["!doctype"]&&b.ownerDocument&&b.ownerDocument.doctype&&b.ownerDocument.doctype.name&&se(Ri,b.ownerDocument.doctype.name)&&(me="<!DOCTYPE "+b.ownerDocument.doctype.name+`>
423
- `+me),Je&&Pn([V,ne,ce],ze=>{me=Qt(me,ze," ")}),v&&wt?v.createHTML(me):me},e.setConfig=function(){let E=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};Ho(E),an=!0},e.clearConfig=function(){Et=null,an=!1},e.isValidAttribute=function(E,d,b){Et||Ho({});const S=G(E),F=G(d);return la(S,F,b)},e.addHook=function(E,d){typeof d=="function"&&Jt(I[E],d)},e.removeHook=function(E,d){if(d!==void 0){const b=Ud(I[E],d);return b===-1?void 0:zd(I[E],b,1)[0]}return $i(I[E])},e.removeHooks=function(E){I[E]=[]},e.removeAllHooks=function(){I=ji()},e}var Bo=Hi();class Fi{get IsVisible(){return at.isVisible()}async CreateConfirmAsync(e){return new Promise(n=>{at.fire({showCancelButton:!0,allowEscapeKey:!1,allowOutsideClick:!1,icon:"question",title:e.title,html:Bo.sanitize(e.text),confirmButtonText:e.confirmLabel??"confirmar",cancelButtonText:e.rejectLabel??"cancelar"}).then(o=>{n(o.isConfirmed===!0)})})}async ConfirmAsync(e){return this.CreateConfirmAsync({text:e})}}const Ui=()=>new Fi,sm=()=>new Fi;function lm(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var xn={exports:{}},cm=xn.exports,zi;function um(){return zi||(zi=1,function(t){(function(e,n){t.exports?t.exports=n():e.log=n()})(cm,function(){var e=function(){},n="undefined",o=typeof window!==n&&typeof window.navigator!==n&&/Trident\/|MSIE /.test(window.navigator.userAgent),i=["trace","debug","info","warn","error"],a={},c=null;function l(w,k){var y=w[k];if(typeof y.bind=="function")return y.bind(w);try{return Function.prototype.bind.call(y,w)}catch{return function(){return Function.prototype.apply.apply(y,[w,arguments])}}}function s(){console.log&&(console.log.apply?console.log.apply(console,arguments):Function.prototype.apply.apply(console.log,[console,arguments])),console.trace&&console.trace()}function u(w){return w==="debug"&&(w="log"),typeof console===n?!1:w==="trace"&&o?s:console[w]!==void 0?l(console,w):console.log!==void 0?l(console,"log"):e}function m(){for(var w=this.getLevel(),k=0;k<i.length;k++){var y=i[k];this[y]=k<w?e:this.methodFactory(y,w,this.name)}if(this.log=this.debug,typeof console===n&&w<this.levels.SILENT)return"No console available for logging"}function f(w){return function(){typeof console!==n&&(m.call(this),this[w].apply(this,arguments))}}function p(w,k,y){return u(w)||f.apply(this,arguments)}function h(w,k){var y=this,P,T,v,_="loglevel";typeof w=="string"?_+=":"+w:typeof w=="symbol"&&(_=void 0);function z(I){var V=(i[I]||"silent").toUpperCase();if(!(typeof window===n||!_)){try{window.localStorage[_]=V;return}catch{}try{window.document.cookie=encodeURIComponent(_)+"="+V+";"}catch{}}}function X(){var I;if(!(typeof window===n||!_)){try{I=window.localStorage[_]}catch{}if(typeof I===n)try{var V=window.document.cookie,ne=encodeURIComponent(_),ce=V.indexOf(ne+"=");ce!==-1&&(I=/^([^;]+)/.exec(V.slice(ce+ne.length+1))[1])}catch{}return y.levels[I]===void 0&&(I=void 0),I}}function Ce(){if(!(typeof window===n||!_)){try{window.localStorage.removeItem(_)}catch{}try{window.document.cookie=encodeURIComponent(_)+"=; expires=Thu, 01 Jan 1970 00:00:00 UTC"}catch{}}}function te(I){var V=I;if(typeof V=="string"&&y.levels[V.toUpperCase()]!==void 0&&(V=y.levels[V.toUpperCase()]),typeof V=="number"&&V>=0&&V<=y.levels.SILENT)return V;throw new TypeError("log.setLevel() called with invalid level: "+I)}y.name=w,y.levels={TRACE:0,DEBUG:1,INFO:2,WARN:3,ERROR:4,SILENT:5},y.methodFactory=k||p,y.getLevel=function(){return v??T??P},y.setLevel=function(I,V){return v=te(I),V!==!1&&z(v),m.call(y)},y.setDefaultLevel=function(I){T=te(I),X()||y.setLevel(I,!1)},y.resetLevel=function(){v=null,Ce(),m.call(y)},y.enableAll=function(I){y.setLevel(y.levels.TRACE,I)},y.disableAll=function(I){y.setLevel(y.levels.SILENT,I)},y.rebuild=function(){if(c!==y&&(P=te(c.getLevel())),m.call(y),c===y)for(var I in a)a[I].rebuild()},P=te(c?c.getLevel():"WARN");var we=X();we!=null&&(v=te(we)),m.call(y)}c=new h,c.getLogger=function(k){if(typeof k!="symbol"&&typeof k!="string"||k==="")throw new TypeError("You must supply a name when creating a logger.");var y=a[k];return y||(y=a[k]=new h(k,c.methodFactory)),y};var C=typeof window!==n?window.log:void 0;return c.noConflict=function(){return typeof window!==n&&window.log===c&&(window.log=C),c},c.getLoggers=function(){return a},c.default=c,c})}(xn)),xn.exports}var dm=um();const $n=lm(dm),mm=(t,e={})=>{$n.setDefaultLevel(e.enableLogging?$n.levels.DEBUG:$n.levels.SILENT);const n=240;document.documentElement.style.setProperty("--nav-menu-width",`${n}px`);const o=r.ref(!0),i=r.ref(0),a=r.ref(!1),c=r.ref(!1),l=r.ref(""),s=r.ref(null),u=r.ref(0);t.provide(Rr,{navMenuWidth:n,isMenuOpened:o,ToggleMenu:()=>{o.value=!o.value},OpenMenu:()=>{o.value=!0},CloseMenu:()=>{o.value=!1},scrollY:i,pageTitle:l,isDarkMode:a,ToggleTheme:()=>Ht.Toggle(),EnableDarkMode:()=>Ht.EnableDarkMode(),EnableLightMode:()=>Ht.EnableLightMode(),ClearStoredTheme:()=>Ht.ClearStoredTheme(),LogoutAsync:async()=>{const f=Ui(),{oidc:p}=Hn.UseAuth();await f.ConfirmAsync("Deseja realmente sair da sua conta?")&&(Mo("Saindo..."),c.value=!0,await new Promise(C=>setTimeout(C,1e3)),p.logout({redirectUri:window.location.origin}).catch(()=>{c.value=!1,Xi()}))},Login:()=>{const{oidc:f}=Hn.UseAuth();f.login()},isLoggingOut:c,mainRef:s,mainWidth:u,isMainXs:r.computed(()=>u.value<=384),isMainSm:r.computed(()=>u.value>384),isMainMd:r.computed(()=>u.value>768),isMainLg:r.computed(()=>u.value>992),isMainXl:r.computed(()=>u.value>1280),isMain2Xl:r.computed(()=>u.value>1536),isMain3Xl:r.computed(()=>u.value>1920)}),new MutationObserver(()=>{a.value=document.documentElement.classList.contains("dark")}).observe(document.documentElement,{attributes:!0,attributeFilter:["class"]}),document.addEventListener("scroll",()=>{i.value=document.documentElement.scrollTop}),Ht.SetInitialTheme()},fm=$n;class Lo extends Error{constructor(e=[]){const n=Array.isArray(e)?e:[e];super(n[0]),this.errors=n}errors=[]}class Ki{constructor(e=null){this._value=e,this._httpStatusCode=200}errors=[];_value=null;_httpStatusCode;get value(){return this._value}set value(e){this._value=e}get hasSuccess(){return!this.hasError}get hasError(){return this.errors.length>0}get httpStatusCode(){return this._httpStatusCode}set httpStatusCode(e){this._httpStatusCode=e}WithError(e){if(Array.isArray(e)){e.forEach(n=>this.WithError(n));return}this.errors.push(e),this.isSuccessfulHttpStatusCode||(this._httpStatusCode=400)}get isSuccessfulHttpStatusCode(){return this._httpStatusCode>=200&&this._httpStatusCode<300}[Symbol.toPrimitive](e){if(e==="throw")throw new Lo(this.errors)}get firstError(){return this.hasSuccess?null:this.errors[0]}}class Wi{get IsVisible(){return at.isVisible()}async CreateAlertAsync(e){let n="info",o,i;return typeof e=="string"||Array.isArray(e)?o=Array.isArray(e)?e.join("<br />"):e:(n=e.icon??"info",i=e.title??"",o=Array.isArray(e.text)?e.text.join("<br />"):e.text),new Promise(a=>{at.fire({allowEscapeKey:!1,allowOutsideClick:!1,icon:n,title:i,html:`<div style="max-height: 50vh; overflow: auto">${Bo.sanitize(o)}</div>`}).then(()=>a(!0))})}async AlertAsync(e){return this.CreateAlertAsync({text:e,icon:"info"})}async AlertErrorAsync(e){return this.CreateAlertAsync({text:e,icon:"error"})}async AlertSuccessAsync(e){return this.CreateAlertAsync({text:e,icon:"success"})}}const Gi=()=>new Wi,pm=()=>new Wi;window.addEventListener("error",function(t){return No(t.error)||console.error(t.error||t.message),t.preventDefault(),!1}),window.addEventListener("unhandledrejection",function(t){return No(t.reason)||console.error("Unhandled Rejection",t.reason),t.preventDefault(),!1});const hm=t=>{t.config.errorHandler=(e,n,o)=>{No(e)||console.error("Vue Global Error Handler: ",{err:e,vm:n,info:o})}},No=t=>{if(!t)return!0;try{if(t.httpStatusCode===401)return!0}catch{}return t instanceof Lo||t instanceof Ki?(Gi().AlertErrorAsync(t.errors),!0):!1},gm={class:"font-percentage"},qi="--font-size-increment",ym="tamanho-fonte",vm=Le(r.defineComponent({__name:"FontSize",setup(t){const e=r.ref(!1),n=r.ref(0),o=()=>{n.value=Fn(),e.value=!0},i=()=>{e.value=!1},a=()=>document.documentElement,c=()=>parseInt(getComputedStyle(a()).getPropertyValue(qi)||"1"),l=p=>{p<.5||p>1.6||(a().style.setProperty(qi,p.toString()),f.value=p)},s=()=>{l(f.value+.1)},u=()=>{l(f.value-.1)},m=()=>{l(1)},f=r.ref(1);return r.onBeforeMount(()=>{localStorage.removeItem(ym)}),r.onMounted(()=>{f.value=c()}),(p,h)=>(r.openBlock(),r.createElementBlock(r.Fragment,null,[r.createVNode(Ie,{button:!0,size:"sm",icon:"text_increase",tooltip:"Tamanho da fonte",onClick:o}),e.value?(r.openBlock(),r.createElementBlock(r.Fragment,{key:0},[r.createElementVNode("div",{class:r.normalizeClass(["border","fadein","font-size-wrapper"]),style:r.normalizeStyle({zIndex:n.value+1})},[r.createElementVNode("div",{class:"icon",onClick:u}),r.createElementVNode("span",gm,r.toDisplayString(f.value.toLocaleString("pt-br",{style:"percent",maximumFractionDigits:0})),1),r.createElementVNode("div",{class:"icon add",onClick:s}),r.createElementVNode("span",{class:"redefinir",onClick:m}," Redefinir ")],4),r.createElementVNode("div",{class:"font-size-mask",style:r.normalizeStyle({zIndex:n.value}),onClick:i},null,4)],64)):r.createCommentVNode("",!0)],64))}}),[["__scopeId","data-v-d17f4a5f"]]),bm=r.defineComponent({__name:"ScrollToTop",setup(t){const{scrollY:e}=jt(),n=r.computed(()=>e.value>800);function o(){document.documentElement.scrollTo(0,0)}return(i,a)=>(r.openBlock(),r.createElementBlock("button",{class:r.normalizeClass(["sf-scrollToTop",{"sf-scrollToTop-visible":n.value}]),onClick:o},null,2))}}),Cm={class:"nav-menu-header"},wm={class:"nav-menu-inner-close"},km={class:"main-content"},Sm={class:"page-title"},_m={class:"action"},Em={id:"content"},Tm={key:0,id:"logging-out"},Pm={class:"info-fazenda"},Im={class:"font-bold"},Am={class:"info-endereco text-muted"},xm={class:"footer-right"},$m=Le(r.defineComponent({__name:"Main",props:{auth:{}},emits:["login"],setup(t,{emit:e}){const n=t,{navMenuWidth:o,isMenuOpened:i,pageTitle:a,scrollY:c,ToggleMenu:l,isDarkMode:s,ToggleTheme:u,CloseMenu:m,LogoutAsync:f,isLoggingOut:p,mainRef:h,mainWidth:C}=jt(),w=r.ref(null),k=()=>{if(!w.value||!i.value)return!1;w.value.offsetWidth!==o&&m()};r.onMounted(()=>{if(fa.useRouter().afterEach(()=>{k()}),h.value){let T=null;Dr(h,v=>{r.nextTick(()=>{T&&clearTimeout(T),T=setTimeout(()=>{C.value=v[0].contentRect.width},10)}),C.value=v[0].contentRect.width}),C.value=h.value.clientWidth}});const y=e;return(P,T)=>(r.openBlock(),r.createElementBlock("main",{ref_key:"mainRef",ref:h,class:r.normalizeClass({disabled:r.unref(p),"nav-menu-visible":r.unref(i)})},[r.createElementVNode("aside",{id:"nav-menu",ref_key:"navMenuRef",ref:w,class:r.normalizeClass({"nav-menu-hidden":!r.unref(i)})},[r.createElementVNode("div",Cm,[T[1]||(T[1]=r.createElementVNode("span",null,"Menu",-1)),r.createElementVNode("div",wm,[r.createVNode(Ie,{button:!0,icon:"close",onClick:r.unref(l)},null,8,["onClick"])])]),r.renderSlot(P.$slots,"nav-menu",{},void 0,!0)],2),r.createElementVNode("div",km,[r.createElementVNode("div",{id:"top-bar",class:r.normalizeClass({"shadow-bottom":r.unref(c)>72})},[r.createVNode(Ie,{button:!0,icon:r.unref(i)?"menu_open":"menu",tooltip:"Menu",onClick:r.unref(l)},null,8,["icon","onClick"]),r.createElementVNode("div",Sm,r.toDisplayString(r.unref(p)?"Saindo...":r.unref(a)),1),T[2]||(T[2]=r.createElementVNode("span",{class:"sep"},null,-1)),r.createElementVNode("div",_m,[r.createVNode(Ie,{button:!0,size:"sm",icon:r.unref(s)?"light_mode":"dark_mode",tooltip:r.unref(s)?"Modo claro":"Modo escuro",onClick:r.unref(u)},null,8,["icon","tooltip","onClick"]),r.createVNode(vm),n.auth?(r.openBlock(),r.createElementBlock(r.Fragment,{key:0},[n.auth.isAuthenticated?(r.openBlock(),r.createBlock(Ie,{key:0,button:!0,size:"sm",icon:"logout",tooltip:"Sair",onClick:r.unref(f)},null,8,["onClick"])):(r.openBlock(),r.createBlock(Ie,{key:1,button:!0,size:"sm",icon:"login",tooltip:"Entrar",onClick:T[0]||(T[0]=v=>y("login"))}))],64)):r.createCommentVNode("",!0)])],2),r.createElementVNode("div",Em,[r.unref(p)?(r.openBlock(),r.createElementBlock("div",Tm,[r.createVNode(Ko)])):r.renderSlot(P.$slots,"content",{key:1},void 0,!0)])]),r.createElementVNode("footer",null,[T[5]||(T[5]=r.createElementVNode("div",{class:"logo-fazenda"},null,-1)),r.createElementVNode("div",Pm,[r.createElementVNode("span",Im,[r.renderSlot(P.$slots,"footer-nome-fazenda",{},()=>[T[3]||(T[3]=r.createTextVNode(" SECRETARIA MUNICIPAL DA FAZENDA "))],!0)]),r.createElementVNode("span",Am,[r.renderSlot(P.$slots,"footer-endereco-fazenda",{},()=>[T[4]||(T[4]=r.createTextVNode(" Rua Líbero Badaró, 190 - Centro - São Paulo - SP - CEP 01008-000 "))],!0)])]),r.createElementVNode("div",xm,[r.renderSlot(P.$slots,"footer-right",{},void 0,!0)])]),r.createVNode(bm)],2))}}),[["__scopeId","data-v-5108e4ac"]]),Om=r.defineComponent({__name:"PageTitle",props:{title:{}},setup(t){const{pageTitle:e}=jt(),n=t;return r.watchEffect(()=>{document.title=n.title,e.value=n.title}),(o,i)=>null}}),vt=t=>{const e=t==="light"?"0, 0, 0":"198, 198, 198";return`0 1px 3px 0 rgba(${e}, 0.1), 0 1px 2px -1px rgba(${e}, 0.1);`},Yi={surface:{0:"var(--surface-0-color)",50:"var(--surface-100-color)",100:"var(--surface-100-color)",200:"var(--surface-200-color)",300:"var(--surface-300-color)",400:"var(--surface-400-color)",500:"var(--surface-1000-color)",600:"var(--surface-600-color)",700:"var(--surface-700-color)",800:"var(--surface-800-color)",900:"var(--surface-900-color)",950:"var(--surface-1000-color)"},primary:{color:"var(--primary-color)",contrastColor:"var(--bg-color)",hoverColor:"var(--primary-hover-color)",activeColor:"var(--primary-color)"},highlight:{background:"var(--primary-color)",color:"var(--bg-color)"},formField:{background:"var(--surface-0-color)",disabledBackground:"var(--surface-0-color)",filledBackground:"var(--surface-100-color)",filledFocusBackground:"var(--surface-100-color)",borderColor:"var(--surface-1000-color)",hoverBorderColor:"var(--primary-color)",focusBorderColor:"var(--primary-color)",invalidBorderColor:"var(--error-color)",color:"var(--text-color)",disabledColor:"var(--disabled-color)",placeholderColor:"var(--muted-color)",floatLabelColor:"var(--secondary-color)",floatLabelFocusColor:"var(--secondary-color)",floatLabelInvalidColor:"var(--error-color)",iconColor:"var(--primary-color)"},text:{color:"var(--text-color)",hoverColor:"var(--primary-color)",mutedColor:"var(--muted-color)",hoverMutedColor:"var(--muted-color)"},mask:{background:"var(--maskbg-color)",color:"var(--surface-200-color)"},content:{background:"var(--bg-color)",color:"var(--text-color)",border:{color:"var(--surface-1000-color)",radius:"var(--border-radius)"},hover:{background:"var(--primary-hover-color)",color:"var(--primary-color)"}}},Bm={semantic:{disabled:{opacity:"1"},transitionDuration:"0",primary:{50:"color-mix(in srgb, currentColor 5%, transparent)",100:"color-mix(in srgb, currentColor 10%, transparent)",200:"color-mix(in srgb, currentColor 20%, transparent)",300:"color-mix(in srgb, currentColor 30%, transparent)",400:"color-mix(in srgb, currentColor 40%, transparent)",500:"color-mix(in srgb, currentColor 50%, transparent)",600:"color-mix(in srgb, currentColor 60%, transparent)",700:"color-mix(in srgb, currentColor 70%, transparent)",800:"color-mix(in srgb, currentColor 80%, transparent)",900:"color-mix(in srgb, currentColor 90%, transparent)",950:"color-mix(in srgb, currentColor 95%, transparent)"},colorScheme:{light:{...Yi},dark:{...Yi}}},components:{blockui:{root:{borderRadius:"0px"}},button:{colorScheme:{light:{root:{primary:{background:"var(--primary-color) ",borderColor:"var(--primary-color)",focusRing:{color:"var(--primary-color)"},hoverBorderColor:"var(--primary-color)",hoverBackground:"color-mix(in srgb, var(--primary-color) 90%, black 10%)",activeBackground:"color-mix(in srgb, var(--primary-color) 80%, black 20%)",activeBorderColor:"var(--primary-color)"},secondary:{background:"var(--secondary-color) ",borderColor:"var(--secondary-color)",focusRing:{color:"var(--secondary-color)"},hoverBorderColor:"var(--secondary-color)",hoverBackground:"color-mix(in srgb, var(--secondary-color) 90%, black 10%)",activeBackground:"color-mix(in srgb, var(--secondary-color) 80%, black 20%)",activeBorderColor:"var(--secondary-color)"},success:{background:"var(--success-color) ",borderColor:"var(--success-color)",focusRing:{color:"var(--success-color)"},hoverBorderColor:"var(--success-color)",hoverBackground:"color-mix(in srgb, var(--success-color) 90%, black 10%)",activeBackground:"color-mix(in srgb, var(--success-color) 80%, black 20%)",activeBorderColor:"var(--success-color)"},info:{background:"var(--info-color) ",borderColor:"var(--info-color)",focusRing:{color:"var(--info-color)"},hoverBorderColor:"var(--info-color)",hoverBackground:"color-mix(in srgb, var(--info-color) 90%, black 10%)",activeBackground:"color-mix(in srgb, var(--info-color) 80%, black 20%)",activeBorderColor:"var(--info-color)"},warn:{background:"var(--warn-color) ",borderColor:"var(--warn-color)",focusRing:{color:"var(--warn-color)"},hoverBorderColor:"var(--warn-color)",hoverBackground:"color-mix(in srgb, var(--warn-color) 90%, black 10%)",activeBackground:"color-mix(in srgb, var(--warn-color) 80%, black 20%)",activeBorderColor:"var(--warn-color)"},help:{background:"var(--help-color) ",borderColor:"var(--help-color)",focusRing:{color:"var(--help-color)"},hoverBorderColor:"var(--help-color)",hoverBackground:"color-mix(in srgb, var(--help-color) 90%, black 10%)",activeBackground:"color-mix(in srgb, var(--help-color) 80%, black 20%)",activeBorderColor:"var(--help-color)"},danger:{background:"var(--error-color) ",borderColor:"var(--error-color)",focusRing:{color:"var(--error-color)"},hoverBorderColor:"var(--error-color)",hoverBackground:"color-mix(in srgb, var(--error-color) 90%, black 10%)",activeBackground:"color-mix(in srgb, var(--error-color) 80%, black 20%)",activeBorderColor:"var(--error-color)"},contrast:{background:"var(--text-color) ",borderColor:"var(--text-color)",focusRing:{color:"var(--text-color)"},hoverBorderColor:"var(--text-color)",hoverBackground:"color-mix(in srgb, var(--text-color) 90%, black 10%)",activeBackground:"color-mix(in srgb, var(--text-color) 80%, black 20%)",activeBorderColor:"var(--text-color)"}},outlined:{primary:{color:"var(--primary-color) !important",hoverBackground:"color-mix(in srgb, currentColor 10%, transparent) !important",activeBackground:"color-mix(in srgb, currentColor 15%, transparent) !important",borderColor:"color-mix(in srgb, currentColor 25%, transparent) !important"},secondary:{color:"var(--secondary-color) !important",hoverBackground:"color-mix(in srgb, currentColor 10%, transparent) !important",activeBackground:"color-mix(in srgb, currentColor 15%, transparent) !important",borderColor:"color-mix(in srgb, currentColor 25%, transparent) !important"},success:{color:"var(--success-color) !important",hoverBackground:"color-mix(in srgb, currentColor 10%, transparent) !important",activeBackground:"color-mix(in srgb, currentColor 15%, transparent) !important",borderColor:"color-mix(in srgb, currentColor 25%, transparent) !important"},info:{color:"var(--info-color) !important",hoverBackground:"color-mix(in srgb, currentColor 10%, transparent) !important",activeBackground:"color-mix(in srgb, currentColor 15%, transparent) !important",borderColor:"color-mix(in srgb, currentColor 25%, transparent) !important"},warn:{color:"var(--warn-color) !important",hoverBackground:"color-mix(in srgb, currentColor 10%, transparent) !important",activeBackground:"color-mix(in srgb, currentColor 15%, transparent) !important",borderColor:"color-mix(in srgb, currentColor 25%, transparent) !important"},help:{color:"var(--help-color) !important",hoverBackground:"color-mix(in srgb, currentColor 10%, transparent) !important",activeBackground:"color-mix(in srgb, currentColor 15%, transparent) !important",borderColor:"color-mix(in srgb, currentColor 25%, transparent) !important"},danger:{color:"var(--error-color) !important",hoverBackground:"color-mix(in srgb, currentColor 10%, transparent) !important",activeBackground:"color-mix(in srgb, currentColor 15%, transparent) !important",borderColor:"color-mix(in srgb, currentColor 25%, transparent) !important"},contrast:{color:"var(--text-color) !important",hoverBackground:"color-mix(in srgb, currentColor 10%, transparent) !important",activeBackground:"color-mix(in srgb, currentColor 15%, transparent) !important",borderColor:"color-mix(in srgb, currentColor 25%, transparent) !important"}},text:{primary:{color:"var(--primary-color) !important",hoverBackground:"color-mix(in srgb, currentColor 10%, transparent) !important",activeBackground:"color-mix(in srgb, currentColor 15%, transparent) !important"},secondary:{color:"var(--secondary-color) !important",hoverBackground:"color-mix(in srgb, currentColor 10%, transparent) !important",activeBackground:"color-mix(in srgb, currentColor 15%, transparent) !important"},success:{color:"var(--success-color) !important",hoverBackground:"color-mix(in srgb, currentColor 10%, transparent) !important",activeBackground:"color-mix(in srgb, currentColor 15%, transparent) !important"},info:{color:"var(--info-color) !important",hoverBackground:"color-mix(in srgb, currentColor 10%, transparent) !important",activeBackground:"color-mix(in srgb, currentColor 15%, transparent) !important"},warn:{color:"var(--warn-color) !important",hoverBackground:"color-mix(in srgb, currentColor 10%, transparent) !important",activeBackground:"color-mix(in srgb, currentColor 15%, transparent) !important"},help:{color:"var(--help-color) !important",hoverBackground:"color-mix(in srgb, currentColor 10%, transparent) !important",activeBackground:"color-mix(in srgb, currentColor 15%, transparent) !important"},danger:{color:"var(--error-color) !important",hoverBackground:"color-mix(in srgb, currentColor 10%, transparent) !important",activeBackground:"color-mix(in srgb, currentColor 15%, transparent) !important"},contrast:{color:"var(--text-color) !important",hoverBackground:"color-mix(in srgb, currentColor 10%, transparent) !important",activeBackground:"color-mix(in srgb, currentColor 15%, transparent) !important"}}},dark:{root:{primary:{background:"var(--primary-color) ",borderColor:"var(--primary-color)",focusRing:{color:"var(--primary-color)"},hoverBorderColor:"var(--primary-color)",hoverBackground:"color-mix(in srgb, var(--primary-color) 90%, white 10%)",activeBackground:"color-mix(in srgb, var(--primary-color) 80%, white 20%)"},secondary:{background:"var(--secondary-color) ",borderColor:"var(--secondary-color)",focusRing:{color:"var(--secondary-color)"},hoverBorderColor:"var(--secondary-color)",hoverBackground:"color-mix(in srgb, var(--secondary-color) 90%, white 10%)",activeBackground:"color-mix(in srgb, var(--secondary-color) 80%, white 20%)",activeBorderColor:"var(--secondary-color)"},success:{background:"var(--success-color) ",borderColor:"var(--success-color)",focusRing:{color:"var(--success-color)"},hoverBorderColor:"var(--success-color)",hoverBackground:"color-mix(in srgb, var(--success-color) 90%, white 10%)",activeBackground:"color-mix(in srgb, var(--success-color) 80%, white 20%)",activeBorderColor:"var(--success-color)"},info:{background:"var(--info-color) ",borderColor:"var(--info-color)",focusRing:{color:"var(--info-color)"},hoverBorderColor:"var(--info-color)",hoverBackground:"color-mix(in srgb, var(--info-color) 90%, white 10%)",activeBackground:"color-mix(in srgb, var(--info-color) 80%, white 20%)",activeBorderColor:"var(--info-color)"},warn:{background:"var(--warn-color) ",borderColor:"var(--warn-color)",focusRing:{color:"var(--warn-color)"},hoverBorderColor:"var(--warn-color)",hoverBackground:"color-mix(in srgb, var(--warn-color) 90%, white 10%)",activeBackground:"color-mix(in srgb, var(--warn-color) 80%, white 20%)",activeBorderColor:"var(--warn-color)"},help:{background:"var(--help-color) ",borderColor:"var(--help-color)",focusRing:{color:"var(--help-color)"},hoverBorderColor:"var(--help-color)",hoverBackground:"color-mix(in srgb, var(--help-color) 90%, white 10%)",activeBackground:"color-mix(in srgb, var(--help-color) 80%, white 20%)",activeBorderColor:"var(--help-color)"},danger:{background:"var(--error-color) ",borderColor:"var(--error-color)",focusRing:{color:"var(--error-color)"},hoverBorderColor:"var(--error-color)",hoverBackground:"color-mix(in srgb, var(--error-color) 90%, white 10%)",activeBackground:"color-mix(in srgb, var(--error-color) 80%, white 20%)",activeBorderColor:"var(--error-color)"},contrast:{background:"var(--text-color) ",borderColor:"var(--text-color)",focusRing:{color:"var(--text-color)"},hoverBorderColor:"var(--text-color)",hoverBackground:"color-mix(in srgb, var(--text-color) 90%, white 10%)",activeBackground:"color-mix(in srgb, var(--text-color) 80%, white 20%)",activeBorderColor:"var(--text-color)"}},outlined:{primary:{color:"var(--primary-color) !important",hoverBackground:"color-mix(in srgb, currentColor 15%, transparent) !important",activeBackground:"color-mix(in srgb, currentColor 20%, transparent) !important",borderColor:"color-mix(in srgb, currentColor 30%, transparent) !important"},secondary:{color:"var(--secondary-color) !important",hoverBackground:"color-mix(in srgb, currentColor 15%, transparent) !important",activeBackground:"color-mix(in srgb, currentColor 20%, transparent) !important",borderColor:"color-mix(in srgb, currentColor 30%, transparent) !important"},success:{color:"var(--success-color) !important",hoverBackground:"color-mix(in srgb, currentColor 15%, transparent) !important",activeBackground:"color-mix(in srgb, currentColor 20%, transparent) !important",borderColor:"color-mix(in srgb, currentColor 30%, transparent) !important"},info:{color:"var(--info-color) !important",hoverBackground:"color-mix(in srgb, currentColor 15%, transparent) !important",activeBackground:"color-mix(in srgb, currentColor 20%, transparent) !important",borderColor:"color-mix(in srgb, currentColor 30%, transparent) !important"},warn:{color:"var(--warn-color) !important",hoverBackground:"color-mix(in srgb, currentColor 15%, transparent) !important",activeBackground:"color-mix(in srgb, currentColor 20%, transparent) !important",borderColor:"color-mix(in srgb, currentColor 30%, transparent) !important"},help:{color:"var(--help-color) !important",hoverBackground:"color-mix(in srgb, currentColor 15%, transparent) !important",activeBackground:"color-mix(in srgb, currentColor 20%, transparent) !important",borderColor:"color-mix(in srgb, currentColor 30%, transparent) !important"},danger:{color:"var(--error-color) !important",hoverBackground:"color-mix(in srgb, currentColor 15%, transparent) !important",activeBackground:"color-mix(in srgb, currentColor 20%, transparent) !important",borderColor:"color-mix(in srgb, currentColor 30%, transparent) !important"},contrast:{color:"var(--text-color) !important",hoverBackground:"color-mix(in srgb, currentColor 15%, transparent) !important",activeBackground:"color-mix(in srgb, currentColor 20%, transparent) !important",borderColor:"color-mix(in srgb, currentColor 30%, transparent) !important"}},text:{primary:{color:"var(--primary-color) !important",hoverBackground:"color-mix(in srgb, currentColor 15%, transparent) !important",activeBackground:"color-mix(in srgb, currentColor 20%, transparent) !important"},secondary:{color:"var(--secondary-color) !important",hoverBackground:"color-mix(in srgb, currentColor 15%, transparent) !important",activeBackground:"color-mix(in srgb, currentColor 20%, transparent) !important"},success:{color:"var(--success-color) !important",hoverBackground:"color-mix(in srgb, currentColor 15%, transparent) !important",activeBackground:"color-mix(in srgb, currentColor 20%, transparent) !important"},info:{color:"var(--info-color) !important",hoverBackground:"color-mix(in srgb, currentColor 15%, transparent) !important",activeBackground:"color-mix(in srgb, currentColor 20%, transparent) !important"},warn:{color:"var(--warn-color) !important",hoverBackground:"color-mix(in srgb, currentColor 15%, transparent) !important",activeBackground:"color-mix(in srgb, currentColor 20%, transparent) !important"},help:{color:"var(--help-color) !important",hoverBackground:"color-mix(in srgb, currentColor 15%, transparent) !important",activeBackground:"color-mix(in srgb, currentColor 20%, transparent) !important"},danger:{color:"var(--error-color) !important",hoverBackground:"color-mix(in srgb, currentColor 15%, transparent) !important",activeBackground:"color-mix(in srgb, currentColor 20%, transparent) !important"},contrast:{color:"var(--text-color) !important",hoverBackground:"color-mix(in srgb, currentColor 15%, transparent) !important",activeBackground:"color-mix(in srgb, currentColor 20%, transparent) !important"}}}}},card:{root:{borderRadius:"var(--border-radius)"},title:{fontWeight:"700",fontSize:"var(--text-md)"},body:{padding:"var(--content-gutter)"},colorScheme:{light:{root:{background:"var(--bg-color)",shadow:vt("light")}},dark:{root:{background:"var(--surface-300-color)",shadow:vt("dark")}}}},checkbox:{root:{background:"var(--surface-200-color) !important",borderColor:"var(--muted-color) !important",borderRadius:"var(--border-radius) !important",checkedBackground:"var(--primary-color) !important",checkedHoverBackground:"var(--primary-color) !important",sm:{width:"1rem",height:"1rem"},lg:{width:"1.5rem",height:"1.5rem"}}},confirmpopup:{root:{borderColor:"var(--border-color)"},colorScheme:{light:{root:{background:"var(--bg-color)",shadow:vt("light")}},dark:{root:{background:"var(--surface-300-color)",shadow:vt("dark")}}}},datatable:{root:{borderColor:"var(--border-color) !important"},header:{borderColor:"var(--border-color) !important",padding:"0 0 var(--content-gutter) 0",sm:{padding:"0 0 var(--content-gutter-sm) 0"}},headerCell:{borderColor:"var(--border-color) !important",hoverColor:"var(--primary-color) !important",hoverBackground:"var(--primary-hover-color) !important"},bodyCell:{borderColor:"var(--border-color) !important"},footer:{borderColor:"var(--border-color) !important"},colorScheme:{light:{header:{background:"var(--bg-color)",color:"var(--text-color)"},headerCell:{background:"var(--bg-color)"},footerCell:{background:"var(--bg-color)"},row:{background:"var(--bg-color)",stripedBackground:"var(--surface-300-color)"}},dark:{header:{background:"var(--surface-300-color)",color:"var(--text-color)"},headerCell:{background:"var(--surface-300-color)"},footerCell:{background:"var(--surface-300-color)"},row:{stripedBackground:"var(--bg-color)",background:"var(--surface-300-color)"}}}},datepicker:{today:{background:"var(--primary-hover-color) !important",color:"var(--primary-color) !important"}},dialog:{root:{background:"var(--bg-color) !important",color:"var(--text-color) !important",borderColor:"var(--border-color) !important",borderRadius:"var(--border-radius) !important",shadow:"none !important"},title:{fontSize:"var(--font-size) !important",fontWeight:"700 !important"},header:{padding:"0.75rem 0.75rem 0 1rem !important",gap:"var(--content-gutter-sm) !important"},content:{padding:"var(--content-gutter) !important"},footer:{padding:"0.75rem 0.75rem 0 1rem !important",gap:"var(--content-gutter-sm) !important"}},inputtext:{root:{background:"var(--surface-100-color)",color:"var(--text-color)",borderColor:"var(--border-color) !important",borderRadius:"var(--border-radius) !important",shadow:"none !important",hoverBorderColor:"var(--primary-color) !important",placeholderColor:"var(--muted-color)"}},menu:{item:{focusBackground:"var(--surface-400-color)",focusColor:"var(--text-color)"},colorScheme:{light:{root:{background:"var(--bg-color)",shadow:vt("light")}},dark:{root:{background:"var(--surface-200-color)",shadow:vt("dark")}}}},popover:{root:{background:"var(--bg-color)",color:"var(--text-color)",borderColor:"var(--border-color)",borderRadius:"var(--border-radius)",shadow:"none",gutter:"8px",arrowOffset:"0.75rem"},content:{padding:"0"}},select:{root:{background:"var(--bg-color)",color:"var(--text-color)",hoverBorderColor:"var(--primary-color)",placeholderColor:"var(--muted-color)",disabledColor:"var(--disabled-color)"},option:{focusBackground:"var(--surface-200-color)",focusColor:"var(--primary-color)",selectedFocusColor:"var(--bg-color)",selectedFocusBackground:"var(--primary-color)"},overlay:{borderColor:"var(--border-color)"},dropdown:{color:"var(--primary-color)"},colorScheme:{light:{overlay:{background:"var(--bg-color)"}},dark:{overlay:{background:"var(--surface-100-color)"}}}},skeleton:{root:{background:"var(--surface-700-color)",animationBackground:"var(--surface-100-color)"}},textarea:{root:{background:"var(--surface-100-color)",hoverBorderColor:"var(--primary-color)",placeholderColor:"var(--muted-color)"}},toast:{root:{width:"min(90vw, 320px)"},colorScheme:{light:{contrast:{background:"var(--text-color)",color:"var(--bg-color)",detailColor:"var(--bg-color)"}},dark:{contrast:{background:"var(--bg-color)",color:"var(--text-color)",detailColor:"var(--text-color)"}}},info:{background:"var(--info-color)",color:"var(--info-hover-color)",detailColor:"var(--text-color)"},success:{background:"var(--success-color)",color:"var(--success-hover-color)",detailColor:"var(--text-color)"},warn:{background:"var(--warn-color)",color:"var(--warn-hover-color)",detailColor:"var(--text-color)"},error:{background:"var(--error-color)",color:"var(--error-hover-color)",detailColor:"var(--text-color)"},secondary:{background:"var(--secondary-color)",color:"var(--secondary-hover-color)",detailColor:"var(--text-color)"}}}};class qe{static get IsTouch(){return window.matchMedia("(pointer: coarse)").matches}static GetMaxZindex(e=[]){let n="body > *:not(script):not(style)";for(const i of e)n+=`, ${i}`;const o=Math.max(...Array.from(document.querySelectorAll(n)).map(i=>{const a=getComputedStyle(i).zIndex;return+a==+a?+a:0}));return o>=100?o:100}static AjustarFuso(e){const n=e.getTimezoneOffset()/60;e.setHours(e.getHours()-n)}static Mask(e,n){let o=0,i=e.toString();return n.replace(/#/g,()=>i[o++]||"")}static MaskCpf(e){return qe.Mask(e.padStart(11,"0"),"###.###.###-##")}static MaskCnpj(e){return qe.Mask(e.padStart(14,"0"),"##.###.###/####-##")}static MaskCcm(e){return qe.Mask(e.padStart(8,"0"),"#.###.###-#")}static async DelayAsync(e=400){return new Promise(n=>setTimeout(n,e))}static FormatNumber(e,n=0,o="pt-BR"){return e.toLocaleString(o,{minimumFractionDigits:n,maximumFractionDigits:n})}static FormatCurrency(e,n="pt-BR"){return e.toLocaleString(n,{style:"currency",currency:"BRL"})}static HasKey(e,n){return e&&n in e}static GetFilenameFromContentDisposition(e){if(!e)return null;const n=e.match(/filename\*\s*=\s*(?:UTF-8'')?([^;\r\n]+)/i);if(n)try{return decodeURIComponent(n[1].trim().replace(/^"|"$/g,""))}catch{return n[1].trim().replace(/^"|"$/g,"")}const o=e.match(/filename\s*=\s*("(.*?)"|([^;,\r\n]+))/i);return o?(o[2]||o[3]).trim().replace(/^"|"$/g,""):null}}class Lm{sub;username;name;email;roles;groups;userinfo;department;jobTitle;idp;constructor(e){this.userinfo=e,this.sub=e.sub,this.username=e.employeeID??e.cpf??"",this.name=e.name??"",this.email=e.email??null,this.roles=e.role??[],this.groups=e.group??[],this.department=this.SetDepartment(),this.jobTitle=this.SetJobTitle(),this.idp=this.SetIdp()}get firstname(){return this.name.split(" ")[0]??this.name}get maskedUsername(){return this.username?this.username.length<=11?qe.MaskCpf(this.username):this.username.length===14?qe.MaskCnpj(this.username):this.username:""}IsInRole(e){return this.roles.includes(e)}IsInGroup(e){return this.groups.includes(e)}SetIdp(){const e=this.userinfo?.identity_provider??null;return e?.toLocaleLowerCase()==="gov.br"?"govbr":e?.toLocaleLowerCase().startsWith("senhaweb")?"senhaweb":null}SetDepartment(){return this.userinfo?.department??null}SetJobTitle(){return this.userinfo?.jobTitle??null}}function Nm(){const t=r.ref("development");function e(s){t.value=s.toLocaleLowerCase()}const n=r.computed(()=>t.value==="development"),o=r.computed(()=>t.value==="pack"),i=r.computed(()=>t.value==="hml"),a=r.computed(()=>t.value==="production"),c=r.ref(null);function l(){c.value=null}return{environment:t,SetEnvironment:e,isDev:n,isPack:o,isHml:i,isProd:a,user:c,$reset:l}}const Mm=t=>{const e=new Set;function n(o){const{name:i,children:a}=o;if(i){if(e.has(i))throw new Error(["Erro na validação das rotas!",`Nome de rota duplicado: ${i}`].join(`
423
+ `+me),Je&&Pn([V,ne,ce],ze=>{me=Qt(me,ze," ")}),v&&wt?v.createHTML(me):me},e.setConfig=function(){let E=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};Ho(E),an=!0},e.clearConfig=function(){Et=null,an=!1},e.isValidAttribute=function(E,d,b){Et||Ho({});const S=G(E),F=G(d);return la(S,F,b)},e.addHook=function(E,d){typeof d=="function"&&Jt(I[E],d)},e.removeHook=function(E,d){if(d!==void 0){const b=Ud(I[E],d);return b===-1?void 0:zd(I[E],b,1)[0]}return $i(I[E])},e.removeHooks=function(E){I[E]=[]},e.removeAllHooks=function(){I=ji()},e}var Bo=Hi();class Fi{get IsVisible(){return at.isVisible()}async CreateConfirmAsync(e){return new Promise(n=>{at.fire({showCancelButton:!0,allowEscapeKey:!1,allowOutsideClick:!1,icon:"question",title:e.title,html:Bo.sanitize(e.text),confirmButtonText:e.confirmLabel??"confirmar",cancelButtonText:e.rejectLabel??"cancelar"}).then(o=>{n(o.isConfirmed===!0)})})}async ConfirmAsync(e){return this.CreateConfirmAsync({text:e})}}const Ui=()=>new Fi,sm=()=>new Fi;function lm(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var xn={exports:{}},cm=xn.exports,zi;function um(){return zi||(zi=1,function(t){(function(e,n){t.exports?t.exports=n():e.log=n()})(cm,function(){var e=function(){},n="undefined",o=typeof window!==n&&typeof window.navigator!==n&&/Trident\/|MSIE /.test(window.navigator.userAgent),i=["trace","debug","info","warn","error"],a={},c=null;function l(w,k){var y=w[k];if(typeof y.bind=="function")return y.bind(w);try{return Function.prototype.bind.call(y,w)}catch{return function(){return Function.prototype.apply.apply(y,[w,arguments])}}}function s(){console.log&&(console.log.apply?console.log.apply(console,arguments):Function.prototype.apply.apply(console.log,[console,arguments])),console.trace&&console.trace()}function u(w){return w==="debug"&&(w="log"),typeof console===n?!1:w==="trace"&&o?s:console[w]!==void 0?l(console,w):console.log!==void 0?l(console,"log"):e}function m(){for(var w=this.getLevel(),k=0;k<i.length;k++){var y=i[k];this[y]=k<w?e:this.methodFactory(y,w,this.name)}if(this.log=this.debug,typeof console===n&&w<this.levels.SILENT)return"No console available for logging"}function f(w){return function(){typeof console!==n&&(m.call(this),this[w].apply(this,arguments))}}function p(w,k,y){return u(w)||f.apply(this,arguments)}function h(w,k){var y=this,P,T,v,_="loglevel";typeof w=="string"?_+=":"+w:typeof w=="symbol"&&(_=void 0);function z(I){var V=(i[I]||"silent").toUpperCase();if(!(typeof window===n||!_)){try{window.localStorage[_]=V;return}catch{}try{window.document.cookie=encodeURIComponent(_)+"="+V+";"}catch{}}}function X(){var I;if(!(typeof window===n||!_)){try{I=window.localStorage[_]}catch{}if(typeof I===n)try{var V=window.document.cookie,ne=encodeURIComponent(_),ce=V.indexOf(ne+"=");ce!==-1&&(I=/^([^;]+)/.exec(V.slice(ce+ne.length+1))[1])}catch{}return y.levels[I]===void 0&&(I=void 0),I}}function Ce(){if(!(typeof window===n||!_)){try{window.localStorage.removeItem(_)}catch{}try{window.document.cookie=encodeURIComponent(_)+"=; expires=Thu, 01 Jan 1970 00:00:00 UTC"}catch{}}}function te(I){var V=I;if(typeof V=="string"&&y.levels[V.toUpperCase()]!==void 0&&(V=y.levels[V.toUpperCase()]),typeof V=="number"&&V>=0&&V<=y.levels.SILENT)return V;throw new TypeError("log.setLevel() called with invalid level: "+I)}y.name=w,y.levels={TRACE:0,DEBUG:1,INFO:2,WARN:3,ERROR:4,SILENT:5},y.methodFactory=k||p,y.getLevel=function(){return v??T??P},y.setLevel=function(I,V){return v=te(I),V!==!1&&z(v),m.call(y)},y.setDefaultLevel=function(I){T=te(I),X()||y.setLevel(I,!1)},y.resetLevel=function(){v=null,Ce(),m.call(y)},y.enableAll=function(I){y.setLevel(y.levels.TRACE,I)},y.disableAll=function(I){y.setLevel(y.levels.SILENT,I)},y.rebuild=function(){if(c!==y&&(P=te(c.getLevel())),m.call(y),c===y)for(var I in a)a[I].rebuild()},P=te(c?c.getLevel():"WARN");var we=X();we!=null&&(v=te(we)),m.call(y)}c=new h,c.getLogger=function(k){if(typeof k!="symbol"&&typeof k!="string"||k==="")throw new TypeError("You must supply a name when creating a logger.");var y=a[k];return y||(y=a[k]=new h(k,c.methodFactory)),y};var C=typeof window!==n?window.log:void 0;return c.noConflict=function(){return typeof window!==n&&window.log===c&&(window.log=C),c},c.getLoggers=function(){return a},c.default=c,c})}(xn)),xn.exports}var dm=um();const $n=lm(dm),mm=(t,e={})=>{$n.setDefaultLevel(e.enableLogging?$n.levels.DEBUG:$n.levels.SILENT);const n=240;document.documentElement.style.setProperty("--nav-menu-width",`${n}px`);const o=r.ref(!0),i=r.ref(0),a=r.ref(!1),c=r.ref(!1),l=r.ref(""),s=r.ref(null),u=r.ref(0);t.provide(Rr,{navMenuWidth:n,isMenuOpened:o,ToggleMenu:()=>{o.value=!o.value},OpenMenu:()=>{o.value=!0},CloseMenu:()=>{o.value=!1},scrollY:i,pageTitle:l,isDarkMode:a,ToggleTheme:()=>Ht.Toggle(),EnableDarkMode:()=>Ht.EnableDarkMode(),EnableLightMode:()=>Ht.EnableLightMode(),ClearStoredTheme:()=>Ht.ClearStoredTheme(),LogoutAsync:async()=>{const f=Ui(),{oidc:p}=Hn.UseAuth();await f.ConfirmAsync("Deseja realmente sair da sua conta?")&&(Mo("Saindo..."),c.value=!0,await new Promise(C=>setTimeout(C,1e3)),p.logout({redirectUri:window.location.origin}).catch(()=>{c.value=!1,Xi()}))},Login:()=>{const{oidc:f}=Hn.UseAuth();f.login()},isLoggingOut:c,mainRef:s,mainWidth:u,isMainXs:r.computed(()=>u.value<=384),isMainSm:r.computed(()=>u.value>384),isMainMd:r.computed(()=>u.value>768),isMainLg:r.computed(()=>u.value>992),isMainXl:r.computed(()=>u.value>1280),isMain2Xl:r.computed(()=>u.value>1536),isMain3Xl:r.computed(()=>u.value>1920)}),new MutationObserver(()=>{a.value=document.documentElement.classList.contains("dark")}).observe(document.documentElement,{attributes:!0,attributeFilter:["class"]}),document.addEventListener("scroll",()=>{i.value=document.documentElement.scrollTop}),Ht.SetInitialTheme()},fm=$n;class Lo extends Error{constructor(e=[]){const n=Array.isArray(e)?e:[e];super(n[0]),this.errors=n}errors=[]}class Ki{constructor(e=null){this._value=e,this._httpStatusCode=200}errors=[];_value=null;_httpStatusCode;get value(){return this._value}set value(e){this._value=e}get hasSuccess(){return this.isSuccessfulHttpStatusCode&&this.errors.length===0}get hasError(){return!this.hasSuccess}get httpStatusCode(){return this._httpStatusCode}set httpStatusCode(e){this._httpStatusCode=e}WithError(e){if(Array.isArray(e)){e.forEach(n=>this.WithError(n));return}this.errors.push(e),this.isSuccessfulHttpStatusCode||(this._httpStatusCode=400)}get isSuccessfulHttpStatusCode(){return this._httpStatusCode>=200&&this._httpStatusCode<300}[Symbol.toPrimitive](e){if(e==="throw")throw new Lo(this.errors)}get firstError(){return this.hasSuccess?null:this.errors[0]}}class Wi{get IsVisible(){return at.isVisible()}async CreateAlertAsync(e){let n="info",o,i;return typeof e=="string"||Array.isArray(e)?o=Array.isArray(e)?e.join("<br />"):e:(n=e.icon??"info",i=e.title??"",o=Array.isArray(e.text)?e.text.join("<br />"):e.text),new Promise(a=>{at.fire({allowEscapeKey:!1,allowOutsideClick:!1,icon:n,title:i,html:`<div style="max-height: 50vh; overflow: auto">${Bo.sanitize(o)}</div>`}).then(()=>a(!0))})}async AlertAsync(e){return this.CreateAlertAsync({text:e,icon:"info"})}async AlertErrorAsync(e){return this.CreateAlertAsync({text:e,icon:"error"})}async AlertSuccessAsync(e){return this.CreateAlertAsync({text:e,icon:"success"})}}const Gi=()=>new Wi,pm=()=>new Wi;window.addEventListener("error",function(t){return No(t.error)||console.error(t.error||t.message),t.preventDefault(),!1}),window.addEventListener("unhandledrejection",function(t){return No(t.reason)||console.error("Unhandled Rejection",t.reason),t.preventDefault(),!1});const hm=t=>{t.config.errorHandler=(e,n,o)=>{No(e)||console.error("Vue Global Error Handler: ",{err:e,vm:n,info:o})}},No=t=>{if(!t)return!0;try{if(t.httpStatusCode===401)return!0}catch{}return t instanceof Lo||t instanceof Ki?(Gi().AlertErrorAsync(t.errors),!0):!1},gm={class:"font-percentage"},qi="--font-size-increment",ym="tamanho-fonte",vm=Le(r.defineComponent({__name:"FontSize",setup(t){const e=r.ref(!1),n=r.ref(0),o=()=>{n.value=Fn(),e.value=!0},i=()=>{e.value=!1},a=()=>document.documentElement,c=()=>parseInt(getComputedStyle(a()).getPropertyValue(qi)||"1"),l=p=>{p<.5||p>1.6||(a().style.setProperty(qi,p.toString()),f.value=p)},s=()=>{l(f.value+.1)},u=()=>{l(f.value-.1)},m=()=>{l(1)},f=r.ref(1);return r.onBeforeMount(()=>{localStorage.removeItem(ym)}),r.onMounted(()=>{f.value=c()}),(p,h)=>(r.openBlock(),r.createElementBlock(r.Fragment,null,[r.createVNode(Ie,{button:!0,size:"sm",icon:"text_increase",tooltip:"Tamanho da fonte",onClick:o}),e.value?(r.openBlock(),r.createElementBlock(r.Fragment,{key:0},[r.createElementVNode("div",{class:r.normalizeClass(["border","fadein","font-size-wrapper"]),style:r.normalizeStyle({zIndex:n.value+1})},[r.createElementVNode("div",{class:"icon",onClick:u}),r.createElementVNode("span",gm,r.toDisplayString(f.value.toLocaleString("pt-br",{style:"percent",maximumFractionDigits:0})),1),r.createElementVNode("div",{class:"icon add",onClick:s}),r.createElementVNode("span",{class:"redefinir",onClick:m}," Redefinir ")],4),r.createElementVNode("div",{class:"font-size-mask",style:r.normalizeStyle({zIndex:n.value}),onClick:i},null,4)],64)):r.createCommentVNode("",!0)],64))}}),[["__scopeId","data-v-d17f4a5f"]]),bm=r.defineComponent({__name:"ScrollToTop",setup(t){const{scrollY:e}=jt(),n=r.computed(()=>e.value>800);function o(){document.documentElement.scrollTo(0,0)}return(i,a)=>(r.openBlock(),r.createElementBlock("button",{class:r.normalizeClass(["sf-scrollToTop",{"sf-scrollToTop-visible":n.value}]),onClick:o},null,2))}}),Cm={class:"nav-menu-header"},wm={class:"nav-menu-inner-close"},km={class:"main-content"},Sm={class:"page-title"},_m={class:"action"},Em={id:"content"},Tm={key:0,id:"logging-out"},Pm={class:"info-fazenda"},Im={class:"font-bold"},Am={class:"info-endereco text-muted"},xm={class:"footer-right"},$m=Le(r.defineComponent({__name:"Main",props:{auth:{}},emits:["login"],setup(t,{emit:e}){const n=t,{navMenuWidth:o,isMenuOpened:i,pageTitle:a,scrollY:c,ToggleMenu:l,isDarkMode:s,ToggleTheme:u,CloseMenu:m,LogoutAsync:f,isLoggingOut:p,mainRef:h,mainWidth:C}=jt(),w=r.ref(null),k=()=>{if(!w.value||!i.value)return!1;w.value.offsetWidth!==o&&m()};r.onMounted(()=>{if(fa.useRouter().afterEach(()=>{k()}),h.value){let T=null;Dr(h,v=>{r.nextTick(()=>{T&&clearTimeout(T),T=setTimeout(()=>{C.value=v[0].contentRect.width},10)}),C.value=v[0].contentRect.width}),C.value=h.value.clientWidth}});const y=e;return(P,T)=>(r.openBlock(),r.createElementBlock("main",{ref_key:"mainRef",ref:h,class:r.normalizeClass({disabled:r.unref(p),"nav-menu-visible":r.unref(i)})},[r.createElementVNode("aside",{id:"nav-menu",ref_key:"navMenuRef",ref:w,class:r.normalizeClass({"nav-menu-hidden":!r.unref(i)})},[r.createElementVNode("div",Cm,[T[1]||(T[1]=r.createElementVNode("span",null,"Menu",-1)),r.createElementVNode("div",wm,[r.createVNode(Ie,{button:!0,icon:"close",onClick:r.unref(l)},null,8,["onClick"])])]),r.renderSlot(P.$slots,"nav-menu",{},void 0,!0)],2),r.createElementVNode("div",km,[r.createElementVNode("div",{id:"top-bar",class:r.normalizeClass({"shadow-bottom":r.unref(c)>72})},[r.createVNode(Ie,{button:!0,icon:r.unref(i)?"menu_open":"menu",tooltip:"Menu",onClick:r.unref(l)},null,8,["icon","onClick"]),r.createElementVNode("div",Sm,r.toDisplayString(r.unref(p)?"Saindo...":r.unref(a)),1),T[2]||(T[2]=r.createElementVNode("span",{class:"sep"},null,-1)),r.createElementVNode("div",_m,[r.createVNode(Ie,{button:!0,size:"sm",icon:r.unref(s)?"light_mode":"dark_mode",tooltip:r.unref(s)?"Modo claro":"Modo escuro",onClick:r.unref(u)},null,8,["icon","tooltip","onClick"]),r.createVNode(vm),n.auth?(r.openBlock(),r.createElementBlock(r.Fragment,{key:0},[n.auth.isAuthenticated?(r.openBlock(),r.createBlock(Ie,{key:0,button:!0,size:"sm",icon:"logout",tooltip:"Sair",onClick:r.unref(f)},null,8,["onClick"])):(r.openBlock(),r.createBlock(Ie,{key:1,button:!0,size:"sm",icon:"login",tooltip:"Entrar",onClick:T[0]||(T[0]=v=>y("login"))}))],64)):r.createCommentVNode("",!0)])],2),r.createElementVNode("div",Em,[r.unref(p)?(r.openBlock(),r.createElementBlock("div",Tm,[r.createVNode(Ko)])):r.renderSlot(P.$slots,"content",{key:1},void 0,!0)])]),r.createElementVNode("footer",null,[T[5]||(T[5]=r.createElementVNode("div",{class:"logo-fazenda"},null,-1)),r.createElementVNode("div",Pm,[r.createElementVNode("span",Im,[r.renderSlot(P.$slots,"footer-nome-fazenda",{},()=>[T[3]||(T[3]=r.createTextVNode(" SECRETARIA MUNICIPAL DA FAZENDA "))],!0)]),r.createElementVNode("span",Am,[r.renderSlot(P.$slots,"footer-endereco-fazenda",{},()=>[T[4]||(T[4]=r.createTextVNode(" Rua Líbero Badaró, 190 - Centro - São Paulo - SP - CEP 01008-000 "))],!0)])]),r.createElementVNode("div",xm,[r.renderSlot(P.$slots,"footer-right",{},void 0,!0)])]),r.createVNode(bm)],2))}}),[["__scopeId","data-v-5108e4ac"]]),Om=r.defineComponent({__name:"PageTitle",props:{title:{}},setup(t){const{pageTitle:e}=jt(),n=t;return r.watchEffect(()=>{document.title=n.title,e.value=n.title}),(o,i)=>null}}),vt=t=>{const e=t==="light"?"0, 0, 0":"198, 198, 198";return`0 1px 3px 0 rgba(${e}, 0.1), 0 1px 2px -1px rgba(${e}, 0.1);`},Yi={surface:{0:"var(--surface-0-color)",50:"var(--surface-100-color)",100:"var(--surface-100-color)",200:"var(--surface-200-color)",300:"var(--surface-300-color)",400:"var(--surface-400-color)",500:"var(--surface-1000-color)",600:"var(--surface-600-color)",700:"var(--surface-700-color)",800:"var(--surface-800-color)",900:"var(--surface-900-color)",950:"var(--surface-1000-color)"},primary:{color:"var(--primary-color)",contrastColor:"var(--bg-color)",hoverColor:"var(--primary-hover-color)",activeColor:"var(--primary-color)"},highlight:{background:"var(--primary-color)",color:"var(--bg-color)"},formField:{background:"var(--surface-0-color)",disabledBackground:"var(--surface-0-color)",filledBackground:"var(--surface-100-color)",filledFocusBackground:"var(--surface-100-color)",borderColor:"var(--surface-1000-color)",hoverBorderColor:"var(--primary-color)",focusBorderColor:"var(--primary-color)",invalidBorderColor:"var(--error-color)",color:"var(--text-color)",disabledColor:"var(--disabled-color)",placeholderColor:"var(--muted-color)",floatLabelColor:"var(--secondary-color)",floatLabelFocusColor:"var(--secondary-color)",floatLabelInvalidColor:"var(--error-color)",iconColor:"var(--primary-color)"},text:{color:"var(--text-color)",hoverColor:"var(--primary-color)",mutedColor:"var(--muted-color)",hoverMutedColor:"var(--muted-color)"},mask:{background:"var(--maskbg-color)",color:"var(--surface-200-color)"},content:{background:"var(--bg-color)",color:"var(--text-color)",border:{color:"var(--surface-1000-color)",radius:"var(--border-radius)"},hover:{background:"var(--primary-hover-color)",color:"var(--primary-color)"}}},Bm={semantic:{disabled:{opacity:"1"},transitionDuration:"0",primary:{50:"color-mix(in srgb, currentColor 5%, transparent)",100:"color-mix(in srgb, currentColor 10%, transparent)",200:"color-mix(in srgb, currentColor 20%, transparent)",300:"color-mix(in srgb, currentColor 30%, transparent)",400:"color-mix(in srgb, currentColor 40%, transparent)",500:"color-mix(in srgb, currentColor 50%, transparent)",600:"color-mix(in srgb, currentColor 60%, transparent)",700:"color-mix(in srgb, currentColor 70%, transparent)",800:"color-mix(in srgb, currentColor 80%, transparent)",900:"color-mix(in srgb, currentColor 90%, transparent)",950:"color-mix(in srgb, currentColor 95%, transparent)"},colorScheme:{light:{...Yi},dark:{...Yi}}},components:{blockui:{root:{borderRadius:"0px"}},button:{colorScheme:{light:{root:{primary:{background:"var(--primary-color) ",borderColor:"var(--primary-color)",focusRing:{color:"var(--primary-color)"},hoverBorderColor:"var(--primary-color)",hoverBackground:"color-mix(in srgb, var(--primary-color) 90%, black 10%)",activeBackground:"color-mix(in srgb, var(--primary-color) 80%, black 20%)",activeBorderColor:"var(--primary-color)"},secondary:{background:"var(--secondary-color) ",borderColor:"var(--secondary-color)",focusRing:{color:"var(--secondary-color)"},hoverBorderColor:"var(--secondary-color)",hoverBackground:"color-mix(in srgb, var(--secondary-color) 90%, black 10%)",activeBackground:"color-mix(in srgb, var(--secondary-color) 80%, black 20%)",activeBorderColor:"var(--secondary-color)"},success:{background:"var(--success-color) ",borderColor:"var(--success-color)",focusRing:{color:"var(--success-color)"},hoverBorderColor:"var(--success-color)",hoverBackground:"color-mix(in srgb, var(--success-color) 90%, black 10%)",activeBackground:"color-mix(in srgb, var(--success-color) 80%, black 20%)",activeBorderColor:"var(--success-color)"},info:{background:"var(--info-color) ",borderColor:"var(--info-color)",focusRing:{color:"var(--info-color)"},hoverBorderColor:"var(--info-color)",hoverBackground:"color-mix(in srgb, var(--info-color) 90%, black 10%)",activeBackground:"color-mix(in srgb, var(--info-color) 80%, black 20%)",activeBorderColor:"var(--info-color)"},warn:{background:"var(--warn-color) ",borderColor:"var(--warn-color)",focusRing:{color:"var(--warn-color)"},hoverBorderColor:"var(--warn-color)",hoverBackground:"color-mix(in srgb, var(--warn-color) 90%, black 10%)",activeBackground:"color-mix(in srgb, var(--warn-color) 80%, black 20%)",activeBorderColor:"var(--warn-color)"},help:{background:"var(--help-color) ",borderColor:"var(--help-color)",focusRing:{color:"var(--help-color)"},hoverBorderColor:"var(--help-color)",hoverBackground:"color-mix(in srgb, var(--help-color) 90%, black 10%)",activeBackground:"color-mix(in srgb, var(--help-color) 80%, black 20%)",activeBorderColor:"var(--help-color)"},danger:{background:"var(--error-color) ",borderColor:"var(--error-color)",focusRing:{color:"var(--error-color)"},hoverBorderColor:"var(--error-color)",hoverBackground:"color-mix(in srgb, var(--error-color) 90%, black 10%)",activeBackground:"color-mix(in srgb, var(--error-color) 80%, black 20%)",activeBorderColor:"var(--error-color)"},contrast:{background:"var(--text-color) ",borderColor:"var(--text-color)",focusRing:{color:"var(--text-color)"},hoverBorderColor:"var(--text-color)",hoverBackground:"color-mix(in srgb, var(--text-color) 90%, black 10%)",activeBackground:"color-mix(in srgb, var(--text-color) 80%, black 20%)",activeBorderColor:"var(--text-color)"}},outlined:{primary:{color:"var(--primary-color) !important",hoverBackground:"color-mix(in srgb, currentColor 10%, transparent) !important",activeBackground:"color-mix(in srgb, currentColor 15%, transparent) !important",borderColor:"color-mix(in srgb, currentColor 25%, transparent) !important"},secondary:{color:"var(--secondary-color) !important",hoverBackground:"color-mix(in srgb, currentColor 10%, transparent) !important",activeBackground:"color-mix(in srgb, currentColor 15%, transparent) !important",borderColor:"color-mix(in srgb, currentColor 25%, transparent) !important"},success:{color:"var(--success-color) !important",hoverBackground:"color-mix(in srgb, currentColor 10%, transparent) !important",activeBackground:"color-mix(in srgb, currentColor 15%, transparent) !important",borderColor:"color-mix(in srgb, currentColor 25%, transparent) !important"},info:{color:"var(--info-color) !important",hoverBackground:"color-mix(in srgb, currentColor 10%, transparent) !important",activeBackground:"color-mix(in srgb, currentColor 15%, transparent) !important",borderColor:"color-mix(in srgb, currentColor 25%, transparent) !important"},warn:{color:"var(--warn-color) !important",hoverBackground:"color-mix(in srgb, currentColor 10%, transparent) !important",activeBackground:"color-mix(in srgb, currentColor 15%, transparent) !important",borderColor:"color-mix(in srgb, currentColor 25%, transparent) !important"},help:{color:"var(--help-color) !important",hoverBackground:"color-mix(in srgb, currentColor 10%, transparent) !important",activeBackground:"color-mix(in srgb, currentColor 15%, transparent) !important",borderColor:"color-mix(in srgb, currentColor 25%, transparent) !important"},danger:{color:"var(--error-color) !important",hoverBackground:"color-mix(in srgb, currentColor 10%, transparent) !important",activeBackground:"color-mix(in srgb, currentColor 15%, transparent) !important",borderColor:"color-mix(in srgb, currentColor 25%, transparent) !important"},contrast:{color:"var(--text-color) !important",hoverBackground:"color-mix(in srgb, currentColor 10%, transparent) !important",activeBackground:"color-mix(in srgb, currentColor 15%, transparent) !important",borderColor:"color-mix(in srgb, currentColor 25%, transparent) !important"}},text:{primary:{color:"var(--primary-color) !important",hoverBackground:"color-mix(in srgb, currentColor 10%, transparent) !important",activeBackground:"color-mix(in srgb, currentColor 15%, transparent) !important"},secondary:{color:"var(--secondary-color) !important",hoverBackground:"color-mix(in srgb, currentColor 10%, transparent) !important",activeBackground:"color-mix(in srgb, currentColor 15%, transparent) !important"},success:{color:"var(--success-color) !important",hoverBackground:"color-mix(in srgb, currentColor 10%, transparent) !important",activeBackground:"color-mix(in srgb, currentColor 15%, transparent) !important"},info:{color:"var(--info-color) !important",hoverBackground:"color-mix(in srgb, currentColor 10%, transparent) !important",activeBackground:"color-mix(in srgb, currentColor 15%, transparent) !important"},warn:{color:"var(--warn-color) !important",hoverBackground:"color-mix(in srgb, currentColor 10%, transparent) !important",activeBackground:"color-mix(in srgb, currentColor 15%, transparent) !important"},help:{color:"var(--help-color) !important",hoverBackground:"color-mix(in srgb, currentColor 10%, transparent) !important",activeBackground:"color-mix(in srgb, currentColor 15%, transparent) !important"},danger:{color:"var(--error-color) !important",hoverBackground:"color-mix(in srgb, currentColor 10%, transparent) !important",activeBackground:"color-mix(in srgb, currentColor 15%, transparent) !important"},contrast:{color:"var(--text-color) !important",hoverBackground:"color-mix(in srgb, currentColor 10%, transparent) !important",activeBackground:"color-mix(in srgb, currentColor 15%, transparent) !important"}}},dark:{root:{primary:{background:"var(--primary-color) ",borderColor:"var(--primary-color)",focusRing:{color:"var(--primary-color)"},hoverBorderColor:"var(--primary-color)",hoverBackground:"color-mix(in srgb, var(--primary-color) 90%, white 10%)",activeBackground:"color-mix(in srgb, var(--primary-color) 80%, white 20%)"},secondary:{background:"var(--secondary-color) ",borderColor:"var(--secondary-color)",focusRing:{color:"var(--secondary-color)"},hoverBorderColor:"var(--secondary-color)",hoverBackground:"color-mix(in srgb, var(--secondary-color) 90%, white 10%)",activeBackground:"color-mix(in srgb, var(--secondary-color) 80%, white 20%)",activeBorderColor:"var(--secondary-color)"},success:{background:"var(--success-color) ",borderColor:"var(--success-color)",focusRing:{color:"var(--success-color)"},hoverBorderColor:"var(--success-color)",hoverBackground:"color-mix(in srgb, var(--success-color) 90%, white 10%)",activeBackground:"color-mix(in srgb, var(--success-color) 80%, white 20%)",activeBorderColor:"var(--success-color)"},info:{background:"var(--info-color) ",borderColor:"var(--info-color)",focusRing:{color:"var(--info-color)"},hoverBorderColor:"var(--info-color)",hoverBackground:"color-mix(in srgb, var(--info-color) 90%, white 10%)",activeBackground:"color-mix(in srgb, var(--info-color) 80%, white 20%)",activeBorderColor:"var(--info-color)"},warn:{background:"var(--warn-color) ",borderColor:"var(--warn-color)",focusRing:{color:"var(--warn-color)"},hoverBorderColor:"var(--warn-color)",hoverBackground:"color-mix(in srgb, var(--warn-color) 90%, white 10%)",activeBackground:"color-mix(in srgb, var(--warn-color) 80%, white 20%)",activeBorderColor:"var(--warn-color)"},help:{background:"var(--help-color) ",borderColor:"var(--help-color)",focusRing:{color:"var(--help-color)"},hoverBorderColor:"var(--help-color)",hoverBackground:"color-mix(in srgb, var(--help-color) 90%, white 10%)",activeBackground:"color-mix(in srgb, var(--help-color) 80%, white 20%)",activeBorderColor:"var(--help-color)"},danger:{background:"var(--error-color) ",borderColor:"var(--error-color)",focusRing:{color:"var(--error-color)"},hoverBorderColor:"var(--error-color)",hoverBackground:"color-mix(in srgb, var(--error-color) 90%, white 10%)",activeBackground:"color-mix(in srgb, var(--error-color) 80%, white 20%)",activeBorderColor:"var(--error-color)"},contrast:{background:"var(--text-color) ",borderColor:"var(--text-color)",focusRing:{color:"var(--text-color)"},hoverBorderColor:"var(--text-color)",hoverBackground:"color-mix(in srgb, var(--text-color) 90%, white 10%)",activeBackground:"color-mix(in srgb, var(--text-color) 80%, white 20%)",activeBorderColor:"var(--text-color)"}},outlined:{primary:{color:"var(--primary-color) !important",hoverBackground:"color-mix(in srgb, currentColor 15%, transparent) !important",activeBackground:"color-mix(in srgb, currentColor 20%, transparent) !important",borderColor:"color-mix(in srgb, currentColor 30%, transparent) !important"},secondary:{color:"var(--secondary-color) !important",hoverBackground:"color-mix(in srgb, currentColor 15%, transparent) !important",activeBackground:"color-mix(in srgb, currentColor 20%, transparent) !important",borderColor:"color-mix(in srgb, currentColor 30%, transparent) !important"},success:{color:"var(--success-color) !important",hoverBackground:"color-mix(in srgb, currentColor 15%, transparent) !important",activeBackground:"color-mix(in srgb, currentColor 20%, transparent) !important",borderColor:"color-mix(in srgb, currentColor 30%, transparent) !important"},info:{color:"var(--info-color) !important",hoverBackground:"color-mix(in srgb, currentColor 15%, transparent) !important",activeBackground:"color-mix(in srgb, currentColor 20%, transparent) !important",borderColor:"color-mix(in srgb, currentColor 30%, transparent) !important"},warn:{color:"var(--warn-color) !important",hoverBackground:"color-mix(in srgb, currentColor 15%, transparent) !important",activeBackground:"color-mix(in srgb, currentColor 20%, transparent) !important",borderColor:"color-mix(in srgb, currentColor 30%, transparent) !important"},help:{color:"var(--help-color) !important",hoverBackground:"color-mix(in srgb, currentColor 15%, transparent) !important",activeBackground:"color-mix(in srgb, currentColor 20%, transparent) !important",borderColor:"color-mix(in srgb, currentColor 30%, transparent) !important"},danger:{color:"var(--error-color) !important",hoverBackground:"color-mix(in srgb, currentColor 15%, transparent) !important",activeBackground:"color-mix(in srgb, currentColor 20%, transparent) !important",borderColor:"color-mix(in srgb, currentColor 30%, transparent) !important"},contrast:{color:"var(--text-color) !important",hoverBackground:"color-mix(in srgb, currentColor 15%, transparent) !important",activeBackground:"color-mix(in srgb, currentColor 20%, transparent) !important",borderColor:"color-mix(in srgb, currentColor 30%, transparent) !important"}},text:{primary:{color:"var(--primary-color) !important",hoverBackground:"color-mix(in srgb, currentColor 15%, transparent) !important",activeBackground:"color-mix(in srgb, currentColor 20%, transparent) !important"},secondary:{color:"var(--secondary-color) !important",hoverBackground:"color-mix(in srgb, currentColor 15%, transparent) !important",activeBackground:"color-mix(in srgb, currentColor 20%, transparent) !important"},success:{color:"var(--success-color) !important",hoverBackground:"color-mix(in srgb, currentColor 15%, transparent) !important",activeBackground:"color-mix(in srgb, currentColor 20%, transparent) !important"},info:{color:"var(--info-color) !important",hoverBackground:"color-mix(in srgb, currentColor 15%, transparent) !important",activeBackground:"color-mix(in srgb, currentColor 20%, transparent) !important"},warn:{color:"var(--warn-color) !important",hoverBackground:"color-mix(in srgb, currentColor 15%, transparent) !important",activeBackground:"color-mix(in srgb, currentColor 20%, transparent) !important"},help:{color:"var(--help-color) !important",hoverBackground:"color-mix(in srgb, currentColor 15%, transparent) !important",activeBackground:"color-mix(in srgb, currentColor 20%, transparent) !important"},danger:{color:"var(--error-color) !important",hoverBackground:"color-mix(in srgb, currentColor 15%, transparent) !important",activeBackground:"color-mix(in srgb, currentColor 20%, transparent) !important"},contrast:{color:"var(--text-color) !important",hoverBackground:"color-mix(in srgb, currentColor 15%, transparent) !important",activeBackground:"color-mix(in srgb, currentColor 20%, transparent) !important"}}}}},card:{root:{borderRadius:"var(--border-radius)"},title:{fontWeight:"700",fontSize:"var(--text-md)"},body:{padding:"var(--content-gutter)"},colorScheme:{light:{root:{background:"var(--bg-color)",shadow:vt("light")}},dark:{root:{background:"var(--surface-300-color)",shadow:vt("dark")}}}},checkbox:{root:{background:"var(--surface-200-color) !important",borderColor:"var(--muted-color) !important",borderRadius:"var(--border-radius) !important",checkedBackground:"var(--primary-color) !important",checkedHoverBackground:"var(--primary-color) !important",sm:{width:"1rem",height:"1rem"},lg:{width:"1.5rem",height:"1.5rem"}}},confirmpopup:{root:{borderColor:"var(--border-color)"},colorScheme:{light:{root:{background:"var(--bg-color)",shadow:vt("light")}},dark:{root:{background:"var(--surface-300-color)",shadow:vt("dark")}}}},datatable:{root:{borderColor:"var(--border-color) !important"},header:{borderColor:"var(--border-color) !important",padding:"0 0 var(--content-gutter) 0",sm:{padding:"0 0 var(--content-gutter-sm) 0"}},headerCell:{borderColor:"var(--border-color) !important",hoverColor:"var(--primary-color) !important",hoverBackground:"var(--primary-hover-color) !important"},bodyCell:{borderColor:"var(--border-color) !important"},footer:{borderColor:"var(--border-color) !important"},colorScheme:{light:{header:{background:"var(--bg-color)",color:"var(--text-color)"},headerCell:{background:"var(--bg-color)"},footerCell:{background:"var(--bg-color)"},row:{background:"var(--bg-color)",stripedBackground:"var(--surface-300-color)"}},dark:{header:{background:"var(--surface-300-color)",color:"var(--text-color)"},headerCell:{background:"var(--surface-300-color)"},footerCell:{background:"var(--surface-300-color)"},row:{stripedBackground:"var(--bg-color)",background:"var(--surface-300-color)"}}}},datepicker:{today:{background:"var(--primary-hover-color) !important",color:"var(--primary-color) !important"}},dialog:{root:{background:"var(--bg-color) !important",color:"var(--text-color) !important",borderColor:"var(--border-color) !important",borderRadius:"var(--border-radius) !important",shadow:"none !important"},title:{fontSize:"var(--font-size) !important",fontWeight:"700 !important"},header:{padding:"0.75rem 0.75rem 0 1rem !important",gap:"var(--content-gutter-sm) !important"},content:{padding:"var(--content-gutter) !important"},footer:{padding:"0.75rem 0.75rem 0 1rem !important",gap:"var(--content-gutter-sm) !important"}},inputtext:{root:{background:"var(--surface-100-color)",color:"var(--text-color)",borderColor:"var(--border-color) !important",borderRadius:"var(--border-radius) !important",shadow:"none !important",hoverBorderColor:"var(--primary-color) !important",placeholderColor:"var(--muted-color)"}},menu:{item:{focusBackground:"var(--surface-400-color)",focusColor:"var(--text-color)"},colorScheme:{light:{root:{background:"var(--bg-color)",shadow:vt("light")}},dark:{root:{background:"var(--surface-200-color)",shadow:vt("dark")}}}},popover:{root:{background:"var(--bg-color)",color:"var(--text-color)",borderColor:"var(--border-color)",borderRadius:"var(--border-radius)",shadow:"none",gutter:"8px",arrowOffset:"0.75rem"},content:{padding:"0"}},select:{root:{background:"var(--bg-color)",color:"var(--text-color)",hoverBorderColor:"var(--primary-color)",placeholderColor:"var(--muted-color)",disabledColor:"var(--disabled-color)"},option:{focusBackground:"var(--surface-200-color)",focusColor:"var(--primary-color)",selectedFocusColor:"var(--bg-color)",selectedFocusBackground:"var(--primary-color)"},overlay:{borderColor:"var(--border-color)"},dropdown:{color:"var(--primary-color)"},colorScheme:{light:{overlay:{background:"var(--bg-color)"}},dark:{overlay:{background:"var(--surface-100-color)"}}}},skeleton:{root:{background:"var(--surface-700-color)",animationBackground:"var(--surface-100-color)"}},textarea:{root:{background:"var(--surface-100-color)",hoverBorderColor:"var(--primary-color)",placeholderColor:"var(--muted-color)"}},toast:{root:{width:"min(90vw, 320px)"},colorScheme:{light:{contrast:{background:"var(--text-color)",color:"var(--bg-color)",detailColor:"var(--bg-color)"}},dark:{contrast:{background:"var(--bg-color)",color:"var(--text-color)",detailColor:"var(--text-color)"}}},info:{background:"var(--info-color)",color:"var(--info-hover-color)",detailColor:"var(--text-color)"},success:{background:"var(--success-color)",color:"var(--success-hover-color)",detailColor:"var(--text-color)"},warn:{background:"var(--warn-color)",color:"var(--warn-hover-color)",detailColor:"var(--text-color)"},error:{background:"var(--error-color)",color:"var(--error-hover-color)",detailColor:"var(--text-color)"},secondary:{background:"var(--secondary-color)",color:"var(--secondary-hover-color)",detailColor:"var(--text-color)"}}}};class qe{static get IsTouch(){return window.matchMedia("(pointer: coarse)").matches}static GetMaxZindex(e=[]){let n="body > *:not(script):not(style)";for(const i of e)n+=`, ${i}`;const o=Math.max(...Array.from(document.querySelectorAll(n)).map(i=>{const a=getComputedStyle(i).zIndex;return+a==+a?+a:0}));return o>=100?o:100}static AjustarFuso(e){const n=e.getTimezoneOffset()/60;e.setHours(e.getHours()-n)}static Mask(e,n){let o=0,i=e.toString();return n.replace(/#/g,()=>i[o++]||"")}static MaskCpf(e){return qe.Mask(e.padStart(11,"0"),"###.###.###-##")}static MaskCnpj(e){return qe.Mask(e.padStart(14,"0"),"##.###.###/####-##")}static MaskCcm(e){return qe.Mask(e.padStart(8,"0"),"#.###.###-#")}static async DelayAsync(e=400){return new Promise(n=>setTimeout(n,e))}static FormatNumber(e,n=0,o="pt-BR"){return e.toLocaleString(o,{minimumFractionDigits:n,maximumFractionDigits:n})}static FormatCurrency(e,n="pt-BR"){return e.toLocaleString(n,{style:"currency",currency:"BRL"})}static HasKey(e,n){return e&&n in e}static GetFilenameFromContentDisposition(e){if(!e)return null;const n=e.match(/filename\*\s*=\s*(?:UTF-8'')?([^;\r\n]+)/i);if(n)try{return decodeURIComponent(n[1].trim().replace(/^"|"$/g,""))}catch{return n[1].trim().replace(/^"|"$/g,"")}const o=e.match(/filename\s*=\s*("(.*?)"|([^;,\r\n]+))/i);return o?(o[2]||o[3]).trim().replace(/^"|"$/g,""):null}}class Lm{sub;username;name;email;roles;groups;userinfo;department;jobTitle;idp;constructor(e){this.userinfo=e,this.sub=e.sub,this.username=e.employeeID??e.cpf??"",this.name=e.name??"",this.email=e.email??null,this.roles=e.role??[],this.groups=e.group??[],this.department=this.SetDepartment(),this.jobTitle=this.SetJobTitle(),this.idp=this.SetIdp()}get firstname(){return this.name.split(" ")[0]??this.name}get maskedUsername(){return this.username?this.username.length<=11?qe.MaskCpf(this.username):this.username.length===14?qe.MaskCnpj(this.username):this.username:""}IsInRole(e){return this.roles.includes(e)}IsInGroup(e){return this.groups.includes(e)}SetIdp(){const e=this.userinfo?.identity_provider??null;return e?.toLocaleLowerCase()==="gov.br"?"govbr":e?.toLocaleLowerCase().startsWith("senhaweb")?"senhaweb":null}SetDepartment(){return this.userinfo?.department??null}SetJobTitle(){return this.userinfo?.jobTitle??null}}function Nm(){const t=r.ref("development");function e(s){t.value=s.toLocaleLowerCase()}const n=r.computed(()=>t.value==="development"),o=r.computed(()=>t.value==="pack"),i=r.computed(()=>t.value==="hml"),a=r.computed(()=>t.value==="production"),c=r.ref(null);function l(){c.value=null}return{environment:t,SetEnvironment:e,isDev:n,isPack:o,isHml:i,isProd:a,user:c,$reset:l}}const Mm=t=>{const e=new Set;function n(o){const{name:i,children:a}=o;if(i){if(e.has(i))throw new Error(["Erro na validação das rotas!",`Nome de rota duplicado: ${i}`].join(`
424
424
  `));e.add(i)}if(a&&Array.isArray(a))for(const c of a)n(c)}for(const o of t)n(o)};Promise.prototype.TrackStateWith||(Promise.prototype.TrackStateWith=async function(t){t.value=!0;try{return await this}finally{t.value=!1}});class Dm{current=null;resolve=null;async showAsync(e,n){const o={message:e,life:n??5e3};return this.Render(o)}async Render(e){return new Promise(n=>{this.resolve=n,this.current&&(this.current.style.opacity="0",setTimeout((function(){this.parentElement&&this.parentElement.removeChild(this)}).bind(this.current),500));const o=document.createElement("div"),i=document.createElement("div"),a=document.createElement("div");i.className="content",a.className="progress",i.appendChild(a),o.className="sf-toast",o.style.zIndex=qe.GetMaxZindex().toString(),o.appendChild(i),this.current=o,document.body.appendChild(o),o.addEventListener("transitionend",s=>{const u=s.propertyName==="opacity",m=s.target.classList.contains("visible");u&&!m&&(document.body.removeChild(o),this.current===o&&(this.current=null))});const c=[];Array.isArray(e.message)?c.push(...e.message):c.push(e.message);for(const s of c){const u=document.createElement("p");u.innerHTML=Bo.sanitize(s),i.appendChild(u)}const l=document.createElement("i");if(l.classList.add("icon","material-symbols-outlined"),l.innerText="close",l.addEventListener("click",()=>{this.Close()}),i.appendChild(l),getComputedStyle(o).bottom,getComputedStyle(o).top,o.classList.add("visible"),e.life){a.style.transitionDuration=`${e.life-300}ms`,i.classList.add("animate"),setTimeout(()=>{this.current===o&&this.Close()},e.life);return}})}Close(){this.resolve&&this.resolve(),this.current&&this.current.classList.remove("visible")}}const Rm=new Dm,Vm=()=>Rm;function Xi(){document.documentElement.removeAttribute("data-app-message"),document.documentElement.classList.add("app-mounted")}function Mo(t){typeof t=="string"&&document.documentElement.setAttribute("data-app-message",t),document.documentElement.classList.remove("app-mounted")}async function jm(){return await fetch(window.location.origin+"/api/get-environment").then(async t=>{if(!t.ok)throw Mo("Ocorreu um erro ao inicializar a aplicação."),new Error(`Erro ao obter ambiente: ${t.status} ${t.statusText}`);return await t.text()})}x.AppError=Lo,x.AppResult=Ki,x.BaseAppState=Nm,x.EnsureUniqueRouteNames=Mm,x.GetEnvironmentAsync=jm,x.RemovePreloader=Xi,x.RestorePreloader=Mo,x.SfButton=Un,x.SfContent=Nl,x.SfDrawer=Go,x.SfHelpButton=Ll,x.SfIcon=Ie,x.SfLoadingCircle=Wo,x.SfLogin=Yl,x.SfMain=$m,x.SfMessage=Ia,x.SfNavMenu=Bl,x.SfPageTitle=Om,x.SfTabNavigation=Sa,x.SfTooltip=zo,x.UseAlert=Gi,x.UseAlertService=pm,x.UseAppInject=jt,x.UseConfirm=Ui,x.UseConfirmService=sm,x.UseSimpleToast=Vm,x.User=Lm,x.Utilities=qe,x._logger=fm,x.configSF=mm,x.globalErrorHandler=hm,x.themePreset=Bm,Object.defineProperty(x,Symbol.toStringTag,{value:"Module"})});
425
425
  //# sourceMappingURL=sf.prefeiturasp.vuecomponents.umd.cjs.map