@luizleon/sf.prefeiturasp.vuecomponents 0.0.63 → 0.0.64

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,4 +1,4 @@
1
- (function(ee,a){typeof exports=="object"&&typeof module<"u"?a(exports,require("vue"),require("vue-router")):typeof define=="function"&&define.amd?define(["exports","vue","vue-router"],a):(ee=typeof globalThis<"u"?globalThis:ee||self,a((ee.sf=ee.sf||{},ee.sf.prefeiturasp=ee.sf.prefeiturasp||{},ee.sf.prefeiturasp.vuecomponents={}),ee.Vue,ee.VueRouter))})(this,function(ee,a,rt){"use strict";var nm=Object.defineProperty;var rm=(ee,a,rt)=>a in ee?nm(ee,a,{enumerable:!0,configurable:!0,writable:!0,value:rt}):ee[a]=rt;var Me=(ee,a,rt)=>(rm(ee,typeof a!="symbol"?a+"":a,rt),rt);class ks{constructor(){Me(this,"_visible",a.ref(!1))}get IsVisible(){return this._visible.value===!0}Toggle(){this._visible.value=!this._visible.value}Close(){this._visible.value=!1}Open(){this._visible.value=!0}}const xs=new ks,Tn=()=>xs;class Ze{constructor(e){Me(this,"retorno");this.retorno=e??""}Concat(e){return e&&e.trim().length&&(this.retorno+=` ${e}`),this}AddClass(e,n=!0){return n?this.Concat(e):this}Build(){return this.retorno.trim()}}function Vr(t=[]){let e="body *:not(style)";for(const n of t)e+=`, ${n}`;return Math.max(...Array.from(document.querySelectorAll(e)).map(n=>{const r=getComputedStyle(n).zIndex;return+r==+r?+r:0}))}let Is=(t=21)=>crypto.getRandomValues(new Uint8Array(t)).reduce((e,n)=>(n&=63,n<36?e+=n.toString(36):n<62?e+=(n-26).toString(36).toUpperCase():n>62?e+="-":e+="_",e),"");const On=(t,e)=>{const n=t.__vccOpts||t;for(const[r,o]of e)n[r]=o;return n},Ps={},Ts={class:"sf-loading-circle"},Os=[a.createElementVNode("div",null,[a.createElementVNode("svg",{viewBox:"25 25 50 50"},[a.createElementVNode("circle",{cx:"50",cy:"50",r:"20",fill:"none","stroke-width":"4","stroke-miterlimit":"10"})])],-1)];function Ls(t,e){return a.openBlock(),a.createElementBlock("div",Ts,Os)}const Bs=On(Ps,[["render",Ls]]),Ln=a.defineComponent({__name:"Tooltip",props:{text:{}},setup(t){const e=t;class n{constructor(){Me(this,"zIndex");Me(this,"wrapper");Me(this,"inner");this.zIndex=Vr()+1,this.Render()}Render(){this.wrapper=document.createElement("div"),this.wrapper.classList.add("sf-tooltip-wrapper"),this.wrapper.style.zIndex=`${this.zIndex??0}`,this.inner=document.createElement("div"),this.inner.classList.add("sf-tooltip-inner"),this.wrapper.appendChild(this.inner)}Show(i){this.inner.textContent=e.text;const s=i.target;document.body.appendChild(this.wrapper),this.Position(s.getBoundingClientRect()),this.wrapper.classList.add("visible")}Hide(){this.wrapper.classList.remove("visible"),this.wrapper.remove()}Position(i){const c=i.top,l=i.bottom,d=i.left,f=i.right,p=i.width/2-15,v=this.wrapper;v.style.top=`${l+10}px`,v.style.left=`${d}px`,v.style.marginLeft=`${p}px`,this.OutOfBottom()&&(v.style.top=`${c-v.clientHeight-10}px`,v.classList.add("top")),this.OutOfRight()&&(v.style.left=`${f-v.clientWidth}px`,v.style.marginLeft=`-${p}px`,v.classList.add("left"))}OutOfBottom(){return this.wrapper.getBoundingClientRect().bottom>(window.innerHeight||document.documentElement.clientHeight)}OutOfRight(){return this.wrapper.getBoundingClientRect().right>(window.innerWidth||document.documentElement.clientWidth)}}const r=new n;return a.onBeforeUnmount(()=>{r.Hide()}),(o,i)=>(a.openBlock(),a.createElementBlock("div",{class:"sf-tooltip-anchor",onMouseenter:i[0]||(i[0]=(...s)=>a.unref(r).Show&&a.unref(r).Show(...s)),onMouseleave:i[1]||(i[1]=(...s)=>a.unref(r).Hide&&a.unref(r).Hide(...s)),onMousedown:i[2]||(i[2]=(...s)=>a.unref(r).Hide&&a.unref(r).Hide(...s))},[a.renderSlot(o.$slots,"default")],32))}}),Fs=["disabled","tabindex"],Rs=["data-color"],Qe=On(a.defineComponent({__name:"Icon",props:{icon:{},visible:{type:Boolean,default:!0},class:{default:""},style:{default:""},disabled:{type:Boolean},loading:{type:Boolean},button:{type:Boolean},size:{default:"md"},dot:{type:Boolean},dotColor:{default:"error"},filled:{type:Boolean},buttonProps:{},tooltip:{}},setup(t){const e=t,n=a.computed(()=>e.tooltip?Ln:"div"),r=a.computed(()=>e.tooltip?"":"display-content"),o=a.computed(()=>new Ze(`${e.class} sf-icon`).AddClass("sf-component-loading",e.loading).AddClass("sf-component-disabled",e.disabled).AddClass("sf-icon-button",e.button).AddClass("sf-icon-small",e.size==="sm").AddClass("sf-icon-medium",e.size==="md").AddClass("sf-icon-large",e.size==="lg").AddClass("sf-ripple",e.button===!0).Build());return(i,s)=>(a.openBlock(),a.createBlock(a.resolveDynamicComponent(n.value),{text:e.tooltip,class:a.normalizeClass(r.value)},{default:a.withCtx(()=>[e.visible?(a.openBlock(),a.createElementBlock("div",{key:0,style:a.normalizeStyle(e.style),class:a.normalizeClass(o.value)},[a.createElementVNode("button",a.mergeProps({class:["material-symbols-outlined",{"icon-filled":!!e.filled}],disabled:e.disabled||e.loading},e.buttonProps,{tabindex:e.button?void 0:-1}),[e.loading?(a.openBlock(),a.createBlock(Bs,{key:0})):(a.openBlock(),a.createElementBlock(a.Fragment,{key:1},[a.createTextVNode(a.toDisplayString(e.icon),1)],64))],16,Fs),e.dot?(a.openBlock(),a.createElementBlock("span",{key:0,"data-color":e.dotColor},null,8,Rs)):a.createCommentVNode("",!0)],6)):a.createCommentVNode("",!0)]),_:1},8,["text","class"]))}}),[["__scopeId","data-v-5de5e7b2"]]),$s=["id","onClick"],Ns={class:"sf-drawer-header"},Ds={class:"sf-drawer-title"},Ms={class:"sf-drawer-content"},Us={key:0,class:"sf-drawer-footer"},Kr=a.defineComponent({__name:"Drawer",props:{visible:{type:Boolean,default:!1},position:{default:"left"},style:{}},emits:["update:visible","open","before-close"],setup(t,{emit:e}){const n=t,r=e,o=a.useSlots(),i=a.ref(n.visible),s=a.ref(!1),c=a.ref(0),l=Is();function d(){i.value=!1}function f(C){(C.key==="Escape"||C.code==="Escape")&&d()}function p(){r("open"),window.document.addEventListener("keydown",f,!0)}function v(C){c.value=Vr(),C.style.zIndex=`${c.value}`}function w(C){var $;r("before-close"),($=C==null?void 0:C.parentElement)==null||$.classList.add("sf-mask-overlay-leave")}function _(){window.document.removeEventListener("keydown",f,!0),s.value=!1}function x(){return new Ze("sf-mask sf-mask-overlay").AddClass("right",n.position==="right").AddClass("bottom",n.position==="bottom").AddClass("full",n.position==="full").AddClass("sf-mask-overlay-enter",n.visible===!0).Build()}return a.watch(()=>n.visible,C=>{i.value=C}),a.watch(()=>i.value,C=>{r("update:visible",C),C&&(s.value=!0)}),(C,$)=>(a.openBlock(),a.createBlock(a.Teleport,{to:"body"},[s.value?(a.openBlock(),a.createElementBlock("div",{key:0,id:a.unref(l),class:a.normalizeClass(x()),style:a.normalizeStyle({zIndex:c.value-1}),onClick:a.withModifiers(d,["stop"])},[a.createVNode(a.Transition,{name:"sf-drawer",appear:"",onBeforeEnter:v,onEnter:p,onBeforeLeave:w,onAfterLeave:_},{default:a.withCtx(()=>[i.value?(a.openBlock(),a.createElementBlock("div",{key:0,class:a.normalizeClass(["sf-drawer",{"sf-drawer-with-footer":!!a.unref(o).footer}]),style:a.normalizeStyle(n.style),role:"dialog",onClick:$[0]||($[0]=a.withModifiers(q=>C.void,["stop"]))},[a.createElementVNode("div",Ns,[a.createElementVNode("span",Ds,[a.renderSlot(C.$slots,"title")]),a.createVNode(Qe,{button:!0,icon:"close",onClick:a.withModifiers(d,["stop"])},null,8,["onClick"])]),a.createElementVNode("div",Ms,[a.renderSlot(C.$slots,"default")]),a.unref(o).footer?(a.openBlock(),a.createElementBlock("div",Us,[a.renderSlot(C.$slots,"footer")])):a.createCommentVNode("",!0)],6)):a.createCommentVNode("",!0)]),_:3})],14,$s)):a.createCommentVNode("",!0)]))}}),Hs=["id","name","disabled","data-color","form","type"],js={class:"sf-button-label"},zr=a.defineComponent({__name:"Button",props:{icon:{},visible:{type:Boolean,default:!0},class:{},style:{},disabled:{type:Boolean},loading:{type:Boolean},color:{default:"primary"},size:{default:"md"},variant:{default:"filled"},autofocus:{type:Boolean},form:{},name:{},id:{},type:{default:"button"},value:{}},setup(t){const e=t;function n(){return new Ze(`${e.class??""} sf-button`).AddClass("sf-component-loading",e.loading).AddClass("sf-component-disabled",e.disabled).AddClass("sf-button-small",e.size==="sm").AddClass("sf-button-medium",e.size==="md").AddClass("sf-button-large",e.size==="lg").AddClass("sf-button-filled",e.variant==="filled").AddClass("sf-button-text",e.variant==="text").AddClass("sf-button-outlined",e.variant==="outlined").AddClass("sf-button-with-icon",!!e.icon).AddClass("sf-ripple").Build()}return(r,o)=>e.visible?(a.openBlock(),a.createElementBlock("button",{key:0,id:e.id,name:e.name,class:a.normalizeClass(n()),style:a.normalizeStyle(e.style),disabled:e.disabled||e.loading,"data-color":e.color,form:e.form,type:e.type},[e.icon?(a.openBlock(),a.createBlock(Qe,{key:0,filled:e.variant==="filled",icon:e.icon,loading:e.loading,size:e.size,"button-props":{tabindex:-1}},null,8,["filled","icon","loading","size"])):e.loading?(a.openBlock(),a.createBlock(Qe,{key:1,loading:!0,size:e.size,"button-props":{tabindex:-1}},null,8,["size"])):a.createCommentVNode("",!0),a.createElementVNode("span",js,[a.renderSlot(r.$slots,"default")])],14,Hs)):a.createCommentVNode("",!0)}}),Wr="SweetAlert2:",Vs=t=>{const e=[];for(let n=0;n<t.length;n++)e.indexOf(t[n])===-1&&e.push(t[n]);return e},Bn=t=>t.charAt(0).toUpperCase()+t.slice(1),Oe=t=>Array.prototype.slice.call(t),Ae=t=>{console.warn(`${Wr} ${typeof t=="object"?t.join(" "):t}`)},ot=t=>{console.error(`${Wr} ${t}`)},qr=[],Ks=t=>{qr.includes(t)||(qr.push(t),Ae(t))},zs=(t,e)=>{Ks(`"${t}" is deprecated and will be removed in the next major release. Please use "${e}" instead.`)},nn=t=>typeof t=="function"?t():t,Fn=t=>t&&typeof t.toPromise=="function",kt=t=>Fn(t)?t.toPromise():Promise.resolve(t),Rn=t=>t&&Promise.resolve(t)===t,ft={title:"",titleText:"",text:"",html:"",footer:"",icon:void 0,iconColor:void 0,iconHtml:void 0,template:void 0,toast:!1,showClass:{popup:"swal2-show",backdrop:"swal2-backdrop-show",icon:"swal2-icon-show"},hideClass:{popup:"swal2-hide",backdrop:"swal2-backdrop-hide",icon:"swal2-icon-hide"},customClass:{},target:"body",color:void 0,backdrop:!0,heightAuto:!0,allowOutsideClick:!0,allowEscapeKey:!0,allowEnterKey:!0,stopKeydownPropagation:!0,keydownListenerCapture:!1,showConfirmButton:!0,showDenyButton:!1,showCancelButton:!1,preConfirm:void 0,preDeny:void 0,confirmButtonText:"OK",confirmButtonAriaLabel:"",confirmButtonColor:void 0,denyButtonText:"No",denyButtonAriaLabel:"",denyButtonColor:void 0,cancelButtonText:"Cancel",cancelButtonAriaLabel:"",cancelButtonColor:void 0,buttonsStyling:!0,reverseButtons:!1,focusConfirm:!0,focusDeny:!1,focusCancel:!1,returnFocus:!0,showCloseButton:!1,closeButtonHtml:"&times;",closeButtonAriaLabel:"Close this dialog",loaderHtml:"",showLoaderOnConfirm:!1,showLoaderOnDeny:!1,imageUrl:void 0,imageWidth:void 0,imageHeight:void 0,imageAlt:"",timer:void 0,timerProgressBar:!1,width:void 0,padding:void 0,background:void 0,input:void 0,inputPlaceholder:"",inputLabel:"",inputValue:"",inputOptions:{},inputAutoTrim:!0,inputAttributes:{},inputValidator:void 0,returnInputValueOnDeny:!1,validationMessage:void 0,grow:!1,position:"center",progressSteps:[],currentProgressStep:void 0,progressStepsDistance:void 0,willOpen:void 0,didOpen:void 0,didRender:void 0,willClose:void 0,didClose:void 0,didDestroy:void 0,scrollbarPadding:!0},Ws=["allowEscapeKey","allowOutsideClick","background","buttonsStyling","cancelButtonAriaLabel","cancelButtonColor","cancelButtonText","closeButtonAriaLabel","closeButtonHtml","color","confirmButtonAriaLabel","confirmButtonColor","confirmButtonText","currentProgressStep","customClass","denyButtonAriaLabel","denyButtonColor","denyButtonText","didClose","didDestroy","footer","hideClass","html","icon","iconColor","iconHtml","imageAlt","imageHeight","imageUrl","imageWidth","preConfirm","preDeny","progressSteps","returnFocus","reverseButtons","showCancelButton","showCloseButton","showConfirmButton","showDenyButton","text","title","titleText","willClose"],qs={},Gs=["allowOutsideClick","allowEnterKey","backdrop","focusConfirm","focusDeny","focusCancel","returnFocus","heightAuto","keydownListenerCapture"],Gr=t=>Object.prototype.hasOwnProperty.call(ft,t),Jr=t=>Ws.indexOf(t)!==-1,$n=t=>qs[t],Js=t=>{Gr(t)||Ae(`Unknown parameter "${t}"`)},Ys=t=>{Gs.includes(t)&&Ae(`The parameter "${t}" is incompatible with toasts`)},Xs=t=>{$n(t)&&zs(t,$n(t))},Zs=t=>{!t.backdrop&&t.allowOutsideClick&&Ae('"allowOutsideClick" parameter requires `backdrop` parameter to be set to `true`');for(const e in t)Js(e),t.toast&&Ys(e),Xs(e)},Qs="swal2-",Yr=t=>{const e={};for(const n in t)e[t[n]]=Qs+t[n];return e},g=Yr(["container","shown","height-auto","iosfix","popup","modal","no-backdrop","no-transition","toast","toast-shown","show","hide","close","title","html-container","actions","confirm","deny","cancel","default-outline","footer","icon","icon-content","image","input","file","range","select","radio","checkbox","label","textarea","inputerror","input-label","validation-message","progress-steps","active-progress-step","progress-step","progress-step-line","loader","loading","styled","top","top-start","top-end","top-left","top-right","center","center-start","center-end","center-left","center-right","bottom","bottom-start","bottom-end","bottom-left","bottom-right","grow-row","grow-column","grow-fullscreen","rtl","timer-progress-bar","timer-progress-bar-container","scrollbar-measure","icon-success","icon-warning","icon-info","icon-question","icon-error"]),xt=Yr(["success","warning","info","question","error"]),ye=()=>document.body.querySelector(`.${g.container}`),It=t=>{const e=ye();return e?e.querySelector(t):null},Re=t=>It(`.${t}`),oe=()=>Re(g.popup),Pt=()=>Re(g.icon),Xr=()=>Re(g.title),rn=()=>Re(g["html-container"]),Zr=()=>Re(g.image),Qr=()=>Re(g["progress-steps"]),on=()=>Re(g["validation-message"]),Ue=()=>It(`.${g.actions} .${g.confirm}`),et=()=>It(`.${g.actions} .${g.deny}`),ea=()=>Re(g["input-label"]),pt=()=>It(`.${g.loader}`),it=()=>It(`.${g.actions} .${g.cancel}`),Tt=()=>Re(g.actions),eo=()=>Re(g.footer),sn=()=>Re(g["timer-progress-bar"]),Nn=()=>Re(g.close),ta=`
1
+ (function(V,a){typeof exports=="object"&&typeof module<"u"?a(exports,require("vue"),require("vue-router")):typeof define=="function"&&define.amd?define(["exports","vue","vue-router"],a):(V=typeof globalThis<"u"?globalThis:V||self,a((V.sf=V.sf||{},V.sf.prefeiturasp=V.sf.prefeiturasp||{},V.sf.prefeiturasp.vuecomponents={}),V.Vue,V.VueRouter))})(this,function(V,a,We){"use strict";var $p=Object.defineProperty;var Lp=(V,a,We)=>a in V?$p(V,a,{enumerable:!0,configurable:!0,writable:!0,value:We}):V[a]=We;var Ce=(V,a,We)=>(Lp(V,typeof a!="symbol"?a+"":a,We),We);class gs{constructor(){Ce(this,"_visible",a.ref(!1))}get IsVisible(){return this._visible.value===!0}Toggle(){this._visible.value=!this._visible.value}Close(){this._visible.value=!1}Open(){this._visible.value=!0}}const ys=new gs,vn=()=>ys;class De{constructor(e){Ce(this,"retorno");this.retorno=e??""}Concat(e){return e&&e.trim().length&&(this.retorno+=` ${e}`),this}AddClass(e,n=!0){return n?this.Concat(e):this}Build(){return this.retorno.trim()}}function $r(t=[]){let e="body *:not(style)";for(const n of t)e+=`, ${n}`;return Math.max(...Array.from(document.querySelectorAll(e)).map(n=>{const r=getComputedStyle(n).zIndex;return+r==+r?+r:0}))}let bs=(t=21)=>crypto.getRandomValues(new Uint8Array(t)).reduce((e,n)=>(n&=63,n<36?e+=n.toString(36):n<62?e+=(n-26).toString(36).toUpperCase():n>62?e+="-":e+="_",e),"");const wn=(t,e)=>{const n=t.__vccOpts||t;for(const[r,o]of e)n[r]=o;return n},vs={},ws={class:"sf-loading-circle"},Es=[a.createElementVNode("div",null,[a.createElementVNode("svg",{viewBox:"25 25 50 50"},[a.createElementVNode("circle",{cx:"50",cy:"50",r:"20",fill:"none","stroke-width":"4","stroke-miterlimit":"10"})])],-1)];function Ss(t,e){return a.openBlock(),a.createElementBlock("div",ws,Es)}const Cs=wn(vs,[["render",Ss]]),En=a.defineComponent({__name:"Tooltip",props:{text:{}},setup(t){const e=t;class n{constructor(){Ce(this,"zIndex");Ce(this,"wrapper");Ce(this,"inner");this.zIndex=$r()+1,this.Render()}Render(){this.wrapper=document.createElement("div"),this.wrapper.classList.add("sf-tooltip-wrapper"),this.wrapper.style.zIndex=`${this.zIndex??0}`,this.inner=document.createElement("div"),this.inner.classList.add("sf-tooltip-inner"),this.wrapper.appendChild(this.inner)}Show(i){this.inner.textContent=e.text;const s=i.target;document.body.appendChild(this.wrapper),this.Position(s.getBoundingClientRect()),this.wrapper.classList.add("visible")}Hide(){this.wrapper.classList.remove("visible"),this.wrapper.remove()}Position(i){const c=i.top,l=i.bottom,u=i.left,d=i.right,f=i.width/2-15,g=this.wrapper;g.style.top=`${l+10}px`,g.style.left=`${u}px`,g.style.marginLeft=`${f}px`,this.OutOfBottom()&&(g.style.top=`${c-g.clientHeight-10}px`,g.classList.add("top")),this.OutOfRight()&&(g.style.left=`${d-g.clientWidth}px`,g.style.marginLeft=`-${f}px`,g.classList.add("left"))}OutOfBottom(){return this.wrapper.getBoundingClientRect().bottom>(window.innerHeight||document.documentElement.clientHeight)}OutOfRight(){return this.wrapper.getBoundingClientRect().right>(window.innerWidth||document.documentElement.clientWidth)}}const r=new n;return a.onBeforeUnmount(()=>{r.Hide()}),(o,i)=>(a.openBlock(),a.createElementBlock("div",{class:"sf-tooltip-anchor",onMouseenter:i[0]||(i[0]=(...s)=>a.unref(r).Show&&a.unref(r).Show(...s)),onMouseleave:i[1]||(i[1]=(...s)=>a.unref(r).Hide&&a.unref(r).Hide(...s)),onMousedown:i[2]||(i[2]=(...s)=>a.unref(r).Hide&&a.unref(r).Hide(...s))},[a.renderSlot(o.$slots,"default")],32))}}),As=["disabled","tabindex"],_s=["data-color"],Re=wn(a.defineComponent({__name:"Icon",props:{icon:{},visible:{type:Boolean,default:!0},class:{default:""},style:{default:""},disabled:{type:Boolean},loading:{type:Boolean},button:{type:Boolean},size:{default:"md"},dot:{type:Boolean},dotColor:{default:"error"},filled:{type:Boolean},buttonProps:{},tooltip:{}},setup(t){const e=t,n=a.computed(()=>e.tooltip?En:"div"),r=a.computed(()=>e.tooltip?"":"display-content"),o=a.computed(()=>new De(`${e.class} sf-icon`).AddClass("sf-component-loading",e.loading).AddClass("sf-component-disabled",e.disabled).AddClass("sf-icon-button",e.button).AddClass("sf-icon-small",e.size==="sm").AddClass("sf-icon-medium",e.size==="md").AddClass("sf-icon-large",e.size==="lg").AddClass("sf-ripple",e.button===!0).Build());return(i,s)=>(a.openBlock(),a.createBlock(a.resolveDynamicComponent(n.value),{text:e.tooltip,class:a.normalizeClass(r.value)},{default:a.withCtx(()=>[e.visible?(a.openBlock(),a.createElementBlock("div",{key:0,style:a.normalizeStyle(e.style),class:a.normalizeClass(o.value)},[a.createElementVNode("button",a.mergeProps({class:["material-symbols-outlined",{"icon-filled":!!e.filled}],disabled:e.disabled||e.loading},e.buttonProps,{tabindex:e.button?void 0:-1}),[e.loading?(a.openBlock(),a.createBlock(Cs,{key:0})):(a.openBlock(),a.createElementBlock(a.Fragment,{key:1},[a.createTextVNode(a.toDisplayString(e.icon),1)],64))],16,As),e.dot?(a.openBlock(),a.createElementBlock("span",{key:0,"data-color":e.dotColor},null,8,_s)):a.createCommentVNode("",!0)],6)):a.createCommentVNode("",!0)]),_:1},8,["text","class"]))}}),[["__scopeId","data-v-5de5e7b2"]]),xs=["id","onClick"],Ps={class:"sf-drawer-header"},Is={class:"sf-drawer-title"},Ts={class:"sf-drawer-content"},Os={key:0,class:"sf-drawer-footer"},Lr=a.defineComponent({__name:"Drawer",props:{visible:{type:Boolean,default:!1},position:{default:"left"},style:{}},emits:["update:visible","open","before-close"],setup(t,{emit:e}){const n=t,r=e,o=a.useSlots(),i=a.ref(n.visible),s=a.ref(!1),c=a.ref(0),l=bs();function u(){i.value=!1}function d(w){(w.key==="Escape"||w.code==="Escape")&&u()}function f(){r("open"),window.document.addEventListener("keydown",d,!0)}function g(w){c.value=$r(),w.style.zIndex=`${c.value}`}function b(w){var I;r("before-close"),(I=w==null?void 0:w.parentElement)==null||I.classList.add("sf-mask-overlay-leave")}function v(){window.document.removeEventListener("keydown",d,!0),s.value=!1}function S(){return new De("sf-mask sf-mask-overlay").AddClass("right",n.position==="right").AddClass("bottom",n.position==="bottom").AddClass("full",n.position==="full").AddClass("sf-mask-overlay-enter",n.visible===!0).Build()}return a.watch(()=>n.visible,w=>{i.value=w}),a.watch(()=>i.value,w=>{r("update:visible",w),w&&(s.value=!0)}),(w,I)=>(a.openBlock(),a.createBlock(a.Teleport,{to:"body"},[s.value?(a.openBlock(),a.createElementBlock("div",{key:0,id:a.unref(l),class:a.normalizeClass(S()),style:a.normalizeStyle({zIndex:c.value-1}),onClick:a.withModifiers(u,["stop"])},[a.createVNode(a.Transition,{name:"sf-drawer",appear:"",onBeforeEnter:g,onEnter:f,onBeforeLeave:b,onAfterLeave:v},{default:a.withCtx(()=>[i.value?(a.openBlock(),a.createElementBlock("div",{key:0,class:a.normalizeClass(["sf-drawer",{"sf-drawer-with-footer":!!a.unref(o).footer}]),style:a.normalizeStyle(n.style),role:"dialog",onClick:I[0]||(I[0]=a.withModifiers(M=>w.void,["stop"]))},[a.createElementVNode("div",Ps,[a.createElementVNode("span",Is,[a.renderSlot(w.$slots,"title")]),a.createVNode(Re,{button:!0,icon:"close",onClick:a.withModifiers(u,["stop"])},null,8,["onClick"])]),a.createElementVNode("div",Ts,[a.renderSlot(w.$slots,"default")]),a.unref(o).footer?(a.openBlock(),a.createElementBlock("div",Os,[a.renderSlot(w.$slots,"footer")])):a.createCommentVNode("",!0)],6)):a.createCommentVNode("",!0)]),_:3})],14,xs)):a.createCommentVNode("",!0)]))}}),ks=["id","name","disabled","data-color","form","type"],Bs={class:"sf-button-label"},Fr=a.defineComponent({__name:"Button",props:{icon:{},visible:{type:Boolean,default:!0},class:{},style:{},disabled:{type:Boolean},loading:{type:Boolean},color:{default:"primary"},size:{default:"md"},variant:{default:"filled"},autofocus:{type:Boolean},form:{},name:{},id:{},type:{default:"button"},value:{}},setup(t){const e=t;function n(){return new De(`${e.class??""} sf-button`).AddClass("sf-component-loading",e.loading).AddClass("sf-component-disabled",e.disabled).AddClass("sf-button-small",e.size==="sm").AddClass("sf-button-medium",e.size==="md").AddClass("sf-button-large",e.size==="lg").AddClass("sf-button-filled",e.variant==="filled").AddClass("sf-button-text",e.variant==="text").AddClass("sf-button-outlined",e.variant==="outlined").AddClass("sf-button-with-icon",!!e.icon).AddClass("sf-ripple").Build()}return(r,o)=>e.visible?(a.openBlock(),a.createElementBlock("button",{key:0,id:e.id,name:e.name,class:a.normalizeClass(n()),style:a.normalizeStyle(e.style),disabled:e.disabled||e.loading,"data-color":e.color,form:e.form,type:e.type},[e.icon?(a.openBlock(),a.createBlock(Re,{key:0,filled:e.variant==="filled",icon:e.icon,loading:e.loading,size:e.size,"button-props":{tabindex:-1}},null,8,["filled","icon","loading","size"])):e.loading?(a.openBlock(),a.createBlock(Re,{key:1,loading:!0,size:e.size,"button-props":{tabindex:-1}},null,8,["size"])):a.createCommentVNode("",!0),a.createElementVNode("span",Bs,[a.renderSlot(r.$slots,"default")])],14,ks)):a.createCommentVNode("",!0)}}),Nr="SweetAlert2:",$s=t=>{const e=[];for(let n=0;n<t.length;n++)e.indexOf(t[n])===-1&&e.push(t[n]);return e},Sn=t=>t.charAt(0).toUpperCase()+t.slice(1),ge=t=>Array.prototype.slice.call(t),de=t=>{console.warn(`${Nr} ${typeof t=="object"?t.join(" "):t}`)},Ke=t=>{console.error(`${Nr} ${t}`)},Dr=[],Ls=t=>{Dr.includes(t)||(Dr.push(t),de(t))},Fs=(t,e)=>{Ls(`"${t}" is deprecated and will be removed in the next major release. Please use "${e}" instead.`)},Wt=t=>typeof t=="function"?t():t,Cn=t=>t&&typeof t.toPromise=="function",ht=t=>Cn(t)?t.toPromise():Promise.resolve(t),An=t=>t&&Promise.resolve(t)===t,et={title:"",titleText:"",text:"",html:"",footer:"",icon:void 0,iconColor:void 0,iconHtml:void 0,template:void 0,toast:!1,showClass:{popup:"swal2-show",backdrop:"swal2-backdrop-show",icon:"swal2-icon-show"},hideClass:{popup:"swal2-hide",backdrop:"swal2-backdrop-hide",icon:"swal2-icon-hide"},customClass:{},target:"body",color:void 0,backdrop:!0,heightAuto:!0,allowOutsideClick:!0,allowEscapeKey:!0,allowEnterKey:!0,stopKeydownPropagation:!0,keydownListenerCapture:!1,showConfirmButton:!0,showDenyButton:!1,showCancelButton:!1,preConfirm:void 0,preDeny:void 0,confirmButtonText:"OK",confirmButtonAriaLabel:"",confirmButtonColor:void 0,denyButtonText:"No",denyButtonAriaLabel:"",denyButtonColor:void 0,cancelButtonText:"Cancel",cancelButtonAriaLabel:"",cancelButtonColor:void 0,buttonsStyling:!0,reverseButtons:!1,focusConfirm:!0,focusDeny:!1,focusCancel:!1,returnFocus:!0,showCloseButton:!1,closeButtonHtml:"&times;",closeButtonAriaLabel:"Close this dialog",loaderHtml:"",showLoaderOnConfirm:!1,showLoaderOnDeny:!1,imageUrl:void 0,imageWidth:void 0,imageHeight:void 0,imageAlt:"",timer:void 0,timerProgressBar:!1,width:void 0,padding:void 0,background:void 0,input:void 0,inputPlaceholder:"",inputLabel:"",inputValue:"",inputOptions:{},inputAutoTrim:!0,inputAttributes:{},inputValidator:void 0,returnInputValueOnDeny:!1,validationMessage:void 0,grow:!1,position:"center",progressSteps:[],currentProgressStep:void 0,progressStepsDistance:void 0,willOpen:void 0,didOpen:void 0,didRender:void 0,willClose:void 0,didClose:void 0,didDestroy:void 0,scrollbarPadding:!0},Ns=["allowEscapeKey","allowOutsideClick","background","buttonsStyling","cancelButtonAriaLabel","cancelButtonColor","cancelButtonText","closeButtonAriaLabel","closeButtonHtml","color","confirmButtonAriaLabel","confirmButtonColor","confirmButtonText","currentProgressStep","customClass","denyButtonAriaLabel","denyButtonColor","denyButtonText","didClose","didDestroy","footer","hideClass","html","icon","iconColor","iconHtml","imageAlt","imageHeight","imageUrl","imageWidth","preConfirm","preDeny","progressSteps","returnFocus","reverseButtons","showCancelButton","showCloseButton","showConfirmButton","showDenyButton","text","title","titleText","willClose"],Ds={},Rs=["allowOutsideClick","allowEnterKey","backdrop","focusConfirm","focusDeny","focusCancel","returnFocus","heightAuto","keydownListenerCapture"],Rr=t=>Object.prototype.hasOwnProperty.call(et,t),Mr=t=>Ns.indexOf(t)!==-1,_n=t=>Ds[t],Ms=t=>{Rr(t)||de(`Unknown parameter "${t}"`)},Hs=t=>{Rs.includes(t)&&de(`The parameter "${t}" is incompatible with toasts`)},js=t=>{_n(t)&&Fs(t,_n(t))},Vs=t=>{!t.backdrop&&t.allowOutsideClick&&de('"allowOutsideClick" parameter requires `backdrop` parameter to be set to `true`');for(const e in t)Ms(e),t.toast&&Hs(e),js(e)},Us="swal2-",Hr=t=>{const e={};for(const n in t)e[t[n]]=Us+t[n];return e},m=Hr(["container","shown","height-auto","iosfix","popup","modal","no-backdrop","no-transition","toast","toast-shown","show","hide","close","title","html-container","actions","confirm","deny","cancel","default-outline","footer","icon","icon-content","image","input","file","range","select","radio","checkbox","label","textarea","inputerror","input-label","validation-message","progress-steps","active-progress-step","progress-step","progress-step-line","loader","loading","styled","top","top-start","top-end","top-left","top-right","center","center-start","center-end","center-left","center-right","bottom","bottom-start","bottom-end","bottom-left","bottom-right","grow-row","grow-column","grow-fullscreen","rtl","timer-progress-bar","timer-progress-bar-container","scrollbar-measure","icon-success","icon-warning","icon-info","icon-question","icon-error"]),gt=Hr(["success","warning","info","question","error"]),re=()=>document.body.querySelector(`.${m.container}`),yt=t=>{const e=re();return e?e.querySelector(t):null},we=t=>yt(`.${t}`),z=()=>we(m.popup),bt=()=>we(m.icon),jr=()=>we(m.title),Kt=()=>we(m["html-container"]),Vr=()=>we(m.image),Ur=()=>we(m["progress-steps"]),zt=()=>we(m["validation-message"]),Ae=()=>yt(`.${m.actions} .${m.confirm}`),Me=()=>yt(`.${m.actions} .${m.deny}`),Ws=()=>we(m["input-label"]),tt=()=>yt(`.${m.loader}`),ze=()=>yt(`.${m.actions} .${m.cancel}`),vt=()=>we(m.actions),Wr=()=>we(m.footer),qt=()=>we(m["timer-progress-bar"]),xn=()=>we(m.close),Ks=`
2
2
  a[href],
3
3
  area[href],
4
4
  input:not([disabled]),
@@ -13,59 +13,59 @@
13
13
  audio[controls],
14
14
  video[controls],
15
15
  summary
16
- `,Dn=()=>{const t=Oe(oe().querySelectorAll('[tabindex]:not([tabindex="-1"]):not([tabindex="0"])')).sort((n,r)=>{const o=parseInt(n.getAttribute("tabindex")),i=parseInt(r.getAttribute("tabindex"));return o>i?1:o<i?-1:0}),e=Oe(oe().querySelectorAll(ta)).filter(n=>n.getAttribute("tabindex")!=="-1");return Vs(t.concat(e)).filter(n=>Le(n))},Mn=()=>Ge(document.body,g.shown)&&!Ge(document.body,g["toast-shown"])&&!Ge(document.body,g["no-backdrop"]),an=()=>oe()&&Ge(oe(),g.toast),na=()=>oe().hasAttribute("data-loading"),mt={previousBodyPadding:null},be=(t,e)=>{if(t.textContent="",e){const r=new DOMParser().parseFromString(e,"text/html");Oe(r.querySelector("head").childNodes).forEach(o=>{t.appendChild(o)}),Oe(r.querySelector("body").childNodes).forEach(o=>{t.appendChild(o)})}},Ge=(t,e)=>{if(!e)return!1;const n=e.split(/\s+/);for(let r=0;r<n.length;r++)if(!t.classList.contains(n[r]))return!1;return!0},ra=(t,e)=>{Oe(t.classList).forEach(n=>{!Object.values(g).includes(n)&&!Object.values(xt).includes(n)&&!Object.values(e.showClass).includes(n)&&t.classList.remove(n)})},$e=(t,e,n)=>{if(ra(t,e),e.customClass&&e.customClass[n]){if(typeof e.customClass[n]!="string"&&!e.customClass[n].forEach)return Ae(`Invalid type of customClass.${n}! Expected string or iterable object, got "${typeof e.customClass[n]}"`);te(t,e.customClass[n])}},Un=(t,e)=>{if(!e)return null;switch(e){case"select":case"textarea":case"file":return t.querySelector(`.${g.popup} > .${g[e]}`);case"checkbox":return t.querySelector(`.${g.popup} > .${g.checkbox} input`);case"radio":return t.querySelector(`.${g.popup} > .${g.radio} input:checked`)||t.querySelector(`.${g.popup} > .${g.radio} input:first-child`);case"range":return t.querySelector(`.${g.popup} > .${g.range} input`);default:return t.querySelector(`.${g.popup} > .${g.input}`)}},to=t=>{if(t.focus(),t.type!=="file"){const e=t.value;t.value="",t.value=e}},no=(t,e,n)=>{!t||!e||(typeof e=="string"&&(e=e.split(/\s+/).filter(Boolean)),e.forEach(r=>{Array.isArray(t)?t.forEach(o=>{n?o.classList.add(r):o.classList.remove(r)}):n?t.classList.add(r):t.classList.remove(r)}))},te=(t,e)=>{no(t,e,!0)},Ve=(t,e)=>{no(t,e,!1)},tt=(t,e)=>{const n=Oe(t.childNodes);for(let r=0;r<n.length;r++)if(Ge(n[r],e))return n[r]},Ot=(t,e,n)=>{n===`${parseInt(n)}`&&(n=parseInt(n)),n||parseInt(n)===0?t.style[e]=typeof n=="number"?`${n}px`:n:t.style.removeProperty(e)},he=(t,e="flex")=>{t.style.display=e},ve=t=>{t.style.display="none"},ro=(t,e,n,r)=>{const o=t.querySelector(e);o&&(o.style[n]=r)},ln=(t,e,n)=>{e?he(t,n):ve(t)},Le=t=>!!(t&&(t.offsetWidth||t.offsetHeight||t.getClientRects().length)),oa=()=>!Le(Ue())&&!Le(et())&&!Le(it()),oo=t=>t.scrollHeight>t.clientHeight,io=t=>{const e=window.getComputedStyle(t),n=parseFloat(e.getPropertyValue("animation-duration")||"0"),r=parseFloat(e.getPropertyValue("transition-duration")||"0");return n>0||r>0},Hn=(t,e=!1)=>{const n=sn();Le(n)&&(e&&(n.style.transition="none",n.style.width="100%"),setTimeout(()=>{n.style.transition=`width ${t/1e3}s linear`,n.style.width="0%"},10))},ia=()=>{const t=sn(),e=parseInt(window.getComputedStyle(t).width);t.style.removeProperty("transition"),t.style.width="100%";const n=parseInt(window.getComputedStyle(t).width),r=e/n*100;t.style.removeProperty("transition"),t.style.width=`${r}%`},so=()=>typeof window>"u"||typeof document>"u",sa=100,J={},aa=()=>{J.previousActiveElement&&J.previousActiveElement.focus?(J.previousActiveElement.focus(),J.previousActiveElement=null):document.body&&document.body.focus()},la=t=>new Promise(e=>{if(!t)return e();const n=window.scrollX,r=window.scrollY;J.restoreFocusTimeout=setTimeout(()=>{aa(),e()},sa),window.scrollTo(n,r)}),ca=`
17
- <div aria-labelledby="${g.title}" aria-describedby="${g["html-container"]}" class="${g.popup}" tabindex="-1">
18
- <button type="button" class="${g.close}"></button>
19
- <ul class="${g["progress-steps"]}"></ul>
20
- <div class="${g.icon}"></div>
21
- <img class="${g.image}" />
22
- <h2 class="${g.title}" id="${g.title}"></h2>
23
- <div class="${g["html-container"]}" id="${g["html-container"]}"></div>
24
- <input class="${g.input}" />
25
- <input type="file" class="${g.file}" />
26
- <div class="${g.range}">
16
+ `,Pn=()=>{const t=ge(z().querySelectorAll('[tabindex]:not([tabindex="-1"]):not([tabindex="0"])')).sort((n,r)=>{const o=parseInt(n.getAttribute("tabindex")),i=parseInt(r.getAttribute("tabindex"));return o>i?1:o<i?-1:0}),e=ge(z().querySelectorAll(Ks)).filter(n=>n.getAttribute("tabindex")!=="-1");return $s(t.concat(e)).filter(n=>ye(n))},In=()=>Be(document.body,m.shown)&&!Be(document.body,m["toast-shown"])&&!Be(document.body,m["no-backdrop"]),Gt=()=>z()&&Be(z(),m.toast),zs=()=>z().hasAttribute("data-loading"),nt={previousBodyPadding:null},oe=(t,e)=>{if(t.textContent="",e){const r=new DOMParser().parseFromString(e,"text/html");ge(r.querySelector("head").childNodes).forEach(o=>{t.appendChild(o)}),ge(r.querySelector("body").childNodes).forEach(o=>{t.appendChild(o)})}},Be=(t,e)=>{if(!e)return!1;const n=e.split(/\s+/);for(let r=0;r<n.length;r++)if(!t.classList.contains(n[r]))return!1;return!0},qs=(t,e)=>{ge(t.classList).forEach(n=>{!Object.values(m).includes(n)&&!Object.values(gt).includes(n)&&!Object.values(e.showClass).includes(n)&&t.classList.remove(n)})},Ee=(t,e,n)=>{if(qs(t,e),e.customClass&&e.customClass[n]){if(typeof e.customClass[n]!="string"&&!e.customClass[n].forEach)return de(`Invalid type of customClass.${n}! Expected string or iterable object, got "${typeof e.customClass[n]}"`);U(t,e.customClass[n])}},Tn=(t,e)=>{if(!e)return null;switch(e){case"select":case"textarea":case"file":return t.querySelector(`.${m.popup} > .${m[e]}`);case"checkbox":return t.querySelector(`.${m.popup} > .${m.checkbox} input`);case"radio":return t.querySelector(`.${m.popup} > .${m.radio} input:checked`)||t.querySelector(`.${m.popup} > .${m.radio} input:first-child`);case"range":return t.querySelector(`.${m.popup} > .${m.range} input`);default:return t.querySelector(`.${m.popup} > .${m.input}`)}},Kr=t=>{if(t.focus(),t.type!=="file"){const e=t.value;t.value="",t.value=e}},zr=(t,e,n)=>{!t||!e||(typeof e=="string"&&(e=e.split(/\s+/).filter(Boolean)),e.forEach(r=>{Array.isArray(t)?t.forEach(o=>{n?o.classList.add(r):o.classList.remove(r)}):n?t.classList.add(r):t.classList.remove(r)}))},U=(t,e)=>{zr(t,e,!0)},Te=(t,e)=>{zr(t,e,!1)},He=(t,e)=>{const n=ge(t.childNodes);for(let r=0;r<n.length;r++)if(Be(n[r],e))return n[r]},wt=(t,e,n)=>{n===`${parseInt(n)}`&&(n=parseInt(n)),n||parseInt(n)===0?t.style[e]=typeof n=="number"?`${n}px`:n:t.style.removeProperty(e)},te=(t,e="flex")=>{t.style.display=e},ie=t=>{t.style.display="none"},qr=(t,e,n,r)=>{const o=t.querySelector(e);o&&(o.style[n]=r)},Jt=(t,e,n)=>{e?te(t,n):ie(t)},ye=t=>!!(t&&(t.offsetWidth||t.offsetHeight||t.getClientRects().length)),Gs=()=>!ye(Ae())&&!ye(Me())&&!ye(ze()),Gr=t=>t.scrollHeight>t.clientHeight,Jr=t=>{const e=window.getComputedStyle(t),n=parseFloat(e.getPropertyValue("animation-duration")||"0"),r=parseFloat(e.getPropertyValue("transition-duration")||"0");return n>0||r>0},On=(t,e=!1)=>{const n=qt();ye(n)&&(e&&(n.style.transition="none",n.style.width="100%"),setTimeout(()=>{n.style.transition=`width ${t/1e3}s linear`,n.style.width="0%"},10))},Js=()=>{const t=qt(),e=parseInt(window.getComputedStyle(t).width);t.style.removeProperty("transition"),t.style.width="100%";const n=parseInt(window.getComputedStyle(t).width),r=e/n*100;t.style.removeProperty("transition"),t.style.width=`${r}%`},Yr=()=>typeof window>"u"||typeof document>"u",Ys=100,N={},Xs=()=>{N.previousActiveElement&&N.previousActiveElement.focus?(N.previousActiveElement.focus(),N.previousActiveElement=null):document.body&&document.body.focus()},Zs=t=>new Promise(e=>{if(!t)return e();const n=window.scrollX,r=window.scrollY;N.restoreFocusTimeout=setTimeout(()=>{Xs(),e()},Ys),window.scrollTo(n,r)}),Qs=`
17
+ <div aria-labelledby="${m.title}" aria-describedby="${m["html-container"]}" class="${m.popup}" tabindex="-1">
18
+ <button type="button" class="${m.close}"></button>
19
+ <ul class="${m["progress-steps"]}"></ul>
20
+ <div class="${m.icon}"></div>
21
+ <img class="${m.image}" />
22
+ <h2 class="${m.title}" id="${m.title}"></h2>
23
+ <div class="${m["html-container"]}" id="${m["html-container"]}"></div>
24
+ <input class="${m.input}" />
25
+ <input type="file" class="${m.file}" />
26
+ <div class="${m.range}">
27
27
  <input type="range" />
28
28
  <output></output>
29
29
  </div>
30
- <select class="${g.select}"></select>
31
- <div class="${g.radio}"></div>
32
- <label for="${g.checkbox}" class="${g.checkbox}">
30
+ <select class="${m.select}"></select>
31
+ <div class="${m.radio}"></div>
32
+ <label for="${m.checkbox}" class="${m.checkbox}">
33
33
  <input type="checkbox" />
34
- <span class="${g.label}"></span>
34
+ <span class="${m.label}"></span>
35
35
  </label>
36
- <textarea class="${g.textarea}"></textarea>
37
- <div class="${g["validation-message"]}" id="${g["validation-message"]}"></div>
38
- <div class="${g.actions}">
39
- <div class="${g.loader}"></div>
40
- <button type="button" class="${g.confirm}"></button>
41
- <button type="button" class="${g.deny}"></button>
42
- <button type="button" class="${g.cancel}"></button>
36
+ <textarea class="${m.textarea}"></textarea>
37
+ <div class="${m["validation-message"]}" id="${m["validation-message"]}"></div>
38
+ <div class="${m.actions}">
39
+ <div class="${m.loader}"></div>
40
+ <button type="button" class="${m.confirm}"></button>
41
+ <button type="button" class="${m.deny}"></button>
42
+ <button type="button" class="${m.cancel}"></button>
43
43
  </div>
44
- <div class="${g.footer}"></div>
45
- <div class="${g["timer-progress-bar-container"]}">
46
- <div class="${g["timer-progress-bar"]}"></div>
44
+ <div class="${m.footer}"></div>
45
+ <div class="${m["timer-progress-bar-container"]}">
46
+ <div class="${m["timer-progress-bar"]}"></div>
47
47
  </div>
48
48
  </div>
49
- `.replace(/(^|\n)\s*/g,""),ua=()=>{const t=ye();return t?(t.remove(),Ve([document.documentElement,document.body],[g["no-backdrop"],g["toast-shown"],g["has-column"]]),!0):!1},st=()=>{J.currentInstance.resetValidationMessage()},da=()=>{const t=oe(),e=tt(t,g.input),n=tt(t,g.file),r=t.querySelector(`.${g.range} input`),o=t.querySelector(`.${g.range} output`),i=tt(t,g.select),s=t.querySelector(`.${g.checkbox} input`),c=tt(t,g.textarea);e.oninput=st,n.onchange=st,i.onchange=st,s.onchange=st,c.oninput=st,r.oninput=()=>{st(),o.value=r.value},r.onchange=()=>{st(),r.nextSibling.value=r.value}},fa=t=>typeof t=="string"?document.querySelector(t):t,pa=t=>{const e=oe();e.setAttribute("role",t.toast?"alert":"dialog"),e.setAttribute("aria-live",t.toast?"polite":"assertive"),t.toast||e.setAttribute("aria-modal","true")},ma=t=>{window.getComputedStyle(t).direction==="rtl"&&te(ye(),g.rtl)},ha=t=>{const e=ua();if(so()){ot("SweetAlert2 requires document to initialize");return}const n=document.createElement("div");n.className=g.container,e&&te(n,g["no-transition"]),be(n,ca);const r=fa(t.target);r.appendChild(n),pa(t),ma(r),da()},jn=(t,e)=>{t instanceof HTMLElement?e.appendChild(t):typeof t=="object"?ga(t,e):t&&be(e,t)},ga=(t,e)=>{t.jquery?ya(e,t):be(e,t.toString())},ya=(t,e)=>{if(t.textContent="",0 in e)for(let n=0;n in e;n++)t.appendChild(e[n].cloneNode(!0));else t.appendChild(e.cloneNode(!0))},Lt=(()=>{if(so())return!1;const t=document.createElement("div"),e={WebkitAnimation:"webkitAnimationEnd",animation:"animationend"};for(const n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&typeof t.style[n]<"u")return e[n];return!1})(),ba=()=>{const t=document.createElement("div");t.className=g["scrollbar-measure"],document.body.appendChild(t);const e=t.getBoundingClientRect().width-t.clientWidth;return document.body.removeChild(t),e},va=(t,e)=>{const n=Tt(),r=pt();!e.showConfirmButton&&!e.showDenyButton&&!e.showCancelButton?ve(n):he(n),$e(n,e,"actions"),wa(n,r,e),be(r,e.loaderHtml),$e(r,e,"loader")};function wa(t,e,n){const r=Ue(),o=et(),i=it();Vn(r,"confirm",n),Vn(o,"deny",n),Vn(i,"cancel",n),Ea(r,o,i,n),n.reverseButtons&&(n.toast?(t.insertBefore(i,r),t.insertBefore(o,r)):(t.insertBefore(i,e),t.insertBefore(o,e),t.insertBefore(r,e)))}function Ea(t,e,n,r){if(!r.buttonsStyling)return Ve([t,e,n],g.styled);te([t,e,n],g.styled),r.confirmButtonColor&&(t.style.backgroundColor=r.confirmButtonColor,te(t,g["default-outline"])),r.denyButtonColor&&(e.style.backgroundColor=r.denyButtonColor,te(e,g["default-outline"])),r.cancelButtonColor&&(n.style.backgroundColor=r.cancelButtonColor,te(n,g["default-outline"]))}function Vn(t,e,n){ln(t,n[`show${Bn(e)}Button`],"inline-block"),be(t,n[`${e}ButtonText`]),t.setAttribute("aria-label",n[`${e}ButtonAriaLabel`]),t.className=g[e],$e(t,n,`${e}Button`),te(t,n[`${e}ButtonClass`])}function Sa(t,e){typeof e=="string"?t.style.background=e:e||te([document.documentElement,document.body],g["no-backdrop"])}function Ca(t,e){e in g?te(t,g[e]):(Ae('The "position" parameter is not valid, defaulting to "center"'),te(t,g.center))}function _a(t,e){if(e&&typeof e=="string"){const n=`grow-${e}`;n in g&&te(t,g[n])}}const Aa=(t,e)=>{const n=ye();n&&(Sa(n,e.backdrop),Ca(n,e.position),_a(n,e.grow),$e(n,e,"container"))},Y={awaitingPromise:new WeakMap,promise:new WeakMap,innerParams:new WeakMap,domCache:new WeakMap},ka=["input","file","range","select","radio","checkbox","textarea"],xa=(t,e)=>{const n=oe(),r=Y.innerParams.get(t),o=!r||e.input!==r.input;ka.forEach(i=>{const s=g[i],c=tt(n,s);Ta(i,e.inputAttributes),c.className=s,o&&ve(c)}),e.input&&(o&&Ia(e),Oa(e))},Ia=t=>{if(!ke[t.input])return ot(`Unexpected type of input! Expected "text", "email", "password", "number", "tel", "select", "radio", "checkbox", "textarea", "file" or "url", got "${t.input}"`);const e=ao(t.input),n=ke[t.input](e,t);he(n),setTimeout(()=>{to(n)})},Pa=t=>{for(let e=0;e<t.attributes.length;e++){const n=t.attributes[e].name;["type","value","style"].includes(n)||t.removeAttribute(n)}},Ta=(t,e)=>{const n=Un(oe(),t);if(n){Pa(n);for(const r in e)n.setAttribute(r,e[r])}},Oa=t=>{const e=ao(t.input);t.customClass&&te(e,t.customClass.input)},Kn=(t,e)=>{(!t.placeholder||e.inputPlaceholder)&&(t.placeholder=e.inputPlaceholder)},Bt=(t,e,n)=>{if(n.inputLabel){t.id=g.input;const r=document.createElement("label"),o=g["input-label"];r.setAttribute("for",t.id),r.className=o,te(r,n.customClass.inputLabel),r.innerText=n.inputLabel,e.insertAdjacentElement("beforebegin",r)}},ao=t=>{const e=g[t]?g[t]:g.input;return tt(oe(),e)},ke={};ke.text=ke.email=ke.password=ke.number=ke.tel=ke.url=(t,e)=>(typeof e.inputValue=="string"||typeof e.inputValue=="number"?t.value=e.inputValue:Rn(e.inputValue)||Ae(`Unexpected type of inputValue! Expected "string", "number" or "Promise", got "${typeof e.inputValue}"`),Bt(t,t,e),Kn(t,e),t.type=e.input,t),ke.file=(t,e)=>(Bt(t,t,e),Kn(t,e),t),ke.range=(t,e)=>{const n=t.querySelector("input"),r=t.querySelector("output");return n.value=e.inputValue,n.type=e.input,r.value=e.inputValue,Bt(n,t,e),t},ke.select=(t,e)=>{if(t.textContent="",e.inputPlaceholder){const n=document.createElement("option");be(n,e.inputPlaceholder),n.value="",n.disabled=!0,n.selected=!0,t.appendChild(n)}return Bt(t,t,e),t},ke.radio=t=>(t.textContent="",t),ke.checkbox=(t,e)=>{const n=Un(oe(),"checkbox");n.value="1",n.id=g.checkbox,n.checked=!!e.inputValue;const r=t.querySelector("span");return be(r,e.inputPlaceholder),t},ke.textarea=(t,e)=>{t.value=e.inputValue,Kn(t,e),Bt(t,t,e);const n=r=>parseInt(window.getComputedStyle(r).marginLeft)+parseInt(window.getComputedStyle(r).marginRight);return setTimeout(()=>{if("MutationObserver"in window){const r=parseInt(window.getComputedStyle(oe()).width),o=()=>{const i=t.offsetWidth+n(t);i>r?oe().style.width=`${i}px`:oe().style.width=null};new MutationObserver(o).observe(t,{attributes:!0,attributeFilter:["style"]})}}),t};const La=(t,e)=>{const n=rn();$e(n,e,"htmlContainer"),e.html?(jn(e.html,n),he(n,"block")):e.text?(n.textContent=e.text,he(n,"block")):ve(n),xa(t,e)},Ba=(t,e)=>{const n=eo();ln(n,e.footer),e.footer&&jn(e.footer,n),$e(n,e,"footer")},Fa=(t,e)=>{const n=Nn();be(n,e.closeButtonHtml),$e(n,e,"closeButton"),ln(n,e.showCloseButton),n.setAttribute("aria-label",e.closeButtonAriaLabel)},Ra=(t,e)=>{const n=Y.innerParams.get(t),r=Pt();if(n&&e.icon===n.icon){co(r,e),lo(r,e);return}if(!e.icon&&!e.iconHtml)return ve(r);if(e.icon&&Object.keys(xt).indexOf(e.icon)===-1)return ot(`Unknown icon! Expected "success", "error", "warning", "info" or "question", got "${e.icon}"`),ve(r);he(r),co(r,e),lo(r,e),te(r,e.showClass.icon)},lo=(t,e)=>{for(const n in xt)e.icon!==n&&Ve(t,xt[n]);te(t,xt[e.icon]),Ma(t,e),$a(),$e(t,e,"icon")},$a=()=>{const t=oe(),e=window.getComputedStyle(t).getPropertyValue("background-color"),n=t.querySelectorAll("[class^=swal2-success-circular-line], .swal2-success-fix");for(let r=0;r<n.length;r++)n[r].style.backgroundColor=e},Na=`
49
+ `.replace(/(^|\n)\s*/g,""),ea=()=>{const t=re();return t?(t.remove(),Te([document.documentElement,document.body],[m["no-backdrop"],m["toast-shown"],m["has-column"]]),!0):!1},qe=()=>{N.currentInstance.resetValidationMessage()},ta=()=>{const t=z(),e=He(t,m.input),n=He(t,m.file),r=t.querySelector(`.${m.range} input`),o=t.querySelector(`.${m.range} output`),i=He(t,m.select),s=t.querySelector(`.${m.checkbox} input`),c=He(t,m.textarea);e.oninput=qe,n.onchange=qe,i.onchange=qe,s.onchange=qe,c.oninput=qe,r.oninput=()=>{qe(),o.value=r.value},r.onchange=()=>{qe(),r.nextSibling.value=r.value}},na=t=>typeof t=="string"?document.querySelector(t):t,ra=t=>{const e=z();e.setAttribute("role",t.toast?"alert":"dialog"),e.setAttribute("aria-live",t.toast?"polite":"assertive"),t.toast||e.setAttribute("aria-modal","true")},oa=t=>{window.getComputedStyle(t).direction==="rtl"&&U(re(),m.rtl)},ia=t=>{const e=ea();if(Yr()){Ke("SweetAlert2 requires document to initialize");return}const n=document.createElement("div");n.className=m.container,e&&U(n,m["no-transition"]),oe(n,Qs);const r=na(t.target);r.appendChild(n),ra(t),oa(r),ta()},kn=(t,e)=>{t instanceof HTMLElement?e.appendChild(t):typeof t=="object"?sa(t,e):t&&oe(e,t)},sa=(t,e)=>{t.jquery?aa(e,t):oe(e,t.toString())},aa=(t,e)=>{if(t.textContent="",0 in e)for(let n=0;n in e;n++)t.appendChild(e[n].cloneNode(!0));else t.appendChild(e.cloneNode(!0))},Et=(()=>{if(Yr())return!1;const t=document.createElement("div"),e={WebkitAnimation:"webkitAnimationEnd",animation:"animationend"};for(const n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&typeof t.style[n]<"u")return e[n];return!1})(),la=()=>{const t=document.createElement("div");t.className=m["scrollbar-measure"],document.body.appendChild(t);const e=t.getBoundingClientRect().width-t.clientWidth;return document.body.removeChild(t),e},ca=(t,e)=>{const n=vt(),r=tt();!e.showConfirmButton&&!e.showDenyButton&&!e.showCancelButton?ie(n):te(n),Ee(n,e,"actions"),ua(n,r,e),oe(r,e.loaderHtml),Ee(r,e,"loader")};function ua(t,e,n){const r=Ae(),o=Me(),i=ze();Bn(r,"confirm",n),Bn(o,"deny",n),Bn(i,"cancel",n),da(r,o,i,n),n.reverseButtons&&(n.toast?(t.insertBefore(i,r),t.insertBefore(o,r)):(t.insertBefore(i,e),t.insertBefore(o,e),t.insertBefore(r,e)))}function da(t,e,n,r){if(!r.buttonsStyling)return Te([t,e,n],m.styled);U([t,e,n],m.styled),r.confirmButtonColor&&(t.style.backgroundColor=r.confirmButtonColor,U(t,m["default-outline"])),r.denyButtonColor&&(e.style.backgroundColor=r.denyButtonColor,U(e,m["default-outline"])),r.cancelButtonColor&&(n.style.backgroundColor=r.cancelButtonColor,U(n,m["default-outline"]))}function Bn(t,e,n){Jt(t,n[`show${Sn(e)}Button`],"inline-block"),oe(t,n[`${e}ButtonText`]),t.setAttribute("aria-label",n[`${e}ButtonAriaLabel`]),t.className=m[e],Ee(t,n,`${e}Button`),U(t,n[`${e}ButtonClass`])}function fa(t,e){typeof e=="string"?t.style.background=e:e||U([document.documentElement,document.body],m["no-backdrop"])}function pa(t,e){e in m?U(t,m[e]):(de('The "position" parameter is not valid, defaulting to "center"'),U(t,m.center))}function ma(t,e){if(e&&typeof e=="string"){const n=`grow-${e}`;n in m&&U(t,m[n])}}const ha=(t,e)=>{const n=re();n&&(fa(n,e.backdrop),pa(n,e.position),ma(n,e.grow),Ee(n,e,"container"))},R={awaitingPromise:new WeakMap,promise:new WeakMap,innerParams:new WeakMap,domCache:new WeakMap},ga=["input","file","range","select","radio","checkbox","textarea"],ya=(t,e)=>{const n=z(),r=R.innerParams.get(t),o=!r||e.input!==r.input;ga.forEach(i=>{const s=m[i],c=He(n,s);wa(i,e.inputAttributes),c.className=s,o&&ie(c)}),e.input&&(o&&ba(e),Ea(e))},ba=t=>{if(!fe[t.input])return Ke(`Unexpected type of input! Expected "text", "email", "password", "number", "tel", "select", "radio", "checkbox", "textarea", "file" or "url", got "${t.input}"`);const e=Xr(t.input),n=fe[t.input](e,t);te(n),setTimeout(()=>{Kr(n)})},va=t=>{for(let e=0;e<t.attributes.length;e++){const n=t.attributes[e].name;["type","value","style"].includes(n)||t.removeAttribute(n)}},wa=(t,e)=>{const n=Tn(z(),t);if(n){va(n);for(const r in e)n.setAttribute(r,e[r])}},Ea=t=>{const e=Xr(t.input);t.customClass&&U(e,t.customClass.input)},$n=(t,e)=>{(!t.placeholder||e.inputPlaceholder)&&(t.placeholder=e.inputPlaceholder)},St=(t,e,n)=>{if(n.inputLabel){t.id=m.input;const r=document.createElement("label"),o=m["input-label"];r.setAttribute("for",t.id),r.className=o,U(r,n.customClass.inputLabel),r.innerText=n.inputLabel,e.insertAdjacentElement("beforebegin",r)}},Xr=t=>{const e=m[t]?m[t]:m.input;return He(z(),e)},fe={};fe.text=fe.email=fe.password=fe.number=fe.tel=fe.url=(t,e)=>(typeof e.inputValue=="string"||typeof e.inputValue=="number"?t.value=e.inputValue:An(e.inputValue)||de(`Unexpected type of inputValue! Expected "string", "number" or "Promise", got "${typeof e.inputValue}"`),St(t,t,e),$n(t,e),t.type=e.input,t),fe.file=(t,e)=>(St(t,t,e),$n(t,e),t),fe.range=(t,e)=>{const n=t.querySelector("input"),r=t.querySelector("output");return n.value=e.inputValue,n.type=e.input,r.value=e.inputValue,St(n,t,e),t},fe.select=(t,e)=>{if(t.textContent="",e.inputPlaceholder){const n=document.createElement("option");oe(n,e.inputPlaceholder),n.value="",n.disabled=!0,n.selected=!0,t.appendChild(n)}return St(t,t,e),t},fe.radio=t=>(t.textContent="",t),fe.checkbox=(t,e)=>{const n=Tn(z(),"checkbox");n.value="1",n.id=m.checkbox,n.checked=!!e.inputValue;const r=t.querySelector("span");return oe(r,e.inputPlaceholder),t},fe.textarea=(t,e)=>{t.value=e.inputValue,$n(t,e),St(t,t,e);const n=r=>parseInt(window.getComputedStyle(r).marginLeft)+parseInt(window.getComputedStyle(r).marginRight);return setTimeout(()=>{if("MutationObserver"in window){const r=parseInt(window.getComputedStyle(z()).width),o=()=>{const i=t.offsetWidth+n(t);i>r?z().style.width=`${i}px`:z().style.width=null};new MutationObserver(o).observe(t,{attributes:!0,attributeFilter:["style"]})}}),t};const Sa=(t,e)=>{const n=Kt();Ee(n,e,"htmlContainer"),e.html?(kn(e.html,n),te(n,"block")):e.text?(n.textContent=e.text,te(n,"block")):ie(n),ya(t,e)},Ca=(t,e)=>{const n=Wr();Jt(n,e.footer),e.footer&&kn(e.footer,n),Ee(n,e,"footer")},Aa=(t,e)=>{const n=xn();oe(n,e.closeButtonHtml),Ee(n,e,"closeButton"),Jt(n,e.showCloseButton),n.setAttribute("aria-label",e.closeButtonAriaLabel)},_a=(t,e)=>{const n=R.innerParams.get(t),r=bt();if(n&&e.icon===n.icon){Qr(r,e),Zr(r,e);return}if(!e.icon&&!e.iconHtml)return ie(r);if(e.icon&&Object.keys(gt).indexOf(e.icon)===-1)return Ke(`Unknown icon! Expected "success", "error", "warning", "info" or "question", got "${e.icon}"`),ie(r);te(r),Qr(r,e),Zr(r,e),U(r,e.showClass.icon)},Zr=(t,e)=>{for(const n in gt)e.icon!==n&&Te(t,gt[n]);U(t,gt[e.icon]),Ta(t,e),xa(),Ee(t,e,"icon")},xa=()=>{const t=z(),e=window.getComputedStyle(t).getPropertyValue("background-color"),n=t.querySelectorAll("[class^=swal2-success-circular-line], .swal2-success-fix");for(let r=0;r<n.length;r++)n[r].style.backgroundColor=e},Pa=`
50
50
  <div class="swal2-success-circular-line-left"></div>
51
51
  <span class="swal2-success-line-tip"></span> <span class="swal2-success-line-long"></span>
52
52
  <div class="swal2-success-ring"></div> <div class="swal2-success-fix"></div>
53
53
  <div class="swal2-success-circular-line-right"></div>
54
- `,Da=`
54
+ `,Ia=`
55
55
  <span class="swal2-x-mark">
56
56
  <span class="swal2-x-mark-line-left"></span>
57
57
  <span class="swal2-x-mark-line-right"></span>
58
58
  </span>
59
- `,co=(t,e)=>{t.textContent="",e.iconHtml?be(t,uo(e.iconHtml)):e.icon==="success"?be(t,Na):e.icon==="error"?be(t,Da):be(t,uo({question:"?",warning:"!",info:"i"}[e.icon]))},Ma=(t,e)=>{if(e.iconColor){t.style.color=e.iconColor,t.style.borderColor=e.iconColor;for(const n of[".swal2-success-line-tip",".swal2-success-line-long",".swal2-x-mark-line-left",".swal2-x-mark-line-right"])ro(t,n,"backgroundColor",e.iconColor);ro(t,".swal2-success-ring","borderColor",e.iconColor)}},uo=t=>`<div class="${g["icon-content"]}">${t}</div>`,Ua=(t,e)=>{const n=Zr();if(!e.imageUrl)return ve(n);he(n,""),n.setAttribute("src",e.imageUrl),n.setAttribute("alt",e.imageAlt),Ot(n,"width",e.imageWidth),Ot(n,"height",e.imageHeight),n.className=g.image,$e(n,e,"image")},Ha=t=>{const e=document.createElement("li");return te(e,g["progress-step"]),be(e,t),e},ja=t=>{const e=document.createElement("li");return te(e,g["progress-step-line"]),t.progressStepsDistance&&(e.style.width=t.progressStepsDistance),e},Va=(t,e)=>{const n=Qr();if(!e.progressSteps||e.progressSteps.length===0)return ve(n);he(n),n.textContent="",e.currentProgressStep>=e.progressSteps.length&&Ae("Invalid currentProgressStep parameter, it should be less than progressSteps.length (currentProgressStep like JS arrays starts from 0)"),e.progressSteps.forEach((r,o)=>{const i=Ha(r);if(n.appendChild(i),o===e.currentProgressStep&&te(i,g["active-progress-step"]),o!==e.progressSteps.length-1){const s=ja(e);n.appendChild(s)}})},Ka=(t,e)=>{const n=Xr();ln(n,e.title||e.titleText,"block"),e.title&&jn(e.title,n),e.titleText&&(n.innerText=e.titleText),$e(n,e,"title")},za=(t,e)=>{const n=ye(),r=oe();e.toast?(Ot(n,"width",e.width),r.style.width="100%",r.insertBefore(pt(),Pt())):Ot(r,"width",e.width),Ot(r,"padding",e.padding),e.color&&(r.style.color=e.color),e.background&&(r.style.background=e.background),ve(on()),Wa(r,e)},Wa=(t,e)=>{t.className=`${g.popup} ${Le(t)?e.showClass.popup:""}`,e.toast?(te([document.documentElement,document.body],g["toast-shown"]),te(t,g.toast)):te(t,g.modal),$e(t,e,"popup"),typeof e.customClass=="string"&&te(t,e.customClass),e.icon&&te(t,g[`icon-${e.icon}`])},fo=(t,e)=>{za(t,e),Aa(t,e),Va(t,e),Ra(t,e),Ua(t,e),Ka(t,e),Fa(t,e),La(t,e),va(t,e),Ba(t,e),typeof e.didRender=="function"&&e.didRender(oe())},ht=Object.freeze({cancel:"cancel",backdrop:"backdrop",close:"close",esc:"esc",timer:"timer"}),qa=()=>{Oe(document.body.children).forEach(e=>{e===ye()||e.contains(ye())||(e.hasAttribute("aria-hidden")&&e.setAttribute("data-previous-aria-hidden",e.getAttribute("aria-hidden")),e.setAttribute("aria-hidden","true"))})},po=()=>{Oe(document.body.children).forEach(e=>{e.hasAttribute("data-previous-aria-hidden")?(e.setAttribute("aria-hidden",e.getAttribute("data-previous-aria-hidden")),e.removeAttribute("data-previous-aria-hidden")):e.removeAttribute("aria-hidden")})},mo=["swal-title","swal-html","swal-footer"],Ga=t=>{const e=typeof t.template=="string"?document.querySelector(t.template):t.template;if(!e)return{};const n=e.content;return tl(n),Object.assign(Ja(n),Ya(n),Xa(n),Za(n),Qa(n),el(n,mo))},Ja=t=>{const e={};return Oe(t.querySelectorAll("swal-param")).forEach(n=>{at(n,["name","value"]);const r=n.getAttribute("name"),o=n.getAttribute("value");typeof ft[r]=="boolean"&&o==="false"&&(e[r]=!1),typeof ft[r]=="object"&&(e[r]=JSON.parse(o))}),e},Ya=t=>{const e={};return Oe(t.querySelectorAll("swal-button")).forEach(n=>{at(n,["type","color","aria-label"]);const r=n.getAttribute("type");e[`${r}ButtonText`]=n.innerHTML,e[`show${Bn(r)}Button`]=!0,n.hasAttribute("color")&&(e[`${r}ButtonColor`]=n.getAttribute("color")),n.hasAttribute("aria-label")&&(e[`${r}ButtonAriaLabel`]=n.getAttribute("aria-label"))}),e},Xa=t=>{const e={},n=t.querySelector("swal-image");return n&&(at(n,["src","width","height","alt"]),n.hasAttribute("src")&&(e.imageUrl=n.getAttribute("src")),n.hasAttribute("width")&&(e.imageWidth=n.getAttribute("width")),n.hasAttribute("height")&&(e.imageHeight=n.getAttribute("height")),n.hasAttribute("alt")&&(e.imageAlt=n.getAttribute("alt"))),e},Za=t=>{const e={},n=t.querySelector("swal-icon");return n&&(at(n,["type","color"]),n.hasAttribute("type")&&(e.icon=n.getAttribute("type")),n.hasAttribute("color")&&(e.iconColor=n.getAttribute("color")),e.iconHtml=n.innerHTML),e},Qa=t=>{const e={},n=t.querySelector("swal-input");n&&(at(n,["type","label","placeholder","value"]),e.input=n.getAttribute("type")||"text",n.hasAttribute("label")&&(e.inputLabel=n.getAttribute("label")),n.hasAttribute("placeholder")&&(e.inputPlaceholder=n.getAttribute("placeholder")),n.hasAttribute("value")&&(e.inputValue=n.getAttribute("value")));const r=t.querySelectorAll("swal-input-option");return r.length&&(e.inputOptions={},Oe(r).forEach(o=>{at(o,["value"]);const i=o.getAttribute("value"),s=o.innerHTML;e.inputOptions[i]=s})),e},el=(t,e)=>{const n={};for(const r in e){const o=e[r],i=t.querySelector(o);i&&(at(i,[]),n[o.replace(/^swal-/,"")]=i.innerHTML.trim())}return n},tl=t=>{const e=mo.concat(["swal-param","swal-button","swal-image","swal-icon","swal-input","swal-input-option"]);Oe(t.children).forEach(n=>{const r=n.tagName.toLowerCase();e.indexOf(r)===-1&&Ae(`Unrecognized element <${r}>`)})},at=(t,e)=>{Oe(t.attributes).forEach(n=>{e.indexOf(n.name)===-1&&Ae([`Unrecognized attribute "${n.name}" on <${t.tagName.toLowerCase()}>.`,`${e.length?`Allowed attributes are: ${e.join(", ")}`:"To set the value, use HTML within the element."}`])})},ho={email:(t,e)=>/^[a-zA-Z0-9.+_-]+@[a-zA-Z0-9.-]+\.[a-zA-Z0-9-]{2,24}$/.test(t)?Promise.resolve():Promise.resolve(e||"Invalid email address"),url:(t,e)=>/^https?:\/\/(www\.)?[-a-zA-Z0-9@:%._+~#=]{1,256}\.[a-z]{2,63}\b([-a-zA-Z0-9@:%_+.~#?&/=]*)$/.test(t)?Promise.resolve():Promise.resolve(e||"Invalid URL")};function nl(t){t.inputValidator||Object.keys(ho).forEach(e=>{t.input===e&&(t.inputValidator=ho[e])})}function rl(t){(!t.target||typeof t.target=="string"&&!document.querySelector(t.target)||typeof t.target!="string"&&!t.target.appendChild)&&(Ae('Target parameter is not valid, defaulting to "body"'),t.target="body")}function ol(t){nl(t),t.showLoaderOnConfirm&&!t.preConfirm&&Ae(`showLoaderOnConfirm is set to true, but preConfirm is not defined.
59
+ `,Qr=(t,e)=>{t.textContent="",e.iconHtml?oe(t,eo(e.iconHtml)):e.icon==="success"?oe(t,Pa):e.icon==="error"?oe(t,Ia):oe(t,eo({question:"?",warning:"!",info:"i"}[e.icon]))},Ta=(t,e)=>{if(e.iconColor){t.style.color=e.iconColor,t.style.borderColor=e.iconColor;for(const n of[".swal2-success-line-tip",".swal2-success-line-long",".swal2-x-mark-line-left",".swal2-x-mark-line-right"])qr(t,n,"backgroundColor",e.iconColor);qr(t,".swal2-success-ring","borderColor",e.iconColor)}},eo=t=>`<div class="${m["icon-content"]}">${t}</div>`,Oa=(t,e)=>{const n=Vr();if(!e.imageUrl)return ie(n);te(n,""),n.setAttribute("src",e.imageUrl),n.setAttribute("alt",e.imageAlt),wt(n,"width",e.imageWidth),wt(n,"height",e.imageHeight),n.className=m.image,Ee(n,e,"image")},ka=t=>{const e=document.createElement("li");return U(e,m["progress-step"]),oe(e,t),e},Ba=t=>{const e=document.createElement("li");return U(e,m["progress-step-line"]),t.progressStepsDistance&&(e.style.width=t.progressStepsDistance),e},$a=(t,e)=>{const n=Ur();if(!e.progressSteps||e.progressSteps.length===0)return ie(n);te(n),n.textContent="",e.currentProgressStep>=e.progressSteps.length&&de("Invalid currentProgressStep parameter, it should be less than progressSteps.length (currentProgressStep like JS arrays starts from 0)"),e.progressSteps.forEach((r,o)=>{const i=ka(r);if(n.appendChild(i),o===e.currentProgressStep&&U(i,m["active-progress-step"]),o!==e.progressSteps.length-1){const s=Ba(e);n.appendChild(s)}})},La=(t,e)=>{const n=jr();Jt(n,e.title||e.titleText,"block"),e.title&&kn(e.title,n),e.titleText&&(n.innerText=e.titleText),Ee(n,e,"title")},Fa=(t,e)=>{const n=re(),r=z();e.toast?(wt(n,"width",e.width),r.style.width="100%",r.insertBefore(tt(),bt())):wt(r,"width",e.width),wt(r,"padding",e.padding),e.color&&(r.style.color=e.color),e.background&&(r.style.background=e.background),ie(zt()),Na(r,e)},Na=(t,e)=>{t.className=`${m.popup} ${ye(t)?e.showClass.popup:""}`,e.toast?(U([document.documentElement,document.body],m["toast-shown"]),U(t,m.toast)):U(t,m.modal),Ee(t,e,"popup"),typeof e.customClass=="string"&&U(t,e.customClass),e.icon&&U(t,m[`icon-${e.icon}`])},to=(t,e)=>{Fa(t,e),ha(t,e),$a(t,e),_a(t,e),Oa(t,e),La(t,e),Aa(t,e),Sa(t,e),ca(t,e),Ca(t,e),typeof e.didRender=="function"&&e.didRender(z())},rt=Object.freeze({cancel:"cancel",backdrop:"backdrop",close:"close",esc:"esc",timer:"timer"}),Da=()=>{ge(document.body.children).forEach(e=>{e===re()||e.contains(re())||(e.hasAttribute("aria-hidden")&&e.setAttribute("data-previous-aria-hidden",e.getAttribute("aria-hidden")),e.setAttribute("aria-hidden","true"))})},no=()=>{ge(document.body.children).forEach(e=>{e.hasAttribute("data-previous-aria-hidden")?(e.setAttribute("aria-hidden",e.getAttribute("data-previous-aria-hidden")),e.removeAttribute("data-previous-aria-hidden")):e.removeAttribute("aria-hidden")})},ro=["swal-title","swal-html","swal-footer"],Ra=t=>{const e=typeof t.template=="string"?document.querySelector(t.template):t.template;if(!e)return{};const n=e.content;return Ka(n),Object.assign(Ma(n),Ha(n),ja(n),Va(n),Ua(n),Wa(n,ro))},Ma=t=>{const e={};return ge(t.querySelectorAll("swal-param")).forEach(n=>{Ge(n,["name","value"]);const r=n.getAttribute("name"),o=n.getAttribute("value");typeof et[r]=="boolean"&&o==="false"&&(e[r]=!1),typeof et[r]=="object"&&(e[r]=JSON.parse(o))}),e},Ha=t=>{const e={};return ge(t.querySelectorAll("swal-button")).forEach(n=>{Ge(n,["type","color","aria-label"]);const r=n.getAttribute("type");e[`${r}ButtonText`]=n.innerHTML,e[`show${Sn(r)}Button`]=!0,n.hasAttribute("color")&&(e[`${r}ButtonColor`]=n.getAttribute("color")),n.hasAttribute("aria-label")&&(e[`${r}ButtonAriaLabel`]=n.getAttribute("aria-label"))}),e},ja=t=>{const e={},n=t.querySelector("swal-image");return n&&(Ge(n,["src","width","height","alt"]),n.hasAttribute("src")&&(e.imageUrl=n.getAttribute("src")),n.hasAttribute("width")&&(e.imageWidth=n.getAttribute("width")),n.hasAttribute("height")&&(e.imageHeight=n.getAttribute("height")),n.hasAttribute("alt")&&(e.imageAlt=n.getAttribute("alt"))),e},Va=t=>{const e={},n=t.querySelector("swal-icon");return n&&(Ge(n,["type","color"]),n.hasAttribute("type")&&(e.icon=n.getAttribute("type")),n.hasAttribute("color")&&(e.iconColor=n.getAttribute("color")),e.iconHtml=n.innerHTML),e},Ua=t=>{const e={},n=t.querySelector("swal-input");n&&(Ge(n,["type","label","placeholder","value"]),e.input=n.getAttribute("type")||"text",n.hasAttribute("label")&&(e.inputLabel=n.getAttribute("label")),n.hasAttribute("placeholder")&&(e.inputPlaceholder=n.getAttribute("placeholder")),n.hasAttribute("value")&&(e.inputValue=n.getAttribute("value")));const r=t.querySelectorAll("swal-input-option");return r.length&&(e.inputOptions={},ge(r).forEach(o=>{Ge(o,["value"]);const i=o.getAttribute("value"),s=o.innerHTML;e.inputOptions[i]=s})),e},Wa=(t,e)=>{const n={};for(const r in e){const o=e[r],i=t.querySelector(o);i&&(Ge(i,[]),n[o.replace(/^swal-/,"")]=i.innerHTML.trim())}return n},Ka=t=>{const e=ro.concat(["swal-param","swal-button","swal-image","swal-icon","swal-input","swal-input-option"]);ge(t.children).forEach(n=>{const r=n.tagName.toLowerCase();e.indexOf(r)===-1&&de(`Unrecognized element <${r}>`)})},Ge=(t,e)=>{ge(t.attributes).forEach(n=>{e.indexOf(n.name)===-1&&de([`Unrecognized attribute "${n.name}" on <${t.tagName.toLowerCase()}>.`,`${e.length?`Allowed attributes are: ${e.join(", ")}`:"To set the value, use HTML within the element."}`])})},oo={email:(t,e)=>/^[a-zA-Z0-9.+_-]+@[a-zA-Z0-9.-]+\.[a-zA-Z0-9-]{2,24}$/.test(t)?Promise.resolve():Promise.resolve(e||"Invalid email address"),url:(t,e)=>/^https?:\/\/(www\.)?[-a-zA-Z0-9@:%._+~#=]{1,256}\.[a-z]{2,63}\b([-a-zA-Z0-9@:%_+.~#?&/=]*)$/.test(t)?Promise.resolve():Promise.resolve(e||"Invalid URL")};function za(t){t.inputValidator||Object.keys(oo).forEach(e=>{t.input===e&&(t.inputValidator=oo[e])})}function qa(t){(!t.target||typeof t.target=="string"&&!document.querySelector(t.target)||typeof t.target!="string"&&!t.target.appendChild)&&(de('Target parameter is not valid, defaulting to "body"'),t.target="body")}function Ga(t){za(t),t.showLoaderOnConfirm&&!t.preConfirm&&de(`showLoaderOnConfirm is set to true, but preConfirm is not defined.
60
60
  showLoaderOnConfirm should be used together with preConfirm, see usage example:
61
- https://sweetalert2.github.io/#ajax-request`),rl(t),typeof t.title=="string"&&(t.title=t.title.split(`
62
- `).join("<br />")),ha(t)}class il{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 sl=()=>{mt.previousBodyPadding===null&&document.body.scrollHeight>window.innerHeight&&(mt.previousBodyPadding=parseInt(window.getComputedStyle(document.body).getPropertyValue("padding-right")),document.body.style.paddingRight=`${mt.previousBodyPadding+ba()}px`)},al=()=>{mt.previousBodyPadding!==null&&(document.body.style.paddingRight=`${mt.previousBodyPadding}px`,mt.previousBodyPadding=null)},ll=()=>{if((/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream||navigator.platform==="MacIntel"&&navigator.maxTouchPoints>1)&&!Ge(document.body,g.iosfix)){const e=document.body.scrollTop;document.body.style.top=`${e*-1}px`,te(document.body,g.iosfix),ul(),cl()}},cl=()=>{const t=navigator.userAgent,e=!!t.match(/iPad/i)||!!t.match(/iPhone/i),n=!!t.match(/WebKit/i);e&&n&&!t.match(/CriOS/i)&&oe().scrollHeight>window.innerHeight-44&&(ye().style.paddingBottom="44px")},ul=()=>{const t=ye();let e;t.ontouchstart=n=>{e=dl(n)},t.ontouchmove=n=>{e&&(n.preventDefault(),n.stopPropagation())}},dl=t=>{const e=t.target,n=ye();return fl(t)||pl(t)?!1:e===n||!oo(n)&&e.tagName!=="INPUT"&&e.tagName!=="TEXTAREA"&&!(oo(rn())&&rn().contains(e))},fl=t=>t.touches&&t.touches.length&&t.touches[0].touchType==="stylus",pl=t=>t.touches&&t.touches.length>1,ml=()=>{if(Ge(document.body,g.iosfix)){const t=parseInt(document.body.style.top,10);Ve(document.body,g.iosfix),document.body.style.top="",document.body.scrollTop=t*-1}},go=10,hl=t=>{const e=ye(),n=oe();typeof t.willOpen=="function"&&t.willOpen(n);const o=window.getComputedStyle(document.body).overflowY;bl(e,n,t),setTimeout(()=>{gl(e,n)},go),Mn()&&(yl(e,t.scrollbarPadding,o),qa()),!an()&&!J.previousActiveElement&&(J.previousActiveElement=document.activeElement),typeof t.didOpen=="function"&&setTimeout(()=>t.didOpen(n)),Ve(e,g["no-transition"])},yo=t=>{const e=oe();if(t.target!==e)return;const n=ye();e.removeEventListener(Lt,yo),n.style.overflowY="auto"},gl=(t,e)=>{Lt&&io(e)?(t.style.overflowY="hidden",e.addEventListener(Lt,yo)):t.style.overflowY="auto"},yl=(t,e,n)=>{ll(),e&&n!=="hidden"&&sl(),setTimeout(()=>{t.scrollTop=0})},bl=(t,e,n)=>{te(t,n.showClass.backdrop),e.style.setProperty("opacity","0","important"),he(e,"grid"),setTimeout(()=>{te(e,n.showClass.popup),e.style.removeProperty("opacity")},go),te([document.documentElement,document.body],g.shown),n.heightAuto&&n.backdrop&&!n.toast&&te([document.documentElement,document.body],g["height-auto"])},gt=t=>{let e=oe();e||new bt,e=oe();const n=pt();an()?ve(Pt()):vl(e,t),he(n),e.setAttribute("data-loading",!0),e.setAttribute("aria-busy",!0),e.focus()},vl=(t,e)=>{const n=Tt(),r=pt();!e&&Le(Ue())&&(e=Ue()),he(n),e&&(ve(e),r.setAttribute("data-button-to-replace",e.className)),r.parentNode.insertBefore(r,e),te([t,n],g.loading)},wl=(t,e)=>{e.input==="select"||e.input==="radio"?Al(t,e):["text","email","number","tel","textarea"].includes(e.input)&&(Fn(e.inputValue)||Rn(e.inputValue))&&(gt(Ue()),kl(t,e))},El=(t,e)=>{const n=t.getInput();if(!n)return null;switch(e.input){case"checkbox":return Sl(n);case"radio":return Cl(n);case"file":return _l(n);default:return e.inputAutoTrim?n.value.trim():n.value}},Sl=t=>t.checked?1:0,Cl=t=>t.checked?t.value:null,_l=t=>t.files.length?t.getAttribute("multiple")!==null?t.files:t.files[0]:null,Al=(t,e)=>{const n=oe(),r=o=>xl[e.input](n,zn(o),e);Fn(e.inputOptions)||Rn(e.inputOptions)?(gt(Ue()),kt(e.inputOptions).then(o=>{t.hideLoading(),r(o)})):typeof e.inputOptions=="object"?r(e.inputOptions):ot(`Unexpected type of inputOptions! Expected object, Map or Promise, got ${typeof e.inputOptions}`)},kl=(t,e)=>{const n=t.getInput();ve(n),kt(e.inputValue).then(r=>{n.value=e.input==="number"?parseFloat(r)||0:`${r}`,he(n),n.focus(),t.hideLoading()}).catch(r=>{ot(`Error in inputValue promise: ${r}`),n.value="",he(n),n.focus(),t.hideLoading()})},xl={select:(t,e,n)=>{const r=tt(t,g.select),o=(i,s,c)=>{const l=document.createElement("option");l.value=c,be(l,s),l.selected=bo(c,n.inputValue),i.appendChild(l)};e.forEach(i=>{const s=i[0],c=i[1];if(Array.isArray(c)){const l=document.createElement("optgroup");l.label=s,l.disabled=!1,r.appendChild(l),c.forEach(d=>o(l,d[1],d[0]))}else o(r,c,s)}),r.focus()},radio:(t,e,n)=>{const r=tt(t,g.radio);e.forEach(i=>{const s=i[0],c=i[1],l=document.createElement("input"),d=document.createElement("label");l.type="radio",l.name=g.radio,l.value=s,bo(s,n.inputValue)&&(l.checked=!0);const f=document.createElement("span");be(f,c),f.className=g.label,d.appendChild(l),d.appendChild(f),r.appendChild(d)});const o=r.querySelectorAll("input");o.length&&o[0].focus()}},zn=t=>{const e=[];return typeof Map<"u"&&t instanceof Map?t.forEach((n,r)=>{let o=n;typeof o=="object"&&(o=zn(o)),e.push([r,o])}):Object.keys(t).forEach(n=>{let r=t[n];typeof r=="object"&&(r=zn(r)),e.push([n,r])}),e},bo=(t,e)=>e&&e.toString()===t.toString();function vo(){const t=Y.innerParams.get(this);if(!t)return;const e=Y.domCache.get(this);ve(e.loader),an()?t.icon&&he(Pt()):Il(e),Ve([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 Il=t=>{const e=t.popup.getElementsByClassName(t.loader.getAttribute("data-button-to-replace"));e.length?he(e[0],"inline-block"):oa()&&ve(t.actions)};function Pl(t){const e=Y.innerParams.get(t||this),n=Y.domCache.get(t||this);return n?Un(n.popup,e.input):null}const Ft={swalPromiseResolve:new WeakMap,swalPromiseReject:new WeakMap},Tl=()=>Le(oe()),wo=()=>Ue()&&Ue().click(),Ol=()=>et()&&et().click(),Ll=()=>it()&&it().click(),Eo=t=>{t.keydownTarget&&t.keydownHandlerAdded&&(t.keydownTarget.removeEventListener("keydown",t.keydownHandler,{capture:t.keydownListenerCapture}),t.keydownHandlerAdded=!1)},Bl=(t,e,n,r)=>{Eo(e),n.toast||(e.keydownHandler=o=>Rl(t,o,r),e.keydownTarget=n.keydownListenerCapture?window:oe(),e.keydownListenerCapture=n.keydownListenerCapture,e.keydownTarget.addEventListener("keydown",e.keydownHandler,{capture:e.keydownListenerCapture}),e.keydownHandlerAdded=!0)},Wn=(t,e,n)=>{const r=Dn();if(r.length)return e=e+n,e===r.length?e=0:e===-1&&(e=r.length-1),r[e].focus();oe().focus()},So=["ArrowRight","ArrowDown"],Fl=["ArrowLeft","ArrowUp"],Rl=(t,e,n)=>{const r=Y.innerParams.get(t);r&&(e.isComposing||e.keyCode===229||(r.stopKeydownPropagation&&e.stopPropagation(),e.key==="Enter"?$l(t,e,r):e.key==="Tab"?Nl(e,r):[...So,...Fl].includes(e.key)?Dl(e.key):e.key==="Escape"&&Ml(e,r,n)))},$l=(t,e,n)=>{if(nn(n.allowEnterKey)&&e.target&&t.getInput()&&e.target.outerHTML===t.getInput().outerHTML){if(["textarea","file"].includes(n.input))return;wo(),e.preventDefault()}},Nl=(t,e)=>{const n=t.target,r=Dn();let o=-1;for(let i=0;i<r.length;i++)if(n===r[i]){o=i;break}t.shiftKey?Wn(e,o,-1):Wn(e,o,1),t.stopPropagation(),t.preventDefault()},Dl=t=>{const e=Ue(),n=et(),r=it();if(![e,n,r].includes(document.activeElement))return;const o=So.includes(t)?"nextElementSibling":"previousElementSibling";let i=document.activeElement;for(let s=0;s<Tt().children.length;s++){if(i=i[o],!i)return;if(Le(i)&&i instanceof HTMLButtonElement)break}i instanceof HTMLButtonElement&&i.focus()},Ml=(t,e,n)=>{nn(e.allowEscapeKey)&&(t.preventDefault(),n(ht.esc))};function Co(t,e,n,r){an()?_o(t,r):(la(n).then(()=>_o(t,r)),Eo(J)),/^((?!chrome|android).)*safari/i.test(navigator.userAgent)?(e.setAttribute("style","display:none !important"),e.removeAttribute("class"),e.innerHTML=""):e.remove(),Mn()&&(al(),ml(),po()),Ul()}function Ul(){Ve([document.documentElement,document.body],[g.shown,g["height-auto"],g["no-backdrop"],g["toast-shown"]])}function cn(t){t=Kl(t);const e=Ft.swalPromiseResolve.get(this),n=jl(this);this.isAwaitingPromise()?t.isDismissed||(Rt(this),e(t)):n&&e(t)}function Hl(){return!!Y.awaitingPromise.get(this)}const jl=t=>{const e=oe();if(!e)return!1;const n=Y.innerParams.get(t);if(!n||Ge(e,n.hideClass.popup))return!1;Ve(e,n.showClass.popup),te(e,n.hideClass.popup);const r=ye();return Ve(r,n.showClass.backdrop),te(r,n.hideClass.backdrop),zl(t,e,n),!0};function Vl(t){const e=Ft.swalPromiseReject.get(this);Rt(this),e&&e(t)}const Rt=t=>{t.isAwaitingPromise()&&(Y.awaitingPromise.delete(t),Y.innerParams.get(t)||t._destroy())},Kl=t=>typeof t>"u"?{isConfirmed:!1,isDenied:!1,isDismissed:!0}:Object.assign({isConfirmed:!1,isDenied:!1,isDismissed:!1},t),zl=(t,e,n)=>{const r=ye(),o=Lt&&io(e);typeof n.willClose=="function"&&n.willClose(e),o?Wl(t,e,r,n.returnFocus,n.didClose):Co(t,r,n.returnFocus,n.didClose)},Wl=(t,e,n,r,o)=>{J.swalCloseEventFinishedCallback=Co.bind(null,t,n,r,o),e.addEventListener(Lt,function(i){i.target===e&&(J.swalCloseEventFinishedCallback(),delete J.swalCloseEventFinishedCallback)})},_o=(t,e)=>{setTimeout(()=>{typeof e=="function"&&e.bind(t.params)(),t._destroy()})};function Ao(t,e,n){const r=Y.domCache.get(t);e.forEach(o=>{r[o].disabled=n})}function ko(t,e){if(!t)return!1;if(t.type==="radio"){const r=t.parentNode.parentNode.querySelectorAll("input");for(let o=0;o<r.length;o++)r[o].disabled=e}else t.disabled=e}function ql(){Ao(this,["confirmButton","denyButton","cancelButton"],!1)}function Gl(){Ao(this,["confirmButton","denyButton","cancelButton"],!0)}function Jl(){return ko(this.getInput(),!1)}function Yl(){return ko(this.getInput(),!0)}function Xl(t){const e=Y.domCache.get(this),n=Y.innerParams.get(this);be(e.validationMessage,t),e.validationMessage.className=g["validation-message"],n.customClass&&n.customClass.validationMessage&&te(e.validationMessage,n.customClass.validationMessage),he(e.validationMessage);const r=this.getInput();r&&(r.setAttribute("aria-invalid",!0),r.setAttribute("aria-describedby",g["validation-message"]),to(r),te(r,g.inputerror))}function Zl(){const t=Y.domCache.get(this);t.validationMessage&&ve(t.validationMessage);const e=this.getInput();e&&(e.removeAttribute("aria-invalid"),e.removeAttribute("aria-describedby"),Ve(e,g.inputerror))}function Ql(){return Y.domCache.get(this).progressSteps}function ec(t){const e=oe(),n=Y.innerParams.get(this);if(!e||Ge(e,n.hideClass.popup))return Ae("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 r=tc(t),o=Object.assign({},n,r);fo(this,o),Y.innerParams.set(this,o),Object.defineProperties(this,{params:{value:Object.assign({},this.params,t),writable:!1,enumerable:!0}})}const tc=t=>{const e={};return Object.keys(t).forEach(n=>{Jr(n)?e[n]=t[n]:Ae(`Invalid parameter to update: "${n}". Updatable params are listed here: https://github.com/sweetalert2/sweetalert2/blob/master/src/utils/params.js
61
+ https://sweetalert2.github.io/#ajax-request`),qa(t),typeof t.title=="string"&&(t.title=t.title.split(`
62
+ `).join("<br />")),ia(t)}class Ja{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 Ya=()=>{nt.previousBodyPadding===null&&document.body.scrollHeight>window.innerHeight&&(nt.previousBodyPadding=parseInt(window.getComputedStyle(document.body).getPropertyValue("padding-right")),document.body.style.paddingRight=`${nt.previousBodyPadding+la()}px`)},Xa=()=>{nt.previousBodyPadding!==null&&(document.body.style.paddingRight=`${nt.previousBodyPadding}px`,nt.previousBodyPadding=null)},Za=()=>{if((/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream||navigator.platform==="MacIntel"&&navigator.maxTouchPoints>1)&&!Be(document.body,m.iosfix)){const e=document.body.scrollTop;document.body.style.top=`${e*-1}px`,U(document.body,m.iosfix),el(),Qa()}},Qa=()=>{const t=navigator.userAgent,e=!!t.match(/iPad/i)||!!t.match(/iPhone/i),n=!!t.match(/WebKit/i);e&&n&&!t.match(/CriOS/i)&&z().scrollHeight>window.innerHeight-44&&(re().style.paddingBottom="44px")},el=()=>{const t=re();let e;t.ontouchstart=n=>{e=tl(n)},t.ontouchmove=n=>{e&&(n.preventDefault(),n.stopPropagation())}},tl=t=>{const e=t.target,n=re();return nl(t)||rl(t)?!1:e===n||!Gr(n)&&e.tagName!=="INPUT"&&e.tagName!=="TEXTAREA"&&!(Gr(Kt())&&Kt().contains(e))},nl=t=>t.touches&&t.touches.length&&t.touches[0].touchType==="stylus",rl=t=>t.touches&&t.touches.length>1,ol=()=>{if(Be(document.body,m.iosfix)){const t=parseInt(document.body.style.top,10);Te(document.body,m.iosfix),document.body.style.top="",document.body.scrollTop=t*-1}},io=10,il=t=>{const e=re(),n=z();typeof t.willOpen=="function"&&t.willOpen(n);const o=window.getComputedStyle(document.body).overflowY;ll(e,n,t),setTimeout(()=>{sl(e,n)},io),In()&&(al(e,t.scrollbarPadding,o),Da()),!Gt()&&!N.previousActiveElement&&(N.previousActiveElement=document.activeElement),typeof t.didOpen=="function"&&setTimeout(()=>t.didOpen(n)),Te(e,m["no-transition"])},so=t=>{const e=z();if(t.target!==e)return;const n=re();e.removeEventListener(Et,so),n.style.overflowY="auto"},sl=(t,e)=>{Et&&Jr(e)?(t.style.overflowY="hidden",e.addEventListener(Et,so)):t.style.overflowY="auto"},al=(t,e,n)=>{Za(),e&&n!=="hidden"&&Ya(),setTimeout(()=>{t.scrollTop=0})},ll=(t,e,n)=>{U(t,n.showClass.backdrop),e.style.setProperty("opacity","0","important"),te(e,"grid"),setTimeout(()=>{U(e,n.showClass.popup),e.style.removeProperty("opacity")},io),U([document.documentElement,document.body],m.shown),n.heightAuto&&n.backdrop&&!n.toast&&U([document.documentElement,document.body],m["height-auto"])},ot=t=>{let e=z();e||new st,e=z();const n=tt();Gt()?ie(bt()):cl(e,t),te(n),e.setAttribute("data-loading",!0),e.setAttribute("aria-busy",!0),e.focus()},cl=(t,e)=>{const n=vt(),r=tt();!e&&ye(Ae())&&(e=Ae()),te(n),e&&(ie(e),r.setAttribute("data-button-to-replace",e.className)),r.parentNode.insertBefore(r,e),U([t,n],m.loading)},ul=(t,e)=>{e.input==="select"||e.input==="radio"?hl(t,e):["text","email","number","tel","textarea"].includes(e.input)&&(Cn(e.inputValue)||An(e.inputValue))&&(ot(Ae()),gl(t,e))},dl=(t,e)=>{const n=t.getInput();if(!n)return null;switch(e.input){case"checkbox":return fl(n);case"radio":return pl(n);case"file":return ml(n);default:return e.inputAutoTrim?n.value.trim():n.value}},fl=t=>t.checked?1:0,pl=t=>t.checked?t.value:null,ml=t=>t.files.length?t.getAttribute("multiple")!==null?t.files:t.files[0]:null,hl=(t,e)=>{const n=z(),r=o=>yl[e.input](n,Ln(o),e);Cn(e.inputOptions)||An(e.inputOptions)?(ot(Ae()),ht(e.inputOptions).then(o=>{t.hideLoading(),r(o)})):typeof e.inputOptions=="object"?r(e.inputOptions):Ke(`Unexpected type of inputOptions! Expected object, Map or Promise, got ${typeof e.inputOptions}`)},gl=(t,e)=>{const n=t.getInput();ie(n),ht(e.inputValue).then(r=>{n.value=e.input==="number"?parseFloat(r)||0:`${r}`,te(n),n.focus(),t.hideLoading()}).catch(r=>{Ke(`Error in inputValue promise: ${r}`),n.value="",te(n),n.focus(),t.hideLoading()})},yl={select:(t,e,n)=>{const r=He(t,m.select),o=(i,s,c)=>{const l=document.createElement("option");l.value=c,oe(l,s),l.selected=ao(c,n.inputValue),i.appendChild(l)};e.forEach(i=>{const s=i[0],c=i[1];if(Array.isArray(c)){const l=document.createElement("optgroup");l.label=s,l.disabled=!1,r.appendChild(l),c.forEach(u=>o(l,u[1],u[0]))}else o(r,c,s)}),r.focus()},radio:(t,e,n)=>{const r=He(t,m.radio);e.forEach(i=>{const s=i[0],c=i[1],l=document.createElement("input"),u=document.createElement("label");l.type="radio",l.name=m.radio,l.value=s,ao(s,n.inputValue)&&(l.checked=!0);const d=document.createElement("span");oe(d,c),d.className=m.label,u.appendChild(l),u.appendChild(d),r.appendChild(u)});const o=r.querySelectorAll("input");o.length&&o[0].focus()}},Ln=t=>{const e=[];return typeof Map<"u"&&t instanceof Map?t.forEach((n,r)=>{let o=n;typeof o=="object"&&(o=Ln(o)),e.push([r,o])}):Object.keys(t).forEach(n=>{let r=t[n];typeof r=="object"&&(r=Ln(r)),e.push([n,r])}),e},ao=(t,e)=>e&&e.toString()===t.toString();function lo(){const t=R.innerParams.get(this);if(!t)return;const e=R.domCache.get(this);ie(e.loader),Gt()?t.icon&&te(bt()):bl(e),Te([e.popup,e.actions],m.loading),e.popup.removeAttribute("aria-busy"),e.popup.removeAttribute("data-loading"),e.confirmButton.disabled=!1,e.denyButton.disabled=!1,e.cancelButton.disabled=!1}const bl=t=>{const e=t.popup.getElementsByClassName(t.loader.getAttribute("data-button-to-replace"));e.length?te(e[0],"inline-block"):Gs()&&ie(t.actions)};function vl(t){const e=R.innerParams.get(t||this),n=R.domCache.get(t||this);return n?Tn(n.popup,e.input):null}const Ct={swalPromiseResolve:new WeakMap,swalPromiseReject:new WeakMap},wl=()=>ye(z()),co=()=>Ae()&&Ae().click(),El=()=>Me()&&Me().click(),Sl=()=>ze()&&ze().click(),uo=t=>{t.keydownTarget&&t.keydownHandlerAdded&&(t.keydownTarget.removeEventListener("keydown",t.keydownHandler,{capture:t.keydownListenerCapture}),t.keydownHandlerAdded=!1)},Cl=(t,e,n,r)=>{uo(e),n.toast||(e.keydownHandler=o=>_l(t,o,r),e.keydownTarget=n.keydownListenerCapture?window:z(),e.keydownListenerCapture=n.keydownListenerCapture,e.keydownTarget.addEventListener("keydown",e.keydownHandler,{capture:e.keydownListenerCapture}),e.keydownHandlerAdded=!0)},Fn=(t,e,n)=>{const r=Pn();if(r.length)return e=e+n,e===r.length?e=0:e===-1&&(e=r.length-1),r[e].focus();z().focus()},fo=["ArrowRight","ArrowDown"],Al=["ArrowLeft","ArrowUp"],_l=(t,e,n)=>{const r=R.innerParams.get(t);r&&(e.isComposing||e.keyCode===229||(r.stopKeydownPropagation&&e.stopPropagation(),e.key==="Enter"?xl(t,e,r):e.key==="Tab"?Pl(e,r):[...fo,...Al].includes(e.key)?Il(e.key):e.key==="Escape"&&Tl(e,r,n)))},xl=(t,e,n)=>{if(Wt(n.allowEnterKey)&&e.target&&t.getInput()&&e.target.outerHTML===t.getInput().outerHTML){if(["textarea","file"].includes(n.input))return;co(),e.preventDefault()}},Pl=(t,e)=>{const n=t.target,r=Pn();let o=-1;for(let i=0;i<r.length;i++)if(n===r[i]){o=i;break}t.shiftKey?Fn(e,o,-1):Fn(e,o,1),t.stopPropagation(),t.preventDefault()},Il=t=>{const e=Ae(),n=Me(),r=ze();if(![e,n,r].includes(document.activeElement))return;const o=fo.includes(t)?"nextElementSibling":"previousElementSibling";let i=document.activeElement;for(let s=0;s<vt().children.length;s++){if(i=i[o],!i)return;if(ye(i)&&i instanceof HTMLButtonElement)break}i instanceof HTMLButtonElement&&i.focus()},Tl=(t,e,n)=>{Wt(e.allowEscapeKey)&&(t.preventDefault(),n(rt.esc))};function po(t,e,n,r){Gt()?mo(t,r):(Zs(n).then(()=>mo(t,r)),uo(N)),/^((?!chrome|android).)*safari/i.test(navigator.userAgent)?(e.setAttribute("style","display:none !important"),e.removeAttribute("class"),e.innerHTML=""):e.remove(),In()&&(Xa(),ol(),no()),Ol()}function Ol(){Te([document.documentElement,document.body],[m.shown,m["height-auto"],m["no-backdrop"],m["toast-shown"]])}function Yt(t){t=Ll(t);const e=Ct.swalPromiseResolve.get(this),n=Bl(this);this.isAwaitingPromise()?t.isDismissed||(At(this),e(t)):n&&e(t)}function kl(){return!!R.awaitingPromise.get(this)}const Bl=t=>{const e=z();if(!e)return!1;const n=R.innerParams.get(t);if(!n||Be(e,n.hideClass.popup))return!1;Te(e,n.showClass.popup),U(e,n.hideClass.popup);const r=re();return Te(r,n.showClass.backdrop),U(r,n.hideClass.backdrop),Fl(t,e,n),!0};function $l(t){const e=Ct.swalPromiseReject.get(this);At(this),e&&e(t)}const At=t=>{t.isAwaitingPromise()&&(R.awaitingPromise.delete(t),R.innerParams.get(t)||t._destroy())},Ll=t=>typeof t>"u"?{isConfirmed:!1,isDenied:!1,isDismissed:!0}:Object.assign({isConfirmed:!1,isDenied:!1,isDismissed:!1},t),Fl=(t,e,n)=>{const r=re(),o=Et&&Jr(e);typeof n.willClose=="function"&&n.willClose(e),o?Nl(t,e,r,n.returnFocus,n.didClose):po(t,r,n.returnFocus,n.didClose)},Nl=(t,e,n,r,o)=>{N.swalCloseEventFinishedCallback=po.bind(null,t,n,r,o),e.addEventListener(Et,function(i){i.target===e&&(N.swalCloseEventFinishedCallback(),delete N.swalCloseEventFinishedCallback)})},mo=(t,e)=>{setTimeout(()=>{typeof e=="function"&&e.bind(t.params)(),t._destroy()})};function ho(t,e,n){const r=R.domCache.get(t);e.forEach(o=>{r[o].disabled=n})}function go(t,e){if(!t)return!1;if(t.type==="radio"){const r=t.parentNode.parentNode.querySelectorAll("input");for(let o=0;o<r.length;o++)r[o].disabled=e}else t.disabled=e}function Dl(){ho(this,["confirmButton","denyButton","cancelButton"],!1)}function Rl(){ho(this,["confirmButton","denyButton","cancelButton"],!0)}function Ml(){return go(this.getInput(),!1)}function Hl(){return go(this.getInput(),!0)}function jl(t){const e=R.domCache.get(this),n=R.innerParams.get(this);oe(e.validationMessage,t),e.validationMessage.className=m["validation-message"],n.customClass&&n.customClass.validationMessage&&U(e.validationMessage,n.customClass.validationMessage),te(e.validationMessage);const r=this.getInput();r&&(r.setAttribute("aria-invalid",!0),r.setAttribute("aria-describedby",m["validation-message"]),Kr(r),U(r,m.inputerror))}function Vl(){const t=R.domCache.get(this);t.validationMessage&&ie(t.validationMessage);const e=this.getInput();e&&(e.removeAttribute("aria-invalid"),e.removeAttribute("aria-describedby"),Te(e,m.inputerror))}function Ul(){return R.domCache.get(this).progressSteps}function Wl(t){const e=z(),n=R.innerParams.get(this);if(!e||Be(e,n.hideClass.popup))return de("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 r=Kl(t),o=Object.assign({},n,r);to(this,o),R.innerParams.set(this,o),Object.defineProperties(this,{params:{value:Object.assign({},this.params,t),writable:!1,enumerable:!0}})}const Kl=t=>{const e={};return Object.keys(t).forEach(n=>{Mr(n)?e[n]=t[n]:de(`Invalid parameter to update: "${n}". Updatable params are listed here: https://github.com/sweetalert2/sweetalert2/blob/master/src/utils/params.js
63
63
 
64
- 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 nc(){const t=Y.domCache.get(this),e=Y.innerParams.get(this);if(!e){xo(this);return}t.popup&&J.swalCloseEventFinishedCallback&&(J.swalCloseEventFinishedCallback(),delete J.swalCloseEventFinishedCallback),J.deferDisposalTimer&&(clearTimeout(J.deferDisposalTimer),delete J.deferDisposalTimer),typeof e.didDestroy=="function"&&e.didDestroy(),rc(this)}const rc=t=>{xo(t),delete t.params,delete J.keydownHandler,delete J.keydownTarget,delete J.currentInstance},xo=t=>{t.isAwaitingPromise()?(qn(Y,t),Y.awaitingPromise.set(t,!0)):(qn(Ft,t),qn(Y,t))},qn=(t,e)=>{for(const n in t)t[n].delete(e)},Io=Object.freeze(Object.defineProperty({__proto__:null,_destroy:nc,close:cn,closeModal:cn,closePopup:cn,closeToast:cn,disableButtons:Gl,disableInput:Yl,disableLoading:vo,enableButtons:ql,enableInput:Jl,getInput:Pl,getProgressSteps:Ql,handleAwaitingPromise:Rt,hideLoading:vo,isAwaitingPromise:Hl,rejectPromise:Vl,resetValidationMessage:Zl,showValidationMessage:Xl,update:ec},Symbol.toStringTag,{value:"Module"})),oc=t=>{const e=Y.innerParams.get(t);t.disableButtons(),e.input?Po(t,"confirm"):Jn(t,!0)},ic=t=>{const e=Y.innerParams.get(t);t.disableButtons(),e.returnInputValueOnDeny?Po(t,"deny"):Gn(t,!1)},sc=(t,e)=>{t.disableButtons(),e(ht.cancel)},Po=(t,e)=>{const n=Y.innerParams.get(t);if(!n.input)return ot(`The "input" parameter is needed to be set when using returnInputValueOn${Bn(e)}`);const r=El(t,n);n.inputValidator?ac(t,r,e):t.getInput().checkValidity()?e==="deny"?Gn(t,r):Jn(t,r):(t.enableButtons(),t.showValidationMessage(n.validationMessage))},ac=(t,e,n)=>{const r=Y.innerParams.get(t);t.disableInput(),Promise.resolve().then(()=>kt(r.inputValidator(e,r.validationMessage))).then(i=>{t.enableButtons(),t.enableInput(),i?t.showValidationMessage(i):n==="deny"?Gn(t,e):Jn(t,e)})},Gn=(t,e)=>{const n=Y.innerParams.get(t||void 0);n.showLoaderOnDeny&&gt(et()),n.preDeny?(Y.awaitingPromise.set(t||void 0,!0),Promise.resolve().then(()=>kt(n.preDeny(e,n.validationMessage))).then(o=>{o===!1?(t.hideLoading(),Rt(t)):t.closePopup({isDenied:!0,value:typeof o>"u"?e:o})}).catch(o=>Oo(t||void 0,o))):t.closePopup({isDenied:!0,value:e})},To=(t,e)=>{t.closePopup({isConfirmed:!0,value:e})},Oo=(t,e)=>{t.rejectPromise(e)},Jn=(t,e)=>{const n=Y.innerParams.get(t||void 0);n.showLoaderOnConfirm&&gt(),n.preConfirm?(t.resetValidationMessage(),Y.awaitingPromise.set(t||void 0,!0),Promise.resolve().then(()=>kt(n.preConfirm(e,n.validationMessage))).then(o=>{Le(on())||o===!1?(t.hideLoading(),Rt(t)):To(t,typeof o>"u"?e:o)}).catch(o=>Oo(t||void 0,o))):To(t,e)},lc=(t,e,n)=>{Y.innerParams.get(t).toast?cc(t,e,n):(dc(e),fc(e),pc(t,e,n))},cc=(t,e,n)=>{e.popup.onclick=()=>{const r=Y.innerParams.get(t);r&&(uc(r)||r.timer||r.input)||n(ht.close)}},uc=t=>t.showConfirmButton||t.showDenyButton||t.showCancelButton||t.showCloseButton;let un=!1;const dc=t=>{t.popup.onmousedown=()=>{t.container.onmouseup=function(e){t.container.onmouseup=void 0,e.target===t.container&&(un=!0)}}},fc=t=>{t.container.onmousedown=()=>{t.popup.onmouseup=function(e){t.popup.onmouseup=void 0,(e.target===t.popup||t.popup.contains(e.target))&&(un=!0)}}},pc=(t,e,n)=>{e.container.onclick=r=>{const o=Y.innerParams.get(t);if(un){un=!1;return}r.target===e.container&&nn(o.allowOutsideClick)&&n(ht.backdrop)}},mc=t=>typeof t=="object"&&t.jquery,Lo=t=>t instanceof Element||mc(t),hc=t=>{const e={};return typeof t[0]=="object"&&!Lo(t[0])?Object.assign(e,t[0]):["title","html","icon"].forEach((n,r)=>{const o=t[r];typeof o=="string"||Lo(o)?e[n]=o:o!==void 0&&ot(`Unexpected type of ${n}! Expected "string" or "Element", got ${typeof o}`)}),e};function gc(...t){const e=this;return new e(...t)}function yc(t){class e extends this{_main(r,o){return super._main(r,Object.assign({},t,o))}}return e}const bc=()=>J.timeout&&J.timeout.getTimerLeft(),Bo=()=>{if(J.timeout)return ia(),J.timeout.stop()},Fo=()=>{if(J.timeout){const t=J.timeout.start();return Hn(t),t}},vc=()=>{const t=J.timeout;return t&&(t.running?Bo():Fo())},wc=t=>{if(J.timeout){const e=J.timeout.increase(t);return Hn(e,!0),e}},Ec=()=>J.timeout&&J.timeout.isRunning();let Ro=!1;const Yn={};function Sc(t="data-swal-template"){Yn[t]=this,Ro||(document.body.addEventListener("click",Cc),Ro=!0)}const Cc=t=>{for(let e=t.target;e&&e!==document;e=e.parentNode)for(const n in Yn){const r=e.getAttribute(n);if(r){Yn[n].fire({template:r});return}}},_c=Object.freeze(Object.defineProperty({__proto__:null,argsToParams:hc,bindClickHandler:Sc,clickCancel:Ll,clickConfirm:wo,clickDeny:Ol,enableLoading:gt,fire:gc,getActions:Tt,getCancelButton:it,getCloseButton:Nn,getConfirmButton:Ue,getContainer:ye,getDenyButton:et,getFocusableElements:Dn,getFooter:eo,getHtmlContainer:rn,getIcon:Pt,getImage:Zr,getInputLabel:ea,getLoader:pt,getPopup:oe,getTimerLeft:bc,getTimerProgressBar:sn,getTitle:Xr,getValidationMessage:on,increaseTimer:wc,isDeprecatedParameter:$n,isLoading:na,isTimerRunning:Ec,isUpdatableParameter:Jr,isValidParameter:Gr,isVisible:Tl,mixin:yc,resumeTimer:Fo,showLoading:gt,stopTimer:Bo,toggleTimer:vc},Symbol.toStringTag,{value:"Module"}));let Xn;class yt{constructor(...e){if(typeof window>"u")return;Xn=this;const n=Object.freeze(this.constructor.argsToParams(e));Object.defineProperties(this,{params:{value:n,writable:!1,enumerable:!0,configurable:!0}});const r=this._main(this.params);Y.promise.set(this,r)}_main(e,n={}){Zs(Object.assign({},n,e)),J.currentInstance&&(J.currentInstance._destroy(),Mn()&&po()),J.currentInstance=this;const r=kc(e,n);ol(r),Object.freeze(r),J.timeout&&(J.timeout.stop(),delete J.timeout),clearTimeout(J.restoreFocusTimeout);const o=xc(this);return fo(this,r),Y.innerParams.set(this,r),Ac(this,o,r)}then(e){return Y.promise.get(this).then(e)}finally(e){return Y.promise.get(this).finally(e)}}const Ac=(t,e,n)=>new Promise((r,o)=>{const i=s=>{t.closePopup({isDismissed:!0,dismiss:s})};Ft.swalPromiseResolve.set(t,r),Ft.swalPromiseReject.set(t,o),e.confirmButton.onclick=()=>oc(t),e.denyButton.onclick=()=>ic(t),e.cancelButton.onclick=()=>sc(t,i),e.closeButton.onclick=()=>i(ht.close),lc(t,e,i),Bl(t,J,n,i),wl(t,n),hl(n),Ic(J,n,i),Pc(e,n),setTimeout(()=>{e.container.scrollTop=0})}),kc=(t,e)=>{const n=Ga(t),r=Object.assign({},ft,e,n,t);return r.showClass=Object.assign({},ft.showClass,r.showClass),r.hideClass=Object.assign({},ft.hideClass,r.hideClass),r},xc=t=>{const e={popup:oe(),container:ye(),actions:Tt(),confirmButton:Ue(),denyButton:et(),cancelButton:it(),loader:pt(),closeButton:Nn(),validationMessage:on(),progressSteps:Qr()};return Y.domCache.set(t,e),e},Ic=(t,e,n)=>{const r=sn();ve(r),e.timer&&(t.timeout=new il(()=>{n("timer"),delete t.timeout},e.timer),e.timerProgressBar&&(he(r),$e(r,e,"timerProgressBar"),setTimeout(()=>{t.timeout&&t.timeout.running&&Hn(e.timer)})))},Pc=(t,e)=>{if(!e.toast){if(!nn(e.allowEnterKey))return Oc();Tc(t,e)||Wn(e,-1,1)}},Tc=(t,e)=>e.focusDeny&&Le(t.denyButton)?(t.denyButton.focus(),!0):e.focusCancel&&Le(t.cancelButton)?(t.cancelButton.focus(),!0):e.focusConfirm&&Le(t.confirmButton)?(t.confirmButton.focus(),!0):!1,Oc=()=>{document.activeElement instanceof HTMLElement&&typeof document.activeElement.blur=="function"&&document.activeElement.blur()};Object.assign(yt.prototype,Io),Object.assign(yt,_c),Object.keys(Io).forEach(t=>{yt[t]=function(...e){if(Xn)return Xn[t](...e)}}),yt.DismissReason=ht,yt.version="11.4.8";const bt=yt;bt.default=bt;/*! @license DOMPurify 3.0.9 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.0.9/LICENSE */const{entries:$o,setPrototypeOf:No,isFrozen:Lc,getPrototypeOf:Bc,getOwnPropertyDescriptor:Fc}=Object;let{freeze:Se,seal:He,create:Do}=Object,{apply:Zn,construct:Qn}=typeof Reflect<"u"&&Reflect;Se||(Se=function(e){return e}),He||(He=function(e){return e}),Zn||(Zn=function(e,n,r){return e.apply(n,r)}),Qn||(Qn=function(e,n){return new e(...n)});const dn=Fe(Array.prototype.forEach),Mo=Fe(Array.prototype.pop),$t=Fe(Array.prototype.push),fn=Fe(String.prototype.toLowerCase),er=Fe(String.prototype.toString),Rc=Fe(String.prototype.match),Nt=Fe(String.prototype.replace),$c=Fe(String.prototype.indexOf),Nc=Fe(String.prototype.trim),je=Fe(Object.prototype.hasOwnProperty),Be=Fe(RegExp.prototype.test),Dt=Dc(TypeError);function Fe(t){return function(e){for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];return Zn(t,e,r)}}function Dc(t){return function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return Qn(t,n)}}function X(t,e){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:fn;No&&No(t,null);let r=e.length;for(;r--;){let o=e[r];if(typeof o=="string"){const i=n(o);i!==o&&(Lc(e)||(e[r]=i),o=i)}t[o]=!0}return t}function Mc(t){for(let e=0;e<t.length;e++)je(t,e)||(t[e]=null);return t}function lt(t){const e=Do(null);for(const[n,r]of $o(t))je(t,n)&&(Array.isArray(r)?e[n]=Mc(r):r&&typeof r=="object"&&r.constructor===Object?e[n]=lt(r):e[n]=r);return e}function pn(t,e){for(;t!==null;){const r=Fc(t,e);if(r){if(r.get)return Fe(r.get);if(typeof r.value=="function")return Fe(r.value)}t=Bc(t)}function n(){return null}return n}const Uo=Se(["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"]),tr=Se(["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"]),nr=Se(["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"]),Uc=Se(["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"]),rr=Se(["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"]),Hc=Se(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),Ho=Se(["#text"]),jo=Se(["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","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","xmlns","slot"]),or=Se(["accent-height","accumulate","additive","alignment-baseline","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","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","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","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","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"]),Vo=Se(["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"]),mn=Se(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),jc=He(/\{\{[\w\W]*|[\w\W]*\}\}/gm),Vc=He(/<%[\w\W]*|[\w\W]*%>/gm),Kc=He(/\${[\w\W]*}/gm),zc=He(/^data-[\-\w.\u00B7-\uFFFF]/),Wc=He(/^aria-[\-\w]+$/),Ko=He(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),qc=He(/^(?:\w+script|data):/i),Gc=He(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),zo=He(/^html$/i);var Wo=Object.freeze({__proto__:null,MUSTACHE_EXPR:jc,ERB_EXPR:Vc,TMPLIT_EXPR:Kc,DATA_ATTR:zc,ARIA_ATTR:Wc,IS_ALLOWED_URI:Ko,IS_SCRIPT_OR_DATA:qc,ATTR_WHITESPACE:Gc,DOCTYPE_NAME:zo});const Jc=function(){return typeof window>"u"?null:window},Yc=function(e,n){if(typeof e!="object"||typeof e.createPolicy!="function")return null;let r=null;const o="data-tt-policy-suffix";n&&n.hasAttribute(o)&&(r=n.getAttribute(o));const i="dompurify"+(r?"#"+r:"");try{return e.createPolicy(i,{createHTML(s){return s},createScriptURL(s){return s}})}catch{return console.warn("TrustedTypes policy "+i+" could not be created."),null}};function qo(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Jc();const e=H=>qo(H);if(e.version="3.0.9",e.removed=[],!t||!t.document||t.document.nodeType!==9)return e.isSupported=!1,e;let{document:n}=t;const r=n,o=r.currentScript,{DocumentFragment:i,HTMLTemplateElement:s,Node:c,Element:l,NodeFilter:d,NamedNodeMap:f=t.NamedNodeMap||t.MozNamedAttrMap,HTMLFormElement:p,DOMParser:v,trustedTypes:w}=t,_=l.prototype,x=pn(_,"cloneNode"),C=pn(_,"nextSibling"),$=pn(_,"childNodes"),q=pn(_,"parentNode");if(typeof s=="function"){const H=n.createElement("template");H.content&&H.content.ownerDocument&&(n=H.content.ownerDocument)}let V,pe="";const{implementation:de,createNodeIterator:y,createDocumentFragment:L,getElementsByTagName:j}=n,{importNode:F}=r;let B={};e.isSupported=typeof $o=="function"&&typeof q=="function"&&de&&de.createHTMLDocument!==void 0;const{MUSTACHE_EXPR:O,ERB_EXPR:W,TMPLIT_EXPR:A,DATA_ATTR:G,ARIA_ATTR:ie,IS_SCRIPT_OR_DATA:ce,ATTR_WHITESPACE:fe}=Wo;let{IS_ALLOWED_URI:Ce}=Wo,K=null;const xe=X({},[...Uo,...tr,...nr,...rr,...Ho]);let u=null;const h=X({},[...jo,...or,...Vo,...mn]);let E=Object.seal(Do(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}})),I=null,S=null,R=!0,k=!0,P=!1,M=!0,N=!1,z=!1,Q=!1,Ie=!1,_e=!1,ge=!1,qe=!1,ss=!0,as=!1;const qp="user-content-";let Nr=!0,Qt=!1,St={},Ct=null;const ls=X({},["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 cs=null;const us=X({},["audio","video","img","source","image","track"]);let Dr=null;const ds=X({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),In="http://www.w3.org/1998/Math/MathML",Pn="http://www.w3.org/2000/svg",Ye="http://www.w3.org/1999/xhtml";let _t=Ye,Mr=!1,Ur=null;const Gp=X({},[In,Pn,Ye],er);let en=null;const Jp=["application/xhtml+xml","text/html"],Yp="text/html";let me=null,At=null;const Xp=n.createElement("form"),fs=function(m){return m instanceof RegExp||m instanceof Function},Hr=function(){let m=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(!(At&&At===m)){if((!m||typeof m!="object")&&(m={}),m=lt(m),en=Jp.indexOf(m.PARSER_MEDIA_TYPE)===-1?Yp:m.PARSER_MEDIA_TYPE,me=en==="application/xhtml+xml"?er:fn,K=je(m,"ALLOWED_TAGS")?X({},m.ALLOWED_TAGS,me):xe,u=je(m,"ALLOWED_ATTR")?X({},m.ALLOWED_ATTR,me):h,Ur=je(m,"ALLOWED_NAMESPACES")?X({},m.ALLOWED_NAMESPACES,er):Gp,Dr=je(m,"ADD_URI_SAFE_ATTR")?X(lt(ds),m.ADD_URI_SAFE_ATTR,me):ds,cs=je(m,"ADD_DATA_URI_TAGS")?X(lt(us),m.ADD_DATA_URI_TAGS,me):us,Ct=je(m,"FORBID_CONTENTS")?X({},m.FORBID_CONTENTS,me):ls,I=je(m,"FORBID_TAGS")?X({},m.FORBID_TAGS,me):{},S=je(m,"FORBID_ATTR")?X({},m.FORBID_ATTR,me):{},St=je(m,"USE_PROFILES")?m.USE_PROFILES:!1,R=m.ALLOW_ARIA_ATTR!==!1,k=m.ALLOW_DATA_ATTR!==!1,P=m.ALLOW_UNKNOWN_PROTOCOLS||!1,M=m.ALLOW_SELF_CLOSE_IN_ATTR!==!1,N=m.SAFE_FOR_TEMPLATES||!1,z=m.WHOLE_DOCUMENT||!1,_e=m.RETURN_DOM||!1,ge=m.RETURN_DOM_FRAGMENT||!1,qe=m.RETURN_TRUSTED_TYPE||!1,Ie=m.FORCE_BODY||!1,ss=m.SANITIZE_DOM!==!1,as=m.SANITIZE_NAMED_PROPS||!1,Nr=m.KEEP_CONTENT!==!1,Qt=m.IN_PLACE||!1,Ce=m.ALLOWED_URI_REGEXP||Ko,_t=m.NAMESPACE||Ye,E=m.CUSTOM_ELEMENT_HANDLING||{},m.CUSTOM_ELEMENT_HANDLING&&fs(m.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(E.tagNameCheck=m.CUSTOM_ELEMENT_HANDLING.tagNameCheck),m.CUSTOM_ELEMENT_HANDLING&&fs(m.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(E.attributeNameCheck=m.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),m.CUSTOM_ELEMENT_HANDLING&&typeof m.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements=="boolean"&&(E.allowCustomizedBuiltInElements=m.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),N&&(k=!1),ge&&(_e=!0),St&&(K=X({},Ho),u=[],St.html===!0&&(X(K,Uo),X(u,jo)),St.svg===!0&&(X(K,tr),X(u,or),X(u,mn)),St.svgFilters===!0&&(X(K,nr),X(u,or),X(u,mn)),St.mathMl===!0&&(X(K,rr),X(u,Vo),X(u,mn))),m.ADD_TAGS&&(K===xe&&(K=lt(K)),X(K,m.ADD_TAGS,me)),m.ADD_ATTR&&(u===h&&(u=lt(u)),X(u,m.ADD_ATTR,me)),m.ADD_URI_SAFE_ATTR&&X(Dr,m.ADD_URI_SAFE_ATTR,me),m.FORBID_CONTENTS&&(Ct===ls&&(Ct=lt(Ct)),X(Ct,m.FORBID_CONTENTS,me)),Nr&&(K["#text"]=!0),z&&X(K,["html","head","body"]),K.table&&(X(K,["tbody"]),delete I.tbody),m.TRUSTED_TYPES_POLICY){if(typeof m.TRUSTED_TYPES_POLICY.createHTML!="function")throw Dt('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof m.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw Dt('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');V=m.TRUSTED_TYPES_POLICY,pe=V.createHTML("")}else V===void 0&&(V=Yc(w,o)),V!==null&&typeof pe=="string"&&(pe=V.createHTML(""));Se&&Se(m),At=m}},ps=X({},["mi","mo","mn","ms","mtext"]),ms=X({},["foreignobject","desc","title","annotation-xml"]),Zp=X({},["title","style","font","a","script"]),hs=X({},[...tr,...nr,...Uc]),gs=X({},[...rr,...Hc]),Qp=function(m){let T=q(m);(!T||!T.tagName)&&(T={namespaceURI:_t,tagName:"template"});const U=fn(m.tagName),se=fn(T.tagName);return Ur[m.namespaceURI]?m.namespaceURI===Pn?T.namespaceURI===Ye?U==="svg":T.namespaceURI===In?U==="svg"&&(se==="annotation-xml"||ps[se]):!!hs[U]:m.namespaceURI===In?T.namespaceURI===Ye?U==="math":T.namespaceURI===Pn?U==="math"&&ms[se]:!!gs[U]:m.namespaceURI===Ye?T.namespaceURI===Pn&&!ms[se]||T.namespaceURI===In&&!ps[se]?!1:!gs[U]&&(Zp[U]||!hs[U]):!!(en==="application/xhtml+xml"&&Ur[m.namespaceURI]):!1},ut=function(m){$t(e.removed,{element:m});try{m.parentNode.removeChild(m)}catch{m.remove()}},jr=function(m,T){try{$t(e.removed,{attribute:T.getAttributeNode(m),from:T})}catch{$t(e.removed,{attribute:null,from:T})}if(T.removeAttribute(m),m==="is"&&!u[m])if(_e||ge)try{ut(T)}catch{}else try{T.setAttribute(m,"")}catch{}},ys=function(m){let T=null,U=null;if(Ie)m="<remove></remove>"+m;else{const Ee=Rc(m,/^[\r\n\t ]+/);U=Ee&&Ee[0]}en==="application/xhtml+xml"&&_t===Ye&&(m='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+m+"</body></html>");const se=V?V.createHTML(m):m;if(_t===Ye)try{T=new v().parseFromString(se,en)}catch{}if(!T||!T.documentElement){T=de.createDocument(_t,"template",null);try{T.documentElement.innerHTML=Mr?pe:se}catch{}}const we=T.body||T.documentElement;return m&&U&&we.insertBefore(n.createTextNode(U),we.childNodes[0]||null),_t===Ye?j.call(T,z?"html":"body")[0]:z?T.documentElement:we},bs=function(m){return y.call(m.ownerDocument||m,m,d.SHOW_ELEMENT|d.SHOW_COMMENT|d.SHOW_TEXT,null)},em=function(m){return m instanceof p&&(typeof m.nodeName!="string"||typeof m.textContent!="string"||typeof m.removeChild!="function"||!(m.attributes instanceof f)||typeof m.removeAttribute!="function"||typeof m.setAttribute!="function"||typeof m.namespaceURI!="string"||typeof m.insertBefore!="function"||typeof m.hasChildNodes!="function")},vs=function(m){return typeof c=="function"&&m instanceof c},Xe=function(m,T,U){B[m]&&dn(B[m],se=>{se.call(e,T,U,At)})},ws=function(m){let T=null;if(Xe("beforeSanitizeElements",m,null),em(m))return ut(m),!0;const U=me(m.nodeName);if(Xe("uponSanitizeElement",m,{tagName:U,allowedTags:K}),m.hasChildNodes()&&!vs(m.firstElementChild)&&Be(/<[/\w]/g,m.innerHTML)&&Be(/<[/\w]/g,m.textContent))return ut(m),!0;if(!K[U]||I[U]){if(!I[U]&&Ss(U)&&(E.tagNameCheck instanceof RegExp&&Be(E.tagNameCheck,U)||E.tagNameCheck instanceof Function&&E.tagNameCheck(U)))return!1;if(Nr&&!Ct[U]){const se=q(m)||m.parentNode,we=$(m)||m.childNodes;if(we&&se){const Ee=we.length;for(let Pe=Ee-1;Pe>=0;--Pe)se.insertBefore(x(we[Pe],!0),C(m))}}return ut(m),!0}return m instanceof l&&!Qp(m)||(U==="noscript"||U==="noembed"||U==="noframes")&&Be(/<\/no(script|embed|frames)/i,m.innerHTML)?(ut(m),!0):(N&&m.nodeType===3&&(T=m.textContent,dn([O,W,A],se=>{T=Nt(T,se," ")}),m.textContent!==T&&($t(e.removed,{element:m.cloneNode()}),m.textContent=T)),Xe("afterSanitizeElements",m,null),!1)},Es=function(m,T,U){if(ss&&(T==="id"||T==="name")&&(U in n||U in Xp))return!1;if(!(k&&!S[T]&&Be(G,T))){if(!(R&&Be(ie,T))){if(!u[T]||S[T]){if(!(Ss(m)&&(E.tagNameCheck instanceof RegExp&&Be(E.tagNameCheck,m)||E.tagNameCheck instanceof Function&&E.tagNameCheck(m))&&(E.attributeNameCheck instanceof RegExp&&Be(E.attributeNameCheck,T)||E.attributeNameCheck instanceof Function&&E.attributeNameCheck(T))||T==="is"&&E.allowCustomizedBuiltInElements&&(E.tagNameCheck instanceof RegExp&&Be(E.tagNameCheck,U)||E.tagNameCheck instanceof Function&&E.tagNameCheck(U))))return!1}else if(!Dr[T]){if(!Be(Ce,Nt(U,fe,""))){if(!((T==="src"||T==="xlink:href"||T==="href")&&m!=="script"&&$c(U,"data:")===0&&cs[m])){if(!(P&&!Be(ce,Nt(U,fe,"")))){if(U)return!1}}}}}}return!0},Ss=function(m){return m!=="annotation-xml"&&m.indexOf("-")>0},Cs=function(m){Xe("beforeSanitizeAttributes",m,null);const{attributes:T}=m;if(!T)return;const U={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:u};let se=T.length;for(;se--;){const we=T[se],{name:Ee,namespaceURI:Pe,value:dt}=we,tn=me(Ee);let Te=Ee==="value"?dt:Nc(dt);if(U.attrName=tn,U.attrValue=Te,U.keepAttr=!0,U.forceKeepAttr=void 0,Xe("uponSanitizeAttribute",m,U),Te=U.attrValue,U.forceKeepAttr||(jr(Ee,m),!U.keepAttr))continue;if(!M&&Be(/\/>/i,Te)){jr(Ee,m);continue}N&&dn([O,W,A],As=>{Te=Nt(Te,As," ")});const _s=me(m.nodeName);if(Es(_s,tn,Te)){if(as&&(tn==="id"||tn==="name")&&(jr(Ee,m),Te=qp+Te),V&&typeof w=="object"&&typeof w.getAttributeType=="function"&&!Pe)switch(w.getAttributeType(_s,tn)){case"TrustedHTML":{Te=V.createHTML(Te);break}case"TrustedScriptURL":{Te=V.createScriptURL(Te);break}}try{Pe?m.setAttributeNS(Pe,Ee,Te):m.setAttribute(Ee,Te),Mo(e.removed)}catch{}}}Xe("afterSanitizeAttributes",m,null)},tm=function H(m){let T=null;const U=bs(m);for(Xe("beforeSanitizeShadowDOM",m,null);T=U.nextNode();)Xe("uponSanitizeShadowNode",T,null),!ws(T)&&(T.content instanceof i&&H(T.content),Cs(T));Xe("afterSanitizeShadowDOM",m,null)};return e.sanitize=function(H){let m=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},T=null,U=null,se=null,we=null;if(Mr=!H,Mr&&(H="<!-->"),typeof H!="string"&&!vs(H))if(typeof H.toString=="function"){if(H=H.toString(),typeof H!="string")throw Dt("dirty is not a string, aborting")}else throw Dt("toString is not a function");if(!e.isSupported)return H;if(Q||Hr(m),e.removed=[],typeof H=="string"&&(Qt=!1),Qt){if(H.nodeName){const dt=me(H.nodeName);if(!K[dt]||I[dt])throw Dt("root node is forbidden and cannot be sanitized in-place")}}else if(H instanceof c)T=ys("<!---->"),U=T.ownerDocument.importNode(H,!0),U.nodeType===1&&U.nodeName==="BODY"||U.nodeName==="HTML"?T=U:T.appendChild(U);else{if(!_e&&!N&&!z&&H.indexOf("<")===-1)return V&&qe?V.createHTML(H):H;if(T=ys(H),!T)return _e?null:qe?pe:""}T&&Ie&&ut(T.firstChild);const Ee=bs(Qt?H:T);for(;se=Ee.nextNode();)ws(se)||(se.content instanceof i&&tm(se.content),Cs(se));if(Qt)return H;if(_e){if(ge)for(we=L.call(T.ownerDocument);T.firstChild;)we.appendChild(T.firstChild);else we=T;return(u.shadowroot||u.shadowrootmode)&&(we=F.call(r,we,!0)),we}let Pe=z?T.outerHTML:T.innerHTML;return z&&K["!doctype"]&&T.ownerDocument&&T.ownerDocument.doctype&&T.ownerDocument.doctype.name&&Be(zo,T.ownerDocument.doctype.name)&&(Pe="<!DOCTYPE "+T.ownerDocument.doctype.name+`>
65
- `+Pe),N&&dn([O,W,A],dt=>{Pe=Nt(Pe,dt," ")}),V&&qe?V.createHTML(Pe):Pe},e.setConfig=function(){let H=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};Hr(H),Q=!0},e.clearConfig=function(){At=null,Q=!1},e.isValidAttribute=function(H,m,T){At||Hr({});const U=me(H),se=me(m);return Es(U,se,T)},e.addHook=function(H,m){typeof m=="function"&&(B[H]=B[H]||[],$t(B[H],m))},e.removeHook=function(H){if(B[H])return Mo(B[H])},e.removeHooks=function(H){B[H]&&(B[H]=[])},e.removeAllHooks=function(){B={}},e}var Go=qo();class Jo{get IsVisible(){return bt.isVisible()}}class Xc extends Jo{constructor(){super()}async CreateAlertAsync(e){let n="info",r,o;return typeof e=="string"||Array.isArray(e)?r=Array.isArray(e)?e.join("<br />"):e:(n=e.icon??"info",o=e.title??"",r=Array.isArray(e.text)?e.text.join("<br />"):e.text),new Promise(i=>{bt.fire({allowEscapeKey:!1,allowOutsideClick:!1,icon:n,title:o,html:`<div style="max-height: 50vh; overflow: auto">${Go.sanitize(r)}</div>`}).then(()=>i(!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"})}}class Zc extends Jo{async CreateConfirmAsync(e){return new Promise(n=>{bt.fire({showCancelButton:!0,allowEscapeKey:!1,allowOutsideClick:!1,icon:"question",title:e.title,html:Go.sanitize(e.text),confirmButtonText:e.confirmLabel??"confirmar",cancelButtonText:e.rejectLabel??"cancelar"}).then(r=>{n(r.isConfirmed===!0)})})}async ConfirmAsync(e){return this.CreateConfirmAsync({text:e})}}const Qc=()=>new Xc,Yo=()=>new Zc,eu=["data-cor"],tu={class:"sf-p-4"},nu=a.defineComponent({__name:"HeaderAvatar",emits:["logout"],setup(t,{emit:e}){const n=Yo(),r=a.ref("?"),o=e;async function i(){await n.CreateConfirmAsync({text:"Você deseja sair da conta?",confirmLabel:"sair"})&&o("logout")}function s(){const d=sessionStorage.getItem("name");let f="?";if(!d)return f;const p=d.split(" ").filter(w=>w.length>0).map(w=>w[0].toUpperCase()),v=Math.min(2,p.length);return f=p.slice(0,v).join(""),f.length>0?f:"?"}const c=a.computed(()=>{const d=r.value[0],f=d==="?"?0:(d.charCodeAt(0)-64)%19;return Math.max(f,0)}),l=a.ref(!1);return a.onMounted(()=>{r.value=s()}),(d,f)=>(a.openBlock(),a.createElementBlock(a.Fragment,null,[a.createElementVNode("div",{id:"sf-header-avatar","data-cor":c.value,onClick:f[0]||(f[0]=p=>l.value=!0)},a.toDisplayString(r.value),9,eu),a.createVNode(Kr,{visible:l.value,"onUpdate:visible":f[1]||(f[1]=p=>l.value=p),position:"right"},{title:a.withCtx(()=>[a.createTextVNode("Minha conta")]),default:a.withCtx(()=>[a.createElementVNode("div",tu,[a.createVNode(zr,{color:"error",onClick:i},{default:a.withCtx(()=>[a.createTextVNode("Sair")]),_:1})])]),_:1},8,["visible"])],64))}}),ru={},ou={xmlns:"http://www.w3.org/2000/svg",height:"48",viewBox:"0 -960 960 960",width:"48",class:"sf-svg-icon"},iu=[a.createElementVNode("path",{d:"m307.231-83.463-54.999-55.23 343.923-343.922-343.923-343.539 54.999-54.614 398.153 398.153L307.231-83.462Z"},null,-1)];function su(t,e){return a.openBlock(),a.createElementBlock("svg",ou,iu)}const au=On(ru,[["render",su]]);class lu{get storedTheme(){return localStorage.getItem("color-scheme")}get IsDark(){return document.documentElement.classList.contains("dark")}Toggle(){this.IsDark?this.EnableLightMode():this.EnableDarkMode()}EnableDarkMode(){document.documentElement.classList.add("dark"),document.documentElement.classList.remove("light"),localStorage.setItem("color-scheme","dark")}EnableLightMode(){document.documentElement.classList.remove("dark"),document.documentElement.classList.add("light"),localStorage.setItem("color-scheme","light")}SetInitialTheme(){if(this.storedTheme==="light")return this.EnableLightMode();if(this.storedTheme==="dark")return this.EnableDarkMode();if(window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches)return this.EnableDarkMode();this.EnableLightMode()}}const ir=new lu,cu=[a.createStaticVNode('<svg xmlns="http://www.w3.org/2000/svg" width="472.39" height="472.39" viewBox="0 0 472.39 472.39"><g class="toggle-sun"><path d="M403.21,167V69.18H305.38L236.2,0,167,69.18H69.18V167L0,236.2l69.18,69.18v97.83H167l69.18,69.18,69.18-69.18h97.83V305.38l69.18-69.18Zm-167,198.17a129,129,0,1,1,129-129A129,129,0,0,1,236.2,365.19Z"></path></g><g class="toggle-circle"><circle class="cls-1" cx="236.2" cy="236.2" r="103.78"></circle></g></svg>',1)],uu=a.defineComponent({__name:"ThemeToggle",setup(t){return(e,n)=>(a.openBlock(),a.createElementBlock("button",{id:"sf-theme-toggle",onClick:n[0]||(n[0]=(...r)=>a.unref(ir).Toggle&&a.unref(ir).Toggle(...r))},cu))}}),du={id:"sf-layout"},fu=a.createElementVNode("div",{class:"sf-layout-menu-toggler-logo"},null,-1),pu={class:"title"},mu={class:"sf-layout-nav-content"},hu=a.createElementVNode("div",{class:"sf-layout-nav-footer"},[a.createElementVNode("div",{class:"sf-layout-nav-footer-logo"})],-1),gu=a.createElementVNode("section",{id:"sf-layout-page-title"},null,-1),yu={id:"sf-layout-content"},bu=a.defineComponent({__name:"Layout",emits:["mounted","logout"],setup(t,{emit:e}){const n=Tn(),r=e;return a.onMounted(()=>{r("mounted")}),(o,i)=>(a.openBlock(),a.createElementBlock("div",du,[a.createElementVNode("header",null,[a.createElementVNode("div",{class:a.normalizeClass(["sf-layout-menu-toggler",{invert:a.unref(n).IsVisible}]),onClick:i[0]||(i[0]=s=>a.unref(n).Toggle())},[fu,a.createVNode(au)],2),a.createElementVNode("div",pu,[a.renderSlot(o.$slots,"title")]),a.renderSlot(o.$slots,"action"),a.createVNode(Ln,{text:"alternar tema"},{default:a.withCtx(()=>[a.createVNode(uu)]),_:1}),a.createVNode(nu,{onLogout:i[1]||(i[1]=s=>r("logout"))})]),a.createElementVNode("nav",{class:a.normalizeClass({visible:a.unref(n).IsVisible})},[a.createElementVNode("div",mu,[a.renderSlot(o.$slots,"menu")]),hu],2),a.createElementVNode("main",{class:a.normalizeClass({"menu-visible":a.unref(n).IsVisible})},[gu,a.createElementVNode("section",yu,[a.renderSlot(o.$slots,"content")])],2)]))}}),vu=["href","data-active","onClick"],wu={class:"sf-navmenulink-text"},Eu=a.defineComponent({__name:"NavMenuLink",props:{href:{},text:{},icon:{},iconFilled:{type:Boolean},exact:{type:Boolean}},setup(t){const e=t,n=Tn();function r(o,i){o.preventDefault();const c=o.target.closest(".sf-layout-nav-content");i(),c&&c.clientWidth+10>document.body.clientWidth&&n.Close()}return(o,i)=>{const s=a.resolveComponent("router-link");return a.openBlock(),a.createBlock(s,{to:e.href,custom:""},{default:a.withCtx(({href:c,navigate:l,isExactActive:d,isActive:f})=>[a.createElementVNode("a",{class:"sf-navmenulink",href:c,"data-active":e.exact?d:f,onClick:p=>r(p,l)},[e.icon?(a.openBlock(),a.createBlock(Qe,{key:0,icon:e.icon,filled:e.iconFilled,"button-props":{tabindex:-1}},null,8,["icon","filled"])):a.createCommentVNode("",!0),a.createElementVNode("span",wu,a.toDisplayString(e.text),1)],8,vu)]),_:1},8,["to"])}}}),Su=a.defineComponent({__name:"ScrollToTop",setup(t){const e=a.ref(!1),n=`--${+new Date}`;let r=null;function o(){r==null||r.scrollTo(0,0)}return a.onMounted(()=>{var i;r=((i=document.getElementById(n))==null?void 0:i.parentElement)??null,r&&r.addEventListener("scroll",function(){e.value=this.scrollTop-this.clientHeight>0})}),(i,s)=>(a.openBlock(),a.createElementBlock("button",{id:n,class:a.normalizeClass(["sf-scrollToTop",{"sf-scrollToTop-visible":e.value}]),onClick:o},null,2))}}),Cu=a.defineComponent({__name:"Content",props:{class:{},style:{},disableBodyPadding:{type:Boolean},disableHeaderPadding:{type:Boolean},disableFooterPadding:{type:Boolean}},setup(t){const e=t;function n(){return new Ze("sf-content").AddClass(e.class,!!e.class).Build()}function r(){return new Ze("sf-content-body").AddClass("sf-content-no-padding",e.disableBodyPadding).Build()}function o(){return new Ze("sf-content-header").AddClass("sf-content-no-padding",e.disableHeaderPadding).Build()}function i(){return new Ze("sf-content-footer").AddClass("sf-content-no-padding",e.disableFooterPadding).Build()}return(s,c)=>(a.openBlock(),a.createElementBlock("div",{class:a.normalizeClass(n()),style:a.normalizeStyle(e.style)},[a.createElementVNode("div",{class:a.normalizeClass(o())},[a.renderSlot(s.$slots,"header")],2),a.createElementVNode("div",{class:a.normalizeClass(r())},[a.renderSlot(s.$slots,"default"),a.createVNode(Su)],2),a.createElementVNode("div",{class:a.normalizeClass(i())},[a.renderSlot(s.$slots,"footer")],2)],6))}}),_u={class:"sf-tab-navigation"},Au=[a.createElementVNode("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor",class:"w-6 h-6"},[a.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M15.75 19.5L8.25 12l7.5-7.5"})],-1)],ku=["data-active"],xu=["href","onClick"],Iu=[a.createElementVNode("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor",class:"w-6 h-6"},[a.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M8.25 4.5l7.5 7.5-7.5 7.5"})],-1)],Pu=a.defineComponent({__name:"TabNavigation",props:{tabs:{}},setup(t){const e=t,n=a.ref(null),r=new ResizeObserver(l=>{c()}),o=a.ref(!1),i=a.ref(!1);function s(l=!1){const d=n.value.clientWidth;n.value.scrollLeft+=l?-d:d}function c(){const l=n.value.scrollWidth-n.value.clientWidth;o.value=n.value.scrollLeft>10,i.value=n.value.scrollLeft<l-10}return a.onMounted(()=>{n.value.addEventListener("scroll",c),r.observe(n.value)}),a.onBeforeUnmount(()=>{var l;try{(l=n.value)==null||l.removeEventListener("scroll",c),r.unobserve(n.value),r.disconnect()}catch{}}),(l,d)=>{const f=a.resolveComponent("RouterLink");return a.openBlock(),a.createElementBlock("div",_u,[a.createElementVNode("div",{class:a.normalizeClass(["left-arrow",{active:o.value}]),onClick:d[0]||(d[0]=p=>s(!0))},Au,2),a.createElementVNode("ul",{ref_key:"trackerContainer",ref:n},[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(e.tabs,p=>(a.openBlock(),a.createBlock(f,{to:p.route,custom:!0},{default:a.withCtx(({navigate:v,isActive:w})=>[a.createElementVNode("li",{"data-active":w},[a.renderSlot(l.$slots,"item",{item:p,navigate:v,isActive:w},()=>[a.createElementVNode("a",{href:p.route,class:a.normalizeClass({active:w}),onClick:v},a.toDisplayString(p.text),11,xu)])],8,ku)]),_:2},1032,["to"]))),256))],512),a.createElementVNode("div",{class:a.normalizeClass(["right-arrow",{active:i.value}]),onClick:d[1]||(d[1]=p=>s())},Iu,2)])}}}),Tu=["data-icon"],Ou=a.defineComponent({__name:"Message",props:{color:{default:"info"},class:{},style:{},icon:{}},setup(t){const e=t,n=a.computed(()=>{if(e.icon)return e.icon;switch(e.color){case"error":return"cancel";case"info":return"info";case"warn":return"warning";case"success":return"check";case"help":return"help";default:return null}}),r=a.computed(()=>new Ze("sf-message").AddClass("sf-message-error",e.color==="error").AddClass("sf-message-info",e.color==="info").AddClass("sf-message-warning",e.color==="warn").AddClass("sf-message-success",e.color==="success").AddClass("sf-message-help",e.color==="help").AddClass("sf-message-primary",e.color==="primary").AddClass("sf-message-secondary",e.color==="secondary").AddClass(e.class).Build());return(o,i)=>(a.openBlock(),a.createElementBlock("div",{class:a.normalizeClass(r.value),"data-icon":n.value},[a.renderSlot(o.$slots,"default")],10,Tu))}});function sr(t,e){var n=typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(!n){if(Array.isArray(t)||(n=lr(t))||e&&t&&typeof t.length=="number"){n&&(t=n);var r=0,o=function(){};return{s:o,n:function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(d){throw d},f:o}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
66
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var i=!0,s=!1,c;return{s:function(){n=n.call(t)},n:function(){var d=n.next();return i=d.done,d},e:function(d){s=!0,c=d},f:function(){try{!i&&n.return!=null&&n.return()}finally{if(s)throw c}}}}function Lu(t){return Ru(t)||Fu(t)||lr(t)||Bu()}function Bu(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
67
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Fu(t){if(typeof Symbol<"u"&&t[Symbol.iterator]!=null||t["@@iterator"]!=null)return Array.from(t)}function Ru(t){if(Array.isArray(t))return cr(t)}function Mt(t){"@babel/helpers - typeof";return Mt=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Mt(t)}function ar(t,e){return Du(t)||Nu(t,e)||lr(t,e)||$u()}function $u(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
68
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function lr(t,e){if(t){if(typeof t=="string")return cr(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);if(n==="Object"&&t.constructor&&(n=t.constructor.name),n==="Map"||n==="Set")return Array.from(t);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return cr(t,e)}}function cr(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function Nu(t,e){var n=t==null?null:typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(n!=null){var r,o,i,s,c=[],l=!0,d=!1;try{if(i=(n=n.call(t)).next,e===0){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=i.call(n)).done)&&(c.push(r.value),c.length!==e);l=!0);}catch(f){d=!0,o=f}finally{try{if(!l&&n.return!=null&&(s=n.return(),Object(s)!==s))return}finally{if(d)throw o}}return c}}function Du(t){if(Array.isArray(t))return t}var Z={innerWidth:function(e){if(e){var n=e.offsetWidth,r=getComputedStyle(e);return n+=parseFloat(r.paddingLeft)+parseFloat(r.paddingRight),n}return 0},width:function(e){if(e){var n=e.offsetWidth,r=getComputedStyle(e);return n-=parseFloat(r.paddingLeft)+parseFloat(r.paddingRight),n}return 0},getWindowScrollTop:function(){var e=document.documentElement;return(window.pageYOffset||e.scrollTop)-(e.clientTop||0)},getWindowScrollLeft:function(){var e=document.documentElement;return(window.pageXOffset||e.scrollLeft)-(e.clientLeft||0)},getOuterWidth:function(e,n){if(e){var r=e.offsetWidth;if(n){var o=getComputedStyle(e);r+=parseFloat(o.marginLeft)+parseFloat(o.marginRight)}return r}return 0},getOuterHeight:function(e,n){if(e){var r=e.offsetHeight;if(n){var o=getComputedStyle(e);r+=parseFloat(o.marginTop)+parseFloat(o.marginBottom)}return r}return 0},getClientHeight:function(e,n){if(e){var r=e.clientHeight;if(n){var o=getComputedStyle(e);r+=parseFloat(o.marginTop)+parseFloat(o.marginBottom)}return r}return 0},getViewport:function(){var e=window,n=document,r=n.documentElement,o=n.getElementsByTagName("body")[0],i=e.innerWidth||r.clientWidth||o.clientWidth,s=e.innerHeight||r.clientHeight||o.clientHeight;return{width:i,height:s}},getOffset:function(e){if(e){var n=e.getBoundingClientRect();return{top:n.top+(window.pageYOffset||document.documentElement.scrollTop||document.body.scrollTop||0),left:n.left+(window.pageXOffset||document.documentElement.scrollLeft||document.body.scrollLeft||0)}}return{top:"auto",left:"auto"}},index:function(e){if(e)for(var n,r=(n=this.getParentNode(e))===null||n===void 0?void 0:n.childNodes,o=0,i=0;i<r.length;i++){if(r[i]===e)return o;r[i].nodeType===1&&o++}return-1},addMultipleClasses:function(e,n){var r=this;e&&n&&[n].flat().filter(Boolean).forEach(function(o){return o.split(" ").forEach(function(i){return r.addClass(e,i)})})},removeMultipleClasses:function(e,n){var r=this;e&&n&&[n].flat().filter(Boolean).forEach(function(o){return o.split(" ").forEach(function(i){return r.removeClass(e,i)})})},addClass:function(e,n){e&&n&&!this.hasClass(e,n)&&(e.classList?e.classList.add(n):e.className+=" "+n)},removeClass:function(e,n){e&&n&&(e.classList?e.classList.remove(n):e.className=e.className.replace(new RegExp("(^|\\b)"+n.split(" ").join("|")+"(\\b|$)","gi")," "))},hasClass:function(e,n){return e?e.classList?e.classList.contains(n):new RegExp("(^| )"+n+"( |$)","gi").test(e.className):!1},addStyles:function(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};e&&Object.entries(n).forEach(function(r){var o=ar(r,2),i=o[0],s=o[1];return e.style[i]=s})},find:function(e,n){return this.isElement(e)?e.querySelectorAll(n):[]},findSingle:function(e,n){return this.isElement(e)?e.querySelector(n):null},createElement:function(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(e){var r=document.createElement(e);this.setAttributes(r,n);for(var o=arguments.length,i=new Array(o>2?o-2:0),s=2;s<o;s++)i[s-2]=arguments[s];return r.append.apply(r,i),r}},setAttribute:function(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"",r=arguments.length>2?arguments[2]:void 0;this.isElement(e)&&r!==null&&r!==void 0&&e.setAttribute(n,r)},setAttributes:function(e){var n=this,r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(this.isElement(e)){var o=function i(s,c){var l,d,f=e!=null&&(l=e.$attrs)!==null&&l!==void 0&&l[s]?[e==null||(d=e.$attrs)===null||d===void 0?void 0:d[s]]:[];return[c].flat().reduce(function(p,v){if(v!=null){var w=Mt(v);if(w==="string"||w==="number")p.push(v);else if(w==="object"){var _=Array.isArray(v)?i(s,v):Object.entries(v).map(function(x){var C=ar(x,2),$=C[0],q=C[1];return s==="style"&&(q||q===0)?"".concat($.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase(),":").concat(q):q?$:void 0});p=_.length?p.concat(_.filter(function(x){return!!x})):p}}return p},f)};Object.entries(r).forEach(function(i){var s=ar(i,2),c=s[0],l=s[1];if(l!=null){var d=c.match(/^on(.+)/);d?e.addEventListener(d[1].toLowerCase(),l):c==="p-bind"?n.setAttributes(e,l):(l=c==="class"?Lu(new Set(o("class",l))).join(" ").trim():c==="style"?o("style",l).join(";").trim():l,(e.$attrs=e.$attrs||{})&&(e.$attrs[c]=l),e.setAttribute(c,l))}})}},getAttribute:function(e,n){if(this.isElement(e)){var r=e.getAttribute(n);return isNaN(r)?r==="true"||r==="false"?r==="true":r:+r}},isAttributeEquals:function(e,n,r){return this.isElement(e)?this.getAttribute(e,n)===r:!1},isAttributeNotEquals:function(e,n,r){return!this.isAttributeEquals(e,n,r)},getHeight:function(e){if(e){var n=e.offsetHeight,r=getComputedStyle(e);return n-=parseFloat(r.paddingTop)+parseFloat(r.paddingBottom)+parseFloat(r.borderTopWidth)+parseFloat(r.borderBottomWidth),n}return 0},getWidth:function(e){if(e){var n=e.offsetWidth,r=getComputedStyle(e);return n-=parseFloat(r.paddingLeft)+parseFloat(r.paddingRight)+parseFloat(r.borderLeftWidth)+parseFloat(r.borderRightWidth),n}return 0},absolutePosition:function(e,n){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;if(e){var o=e.offsetParent?{width:e.offsetWidth,height:e.offsetHeight}:this.getHiddenElementDimensions(e),i=o.height,s=o.width,c=n.offsetHeight,l=n.offsetWidth,d=n.getBoundingClientRect(),f=this.getWindowScrollTop(),p=this.getWindowScrollLeft(),v=this.getViewport(),w,_,x="top";d.top+c+i>v.height?(w=d.top+f-i,x="bottom",w<0&&(w=f)):w=c+d.top+f,d.left+s>v.width?_=Math.max(0,d.left+p+l-s):_=d.left+p,e.style.top=w+"px",e.style.left=_+"px",e.style.transformOrigin=x,r&&(e.style.marginTop=x==="bottom"?"calc(var(--p-anchor-gutter) * -1)":"calc(var(--p-anchor-gutter))")}},relativePosition:function(e,n){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;if(e){var o=e.offsetParent?{width:e.offsetWidth,height:e.offsetHeight}:this.getHiddenElementDimensions(e),i=n.offsetHeight,s=n.getBoundingClientRect(),c=this.getViewport(),l,d,f="top";s.top+i+o.height>c.height?(l=-1*o.height,f="bottom",s.top+l<0&&(l=-1*s.top)):l=i,o.width>c.width?d=s.left*-1:s.left+o.width>c.width?d=(s.left+o.width-c.width)*-1:d=0,e.style.top=l+"px",e.style.left=d+"px",e.style.transformOrigin=f,r&&(e.style.marginTop=f==="bottom"?"calc(var(--p-anchor-gutter) * -1)":"calc(var(--p-anchor-gutter))")}},nestedPosition:function(e,n){if(e){var r=e.parentElement,o=this.getOffset(r),i=this.getViewport(),s=e.offsetParent?e.offsetWidth:this.getHiddenElementOuterWidth(e),c=this.getOuterWidth(r.children[0]),l;parseInt(o.left,10)+c+s>i.width-this.calculateScrollbarWidth()?parseInt(o.left,10)<s?n%2===1?l=parseInt(o.left,10)?"-"+parseInt(o.left,10)+"px":"100%":n%2===0&&(l=i.width-s-this.calculateScrollbarWidth()+"px"):l="-100%":l="100%",e.style.top="0px",e.style.left=l}},getParentNode:function(e){var n=e==null?void 0:e.parentNode;return n&&n instanceof ShadowRoot&&n.host&&(n=n.host),n},getParents:function(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],r=this.getParentNode(e);return r===null?n:this.getParents(r,n.concat([r]))},getScrollableParents:function(e){var n=[];if(e){var r=this.getParents(e),o=/(auto|scroll)/,i=function(C){try{var $=window.getComputedStyle(C,null);return o.test($.getPropertyValue("overflow"))||o.test($.getPropertyValue("overflowX"))||o.test($.getPropertyValue("overflowY"))}catch{return!1}},s=sr(r),c;try{for(s.s();!(c=s.n()).done;){var l=c.value,d=l.nodeType===1&&l.dataset.scrollselectors;if(d){var f=d.split(","),p=sr(f),v;try{for(p.s();!(v=p.n()).done;){var w=v.value,_=this.findSingle(l,w);_&&i(_)&&n.push(_)}}catch(x){p.e(x)}finally{p.f()}}l.nodeType!==9&&i(l)&&n.push(l)}}catch(x){s.e(x)}finally{s.f()}}return n},getHiddenElementOuterHeight:function(e){if(e){e.style.visibility="hidden",e.style.display="block";var n=e.offsetHeight;return e.style.display="none",e.style.visibility="visible",n}return 0},getHiddenElementOuterWidth:function(e){if(e){e.style.visibility="hidden",e.style.display="block";var n=e.offsetWidth;return e.style.display="none",e.style.visibility="visible",n}return 0},getHiddenElementDimensions:function(e){if(e){var n={};return e.style.visibility="hidden",e.style.display="block",n.width=e.offsetWidth,n.height=e.offsetHeight,e.style.display="none",e.style.visibility="visible",n}return 0},fadeIn:function(e,n){if(e){e.style.opacity=0;var r=+new Date,o=0,i=function s(){o=+e.style.opacity+(new Date().getTime()-r)/n,e.style.opacity=o,r=+new Date,+o<1&&(window.requestAnimationFrame&&requestAnimationFrame(s)||setTimeout(s,16))};i()}},fadeOut:function(e,n){if(e)var r=1,o=50,i=n,s=o/i,c=setInterval(function(){r-=s,r<=0&&(r=0,clearInterval(c)),e.style.opacity=r},o)},getUserAgent:function(){return navigator.userAgent},appendChild:function(e,n){if(this.isElement(n))n.appendChild(e);else if(n.el&&n.elElement)n.elElement.appendChild(e);else throw new Error("Cannot append "+n+" to "+e)},isElement:function(e){return(typeof HTMLElement>"u"?"undefined":Mt(HTMLElement))==="object"?e instanceof HTMLElement:e&&Mt(e)==="object"&&e!==null&&e.nodeType===1&&typeof e.nodeName=="string"},scrollInView:function(e,n){var r=getComputedStyle(e).getPropertyValue("borderTopWidth"),o=r?parseFloat(r):0,i=getComputedStyle(e).getPropertyValue("paddingTop"),s=i?parseFloat(i):0,c=e.getBoundingClientRect(),l=n.getBoundingClientRect(),d=l.top+document.body.scrollTop-(c.top+document.body.scrollTop)-o-s,f=e.scrollTop,p=e.clientHeight,v=this.getOuterHeight(n);d<0?e.scrollTop=f+d:d+v>p&&(e.scrollTop=f+d-p+v)},clearSelection:function(){if(window.getSelection)window.getSelection().empty?window.getSelection().empty():window.getSelection().removeAllRanges&&window.getSelection().rangeCount>0&&window.getSelection().getRangeAt(0).getClientRects().length>0&&window.getSelection().removeAllRanges();else if(document.selection&&document.selection.empty)try{document.selection.empty()}catch{}},getSelection:function(){return window.getSelection?window.getSelection().toString():document.getSelection?document.getSelection().toString():document.selection?document.selection.createRange().text:null},calculateScrollbarWidth:function(){if(this.calculatedScrollbarWidth!=null)return this.calculatedScrollbarWidth;var e=document.createElement("div");this.addStyles(e,{width:"100px",height:"100px",overflow:"scroll",position:"absolute",top:"-9999px"}),document.body.appendChild(e);var n=e.offsetWidth-e.clientWidth;return document.body.removeChild(e),this.calculatedScrollbarWidth=n,n},calculateBodyScrollbarWidth:function(){return window.innerWidth-document.documentElement.offsetWidth},getBrowser:function(){if(!this.browser){var e=this.resolveUserAgent();this.browser={},e.browser&&(this.browser[e.browser]=!0,this.browser.version=e.version),this.browser.chrome?this.browser.webkit=!0:this.browser.webkit&&(this.browser.safari=!0)}return this.browser},resolveUserAgent:function(){var e=navigator.userAgent.toLowerCase(),n=/(chrome)[ ]([\w.]+)/.exec(e)||/(webkit)[ ]([\w.]+)/.exec(e)||/(opera)(?:.*version|)[ ]([\w.]+)/.exec(e)||/(msie) ([\w.]+)/.exec(e)||e.indexOf("compatible")<0&&/(mozilla)(?:.*? rv:([\w.]+)|)/.exec(e)||[];return{browser:n[1]||"",version:n[2]||"0"}},isVisible:function(e){return e&&e.offsetParent!=null},invokeElementMethod:function(e,n,r){e[n].apply(e,r)},isExist:function(e){return!!(e!==null&&typeof e<"u"&&e.nodeName&&this.getParentNode(e))},isClient:function(){return!!(typeof window<"u"&&window.document&&window.document.createElement)},focus:function(e,n){e&&document.activeElement!==e&&e.focus(n)},isFocusableElement:function(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";return this.isElement(e)?e.matches('button:not([tabindex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden])'.concat(n,`,
64
+ 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 zl(){const t=R.domCache.get(this),e=R.innerParams.get(this);if(!e){yo(this);return}t.popup&&N.swalCloseEventFinishedCallback&&(N.swalCloseEventFinishedCallback(),delete N.swalCloseEventFinishedCallback),N.deferDisposalTimer&&(clearTimeout(N.deferDisposalTimer),delete N.deferDisposalTimer),typeof e.didDestroy=="function"&&e.didDestroy(),ql(this)}const ql=t=>{yo(t),delete t.params,delete N.keydownHandler,delete N.keydownTarget,delete N.currentInstance},yo=t=>{t.isAwaitingPromise()?(Nn(R,t),R.awaitingPromise.set(t,!0)):(Nn(Ct,t),Nn(R,t))},Nn=(t,e)=>{for(const n in t)t[n].delete(e)},bo=Object.freeze(Object.defineProperty({__proto__:null,_destroy:zl,close:Yt,closeModal:Yt,closePopup:Yt,closeToast:Yt,disableButtons:Rl,disableInput:Hl,disableLoading:lo,enableButtons:Dl,enableInput:Ml,getInput:vl,getProgressSteps:Ul,handleAwaitingPromise:At,hideLoading:lo,isAwaitingPromise:kl,rejectPromise:$l,resetValidationMessage:Vl,showValidationMessage:jl,update:Wl},Symbol.toStringTag,{value:"Module"})),Gl=t=>{const e=R.innerParams.get(t);t.disableButtons(),e.input?vo(t,"confirm"):Rn(t,!0)},Jl=t=>{const e=R.innerParams.get(t);t.disableButtons(),e.returnInputValueOnDeny?vo(t,"deny"):Dn(t,!1)},Yl=(t,e)=>{t.disableButtons(),e(rt.cancel)},vo=(t,e)=>{const n=R.innerParams.get(t);if(!n.input)return Ke(`The "input" parameter is needed to be set when using returnInputValueOn${Sn(e)}`);const r=dl(t,n);n.inputValidator?Xl(t,r,e):t.getInput().checkValidity()?e==="deny"?Dn(t,r):Rn(t,r):(t.enableButtons(),t.showValidationMessage(n.validationMessage))},Xl=(t,e,n)=>{const r=R.innerParams.get(t);t.disableInput(),Promise.resolve().then(()=>ht(r.inputValidator(e,r.validationMessage))).then(i=>{t.enableButtons(),t.enableInput(),i?t.showValidationMessage(i):n==="deny"?Dn(t,e):Rn(t,e)})},Dn=(t,e)=>{const n=R.innerParams.get(t||void 0);n.showLoaderOnDeny&&ot(Me()),n.preDeny?(R.awaitingPromise.set(t||void 0,!0),Promise.resolve().then(()=>ht(n.preDeny(e,n.validationMessage))).then(o=>{o===!1?(t.hideLoading(),At(t)):t.closePopup({isDenied:!0,value:typeof o>"u"?e:o})}).catch(o=>Eo(t||void 0,o))):t.closePopup({isDenied:!0,value:e})},wo=(t,e)=>{t.closePopup({isConfirmed:!0,value:e})},Eo=(t,e)=>{t.rejectPromise(e)},Rn=(t,e)=>{const n=R.innerParams.get(t||void 0);n.showLoaderOnConfirm&&ot(),n.preConfirm?(t.resetValidationMessage(),R.awaitingPromise.set(t||void 0,!0),Promise.resolve().then(()=>ht(n.preConfirm(e,n.validationMessage))).then(o=>{ye(zt())||o===!1?(t.hideLoading(),At(t)):wo(t,typeof o>"u"?e:o)}).catch(o=>Eo(t||void 0,o))):wo(t,e)},Zl=(t,e,n)=>{R.innerParams.get(t).toast?Ql(t,e,n):(tc(e),nc(e),rc(t,e,n))},Ql=(t,e,n)=>{e.popup.onclick=()=>{const r=R.innerParams.get(t);r&&(ec(r)||r.timer||r.input)||n(rt.close)}},ec=t=>t.showConfirmButton||t.showDenyButton||t.showCancelButton||t.showCloseButton;let Xt=!1;const tc=t=>{t.popup.onmousedown=()=>{t.container.onmouseup=function(e){t.container.onmouseup=void 0,e.target===t.container&&(Xt=!0)}}},nc=t=>{t.container.onmousedown=()=>{t.popup.onmouseup=function(e){t.popup.onmouseup=void 0,(e.target===t.popup||t.popup.contains(e.target))&&(Xt=!0)}}},rc=(t,e,n)=>{e.container.onclick=r=>{const o=R.innerParams.get(t);if(Xt){Xt=!1;return}r.target===e.container&&Wt(o.allowOutsideClick)&&n(rt.backdrop)}},oc=t=>typeof t=="object"&&t.jquery,So=t=>t instanceof Element||oc(t),ic=t=>{const e={};return typeof t[0]=="object"&&!So(t[0])?Object.assign(e,t[0]):["title","html","icon"].forEach((n,r)=>{const o=t[r];typeof o=="string"||So(o)?e[n]=o:o!==void 0&&Ke(`Unexpected type of ${n}! Expected "string" or "Element", got ${typeof o}`)}),e};function sc(...t){const e=this;return new e(...t)}function ac(t){class e extends this{_main(r,o){return super._main(r,Object.assign({},t,o))}}return e}const lc=()=>N.timeout&&N.timeout.getTimerLeft(),Co=()=>{if(N.timeout)return Js(),N.timeout.stop()},Ao=()=>{if(N.timeout){const t=N.timeout.start();return On(t),t}},cc=()=>{const t=N.timeout;return t&&(t.running?Co():Ao())},uc=t=>{if(N.timeout){const e=N.timeout.increase(t);return On(e,!0),e}},dc=()=>N.timeout&&N.timeout.isRunning();let _o=!1;const Mn={};function fc(t="data-swal-template"){Mn[t]=this,_o||(document.body.addEventListener("click",pc),_o=!0)}const pc=t=>{for(let e=t.target;e&&e!==document;e=e.parentNode)for(const n in Mn){const r=e.getAttribute(n);if(r){Mn[n].fire({template:r});return}}},mc=Object.freeze(Object.defineProperty({__proto__:null,argsToParams:ic,bindClickHandler:fc,clickCancel:Sl,clickConfirm:co,clickDeny:El,enableLoading:ot,fire:sc,getActions:vt,getCancelButton:ze,getCloseButton:xn,getConfirmButton:Ae,getContainer:re,getDenyButton:Me,getFocusableElements:Pn,getFooter:Wr,getHtmlContainer:Kt,getIcon:bt,getImage:Vr,getInputLabel:Ws,getLoader:tt,getPopup:z,getTimerLeft:lc,getTimerProgressBar:qt,getTitle:jr,getValidationMessage:zt,increaseTimer:uc,isDeprecatedParameter:_n,isLoading:zs,isTimerRunning:dc,isUpdatableParameter:Mr,isValidParameter:Rr,isVisible:wl,mixin:ac,resumeTimer:Ao,showLoading:ot,stopTimer:Co,toggleTimer:cc},Symbol.toStringTag,{value:"Module"}));let Hn;class it{constructor(...e){if(typeof window>"u")return;Hn=this;const n=Object.freeze(this.constructor.argsToParams(e));Object.defineProperties(this,{params:{value:n,writable:!1,enumerable:!0,configurable:!0}});const r=this._main(this.params);R.promise.set(this,r)}_main(e,n={}){Vs(Object.assign({},n,e)),N.currentInstance&&(N.currentInstance._destroy(),In()&&no()),N.currentInstance=this;const r=gc(e,n);Ga(r),Object.freeze(r),N.timeout&&(N.timeout.stop(),delete N.timeout),clearTimeout(N.restoreFocusTimeout);const o=yc(this);return to(this,r),R.innerParams.set(this,r),hc(this,o,r)}then(e){return R.promise.get(this).then(e)}finally(e){return R.promise.get(this).finally(e)}}const hc=(t,e,n)=>new Promise((r,o)=>{const i=s=>{t.closePopup({isDismissed:!0,dismiss:s})};Ct.swalPromiseResolve.set(t,r),Ct.swalPromiseReject.set(t,o),e.confirmButton.onclick=()=>Gl(t),e.denyButton.onclick=()=>Jl(t),e.cancelButton.onclick=()=>Yl(t,i),e.closeButton.onclick=()=>i(rt.close),Zl(t,e,i),Cl(t,N,n,i),ul(t,n),il(n),bc(N,n,i),vc(e,n),setTimeout(()=>{e.container.scrollTop=0})}),gc=(t,e)=>{const n=Ra(t),r=Object.assign({},et,e,n,t);return r.showClass=Object.assign({},et.showClass,r.showClass),r.hideClass=Object.assign({},et.hideClass,r.hideClass),r},yc=t=>{const e={popup:z(),container:re(),actions:vt(),confirmButton:Ae(),denyButton:Me(),cancelButton:ze(),loader:tt(),closeButton:xn(),validationMessage:zt(),progressSteps:Ur()};return R.domCache.set(t,e),e},bc=(t,e,n)=>{const r=qt();ie(r),e.timer&&(t.timeout=new Ja(()=>{n("timer"),delete t.timeout},e.timer),e.timerProgressBar&&(te(r),Ee(r,e,"timerProgressBar"),setTimeout(()=>{t.timeout&&t.timeout.running&&On(e.timer)})))},vc=(t,e)=>{if(!e.toast){if(!Wt(e.allowEnterKey))return Ec();wc(t,e)||Fn(e,-1,1)}},wc=(t,e)=>e.focusDeny&&ye(t.denyButton)?(t.denyButton.focus(),!0):e.focusCancel&&ye(t.cancelButton)?(t.cancelButton.focus(),!0):e.focusConfirm&&ye(t.confirmButton)?(t.confirmButton.focus(),!0):!1,Ec=()=>{document.activeElement instanceof HTMLElement&&typeof document.activeElement.blur=="function"&&document.activeElement.blur()};Object.assign(it.prototype,bo),Object.assign(it,mc),Object.keys(bo).forEach(t=>{it[t]=function(...e){if(Hn)return Hn[t](...e)}}),it.DismissReason=rt,it.version="11.4.8";const st=it;st.default=st;/*! @license DOMPurify 3.0.9 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.0.9/LICENSE */const{entries:xo,setPrototypeOf:Po,isFrozen:Sc,getPrototypeOf:Cc,getOwnPropertyDescriptor:Ac}=Object;let{freeze:ce,seal:_e,create:Io}=Object,{apply:jn,construct:Vn}=typeof Reflect<"u"&&Reflect;ce||(ce=function(e){return e}),_e||(_e=function(e){return e}),jn||(jn=function(e,n,r){return e.apply(n,r)}),Vn||(Vn=function(e,n){return new e(...n)});const Zt=ve(Array.prototype.forEach),To=ve(Array.prototype.pop),_t=ve(Array.prototype.push),Qt=ve(String.prototype.toLowerCase),Un=ve(String.prototype.toString),_c=ve(String.prototype.match),xt=ve(String.prototype.replace),xc=ve(String.prototype.indexOf),Pc=ve(String.prototype.trim),xe=ve(Object.prototype.hasOwnProperty),be=ve(RegExp.prototype.test),Pt=Ic(TypeError);function ve(t){return function(e){for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];return jn(t,e,r)}}function Ic(t){return function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return Vn(t,n)}}function H(t,e){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:Qt;Po&&Po(t,null);let r=e.length;for(;r--;){let o=e[r];if(typeof o=="string"){const i=n(o);i!==o&&(Sc(e)||(e[r]=i),o=i)}t[o]=!0}return t}function Tc(t){for(let e=0;e<t.length;e++)xe(t,e)||(t[e]=null);return t}function Je(t){const e=Io(null);for(const[n,r]of xo(t))xe(t,n)&&(Array.isArray(r)?e[n]=Tc(r):r&&typeof r=="object"&&r.constructor===Object?e[n]=Je(r):e[n]=r);return e}function en(t,e){for(;t!==null;){const r=Ac(t,e);if(r){if(r.get)return ve(r.get);if(typeof r.value=="function")return ve(r.value)}t=Cc(t)}function n(){return null}return n}const Oo=ce(["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"]),Wn=ce(["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"]),Kn=ce(["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"]),Oc=ce(["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"]),zn=ce(["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"]),kc=ce(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),ko=ce(["#text"]),Bo=ce(["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","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","xmlns","slot"]),qn=ce(["accent-height","accumulate","additive","alignment-baseline","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","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","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","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","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"]),$o=ce(["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"]),tn=ce(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),Bc=_e(/\{\{[\w\W]*|[\w\W]*\}\}/gm),$c=_e(/<%[\w\W]*|[\w\W]*%>/gm),Lc=_e(/\${[\w\W]*}/gm),Fc=_e(/^data-[\-\w.\u00B7-\uFFFF]/),Nc=_e(/^aria-[\-\w]+$/),Lo=_e(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),Dc=_e(/^(?:\w+script|data):/i),Rc=_e(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),Fo=_e(/^html$/i);var No=Object.freeze({__proto__:null,MUSTACHE_EXPR:Bc,ERB_EXPR:$c,TMPLIT_EXPR:Lc,DATA_ATTR:Fc,ARIA_ATTR:Nc,IS_ALLOWED_URI:Lo,IS_SCRIPT_OR_DATA:Dc,ATTR_WHITESPACE:Rc,DOCTYPE_NAME:Fo});const Mc=function(){return typeof window>"u"?null:window},Hc=function(e,n){if(typeof e!="object"||typeof e.createPolicy!="function")return null;let r=null;const o="data-tt-policy-suffix";n&&n.hasAttribute(o)&&(r=n.getAttribute(o));const i="dompurify"+(r?"#"+r:"");try{return e.createPolicy(i,{createHTML(s){return s},createScriptURL(s){return s}})}catch{return console.warn("TrustedTypes policy "+i+" could not be created."),null}};function Do(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Mc();const e=k=>Do(k);if(e.version="3.0.9",e.removed=[],!t||!t.document||t.document.nodeType!==9)return e.isSupported=!1,e;let{document:n}=t;const r=n,o=r.currentScript,{DocumentFragment:i,HTMLTemplateElement:s,Node:c,Element:l,NodeFilter:u,NamedNodeMap:d=t.NamedNodeMap||t.MozNamedAttrMap,HTMLFormElement:f,DOMParser:g,trustedTypes:b}=t,v=l.prototype,S=en(v,"cloneNode"),w=en(v,"nextSibling"),I=en(v,"childNodes"),M=en(v,"parentNode");if(typeof s=="function"){const k=n.createElement("template");k.content&&k.content.ownerDocument&&(n=k.content.ownerDocument)}let $,ue="";const{implementation:pe,createNodeIterator:y,createDocumentFragment:x,getElementsByTagName:B}=n,{importNode:_}=r;let T={};e.isSupported=typeof xo=="function"&&typeof M=="function"&&pe&&pe.createHTMLDocument!==void 0;const{MUSTACHE_EXPR:A,ERB_EXPR:F,TMPLIT_EXPR:E,DATA_ATTR:D,ARIA_ATTR:G,IS_SCRIPT_OR_DATA:ne,ATTR_WHITESPACE:se}=No;let{IS_ALLOWED_URI:Pe}=No,L=null;const Ie=H({},[...Oo,...Wn,...Kn,...zn,...ko]);let q=null;const Ve=H({},[...Bo,...qn,...$o,...tn]);let X=Object.seal(Io(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}})),Le=null,Ue=null,qi=!0,Ar=!0,Gi=!1,Ji=!0,ct=!1,Xe=!1,_r=!1,xr=!1,ut=!1,hn=!1,gn=!1,Yi=!0,Xi=!1;const Ap="user-content-";let Pr=!0,jt=!1,dt={},ft=null;const Zi=H({},["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 Qi=null;const es=H({},["audio","video","img","source","image","track"]);let Ir=null;const ts=H({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),yn="http://www.w3.org/1998/Math/MathML",bn="http://www.w3.org/2000/svg",Fe="http://www.w3.org/1999/xhtml";let pt=Fe,Tr=!1,Or=null;const _p=H({},[yn,bn,Fe],Un);let Vt=null;const xp=["application/xhtml+xml","text/html"],Pp="text/html";let ee=null,mt=null;const Ip=n.createElement("form"),ns=function(p){return p instanceof RegExp||p instanceof Function},kr=function(){let p=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(!(mt&&mt===p)){if((!p||typeof p!="object")&&(p={}),p=Je(p),Vt=xp.indexOf(p.PARSER_MEDIA_TYPE)===-1?Pp:p.PARSER_MEDIA_TYPE,ee=Vt==="application/xhtml+xml"?Un:Qt,L=xe(p,"ALLOWED_TAGS")?H({},p.ALLOWED_TAGS,ee):Ie,q=xe(p,"ALLOWED_ATTR")?H({},p.ALLOWED_ATTR,ee):Ve,Or=xe(p,"ALLOWED_NAMESPACES")?H({},p.ALLOWED_NAMESPACES,Un):_p,Ir=xe(p,"ADD_URI_SAFE_ATTR")?H(Je(ts),p.ADD_URI_SAFE_ATTR,ee):ts,Qi=xe(p,"ADD_DATA_URI_TAGS")?H(Je(es),p.ADD_DATA_URI_TAGS,ee):es,ft=xe(p,"FORBID_CONTENTS")?H({},p.FORBID_CONTENTS,ee):Zi,Le=xe(p,"FORBID_TAGS")?H({},p.FORBID_TAGS,ee):{},Ue=xe(p,"FORBID_ATTR")?H({},p.FORBID_ATTR,ee):{},dt=xe(p,"USE_PROFILES")?p.USE_PROFILES:!1,qi=p.ALLOW_ARIA_ATTR!==!1,Ar=p.ALLOW_DATA_ATTR!==!1,Gi=p.ALLOW_UNKNOWN_PROTOCOLS||!1,Ji=p.ALLOW_SELF_CLOSE_IN_ATTR!==!1,ct=p.SAFE_FOR_TEMPLATES||!1,Xe=p.WHOLE_DOCUMENT||!1,ut=p.RETURN_DOM||!1,hn=p.RETURN_DOM_FRAGMENT||!1,gn=p.RETURN_TRUSTED_TYPE||!1,xr=p.FORCE_BODY||!1,Yi=p.SANITIZE_DOM!==!1,Xi=p.SANITIZE_NAMED_PROPS||!1,Pr=p.KEEP_CONTENT!==!1,jt=p.IN_PLACE||!1,Pe=p.ALLOWED_URI_REGEXP||Lo,pt=p.NAMESPACE||Fe,X=p.CUSTOM_ELEMENT_HANDLING||{},p.CUSTOM_ELEMENT_HANDLING&&ns(p.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(X.tagNameCheck=p.CUSTOM_ELEMENT_HANDLING.tagNameCheck),p.CUSTOM_ELEMENT_HANDLING&&ns(p.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(X.attributeNameCheck=p.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),p.CUSTOM_ELEMENT_HANDLING&&typeof p.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements=="boolean"&&(X.allowCustomizedBuiltInElements=p.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),ct&&(Ar=!1),hn&&(ut=!0),dt&&(L=H({},ko),q=[],dt.html===!0&&(H(L,Oo),H(q,Bo)),dt.svg===!0&&(H(L,Wn),H(q,qn),H(q,tn)),dt.svgFilters===!0&&(H(L,Kn),H(q,qn),H(q,tn)),dt.mathMl===!0&&(H(L,zn),H(q,$o),H(q,tn))),p.ADD_TAGS&&(L===Ie&&(L=Je(L)),H(L,p.ADD_TAGS,ee)),p.ADD_ATTR&&(q===Ve&&(q=Je(q)),H(q,p.ADD_ATTR,ee)),p.ADD_URI_SAFE_ATTR&&H(Ir,p.ADD_URI_SAFE_ATTR,ee),p.FORBID_CONTENTS&&(ft===Zi&&(ft=Je(ft)),H(ft,p.FORBID_CONTENTS,ee)),Pr&&(L["#text"]=!0),Xe&&H(L,["html","head","body"]),L.table&&(H(L,["tbody"]),delete Le.tbody),p.TRUSTED_TYPES_POLICY){if(typeof p.TRUSTED_TYPES_POLICY.createHTML!="function")throw Pt('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof p.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw Pt('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');$=p.TRUSTED_TYPES_POLICY,ue=$.createHTML("")}else $===void 0&&($=Hc(b,o)),$!==null&&typeof ue=="string"&&(ue=$.createHTML(""));ce&&ce(p),mt=p}},rs=H({},["mi","mo","mn","ms","mtext"]),os=H({},["foreignobject","desc","title","annotation-xml"]),Tp=H({},["title","style","font","a","script"]),is=H({},[...Wn,...Kn,...Oc]),ss=H({},[...zn,...kc]),Op=function(p){let C=M(p);(!C||!C.tagName)&&(C={namespaceURI:pt,tagName:"template"});const O=Qt(p.tagName),J=Qt(C.tagName);return Or[p.namespaceURI]?p.namespaceURI===bn?C.namespaceURI===Fe?O==="svg":C.namespaceURI===yn?O==="svg"&&(J==="annotation-xml"||rs[J]):!!is[O]:p.namespaceURI===yn?C.namespaceURI===Fe?O==="math":C.namespaceURI===bn?O==="math"&&os[J]:!!ss[O]:p.namespaceURI===Fe?C.namespaceURI===bn&&!os[J]||C.namespaceURI===yn&&!rs[J]?!1:!ss[O]&&(Tp[O]||!is[O]):!!(Vt==="application/xhtml+xml"&&Or[p.namespaceURI]):!1},Ze=function(p){_t(e.removed,{element:p});try{p.parentNode.removeChild(p)}catch{p.remove()}},Br=function(p,C){try{_t(e.removed,{attribute:C.getAttributeNode(p),from:C})}catch{_t(e.removed,{attribute:null,from:C})}if(C.removeAttribute(p),p==="is"&&!q[p])if(ut||hn)try{Ze(C)}catch{}else try{C.setAttribute(p,"")}catch{}},as=function(p){let C=null,O=null;if(xr)p="<remove></remove>"+p;else{const le=_c(p,/^[\r\n\t ]+/);O=le&&le[0]}Vt==="application/xhtml+xml"&&pt===Fe&&(p='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+p+"</body></html>");const J=$?$.createHTML(p):p;if(pt===Fe)try{C=new g().parseFromString(J,Vt)}catch{}if(!C||!C.documentElement){C=pe.createDocument(pt,"template",null);try{C.documentElement.innerHTML=Tr?ue:J}catch{}}const ae=C.body||C.documentElement;return p&&O&&ae.insertBefore(n.createTextNode(O),ae.childNodes[0]||null),pt===Fe?B.call(C,Xe?"html":"body")[0]:Xe?C.documentElement:ae},ls=function(p){return y.call(p.ownerDocument||p,p,u.SHOW_ELEMENT|u.SHOW_COMMENT|u.SHOW_TEXT,null)},kp=function(p){return p instanceof f&&(typeof p.nodeName!="string"||typeof p.textContent!="string"||typeof p.removeChild!="function"||!(p.attributes instanceof d)||typeof p.removeAttribute!="function"||typeof p.setAttribute!="function"||typeof p.namespaceURI!="string"||typeof p.insertBefore!="function"||typeof p.hasChildNodes!="function")},cs=function(p){return typeof c=="function"&&p instanceof c},Ne=function(p,C,O){T[p]&&Zt(T[p],J=>{J.call(e,C,O,mt)})},us=function(p){let C=null;if(Ne("beforeSanitizeElements",p,null),kp(p))return Ze(p),!0;const O=ee(p.nodeName);if(Ne("uponSanitizeElement",p,{tagName:O,allowedTags:L}),p.hasChildNodes()&&!cs(p.firstElementChild)&&be(/<[/\w]/g,p.innerHTML)&&be(/<[/\w]/g,p.textContent))return Ze(p),!0;if(!L[O]||Le[O]){if(!Le[O]&&fs(O)&&(X.tagNameCheck instanceof RegExp&&be(X.tagNameCheck,O)||X.tagNameCheck instanceof Function&&X.tagNameCheck(O)))return!1;if(Pr&&!ft[O]){const J=M(p)||p.parentNode,ae=I(p)||p.childNodes;if(ae&&J){const le=ae.length;for(let me=le-1;me>=0;--me)J.insertBefore(S(ae[me],!0),w(p))}}return Ze(p),!0}return p instanceof l&&!Op(p)||(O==="noscript"||O==="noembed"||O==="noframes")&&be(/<\/no(script|embed|frames)/i,p.innerHTML)?(Ze(p),!0):(ct&&p.nodeType===3&&(C=p.textContent,Zt([A,F,E],J=>{C=xt(C,J," ")}),p.textContent!==C&&(_t(e.removed,{element:p.cloneNode()}),p.textContent=C)),Ne("afterSanitizeElements",p,null),!1)},ds=function(p,C,O){if(Yi&&(C==="id"||C==="name")&&(O in n||O in Ip))return!1;if(!(Ar&&!Ue[C]&&be(D,C))){if(!(qi&&be(G,C))){if(!q[C]||Ue[C]){if(!(fs(p)&&(X.tagNameCheck instanceof RegExp&&be(X.tagNameCheck,p)||X.tagNameCheck instanceof Function&&X.tagNameCheck(p))&&(X.attributeNameCheck instanceof RegExp&&be(X.attributeNameCheck,C)||X.attributeNameCheck instanceof Function&&X.attributeNameCheck(C))||C==="is"&&X.allowCustomizedBuiltInElements&&(X.tagNameCheck instanceof RegExp&&be(X.tagNameCheck,O)||X.tagNameCheck instanceof Function&&X.tagNameCheck(O))))return!1}else if(!Ir[C]){if(!be(Pe,xt(O,se,""))){if(!((C==="src"||C==="xlink:href"||C==="href")&&p!=="script"&&xc(O,"data:")===0&&Qi[p])){if(!(Gi&&!be(ne,xt(O,se,"")))){if(O)return!1}}}}}}return!0},fs=function(p){return p!=="annotation-xml"&&p.indexOf("-")>0},ps=function(p){Ne("beforeSanitizeAttributes",p,null);const{attributes:C}=p;if(!C)return;const O={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:q};let J=C.length;for(;J--;){const ae=C[J],{name:le,namespaceURI:me,value:Qe}=ae,Ut=ee(le);let he=le==="value"?Qe:Pc(Qe);if(O.attrName=Ut,O.attrValue=he,O.keepAttr=!0,O.forceKeepAttr=void 0,Ne("uponSanitizeAttribute",p,O),he=O.attrValue,O.forceKeepAttr||(Br(le,p),!O.keepAttr))continue;if(!Ji&&be(/\/>/i,he)){Br(le,p);continue}ct&&Zt([A,F,E],hs=>{he=xt(he,hs," ")});const ms=ee(p.nodeName);if(ds(ms,Ut,he)){if(Xi&&(Ut==="id"||Ut==="name")&&(Br(le,p),he=Ap+he),$&&typeof b=="object"&&typeof b.getAttributeType=="function"&&!me)switch(b.getAttributeType(ms,Ut)){case"TrustedHTML":{he=$.createHTML(he);break}case"TrustedScriptURL":{he=$.createScriptURL(he);break}}try{me?p.setAttributeNS(me,le,he):p.setAttribute(le,he),To(e.removed)}catch{}}}Ne("afterSanitizeAttributes",p,null)},Bp=function k(p){let C=null;const O=ls(p);for(Ne("beforeSanitizeShadowDOM",p,null);C=O.nextNode();)Ne("uponSanitizeShadowNode",C,null),!us(C)&&(C.content instanceof i&&k(C.content),ps(C));Ne("afterSanitizeShadowDOM",p,null)};return e.sanitize=function(k){let p=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},C=null,O=null,J=null,ae=null;if(Tr=!k,Tr&&(k="<!-->"),typeof k!="string"&&!cs(k))if(typeof k.toString=="function"){if(k=k.toString(),typeof k!="string")throw Pt("dirty is not a string, aborting")}else throw Pt("toString is not a function");if(!e.isSupported)return k;if(_r||kr(p),e.removed=[],typeof k=="string"&&(jt=!1),jt){if(k.nodeName){const Qe=ee(k.nodeName);if(!L[Qe]||Le[Qe])throw Pt("root node is forbidden and cannot be sanitized in-place")}}else if(k instanceof c)C=as("<!---->"),O=C.ownerDocument.importNode(k,!0),O.nodeType===1&&O.nodeName==="BODY"||O.nodeName==="HTML"?C=O:C.appendChild(O);else{if(!ut&&!ct&&!Xe&&k.indexOf("<")===-1)return $&&gn?$.createHTML(k):k;if(C=as(k),!C)return ut?null:gn?ue:""}C&&xr&&Ze(C.firstChild);const le=ls(jt?k:C);for(;J=le.nextNode();)us(J)||(J.content instanceof i&&Bp(J.content),ps(J));if(jt)return k;if(ut){if(hn)for(ae=x.call(C.ownerDocument);C.firstChild;)ae.appendChild(C.firstChild);else ae=C;return(q.shadowroot||q.shadowrootmode)&&(ae=_.call(r,ae,!0)),ae}let me=Xe?C.outerHTML:C.innerHTML;return Xe&&L["!doctype"]&&C.ownerDocument&&C.ownerDocument.doctype&&C.ownerDocument.doctype.name&&be(Fo,C.ownerDocument.doctype.name)&&(me="<!DOCTYPE "+C.ownerDocument.doctype.name+`>
65
+ `+me),ct&&Zt([A,F,E],Qe=>{me=xt(me,Qe," ")}),$&&gn?$.createHTML(me):me},e.setConfig=function(){let k=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};kr(k),_r=!0},e.clearConfig=function(){mt=null,_r=!1},e.isValidAttribute=function(k,p,C){mt||kr({});const O=ee(k),J=ee(p);return ds(O,J,C)},e.addHook=function(k,p){typeof p=="function"&&(T[k]=T[k]||[],_t(T[k],p))},e.removeHook=function(k){if(T[k])return To(T[k])},e.removeHooks=function(k){T[k]&&(T[k]=[])},e.removeAllHooks=function(){T={}},e}var Ro=Do();class Mo{get IsVisible(){return st.isVisible()}}class jc extends Mo{constructor(){super()}async CreateAlertAsync(e){let n="info",r,o;return typeof e=="string"||Array.isArray(e)?r=Array.isArray(e)?e.join("<br />"):e:(n=e.icon??"info",o=e.title??"",r=Array.isArray(e.text)?e.text.join("<br />"):e.text),new Promise(i=>{st.fire({allowEscapeKey:!1,allowOutsideClick:!1,icon:n,title:o,html:`<div style="max-height: 50vh; overflow: auto">${Ro.sanitize(r)}</div>`}).then(()=>i(!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"})}}class Vc extends Mo{async CreateConfirmAsync(e){return new Promise(n=>{st.fire({showCancelButton:!0,allowEscapeKey:!1,allowOutsideClick:!1,icon:"question",title:e.title,html:Ro.sanitize(e.text),confirmButtonText:e.confirmLabel??"confirmar",cancelButtonText:e.rejectLabel??"cancelar"}).then(r=>{n(r.isConfirmed===!0)})})}async ConfirmAsync(e){return this.CreateConfirmAsync({text:e})}}const Uc=()=>new jc,Ho=()=>new Vc,Wc=["data-cor"],Kc={class:"sf-p-4"},zc=a.defineComponent({__name:"HeaderAvatar",emits:["logout"],setup(t,{emit:e}){const n=Ho(),r=a.ref("?"),o=e;async function i(){await n.CreateConfirmAsync({text:"Você deseja sair da conta?",confirmLabel:"sair"})&&o("logout")}function s(){const u=sessionStorage.getItem("name");let d="?";if(!u)return d;const f=u.split(" ").filter(b=>b.length>0).map(b=>b[0].toUpperCase()),g=Math.min(2,f.length);return d=f.slice(0,g).join(""),d.length>0?d:"?"}const c=a.computed(()=>{const u=r.value[0],d=u==="?"?0:(u.charCodeAt(0)-64)%19;return Math.max(d,0)}),l=a.ref(!1);return a.onMounted(()=>{r.value=s()}),(u,d)=>(a.openBlock(),a.createElementBlock(a.Fragment,null,[a.createElementVNode("div",{id:"sf-header-avatar","data-cor":c.value,onClick:d[0]||(d[0]=f=>l.value=!0)},a.toDisplayString(r.value),9,Wc),a.createVNode(Lr,{visible:l.value,"onUpdate:visible":d[1]||(d[1]=f=>l.value=f),position:"right"},{title:a.withCtx(()=>[a.createTextVNode("Minha conta")]),default:a.withCtx(()=>[a.createElementVNode("div",Kc,[a.createVNode(Fr,{color:"error",onClick:i},{default:a.withCtx(()=>[a.createTextVNode("Sair")]),_:1})])]),_:1},8,["visible"])],64))}}),qc={},Gc={xmlns:"http://www.w3.org/2000/svg",height:"48",viewBox:"0 -960 960 960",width:"48",class:"sf-svg-icon"},Jc=[a.createElementVNode("path",{d:"m307.231-83.463-54.999-55.23 343.923-343.922-343.923-343.539 54.999-54.614 398.153 398.153L307.231-83.462Z"},null,-1)];function Yc(t,e){return a.openBlock(),a.createElementBlock("svg",Gc,Jc)}const Xc=wn(qc,[["render",Yc]]);class Zc{get storedTheme(){return localStorage.getItem("color-scheme")}get IsDark(){return document.documentElement.classList.contains("dark")}Toggle(){this.IsDark?this.EnableLightMode():this.EnableDarkMode()}EnableDarkMode(){document.documentElement.classList.add("dark"),document.documentElement.classList.remove("light"),localStorage.setItem("color-scheme","dark")}EnableLightMode(){document.documentElement.classList.remove("dark"),document.documentElement.classList.add("light"),localStorage.setItem("color-scheme","light")}SetInitialTheme(){if(this.storedTheme==="light")return this.EnableLightMode();if(this.storedTheme==="dark")return this.EnableDarkMode();if(window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches)return this.EnableDarkMode();this.EnableLightMode()}}const Gn=new Zc,Qc=[a.createStaticVNode('<svg xmlns="http://www.w3.org/2000/svg" width="472.39" height="472.39" viewBox="0 0 472.39 472.39"><g class="toggle-sun"><path d="M403.21,167V69.18H305.38L236.2,0,167,69.18H69.18V167L0,236.2l69.18,69.18v97.83H167l69.18,69.18,69.18-69.18h97.83V305.38l69.18-69.18Zm-167,198.17a129,129,0,1,1,129-129A129,129,0,0,1,236.2,365.19Z"></path></g><g class="toggle-circle"><circle class="cls-1" cx="236.2" cy="236.2" r="103.78"></circle></g></svg>',1)],eu=a.defineComponent({__name:"ThemeToggle",setup(t){return(e,n)=>(a.openBlock(),a.createElementBlock("button",{id:"sf-theme-toggle",onClick:n[0]||(n[0]=(...r)=>a.unref(Gn).Toggle&&a.unref(Gn).Toggle(...r))},Qc))}}),tu={id:"sf-layout"},nu=a.createElementVNode("div",{class:"sf-layout-menu-toggler-logo"},null,-1),ru={class:"title"},ou={class:"sf-layout-nav-content"},iu=a.createElementVNode("div",{class:"sf-layout-nav-footer"},[a.createElementVNode("div",{class:"sf-layout-nav-footer-logo"})],-1),su=a.createElementVNode("section",{id:"sf-layout-page-title"},null,-1),au={id:"sf-layout-content"},lu=a.defineComponent({__name:"Layout",emits:["mounted","logout"],setup(t,{emit:e}){const n=vn(),r=e;return a.onMounted(()=>{r("mounted")}),(o,i)=>(a.openBlock(),a.createElementBlock("div",tu,[a.createElementVNode("header",null,[a.createElementVNode("div",{class:a.normalizeClass(["sf-layout-menu-toggler",{invert:a.unref(n).IsVisible}]),onClick:i[0]||(i[0]=s=>a.unref(n).Toggle())},[nu,a.createVNode(Xc)],2),a.createElementVNode("div",ru,[a.renderSlot(o.$slots,"title")]),a.renderSlot(o.$slots,"action"),a.createVNode(En,{text:"alternar tema"},{default:a.withCtx(()=>[a.createVNode(eu)]),_:1}),a.createVNode(zc,{onLogout:i[1]||(i[1]=s=>r("logout"))})]),a.createElementVNode("nav",{class:a.normalizeClass({visible:a.unref(n).IsVisible})},[a.createElementVNode("div",ou,[a.renderSlot(o.$slots,"menu")]),iu],2),a.createElementVNode("main",{class:a.normalizeClass({"menu-visible":a.unref(n).IsVisible})},[su,a.createElementVNode("section",au,[a.renderSlot(o.$slots,"content")])],2)]))}}),cu=["href","data-active","onClick"],uu={class:"sf-navmenulink-text"},du=a.defineComponent({__name:"NavMenuLink",props:{href:{},text:{},icon:{},iconFilled:{type:Boolean},exact:{type:Boolean}},setup(t){const e=t,n=vn();function r(o,i){o.preventDefault();const c=o.target.closest(".sf-layout-nav-content");i(),c&&c.clientWidth+10>document.body.clientWidth&&n.Close()}return(o,i)=>{const s=a.resolveComponent("router-link");return a.openBlock(),a.createBlock(s,{to:e.href,custom:""},{default:a.withCtx(({href:c,navigate:l,isExactActive:u,isActive:d})=>[a.createElementVNode("a",{class:"sf-navmenulink",href:c,"data-active":e.exact?u:d,onClick:f=>r(f,l)},[e.icon?(a.openBlock(),a.createBlock(Re,{key:0,icon:e.icon,filled:e.iconFilled,"button-props":{tabindex:-1}},null,8,["icon","filled"])):a.createCommentVNode("",!0),a.createElementVNode("span",uu,a.toDisplayString(e.text),1)],8,cu)]),_:1},8,["to"])}}}),fu=a.defineComponent({__name:"ScrollToTop",setup(t){const e=a.ref(!1),n=`--${+new Date}`;let r=null;function o(){r==null||r.scrollTo(0,0)}return a.onMounted(()=>{var i;r=((i=document.getElementById(n))==null?void 0:i.parentElement)??null,r&&r.addEventListener("scroll",function(){e.value=this.scrollTop-this.clientHeight>0})}),(i,s)=>(a.openBlock(),a.createElementBlock("button",{id:n,class:a.normalizeClass(["sf-scrollToTop",{"sf-scrollToTop-visible":e.value}]),onClick:o},null,2))}}),pu=a.defineComponent({__name:"Content",props:{class:{},style:{},disableBodyPadding:{type:Boolean},disableHeaderPadding:{type:Boolean},disableFooterPadding:{type:Boolean}},setup(t){const e=t;function n(){return new De("sf-content").AddClass(e.class,!!e.class).Build()}function r(){return new De("sf-content-body").AddClass("sf-content-no-padding",e.disableBodyPadding).Build()}function o(){return new De("sf-content-header").AddClass("sf-content-no-padding",e.disableHeaderPadding).Build()}function i(){return new De("sf-content-footer").AddClass("sf-content-no-padding",e.disableFooterPadding).Build()}return(s,c)=>(a.openBlock(),a.createElementBlock("div",{class:a.normalizeClass(n()),style:a.normalizeStyle(e.style)},[a.createElementVNode("div",{class:a.normalizeClass(o())},[a.renderSlot(s.$slots,"header")],2),a.createElementVNode("div",{class:a.normalizeClass(r())},[a.renderSlot(s.$slots,"default"),a.createVNode(fu)],2),a.createElementVNode("div",{class:a.normalizeClass(i())},[a.renderSlot(s.$slots,"footer")],2)],6))}}),mu={class:"sf-tab-navigation"},hu=[a.createElementVNode("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor",class:"w-6 h-6"},[a.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M15.75 19.5L8.25 12l7.5-7.5"})],-1)],gu=["data-active"],yu=["href","onClick"],bu=[a.createElementVNode("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor",class:"w-6 h-6"},[a.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M8.25 4.5l7.5 7.5-7.5 7.5"})],-1)],vu=a.defineComponent({__name:"TabNavigation",props:{tabs:{}},setup(t){const e=t,n=a.ref(null),r=new ResizeObserver(l=>{c()}),o=a.ref(!1),i=a.ref(!1);function s(l=!1){const u=n.value.clientWidth;n.value.scrollLeft+=l?-u:u}function c(){const l=n.value.scrollWidth-n.value.clientWidth;o.value=n.value.scrollLeft>10,i.value=n.value.scrollLeft<l-10}return a.onMounted(()=>{n.value.addEventListener("scroll",c),r.observe(n.value)}),a.onBeforeUnmount(()=>{var l;try{(l=n.value)==null||l.removeEventListener("scroll",c),r.unobserve(n.value),r.disconnect()}catch{}}),(l,u)=>{const d=a.resolveComponent("RouterLink");return a.openBlock(),a.createElementBlock("div",mu,[a.createElementVNode("div",{class:a.normalizeClass(["left-arrow",{active:o.value}]),onClick:u[0]||(u[0]=f=>s(!0))},hu,2),a.createElementVNode("ul",{ref_key:"trackerContainer",ref:n},[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(e.tabs,f=>(a.openBlock(),a.createBlock(d,{to:f.route,custom:!0},{default:a.withCtx(({navigate:g,isActive:b})=>[a.createElementVNode("li",{"data-active":b},[a.renderSlot(l.$slots,"item",{item:f,navigate:g,isActive:b},()=>[a.createElementVNode("a",{href:f.route,class:a.normalizeClass({active:b}),onClick:g},a.toDisplayString(f.text),11,yu)])],8,gu)]),_:2},1032,["to"]))),256))],512),a.createElementVNode("div",{class:a.normalizeClass(["right-arrow",{active:i.value}]),onClick:u[1]||(u[1]=f=>s())},bu,2)])}}}),wu=["data-icon"],Eu=a.defineComponent({__name:"Message",props:{color:{default:"info"},class:{},style:{},icon:{}},setup(t){const e=t,n=a.computed(()=>{if(e.icon)return e.icon;switch(e.color){case"error":return"cancel";case"info":return"info";case"warn":return"warning";case"success":return"check";case"help":return"help";default:return null}}),r=a.computed(()=>new De("sf-message").AddClass("sf-message-error",e.color==="error").AddClass("sf-message-info",e.color==="info").AddClass("sf-message-warning",e.color==="warn").AddClass("sf-message-success",e.color==="success").AddClass("sf-message-help",e.color==="help").AddClass("sf-message-primary",e.color==="primary").AddClass("sf-message-secondary",e.color==="secondary").AddClass(e.class).Build());return(o,i)=>(a.openBlock(),a.createElementBlock("div",{class:a.normalizeClass(r.value),"data-icon":n.value},[a.renderSlot(o.$slots,"default")],10,wu))}});function Jn(t,e){var n=typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(!n){if(Array.isArray(t)||(n=Xn(t))||e&&t&&typeof t.length=="number"){n&&(t=n);var r=0,o=function(){};return{s:o,n:function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(u){throw u},f:o}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
66
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var i=!0,s=!1,c;return{s:function(){n=n.call(t)},n:function(){var u=n.next();return i=u.done,u},e:function(u){s=!0,c=u},f:function(){try{!i&&n.return!=null&&n.return()}finally{if(s)throw c}}}}function Su(t){return _u(t)||Au(t)||Xn(t)||Cu()}function Cu(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
67
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Au(t){if(typeof Symbol<"u"&&t[Symbol.iterator]!=null||t["@@iterator"]!=null)return Array.from(t)}function _u(t){if(Array.isArray(t))return Zn(t)}function It(t){"@babel/helpers - typeof";return It=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},It(t)}function Yn(t,e){return Iu(t)||Pu(t,e)||Xn(t,e)||xu()}function xu(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
68
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Xn(t,e){if(t){if(typeof t=="string")return Zn(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);if(n==="Object"&&t.constructor&&(n=t.constructor.name),n==="Map"||n==="Set")return Array.from(t);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Zn(t,e)}}function Zn(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function Pu(t,e){var n=t==null?null:typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(n!=null){var r,o,i,s,c=[],l=!0,u=!1;try{if(i=(n=n.call(t)).next,e===0){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=i.call(n)).done)&&(c.push(r.value),c.length!==e);l=!0);}catch(d){u=!0,o=d}finally{try{if(!l&&n.return!=null&&(s=n.return(),Object(s)!==s))return}finally{if(u)throw o}}return c}}function Iu(t){if(Array.isArray(t))return t}var j={innerWidth:function(e){if(e){var n=e.offsetWidth,r=getComputedStyle(e);return n+=parseFloat(r.paddingLeft)+parseFloat(r.paddingRight),n}return 0},width:function(e){if(e){var n=e.offsetWidth,r=getComputedStyle(e);return n-=parseFloat(r.paddingLeft)+parseFloat(r.paddingRight),n}return 0},getWindowScrollTop:function(){var e=document.documentElement;return(window.pageYOffset||e.scrollTop)-(e.clientTop||0)},getWindowScrollLeft:function(){var e=document.documentElement;return(window.pageXOffset||e.scrollLeft)-(e.clientLeft||0)},getOuterWidth:function(e,n){if(e){var r=e.offsetWidth;if(n){var o=getComputedStyle(e);r+=parseFloat(o.marginLeft)+parseFloat(o.marginRight)}return r}return 0},getOuterHeight:function(e,n){if(e){var r=e.offsetHeight;if(n){var o=getComputedStyle(e);r+=parseFloat(o.marginTop)+parseFloat(o.marginBottom)}return r}return 0},getClientHeight:function(e,n){if(e){var r=e.clientHeight;if(n){var o=getComputedStyle(e);r+=parseFloat(o.marginTop)+parseFloat(o.marginBottom)}return r}return 0},getViewport:function(){var e=window,n=document,r=n.documentElement,o=n.getElementsByTagName("body")[0],i=e.innerWidth||r.clientWidth||o.clientWidth,s=e.innerHeight||r.clientHeight||o.clientHeight;return{width:i,height:s}},getOffset:function(e){if(e){var n=e.getBoundingClientRect();return{top:n.top+(window.pageYOffset||document.documentElement.scrollTop||document.body.scrollTop||0),left:n.left+(window.pageXOffset||document.documentElement.scrollLeft||document.body.scrollLeft||0)}}return{top:"auto",left:"auto"}},index:function(e){if(e)for(var n,r=(n=this.getParentNode(e))===null||n===void 0?void 0:n.childNodes,o=0,i=0;i<r.length;i++){if(r[i]===e)return o;r[i].nodeType===1&&o++}return-1},addMultipleClasses:function(e,n){var r=this;e&&n&&[n].flat().filter(Boolean).forEach(function(o){return o.split(" ").forEach(function(i){return r.addClass(e,i)})})},removeMultipleClasses:function(e,n){var r=this;e&&n&&[n].flat().filter(Boolean).forEach(function(o){return o.split(" ").forEach(function(i){return r.removeClass(e,i)})})},addClass:function(e,n){e&&n&&!this.hasClass(e,n)&&(e.classList?e.classList.add(n):e.className+=" "+n)},removeClass:function(e,n){e&&n&&(e.classList?e.classList.remove(n):e.className=e.className.replace(new RegExp("(^|\\b)"+n.split(" ").join("|")+"(\\b|$)","gi")," "))},hasClass:function(e,n){return e?e.classList?e.classList.contains(n):new RegExp("(^| )"+n+"( |$)","gi").test(e.className):!1},addStyles:function(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};e&&Object.entries(n).forEach(function(r){var o=Yn(r,2),i=o[0],s=o[1];return e.style[i]=s})},find:function(e,n){return this.isElement(e)?e.querySelectorAll(n):[]},findSingle:function(e,n){return this.isElement(e)?e.querySelector(n):null},createElement:function(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(e){var r=document.createElement(e);this.setAttributes(r,n);for(var o=arguments.length,i=new Array(o>2?o-2:0),s=2;s<o;s++)i[s-2]=arguments[s];return r.append.apply(r,i),r}},setAttribute:function(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"",r=arguments.length>2?arguments[2]:void 0;this.isElement(e)&&r!==null&&r!==void 0&&e.setAttribute(n,r)},setAttributes:function(e){var n=this,r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(this.isElement(e)){var o=function i(s,c){var l,u,d=e!=null&&(l=e.$attrs)!==null&&l!==void 0&&l[s]?[e==null||(u=e.$attrs)===null||u===void 0?void 0:u[s]]:[];return[c].flat().reduce(function(f,g){if(g!=null){var b=It(g);if(b==="string"||b==="number")f.push(g);else if(b==="object"){var v=Array.isArray(g)?i(s,g):Object.entries(g).map(function(S){var w=Yn(S,2),I=w[0],M=w[1];return s==="style"&&(M||M===0)?"".concat(I.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase(),":").concat(M):M?I:void 0});f=v.length?f.concat(v.filter(function(S){return!!S})):f}}return f},d)};Object.entries(r).forEach(function(i){var s=Yn(i,2),c=s[0],l=s[1];if(l!=null){var u=c.match(/^on(.+)/);u?e.addEventListener(u[1].toLowerCase(),l):c==="p-bind"?n.setAttributes(e,l):(l=c==="class"?Su(new Set(o("class",l))).join(" ").trim():c==="style"?o("style",l).join(";").trim():l,(e.$attrs=e.$attrs||{})&&(e.$attrs[c]=l),e.setAttribute(c,l))}})}},getAttribute:function(e,n){if(this.isElement(e)){var r=e.getAttribute(n);return isNaN(r)?r==="true"||r==="false"?r==="true":r:+r}},isAttributeEquals:function(e,n,r){return this.isElement(e)?this.getAttribute(e,n)===r:!1},isAttributeNotEquals:function(e,n,r){return!this.isAttributeEquals(e,n,r)},getHeight:function(e){if(e){var n=e.offsetHeight,r=getComputedStyle(e);return n-=parseFloat(r.paddingTop)+parseFloat(r.paddingBottom)+parseFloat(r.borderTopWidth)+parseFloat(r.borderBottomWidth),n}return 0},getWidth:function(e){if(e){var n=e.offsetWidth,r=getComputedStyle(e);return n-=parseFloat(r.paddingLeft)+parseFloat(r.paddingRight)+parseFloat(r.borderLeftWidth)+parseFloat(r.borderRightWidth),n}return 0},absolutePosition:function(e,n){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;if(e){var o=e.offsetParent?{width:e.offsetWidth,height:e.offsetHeight}:this.getHiddenElementDimensions(e),i=o.height,s=o.width,c=n.offsetHeight,l=n.offsetWidth,u=n.getBoundingClientRect(),d=this.getWindowScrollTop(),f=this.getWindowScrollLeft(),g=this.getViewport(),b,v,S="top";u.top+c+i>g.height?(b=u.top+d-i,S="bottom",b<0&&(b=d)):b=c+u.top+d,u.left+s>g.width?v=Math.max(0,u.left+f+l-s):v=u.left+f,e.style.top=b+"px",e.style.left=v+"px",e.style.transformOrigin=S,r&&(e.style.marginTop=S==="bottom"?"calc(var(--p-anchor-gutter) * -1)":"calc(var(--p-anchor-gutter))")}},relativePosition:function(e,n){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;if(e){var o=e.offsetParent?{width:e.offsetWidth,height:e.offsetHeight}:this.getHiddenElementDimensions(e),i=n.offsetHeight,s=n.getBoundingClientRect(),c=this.getViewport(),l,u,d="top";s.top+i+o.height>c.height?(l=-1*o.height,d="bottom",s.top+l<0&&(l=-1*s.top)):l=i,o.width>c.width?u=s.left*-1:s.left+o.width>c.width?u=(s.left+o.width-c.width)*-1:u=0,e.style.top=l+"px",e.style.left=u+"px",e.style.transformOrigin=d,r&&(e.style.marginTop=d==="bottom"?"calc(var(--p-anchor-gutter) * -1)":"calc(var(--p-anchor-gutter))")}},nestedPosition:function(e,n){if(e){var r=e.parentElement,o=this.getOffset(r),i=this.getViewport(),s=e.offsetParent?e.offsetWidth:this.getHiddenElementOuterWidth(e),c=this.getOuterWidth(r.children[0]),l;parseInt(o.left,10)+c+s>i.width-this.calculateScrollbarWidth()?parseInt(o.left,10)<s?n%2===1?l=parseInt(o.left,10)?"-"+parseInt(o.left,10)+"px":"100%":n%2===0&&(l=i.width-s-this.calculateScrollbarWidth()+"px"):l="-100%":l="100%",e.style.top="0px",e.style.left=l}},getParentNode:function(e){var n=e==null?void 0:e.parentNode;return n&&n instanceof ShadowRoot&&n.host&&(n=n.host),n},getParents:function(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],r=this.getParentNode(e);return r===null?n:this.getParents(r,n.concat([r]))},getScrollableParents:function(e){var n=[];if(e){var r=this.getParents(e),o=/(auto|scroll)/,i=function(w){try{var I=window.getComputedStyle(w,null);return o.test(I.getPropertyValue("overflow"))||o.test(I.getPropertyValue("overflowX"))||o.test(I.getPropertyValue("overflowY"))}catch{return!1}},s=Jn(r),c;try{for(s.s();!(c=s.n()).done;){var l=c.value,u=l.nodeType===1&&l.dataset.scrollselectors;if(u){var d=u.split(","),f=Jn(d),g;try{for(f.s();!(g=f.n()).done;){var b=g.value,v=this.findSingle(l,b);v&&i(v)&&n.push(v)}}catch(S){f.e(S)}finally{f.f()}}l.nodeType!==9&&i(l)&&n.push(l)}}catch(S){s.e(S)}finally{s.f()}}return n},getHiddenElementOuterHeight:function(e){if(e){e.style.visibility="hidden",e.style.display="block";var n=e.offsetHeight;return e.style.display="none",e.style.visibility="visible",n}return 0},getHiddenElementOuterWidth:function(e){if(e){e.style.visibility="hidden",e.style.display="block";var n=e.offsetWidth;return e.style.display="none",e.style.visibility="visible",n}return 0},getHiddenElementDimensions:function(e){if(e){var n={};return e.style.visibility="hidden",e.style.display="block",n.width=e.offsetWidth,n.height=e.offsetHeight,e.style.display="none",e.style.visibility="visible",n}return 0},fadeIn:function(e,n){if(e){e.style.opacity=0;var r=+new Date,o=0,i=function s(){o=+e.style.opacity+(new Date().getTime()-r)/n,e.style.opacity=o,r=+new Date,+o<1&&(window.requestAnimationFrame&&requestAnimationFrame(s)||setTimeout(s,16))};i()}},fadeOut:function(e,n){if(e)var r=1,o=50,i=n,s=o/i,c=setInterval(function(){r-=s,r<=0&&(r=0,clearInterval(c)),e.style.opacity=r},o)},getUserAgent:function(){return navigator.userAgent},appendChild:function(e,n){if(this.isElement(n))n.appendChild(e);else if(n.el&&n.elElement)n.elElement.appendChild(e);else throw new Error("Cannot append "+n+" to "+e)},isElement:function(e){return(typeof HTMLElement>"u"?"undefined":It(HTMLElement))==="object"?e instanceof HTMLElement:e&&It(e)==="object"&&e!==null&&e.nodeType===1&&typeof e.nodeName=="string"},scrollInView:function(e,n){var r=getComputedStyle(e).getPropertyValue("borderTopWidth"),o=r?parseFloat(r):0,i=getComputedStyle(e).getPropertyValue("paddingTop"),s=i?parseFloat(i):0,c=e.getBoundingClientRect(),l=n.getBoundingClientRect(),u=l.top+document.body.scrollTop-(c.top+document.body.scrollTop)-o-s,d=e.scrollTop,f=e.clientHeight,g=this.getOuterHeight(n);u<0?e.scrollTop=d+u:u+g>f&&(e.scrollTop=d+u-f+g)},clearSelection:function(){if(window.getSelection)window.getSelection().empty?window.getSelection().empty():window.getSelection().removeAllRanges&&window.getSelection().rangeCount>0&&window.getSelection().getRangeAt(0).getClientRects().length>0&&window.getSelection().removeAllRanges();else if(document.selection&&document.selection.empty)try{document.selection.empty()}catch{}},getSelection:function(){return window.getSelection?window.getSelection().toString():document.getSelection?document.getSelection().toString():document.selection?document.selection.createRange().text:null},calculateScrollbarWidth:function(){if(this.calculatedScrollbarWidth!=null)return this.calculatedScrollbarWidth;var e=document.createElement("div");this.addStyles(e,{width:"100px",height:"100px",overflow:"scroll",position:"absolute",top:"-9999px"}),document.body.appendChild(e);var n=e.offsetWidth-e.clientWidth;return document.body.removeChild(e),this.calculatedScrollbarWidth=n,n},calculateBodyScrollbarWidth:function(){return window.innerWidth-document.documentElement.offsetWidth},getBrowser:function(){if(!this.browser){var e=this.resolveUserAgent();this.browser={},e.browser&&(this.browser[e.browser]=!0,this.browser.version=e.version),this.browser.chrome?this.browser.webkit=!0:this.browser.webkit&&(this.browser.safari=!0)}return this.browser},resolveUserAgent:function(){var e=navigator.userAgent.toLowerCase(),n=/(chrome)[ ]([\w.]+)/.exec(e)||/(webkit)[ ]([\w.]+)/.exec(e)||/(opera)(?:.*version|)[ ]([\w.]+)/.exec(e)||/(msie) ([\w.]+)/.exec(e)||e.indexOf("compatible")<0&&/(mozilla)(?:.*? rv:([\w.]+)|)/.exec(e)||[];return{browser:n[1]||"",version:n[2]||"0"}},isVisible:function(e){return e&&e.offsetParent!=null},invokeElementMethod:function(e,n,r){e[n].apply(e,r)},isExist:function(e){return!!(e!==null&&typeof e<"u"&&e.nodeName&&this.getParentNode(e))},isClient:function(){return!!(typeof window<"u"&&window.document&&window.document.createElement)},focus:function(e,n){e&&document.activeElement!==e&&e.focus(n)},isFocusableElement:function(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";return this.isElement(e)?e.matches('button:not([tabindex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden])'.concat(n,`,
69
69
  [href][clientHeight][clientWidth]:not([tabindex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden])`).concat(n,`,
70
70
  input:not([tabindex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden])`).concat(n,`,
71
71
  select:not([tabindex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden])`).concat(n,`,
@@ -77,14 +77,14 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
77
77
  select:not([tabindex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden])`).concat(n,`,
78
78
  textarea:not([tabindex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden])`).concat(n,`,
79
79
  [tabIndex]:not([tabIndex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden])`).concat(n,`,
80
- [contenteditable]:not([tabIndex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden])`).concat(n)),o=[],i=sr(r),s;try{for(i.s();!(s=i.n()).done;){var c=s.value;getComputedStyle(c).display!="none"&&getComputedStyle(c).visibility!="hidden"&&o.push(c)}}catch(l){i.e(l)}finally{i.f()}return o},getFirstFocusableElement:function(e,n){var r=this.getFocusableElements(e,n);return r.length>0?r[0]:null},getLastFocusableElement:function(e,n){var r=this.getFocusableElements(e,n);return r.length>0?r[r.length-1]:null},getNextFocusableElement:function(e,n,r){var o=this.getFocusableElements(e,r),i=o.length>0?o.findIndex(function(c){return c===n}):-1,s=i>-1&&o.length>=i+1?i+1:-1;return s>-1?o[s]:null},getPreviousElementSibling:function(e,n){for(var r=e.previousElementSibling;r;){if(r.matches(n))return r;r=r.previousElementSibling}return null},getNextElementSibling:function(e,n){for(var r=e.nextElementSibling;r;){if(r.matches(n))return r;r=r.nextElementSibling}return null},isClickable:function(e){if(e){var n=e.nodeName,r=e.parentElement&&e.parentElement.nodeName;return n==="INPUT"||n==="TEXTAREA"||n==="BUTTON"||n==="A"||r==="INPUT"||r==="TEXTAREA"||r==="BUTTON"||r==="A"||!!e.closest(".p-button, .p-checkbox, .p-radiobutton")}return!1},applyStyle:function(e,n){if(typeof n=="string")e.style.cssText=n;else for(var r in n)e.style[r]=n[r]},isIOS:function(){return/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream},isAndroid:function(){return/(android)/i.test(navigator.userAgent)},isTouchDevice:function(){return"ontouchstart"in window||navigator.maxTouchPoints>0||navigator.msMaxTouchPoints>0},hasCSSAnimation:function(e){if(e){var n=getComputedStyle(e),r=parseFloat(n.getPropertyValue("animation-duration")||"0");return r>0}return!1},hasCSSTransition:function(e){if(e){var n=getComputedStyle(e),r=parseFloat(n.getPropertyValue("transition-duration")||"0");return r>0}return!1},exportCSV:function(e,n){var r=new Blob([e],{type:"application/csv;charset=utf-8;"});if(window.navigator.msSaveOrOpenBlob)navigator.msSaveOrOpenBlob(r,n+".csv");else{var o=document.createElement("a");o.download!==void 0?(o.setAttribute("href",URL.createObjectURL(r)),o.setAttribute("download",n+".csv"),o.style.display="none",document.body.appendChild(o),o.click(),document.body.removeChild(o)):(e="data:text/csv;charset=utf-8,"+e,window.open(encodeURI(e)))}},blockBodyScroll:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"p-overflow-hidden";document.body.style.setProperty("--scrollbar-width",this.calculateBodyScrollbarWidth()+"px"),this.addClass(document.body,e)},unblockBodyScroll:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"p-overflow-hidden";document.body.style.removeProperty("--scrollbar-width"),this.removeClass(document.body,e)}};function Xo(t,e){return Hu(t)||Uu(t,e)||dr(t,e)||Mu()}function Mu(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
81
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Uu(t,e){var n=t==null?null:typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(n!=null){var r,o,i,s,c=[],l=!0,d=!1;try{if(i=(n=n.call(t)).next,e===0){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=i.call(n)).done)&&(c.push(r.value),c.length!==e);l=!0);}catch(f){d=!0,o=f}finally{try{if(!l&&n.return!=null&&(s=n.return(),Object(s)!==s))return}finally{if(d)throw o}}return c}}function Hu(t){if(Array.isArray(t))return t}function Zo(t){return Ku(t)||Vu(t)||dr(t)||ju()}function ju(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
82
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Vu(t){if(typeof Symbol<"u"&&t[Symbol.iterator]!=null||t["@@iterator"]!=null)return Array.from(t)}function Ku(t){if(Array.isArray(t))return fr(t)}function ur(t,e){var n=typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(!n){if(Array.isArray(t)||(n=dr(t))||e&&t&&typeof t.length=="number"){n&&(t=n);var r=0,o=function(){};return{s:o,n:function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(d){throw d},f:o}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
83
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var i=!0,s=!1,c;return{s:function(){n=n.call(t)},n:function(){var d=n.next();return i=d.done,d},e:function(d){s=!0,c=d},f:function(){try{!i&&n.return!=null&&n.return()}finally{if(s)throw c}}}}function dr(t,e){if(t){if(typeof t=="string")return fr(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);if(n==="Object"&&t.constructor&&(n=t.constructor.name),n==="Map"||n==="Set")return Array.from(t);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return fr(t,e)}}function fr(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function Ut(t){"@babel/helpers - typeof";return Ut=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Ut(t)}var D={equals:function(e,n,r){return r?this.resolveFieldData(e,r)===this.resolveFieldData(n,r):this.deepEquals(e,n)},deepEquals:function(e,n){if(e===n)return!0;if(e&&n&&Ut(e)=="object"&&Ut(n)=="object"){var r=Array.isArray(e),o=Array.isArray(n),i,s,c;if(r&&o){if(s=e.length,s!=n.length)return!1;for(i=s;i--!==0;)if(!this.deepEquals(e[i],n[i]))return!1;return!0}if(r!=o)return!1;var l=e instanceof Date,d=n instanceof Date;if(l!=d)return!1;if(l&&d)return e.getTime()==n.getTime();var f=e instanceof RegExp,p=n instanceof RegExp;if(f!=p)return!1;if(f&&p)return e.toString()==n.toString();var v=Object.keys(e);if(s=v.length,s!==Object.keys(n).length)return!1;for(i=s;i--!==0;)if(!Object.prototype.hasOwnProperty.call(n,v[i]))return!1;for(i=s;i--!==0;)if(c=v[i],!this.deepEquals(e[c],n[c]))return!1;return!0}return e!==e&&n!==n},resolveFieldData:function(e,n){if(!e||!n)return null;try{var r=e[n];if(this.isNotEmpty(r))return r}catch{}if(Object.keys(e).length){if(this.isFunction(n))return n(e);if(n.indexOf(".")===-1)return e[n];for(var o=n.split("."),i=e,s=0,c=o.length;s<c;++s){if(i==null)return null;i=i[o[s]]}return i}return null},getItemValue:function(e){for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];return this.isFunction(e)?e.apply(void 0,r):e},filter:function(e,n,r){var o=[];if(e){var i=ur(e),s;try{for(i.s();!(s=i.n()).done;){var c=s.value,l=ur(n),d;try{for(l.s();!(d=l.n()).done;){var f=d.value;if(String(this.resolveFieldData(c,f)).toLowerCase().indexOf(r.toLowerCase())>-1){o.push(c);break}}}catch(p){l.e(p)}finally{l.f()}}}catch(p){i.e(p)}finally{i.f()}}return o},reorderArray:function(e,n,r){e&&n!==r&&(r>=e.length&&(r%=e.length,n%=e.length),e.splice(r,0,e.splice(n,1)[0]))},findIndexInList:function(e,n){var r=-1;if(n){for(var o=0;o<n.length;o++)if(n[o]===e){r=o;break}}return r},contains:function(e,n){if(e!=null&&n&&n.length){var r=ur(n),o;try{for(r.s();!(o=r.n()).done;){var i=o.value;if(this.equals(e,i))return!0}}catch(s){r.e(s)}finally{r.f()}}return!1},insertIntoOrderedArray:function(e,n,r,o){if(r.length>0){for(var i=!1,s=0;s<r.length;s++){var c=this.findIndexInList(r[s],o);if(c>n){r.splice(s,0,e),i=!0;break}}i||r.push(e)}else r.push(e)},removeAccents:function(e){return e&&e.search(/[\xC0-\xFF]/g)>-1&&(e=e.replace(/[\xC0-\xC5]/g,"A").replace(/[\xC6]/g,"AE").replace(/[\xC7]/g,"C").replace(/[\xC8-\xCB]/g,"E").replace(/[\xCC-\xCF]/g,"I").replace(/[\xD0]/g,"D").replace(/[\xD1]/g,"N").replace(/[\xD2-\xD6\xD8]/g,"O").replace(/[\xD9-\xDC]/g,"U").replace(/[\xDD]/g,"Y").replace(/[\xDE]/g,"P").replace(/[\xE0-\xE5]/g,"a").replace(/[\xE6]/g,"ae").replace(/[\xE7]/g,"c").replace(/[\xE8-\xEB]/g,"e").replace(/[\xEC-\xEF]/g,"i").replace(/[\xF1]/g,"n").replace(/[\xF2-\xF6\xF8]/g,"o").replace(/[\xF9-\xFC]/g,"u").replace(/[\xFE]/g,"p").replace(/[\xFD\xFF]/g,"y")),e},getVNodeProp:function(e,n){if(e){var r=e.props;if(r){var o=n.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase(),i=Object.prototype.hasOwnProperty.call(r,o)?o:n;return e.type.extends.props[n].type===Boolean&&r[i]===""?!0:r[i]}}return null},toFlatCase:function(e){return this.isString(e)?e.replace(/(-|_)/g,"").toLowerCase():e},toKebabCase:function(e){return this.isString(e)?e.replace(/(_)/g,"-").replace(/[A-Z]/g,function(n,r){return r===0?n:"-"+n.toLowerCase()}).toLowerCase():e},toCapitalCase:function(e){return this.isString(e,{empty:!1})?e[0].toUpperCase()+e.slice(1):e},isEmpty:function(e){return e==null||e===""||Array.isArray(e)&&e.length===0||!(e instanceof Date)&&Ut(e)==="object"&&Object.keys(e).length===0},isNotEmpty:function(e){return!this.isEmpty(e)},isFunction:function(e){return!!(e&&e.constructor&&e.call&&e.apply)},isObject:function(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;return e instanceof Object&&e.constructor===Object&&(n||Object.keys(e).length!==0)},isDate:function(e){return e instanceof Date&&e.constructor===Date},isArray:function(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;return Array.isArray(e)&&(n||e.length!==0)},isString:function(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;return typeof e=="string"&&(n||e!=="")},isPrintableCharacter:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return this.isNotEmpty(e)&&e.length===1&&e.match(/\S| /)},findLast:function(e,n){var r;if(this.isNotEmpty(e))try{r=e.findLast(n)}catch{r=Zo(e).reverse().find(n)}return r},findLastIndex:function(e,n){var r=-1;if(this.isNotEmpty(e))try{r=e.findLastIndex(n)}catch{r=e.lastIndexOf(Zo(e).reverse().find(n))}return r},sort:function(e,n){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,o=arguments.length>3?arguments[3]:void 0,i=arguments.length>4&&arguments[4]!==void 0?arguments[4]:1,s=this.compare(e,n,o,r),c=r;return(this.isEmpty(e)||this.isEmpty(n))&&(c=i===1?r:i),c*s},compare:function(e,n,r){var o=arguments.length>3&&arguments[3]!==void 0?arguments[3]:1,i=-1,s=this.isEmpty(e),c=this.isEmpty(n);return s&&c?i=0:s?i=o:c?i=-o:typeof e=="string"&&typeof n=="string"?i=r(e,n):i=e<n?-1:e>n?1:0,i},localeComparator:function(){return new Intl.Collator(void 0,{numeric:!0}).compare},nestedKeys:function(){var e=this,n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";return Object.entries(n).reduce(function(o,i){var s=Xo(i,2),c=s[0],l=s[1],d=r?"".concat(r,".").concat(c):c;return e.isObject(l)?o=o.concat(e.nestedKeys(l,d)):o.push(d),o},[])},stringify:function(e){var n=this,r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:2,o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0,i=" ".repeat(o),s=" ".repeat(o+r);return this.isArray(e)?"["+e.map(function(c){return n.stringify(c,r,o+r)}).join(", ")+"]":this.isDate(e)?e.toISOString():this.isFunction(e)?e.toString():this.isObject(e)?`{
84
- `+Object.entries(e).map(function(c){var l=Xo(c,2),d=l[0],f=l[1];return"".concat(s).concat(d,": ").concat(n.stringify(f,r,o+r))}).join(`,
80
+ [contenteditable]:not([tabIndex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden])`).concat(n)),o=[],i=Jn(r),s;try{for(i.s();!(s=i.n()).done;){var c=s.value;getComputedStyle(c).display!="none"&&getComputedStyle(c).visibility!="hidden"&&o.push(c)}}catch(l){i.e(l)}finally{i.f()}return o},getFirstFocusableElement:function(e,n){var r=this.getFocusableElements(e,n);return r.length>0?r[0]:null},getLastFocusableElement:function(e,n){var r=this.getFocusableElements(e,n);return r.length>0?r[r.length-1]:null},getNextFocusableElement:function(e,n,r){var o=this.getFocusableElements(e,r),i=o.length>0?o.findIndex(function(c){return c===n}):-1,s=i>-1&&o.length>=i+1?i+1:-1;return s>-1?o[s]:null},getPreviousElementSibling:function(e,n){for(var r=e.previousElementSibling;r;){if(r.matches(n))return r;r=r.previousElementSibling}return null},getNextElementSibling:function(e,n){for(var r=e.nextElementSibling;r;){if(r.matches(n))return r;r=r.nextElementSibling}return null},isClickable:function(e){if(e){var n=e.nodeName,r=e.parentElement&&e.parentElement.nodeName;return n==="INPUT"||n==="TEXTAREA"||n==="BUTTON"||n==="A"||r==="INPUT"||r==="TEXTAREA"||r==="BUTTON"||r==="A"||!!e.closest(".p-button, .p-checkbox, .p-radiobutton")}return!1},applyStyle:function(e,n){if(typeof n=="string")e.style.cssText=n;else for(var r in n)e.style[r]=n[r]},isIOS:function(){return/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream},isAndroid:function(){return/(android)/i.test(navigator.userAgent)},isTouchDevice:function(){return"ontouchstart"in window||navigator.maxTouchPoints>0||navigator.msMaxTouchPoints>0},hasCSSAnimation:function(e){if(e){var n=getComputedStyle(e),r=parseFloat(n.getPropertyValue("animation-duration")||"0");return r>0}return!1},hasCSSTransition:function(e){if(e){var n=getComputedStyle(e),r=parseFloat(n.getPropertyValue("transition-duration")||"0");return r>0}return!1},exportCSV:function(e,n){var r=new Blob([e],{type:"application/csv;charset=utf-8;"});if(window.navigator.msSaveOrOpenBlob)navigator.msSaveOrOpenBlob(r,n+".csv");else{var o=document.createElement("a");o.download!==void 0?(o.setAttribute("href",URL.createObjectURL(r)),o.setAttribute("download",n+".csv"),o.style.display="none",document.body.appendChild(o),o.click(),document.body.removeChild(o)):(e="data:text/csv;charset=utf-8,"+e,window.open(encodeURI(e)))}},blockBodyScroll:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"p-overflow-hidden";document.body.style.setProperty("--scrollbar-width",this.calculateBodyScrollbarWidth()+"px"),this.addClass(document.body,e)},unblockBodyScroll:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"p-overflow-hidden";document.body.style.removeProperty("--scrollbar-width"),this.removeClass(document.body,e)}};function jo(t,e){return ku(t)||Ou(t,e)||er(t,e)||Tu()}function Tu(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
81
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Ou(t,e){var n=t==null?null:typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(n!=null){var r,o,i,s,c=[],l=!0,u=!1;try{if(i=(n=n.call(t)).next,e===0){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=i.call(n)).done)&&(c.push(r.value),c.length!==e);l=!0);}catch(d){u=!0,o=d}finally{try{if(!l&&n.return!=null&&(s=n.return(),Object(s)!==s))return}finally{if(u)throw o}}return c}}function ku(t){if(Array.isArray(t))return t}function Vo(t){return Lu(t)||$u(t)||er(t)||Bu()}function Bu(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
82
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function $u(t){if(typeof Symbol<"u"&&t[Symbol.iterator]!=null||t["@@iterator"]!=null)return Array.from(t)}function Lu(t){if(Array.isArray(t))return tr(t)}function Qn(t,e){var n=typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(!n){if(Array.isArray(t)||(n=er(t))||e&&t&&typeof t.length=="number"){n&&(t=n);var r=0,o=function(){};return{s:o,n:function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(u){throw u},f:o}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
83
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var i=!0,s=!1,c;return{s:function(){n=n.call(t)},n:function(){var u=n.next();return i=u.done,u},e:function(u){s=!0,c=u},f:function(){try{!i&&n.return!=null&&n.return()}finally{if(s)throw c}}}}function er(t,e){if(t){if(typeof t=="string")return tr(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);if(n==="Object"&&t.constructor&&(n=t.constructor.name),n==="Map"||n==="Set")return Array.from(t);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return tr(t,e)}}function tr(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function Tt(t){"@babel/helpers - typeof";return Tt=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Tt(t)}var P={equals:function(e,n,r){return r?this.resolveFieldData(e,r)===this.resolveFieldData(n,r):this.deepEquals(e,n)},deepEquals:function(e,n){if(e===n)return!0;if(e&&n&&Tt(e)=="object"&&Tt(n)=="object"){var r=Array.isArray(e),o=Array.isArray(n),i,s,c;if(r&&o){if(s=e.length,s!=n.length)return!1;for(i=s;i--!==0;)if(!this.deepEquals(e[i],n[i]))return!1;return!0}if(r!=o)return!1;var l=e instanceof Date,u=n instanceof Date;if(l!=u)return!1;if(l&&u)return e.getTime()==n.getTime();var d=e instanceof RegExp,f=n instanceof RegExp;if(d!=f)return!1;if(d&&f)return e.toString()==n.toString();var g=Object.keys(e);if(s=g.length,s!==Object.keys(n).length)return!1;for(i=s;i--!==0;)if(!Object.prototype.hasOwnProperty.call(n,g[i]))return!1;for(i=s;i--!==0;)if(c=g[i],!this.deepEquals(e[c],n[c]))return!1;return!0}return e!==e&&n!==n},resolveFieldData:function(e,n){if(!e||!n)return null;try{var r=e[n];if(this.isNotEmpty(r))return r}catch{}if(Object.keys(e).length){if(this.isFunction(n))return n(e);if(n.indexOf(".")===-1)return e[n];for(var o=n.split("."),i=e,s=0,c=o.length;s<c;++s){if(i==null)return null;i=i[o[s]]}return i}return null},getItemValue:function(e){for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];return this.isFunction(e)?e.apply(void 0,r):e},filter:function(e,n,r){var o=[];if(e){var i=Qn(e),s;try{for(i.s();!(s=i.n()).done;){var c=s.value,l=Qn(n),u;try{for(l.s();!(u=l.n()).done;){var d=u.value;if(String(this.resolveFieldData(c,d)).toLowerCase().indexOf(r.toLowerCase())>-1){o.push(c);break}}}catch(f){l.e(f)}finally{l.f()}}}catch(f){i.e(f)}finally{i.f()}}return o},reorderArray:function(e,n,r){e&&n!==r&&(r>=e.length&&(r%=e.length,n%=e.length),e.splice(r,0,e.splice(n,1)[0]))},findIndexInList:function(e,n){var r=-1;if(n){for(var o=0;o<n.length;o++)if(n[o]===e){r=o;break}}return r},contains:function(e,n){if(e!=null&&n&&n.length){var r=Qn(n),o;try{for(r.s();!(o=r.n()).done;){var i=o.value;if(this.equals(e,i))return!0}}catch(s){r.e(s)}finally{r.f()}}return!1},insertIntoOrderedArray:function(e,n,r,o){if(r.length>0){for(var i=!1,s=0;s<r.length;s++){var c=this.findIndexInList(r[s],o);if(c>n){r.splice(s,0,e),i=!0;break}}i||r.push(e)}else r.push(e)},removeAccents:function(e){return e&&e.search(/[\xC0-\xFF]/g)>-1&&(e=e.replace(/[\xC0-\xC5]/g,"A").replace(/[\xC6]/g,"AE").replace(/[\xC7]/g,"C").replace(/[\xC8-\xCB]/g,"E").replace(/[\xCC-\xCF]/g,"I").replace(/[\xD0]/g,"D").replace(/[\xD1]/g,"N").replace(/[\xD2-\xD6\xD8]/g,"O").replace(/[\xD9-\xDC]/g,"U").replace(/[\xDD]/g,"Y").replace(/[\xDE]/g,"P").replace(/[\xE0-\xE5]/g,"a").replace(/[\xE6]/g,"ae").replace(/[\xE7]/g,"c").replace(/[\xE8-\xEB]/g,"e").replace(/[\xEC-\xEF]/g,"i").replace(/[\xF1]/g,"n").replace(/[\xF2-\xF6\xF8]/g,"o").replace(/[\xF9-\xFC]/g,"u").replace(/[\xFE]/g,"p").replace(/[\xFD\xFF]/g,"y")),e},getVNodeProp:function(e,n){if(e){var r=e.props;if(r){var o=n.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase(),i=Object.prototype.hasOwnProperty.call(r,o)?o:n;return e.type.extends.props[n].type===Boolean&&r[i]===""?!0:r[i]}}return null},toFlatCase:function(e){return this.isString(e)?e.replace(/(-|_)/g,"").toLowerCase():e},toKebabCase:function(e){return this.isString(e)?e.replace(/(_)/g,"-").replace(/[A-Z]/g,function(n,r){return r===0?n:"-"+n.toLowerCase()}).toLowerCase():e},toCapitalCase:function(e){return this.isString(e,{empty:!1})?e[0].toUpperCase()+e.slice(1):e},isEmpty:function(e){return e==null||e===""||Array.isArray(e)&&e.length===0||!(e instanceof Date)&&Tt(e)==="object"&&Object.keys(e).length===0},isNotEmpty:function(e){return!this.isEmpty(e)},isFunction:function(e){return!!(e&&e.constructor&&e.call&&e.apply)},isObject:function(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;return e instanceof Object&&e.constructor===Object&&(n||Object.keys(e).length!==0)},isDate:function(e){return e instanceof Date&&e.constructor===Date},isArray:function(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;return Array.isArray(e)&&(n||e.length!==0)},isString:function(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;return typeof e=="string"&&(n||e!=="")},isPrintableCharacter:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return this.isNotEmpty(e)&&e.length===1&&e.match(/\S| /)},findLast:function(e,n){var r;if(this.isNotEmpty(e))try{r=e.findLast(n)}catch{r=Vo(e).reverse().find(n)}return r},findLastIndex:function(e,n){var r=-1;if(this.isNotEmpty(e))try{r=e.findLastIndex(n)}catch{r=e.lastIndexOf(Vo(e).reverse().find(n))}return r},sort:function(e,n){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,o=arguments.length>3?arguments[3]:void 0,i=arguments.length>4&&arguments[4]!==void 0?arguments[4]:1,s=this.compare(e,n,o,r),c=r;return(this.isEmpty(e)||this.isEmpty(n))&&(c=i===1?r:i),c*s},compare:function(e,n,r){var o=arguments.length>3&&arguments[3]!==void 0?arguments[3]:1,i=-1,s=this.isEmpty(e),c=this.isEmpty(n);return s&&c?i=0:s?i=o:c?i=-o:typeof e=="string"&&typeof n=="string"?i=r(e,n):i=e<n?-1:e>n?1:0,i},localeComparator:function(){return new Intl.Collator(void 0,{numeric:!0}).compare},nestedKeys:function(){var e=this,n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";return Object.entries(n).reduce(function(o,i){var s=jo(i,2),c=s[0],l=s[1],u=r?"".concat(r,".").concat(c):c;return e.isObject(l)?o=o.concat(e.nestedKeys(l,u)):o.push(u),o},[])},stringify:function(e){var n=this,r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:2,o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0,i=" ".repeat(o),s=" ".repeat(o+r);return this.isArray(e)?"["+e.map(function(c){return n.stringify(c,r,o+r)}).join(", ")+"]":this.isDate(e)?e.toISOString():this.isFunction(e)?e.toString():this.isObject(e)?`{
84
+ `+Object.entries(e).map(function(c){var l=jo(c,2),u=l[0],d=l[1];return"".concat(s).concat(u,": ").concat(n.stringify(d,r,o+r))}).join(`,
85
85
  `)+`
86
- `.concat(i)+"}":JSON.stringify(e)}},Qo=0;function ei(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"pv_id_";return Qo++,"".concat(t).concat(Qo)}function Ht(t){"@babel/helpers - typeof";return Ht=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Ht(t)}function ti(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(t,o).enumerable})),n.push.apply(n,r)}return n}function ni(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?ti(Object(n),!0).forEach(function(r){zu(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):ti(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function zu(t,e,n){return e=Wu(e),e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function Wu(t){var e=qu(t,"string");return Ht(e)=="symbol"?e:String(e)}function qu(t,e){if(Ht(t)!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e||"default");if(Ht(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function Gu(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;a.getCurrentInstance()?a.onMounted(t):e?t():a.nextTick(t)}var Ju=0;function ri(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=a.ref(!1),r=a.ref(t),o=a.ref(null),i=Z.isClient()?window.document:void 0,s=e.document,c=s===void 0?i:s,l=e.immediate,d=l===void 0?!0:l,f=e.manual,p=f===void 0?!1:f,v=e.name,w=v===void 0?"style_".concat(++Ju):v,_=e.id,x=_===void 0?void 0:_,C=e.media,$=C===void 0?void 0:C,q=e.nonce,V=q===void 0?void 0:q,pe=e.props,de=pe===void 0?{}:pe,y=function(){},L=function(B){var O=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(c){var W=ni(ni({},de),O),A=W.name||w,G=W.id||x,ie=W.nonce||V;o.value=c.querySelector('style[data-primevue-style-id="'.concat(A,'"]'))||c.getElementById(G)||c.createElement("style"),o.value.isConnected||(r.value=B||t,Z.setAttributes(o.value,{type:"text/css",id:G,media:$,nonce:ie}),c.head.appendChild(o.value),Z.setAttribute(o.value,"data-primevue-style-id",w),Z.setAttributes(o.value,W)),!n.value&&(y=a.watch(r,function(ce){o.value.textContent=ce},{immediate:!0}),n.value=!0)}},j=function(){!c||!n.value||(y(),Z.isExist(o.value)&&c.head.removeChild(o.value),n.value=!1)};return d&&!p&&Gu(L),{id:x,name:w,css:r,unload:j,load:L,isLoaded:a.readonly(n)}}function jt(t){"@babel/helpers - typeof";return jt=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},jt(t)}function Yu(t,e){return ed(t)||Qu(t,e)||Zu(t,e)||Xu()}function Xu(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
87
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Zu(t,e){if(t){if(typeof t=="string")return oi(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);if(n==="Object"&&t.constructor&&(n=t.constructor.name),n==="Map"||n==="Set")return Array.from(t);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return oi(t,e)}}function oi(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function Qu(t,e){var n=t==null?null:typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(n!=null){var r,o,i,s,c=[],l=!0,d=!1;try{if(i=(n=n.call(t)).next,e===0){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=i.call(n)).done)&&(c.push(r.value),c.length!==e);l=!0);}catch(f){d=!0,o=f}finally{try{if(!l&&n.return!=null&&(s=n.return(),Object(s)!==s))return}finally{if(d)throw o}}return c}}function ed(t){if(Array.isArray(t))return t}function ii(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(t,o).enumerable})),n.push.apply(n,r)}return n}function pr(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?ii(Object(n),!0).forEach(function(r){td(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):ii(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function td(t,e,n){return e=nd(e),e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function nd(t){var e=rd(t,"string");return jt(e)=="symbol"?e:String(e)}function rd(t,e){if(jt(t)!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e||"default");if(jt(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}var od=`
86
+ `.concat(i)+"}":JSON.stringify(e)}},Uo=0;function Wo(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"pv_id_";return Uo++,"".concat(t).concat(Uo)}function Ot(t){"@babel/helpers - typeof";return Ot=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Ot(t)}function Ko(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(t,o).enumerable})),n.push.apply(n,r)}return n}function zo(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?Ko(Object(n),!0).forEach(function(r){Fu(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Ko(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function Fu(t,e,n){return e=Nu(e),e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function Nu(t){var e=Du(t,"string");return Ot(e)=="symbol"?e:String(e)}function Du(t,e){if(Ot(t)!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e||"default");if(Ot(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function Ru(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;a.getCurrentInstance()?a.onMounted(t):e?t():a.nextTick(t)}var Mu=0;function qo(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=a.ref(!1),r=a.ref(t),o=a.ref(null),i=j.isClient()?window.document:void 0,s=e.document,c=s===void 0?i:s,l=e.immediate,u=l===void 0?!0:l,d=e.manual,f=d===void 0?!1:d,g=e.name,b=g===void 0?"style_".concat(++Mu):g,v=e.id,S=v===void 0?void 0:v,w=e.media,I=w===void 0?void 0:w,M=e.nonce,$=M===void 0?void 0:M,ue=e.props,pe=ue===void 0?{}:ue,y=function(){},x=function(T){var A=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(c){var F=zo(zo({},pe),A),E=F.name||b,D=F.id||S,G=F.nonce||$;o.value=c.querySelector('style[data-primevue-style-id="'.concat(E,'"]'))||c.getElementById(D)||c.createElement("style"),o.value.isConnected||(r.value=T||t,j.setAttributes(o.value,{type:"text/css",id:D,media:I,nonce:G}),c.head.appendChild(o.value),j.setAttribute(o.value,"data-primevue-style-id",b),j.setAttributes(o.value,F)),!n.value&&(y=a.watch(r,function(ne){o.value.textContent=ne},{immediate:!0}),n.value=!0)}},B=function(){!c||!n.value||(y(),j.isExist(o.value)&&c.head.removeChild(o.value),n.value=!1)};return u&&!f&&Ru(x),{id:S,name:b,css:r,unload:B,load:x,isLoaded:a.readonly(n)}}function kt(t){"@babel/helpers - typeof";return kt=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},kt(t)}function Hu(t,e){return Wu(t)||Uu(t,e)||Vu(t,e)||ju()}function ju(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
87
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Vu(t,e){if(t){if(typeof t=="string")return Go(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);if(n==="Object"&&t.constructor&&(n=t.constructor.name),n==="Map"||n==="Set")return Array.from(t);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Go(t,e)}}function Go(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function Uu(t,e){var n=t==null?null:typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(n!=null){var r,o,i,s,c=[],l=!0,u=!1;try{if(i=(n=n.call(t)).next,e===0){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=i.call(n)).done)&&(c.push(r.value),c.length!==e);l=!0);}catch(d){u=!0,o=d}finally{try{if(!l&&n.return!=null&&(s=n.return(),Object(s)!==s))return}finally{if(u)throw o}}return c}}function Wu(t){if(Array.isArray(t))return t}function Jo(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(t,o).enumerable})),n.push.apply(n,r)}return n}function nr(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?Jo(Object(n),!0).forEach(function(r){Ku(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Jo(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function Ku(t,e,n){return e=zu(e),e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function zu(t){var e=qu(t,"string");return kt(e)=="symbol"?e:String(e)}function qu(t,e){if(kt(t)!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e||"default");if(kt(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}var Gu=`
88
88
  .p-hidden-accessible {
89
89
  border: 0;
90
90
  clip: rect(0 0 0 0);
@@ -105,8 +105,8 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
105
105
  overflow: hidden;
106
106
  padding-right: var(--scrollbar-width);
107
107
  }
108
- `,id={},sd={},ct={name:"base",css:od,classes:id,inlineStyles:sd,loadStyle:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return this.css?ri(this.css,pr({name:this.name},e)):{}},getStyleSheet:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(this.css){var r=Object.entries(n).reduce(function(o,i){var s=Yu(i,2),c=s[0],l=s[1];return o.push("".concat(c,'="').concat(l,'"'))&&o},[]).join(" ");return'<style type="text/css" data-primevue-style-id="'.concat(this.name,'" ').concat(r,">").concat(this.css).concat(e,"</style>")}return""},extend:function(e){return pr(pr({},this),{},{css:void 0},e)}};function Vt(t){"@babel/helpers - typeof";return Vt=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Vt(t)}function si(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(t,o).enumerable})),n.push.apply(n,r)}return n}function ad(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?si(Object(n),!0).forEach(function(r){ld(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):si(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function ld(t,e,n){return e=cd(e),e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function cd(t){var e=ud(t,"string");return Vt(e)=="symbol"?e:String(e)}function ud(t,e){if(Vt(t)!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e||"default");if(Vt(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}var mr=ct.extend({name:"common",loadGlobalStyle:function(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return ri(e,ad({name:"global"},n))}});function Kt(t){"@babel/helpers - typeof";return Kt=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Kt(t)}function dd(t){return ui(t)||fd(t)||li(t)||ai()}function fd(t){if(typeof Symbol<"u"&&t[Symbol.iterator]!=null||t["@@iterator"]!=null)return Array.from(t)}function hn(t,e){return ui(t)||pd(t,e)||li(t,e)||ai()}function ai(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
109
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function li(t,e){if(t){if(typeof t=="string")return ci(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);if(n==="Object"&&t.constructor&&(n=t.constructor.name),n==="Map"||n==="Set")return Array.from(t);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return ci(t,e)}}function ci(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function pd(t,e){var n=t==null?null:typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(n!=null){var r,o,i,s,c=[],l=!0,d=!1;try{if(i=(n=n.call(t)).next,e===0){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=i.call(n)).done)&&(c.push(r.value),c.length!==e);l=!0);}catch(f){d=!0,o=f}finally{try{if(!l&&n.return!=null&&(s=n.return(),Object(s)!==s))return}finally{if(d)throw o}}return c}}function ui(t){if(Array.isArray(t))return t}function di(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(t,o).enumerable})),n.push.apply(n,r)}return n}function ae(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?di(Object(n),!0).forEach(function(r){gn(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):di(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function gn(t,e,n){return e=md(e),e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function md(t){var e=hd(t,"string");return Kt(e)=="symbol"?e:String(e)}function hd(t,e){if(Kt(t)!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e||"default");if(Kt(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}var yn={name:"BaseComponent",props:{pt:{type:Object,default:void 0},ptOptions:{type:Object,default:void 0},unstyled:{type:Boolean,default:void 0}},inject:{$parentInstance:{default:void 0}},watch:{isUnstyled:{immediate:!0,handler:function(e){if(!e){var n,r;mr.loadStyle({nonce:(n=this.$config)===null||n===void 0||(n=n.csp)===null||n===void 0?void 0:n.nonce}),this.$options.style&&this.$style.loadStyle({nonce:(r=this.$config)===null||r===void 0||(r=r.csp)===null||r===void 0?void 0:r.nonce})}}}},beforeCreate:function(){var e,n,r,o,i,s,c,l,d,f,p,v=(e=this.pt)===null||e===void 0?void 0:e._usept,w=v?(n=this.pt)===null||n===void 0||(n=n.originalValue)===null||n===void 0?void 0:n[this.$.type.name]:void 0,_=v?(r=this.pt)===null||r===void 0||(r=r.value)===null||r===void 0?void 0:r[this.$.type.name]:this.pt;(o=_||w)===null||o===void 0||(o=o.hooks)===null||o===void 0||(i=o.onBeforeCreate)===null||i===void 0||i.call(o);var x=(s=this.$config)===null||s===void 0||(s=s.pt)===null||s===void 0?void 0:s._usept,C=x?(c=this.$primevue)===null||c===void 0||(c=c.config)===null||c===void 0||(c=c.pt)===null||c===void 0?void 0:c.originalValue:void 0,$=x?(l=this.$primevue)===null||l===void 0||(l=l.config)===null||l===void 0||(l=l.pt)===null||l===void 0?void 0:l.value:(d=this.$primevue)===null||d===void 0||(d=d.config)===null||d===void 0?void 0:d.pt;(f=$||C)===null||f===void 0||(f=f[this.$.type.name])===null||f===void 0||(f=f.hooks)===null||f===void 0||(p=f.onBeforeCreate)===null||p===void 0||p.call(f)},created:function(){this._hook("onCreated")},beforeMount:function(){var e;ct.loadStyle({nonce:(e=this.$config)===null||e===void 0||(e=e.csp)===null||e===void 0?void 0:e.nonce}),this._loadGlobalStyles(),this._hook("onBeforeMount")},mounted:function(){this._hook("onMounted")},beforeUpdate:function(){this._hook("onBeforeUpdate")},updated:function(){this._hook("onUpdated")},beforeUnmount:function(){this._hook("onBeforeUnmount")},unmounted:function(){this._hook("onUnmounted")},methods:{_hook:function(e){if(!this.$options.hostName){var n=this._usePT(this._getPT(this.pt,this.$.type.name),this._getOptionValue,"hooks.".concat(e)),r=this._useDefaultPT(this._getOptionValue,"hooks.".concat(e));n==null||n(),r==null||r()}},_mergeProps:function(e){for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];return D.isFunction(e)?e.apply(void 0,r):a.mergeProps.apply(void 0,r)},_loadGlobalStyles:function(){var e,n=this._useGlobalPT(this._getOptionValue,"global.css",this.$params);D.isNotEmpty(n)&&mr.loadGlobalStyle(n,{nonce:(e=this.$config)===null||e===void 0||(e=e.csp)===null||e===void 0?void 0:e.nonce})},_getHostInstance:function(e){return e?this.$options.hostName?e.$.type.name===this.$options.hostName?e:this._getHostInstance(e.$parentInstance):e.$parentInstance:void 0},_getPropValue:function(e){var n;return this[e]||((n=this._getHostInstance(this))===null||n===void 0?void 0:n[e])},_getOptionValue:function(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"",r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},o=D.toFlatCase(n).split("."),i=o.shift();return i?D.isObject(e)?this._getOptionValue(D.getItemValue(e[Object.keys(e).find(function(s){return D.toFlatCase(s)===i})||""],r),o.join("."),r):void 0:D.getItemValue(e,r)},_getPTValue:function(){var e,n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"",o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!0,s=/./g.test(r)&&!!o[r.split(".")[0]],c=this._getPropValue("ptOptions")||((e=this.$config)===null||e===void 0?void 0:e.ptOptions)||{},l=c.mergeSections,d=l===void 0?!0:l,f=c.mergeProps,p=f===void 0?!1:f,v=i?s?this._useGlobalPT(this._getPTClassValue,r,o):this._useDefaultPT(this._getPTClassValue,r,o):void 0,w=s?void 0:this._getPTSelf(n,this._getPTClassValue,r,ae(ae({},o),{},{global:v||{}})),_=this._getPTDatasets(r);return d||!d&&w?p?this._mergeProps(p,v,w,_):ae(ae(ae({},v),w),_):ae(ae({},w),_)},_getPTSelf:function(){for(var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];return a.mergeProps(this._usePT.apply(this,[this._getPT(e,this.$name)].concat(r)),this._usePT.apply(this,[this.$_attrsPT].concat(r)))},_getPTDatasets:function(){var e,n,r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",o="data-pc-",i=r==="root"&&D.isNotEmpty((e=this.pt)===null||e===void 0?void 0:e["data-pc-section"]);return r!=="transition"&&ae(ae({},r==="root"&&ae(gn({},"".concat(o,"name"),D.toFlatCase(i?(n=this.pt)===null||n===void 0?void 0:n["data-pc-section"]:this.$.type.name)),i&&gn({},"".concat(o,"extend"),D.toFlatCase(this.$.type.name)))),{},gn({},"".concat(o,"section"),D.toFlatCase(r)))},_getPTClassValue:function(){var e=this._getOptionValue.apply(this,arguments);return D.isString(e)||D.isArray(e)?{class:e}:e},_getPT:function(e){var n=this,r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"",o=arguments.length>2?arguments[2]:void 0,i=function(c){var l,d=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,f=o?o(c):c,p=D.toFlatCase(r),v=D.toFlatCase(n.$name);return(l=d?p!==v?f==null?void 0:f[p]:void 0:f==null?void 0:f[p])!==null&&l!==void 0?l:f};return e!=null&&e.hasOwnProperty("_usept")?{_usept:e._usept,originalValue:i(e.originalValue),value:i(e.value)}:i(e,!0)},_usePT:function(e,n,r,o){var i=function(x){return n(x,r,o)};if(e!=null&&e.hasOwnProperty("_usept")){var s,c=e._usept||((s=this.$config)===null||s===void 0?void 0:s.ptOptions)||{},l=c.mergeSections,d=l===void 0?!0:l,f=c.mergeProps,p=f===void 0?!1:f,v=i(e.originalValue),w=i(e.value);return v===void 0&&w===void 0?void 0:D.isString(w)?w:D.isString(v)?v:d||!d&&w?p?this._mergeProps(p,v,w):ae(ae({},v),w):w}return i(e)},_useGlobalPT:function(e,n,r){return this._usePT(this.globalPT,e,n,r)},_useDefaultPT:function(e,n,r){return this._usePT(this.defaultPT,e,n,r)},ptm:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return this._getPTValue(this.pt,e,ae(ae({},this.$params),n))},ptmi:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return a.mergeProps(this.$_attrsNoPT,this.ptm(e,n))},ptmo:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"",r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return this._getPTValue(e,n,ae({instance:this},r),!1)},cx:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return this.isUnstyled?void 0:this._getOptionValue(this.$style.classes,e,ae(ae({},this.$params),n))},sx:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0,r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};if(n){var o=this._getOptionValue(this.$style.inlineStyles,e,ae(ae({},this.$params),r)),i=this._getOptionValue(mr.inlineStyles,e,ae(ae({},this.$params),r));return[i,o]}}},computed:{globalPT:function(){var e,n=this;return this._getPT((e=this.$config)===null||e===void 0?void 0:e.pt,void 0,function(r){return D.getItemValue(r,{instance:n})})},defaultPT:function(){var e,n=this;return this._getPT((e=this.$config)===null||e===void 0?void 0:e.pt,void 0,function(r){return n._getOptionValue(r,n.$name,ae({},n.$params))||D.getItemValue(r,ae({},n.$params))})},isUnstyled:function(){var e;return this.unstyled!==void 0?this.unstyled:(e=this.$config)===null||e===void 0?void 0:e.unstyled},$params:function(){var e=this._getHostInstance(this)||this.$parent;return{instance:this,props:this.$props,state:this.$data,attrs:this.$attrs,parent:{instance:e,props:e==null?void 0:e.$props,state:e==null?void 0:e.$data,attrs:e==null?void 0:e.$attrs},parentInstance:e}},$style:function(){return ae(ae({classes:void 0,inlineStyles:void 0,loadStyle:function(){},loadCustomStyle:function(){}},(this._getHostInstance(this)||{}).$style),this.$options.style)},$config:function(){var e;return(e=this.$primevue)===null||e===void 0?void 0:e.config},$name:function(){return this.$options.hostName||this.$.type.name},$_attrsPT:function(){return Object.entries(this.$attrs||{}).filter(function(e){var n=hn(e,1),r=n[0];return r==null?void 0:r.startsWith("pt:")}).reduce(function(e,n){var r=hn(n,2),o=r[0],i=r[1],s=o.split(":"),c=dd(s),l=c.slice(1);return l==null||l.reduce(function(d,f,p,v){return!d[f]&&(d[f]=p===v.length-1?i:{}),d[f]},e),e},{})},$_attrsNoPT:function(){return Object.entries(this.$attrs||{}).filter(function(e){var n=hn(e,1),r=n[0];return!(r!=null&&r.startsWith("pt:"))}).reduce(function(e,n){var r=hn(n,2),o=r[0],i=r[1];return e[o]=i,e},{})}}},gd=`
108
+ `,Ju={},Yu={},Ye={name:"base",css:Gu,classes:Ju,inlineStyles:Yu,loadStyle:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return this.css?qo(this.css,nr({name:this.name},e)):{}},getStyleSheet:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(this.css){var r=Object.entries(n).reduce(function(o,i){var s=Hu(i,2),c=s[0],l=s[1];return o.push("".concat(c,'="').concat(l,'"'))&&o},[]).join(" ");return'<style type="text/css" data-primevue-style-id="'.concat(this.name,'" ').concat(r,">").concat(this.css).concat(e,"</style>")}return""},extend:function(e){return nr(nr({},this),{},{css:void 0},e)}};function Bt(t){"@babel/helpers - typeof";return Bt=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Bt(t)}function Yo(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(t,o).enumerable})),n.push.apply(n,r)}return n}function Xu(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?Yo(Object(n),!0).forEach(function(r){Zu(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Yo(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function Zu(t,e,n){return e=Qu(e),e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function Qu(t){var e=ed(t,"string");return Bt(e)=="symbol"?e:String(e)}function ed(t,e){if(Bt(t)!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e||"default");if(Bt(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}var rr=Ye.extend({name:"common",loadGlobalStyle:function(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return qo(e,Xu({name:"global"},n))}});function $t(t){"@babel/helpers - typeof";return $t=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},$t(t)}function td(t){return ei(t)||nd(t)||Zo(t)||Xo()}function nd(t){if(typeof Symbol<"u"&&t[Symbol.iterator]!=null||t["@@iterator"]!=null)return Array.from(t)}function nn(t,e){return ei(t)||rd(t,e)||Zo(t,e)||Xo()}function Xo(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
109
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Zo(t,e){if(t){if(typeof t=="string")return Qo(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);if(n==="Object"&&t.constructor&&(n=t.constructor.name),n==="Map"||n==="Set")return Array.from(t);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Qo(t,e)}}function Qo(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function rd(t,e){var n=t==null?null:typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(n!=null){var r,o,i,s,c=[],l=!0,u=!1;try{if(i=(n=n.call(t)).next,e===0){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=i.call(n)).done)&&(c.push(r.value),c.length!==e);l=!0);}catch(d){u=!0,o=d}finally{try{if(!l&&n.return!=null&&(s=n.return(),Object(s)!==s))return}finally{if(u)throw o}}return c}}function ei(t){if(Array.isArray(t))return t}function ti(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(t,o).enumerable})),n.push.apply(n,r)}return n}function Y(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?ti(Object(n),!0).forEach(function(r){rn(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):ti(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function rn(t,e,n){return e=od(e),e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function od(t){var e=id(t,"string");return $t(e)=="symbol"?e:String(e)}function id(t,e){if($t(t)!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e||"default");if($t(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}var on={name:"BaseComponent",props:{pt:{type:Object,default:void 0},ptOptions:{type:Object,default:void 0},unstyled:{type:Boolean,default:void 0}},inject:{$parentInstance:{default:void 0}},watch:{isUnstyled:{immediate:!0,handler:function(e){if(!e){var n,r;rr.loadStyle({nonce:(n=this.$config)===null||n===void 0||(n=n.csp)===null||n===void 0?void 0:n.nonce}),this.$options.style&&this.$style.loadStyle({nonce:(r=this.$config)===null||r===void 0||(r=r.csp)===null||r===void 0?void 0:r.nonce})}}}},beforeCreate:function(){var e,n,r,o,i,s,c,l,u,d,f,g=(e=this.pt)===null||e===void 0?void 0:e._usept,b=g?(n=this.pt)===null||n===void 0||(n=n.originalValue)===null||n===void 0?void 0:n[this.$.type.name]:void 0,v=g?(r=this.pt)===null||r===void 0||(r=r.value)===null||r===void 0?void 0:r[this.$.type.name]:this.pt;(o=v||b)===null||o===void 0||(o=o.hooks)===null||o===void 0||(i=o.onBeforeCreate)===null||i===void 0||i.call(o);var S=(s=this.$config)===null||s===void 0||(s=s.pt)===null||s===void 0?void 0:s._usept,w=S?(c=this.$primevue)===null||c===void 0||(c=c.config)===null||c===void 0||(c=c.pt)===null||c===void 0?void 0:c.originalValue:void 0,I=S?(l=this.$primevue)===null||l===void 0||(l=l.config)===null||l===void 0||(l=l.pt)===null||l===void 0?void 0:l.value:(u=this.$primevue)===null||u===void 0||(u=u.config)===null||u===void 0?void 0:u.pt;(d=I||w)===null||d===void 0||(d=d[this.$.type.name])===null||d===void 0||(d=d.hooks)===null||d===void 0||(f=d.onBeforeCreate)===null||f===void 0||f.call(d)},created:function(){this._hook("onCreated")},beforeMount:function(){var e;Ye.loadStyle({nonce:(e=this.$config)===null||e===void 0||(e=e.csp)===null||e===void 0?void 0:e.nonce}),this._loadGlobalStyles(),this._hook("onBeforeMount")},mounted:function(){this._hook("onMounted")},beforeUpdate:function(){this._hook("onBeforeUpdate")},updated:function(){this._hook("onUpdated")},beforeUnmount:function(){this._hook("onBeforeUnmount")},unmounted:function(){this._hook("onUnmounted")},methods:{_hook:function(e){if(!this.$options.hostName){var n=this._usePT(this._getPT(this.pt,this.$.type.name),this._getOptionValue,"hooks.".concat(e)),r=this._useDefaultPT(this._getOptionValue,"hooks.".concat(e));n==null||n(),r==null||r()}},_mergeProps:function(e){for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];return P.isFunction(e)?e.apply(void 0,r):a.mergeProps.apply(void 0,r)},_loadGlobalStyles:function(){var e,n=this._useGlobalPT(this._getOptionValue,"global.css",this.$params);P.isNotEmpty(n)&&rr.loadGlobalStyle(n,{nonce:(e=this.$config)===null||e===void 0||(e=e.csp)===null||e===void 0?void 0:e.nonce})},_getHostInstance:function(e){return e?this.$options.hostName?e.$.type.name===this.$options.hostName?e:this._getHostInstance(e.$parentInstance):e.$parentInstance:void 0},_getPropValue:function(e){var n;return this[e]||((n=this._getHostInstance(this))===null||n===void 0?void 0:n[e])},_getOptionValue:function(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"",r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},o=P.toFlatCase(n).split("."),i=o.shift();return i?P.isObject(e)?this._getOptionValue(P.getItemValue(e[Object.keys(e).find(function(s){return P.toFlatCase(s)===i})||""],r),o.join("."),r):void 0:P.getItemValue(e,r)},_getPTValue:function(){var e,n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"",o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!0,s=/./g.test(r)&&!!o[r.split(".")[0]],c=this._getPropValue("ptOptions")||((e=this.$config)===null||e===void 0?void 0:e.ptOptions)||{},l=c.mergeSections,u=l===void 0?!0:l,d=c.mergeProps,f=d===void 0?!1:d,g=i?s?this._useGlobalPT(this._getPTClassValue,r,o):this._useDefaultPT(this._getPTClassValue,r,o):void 0,b=s?void 0:this._getPTSelf(n,this._getPTClassValue,r,Y(Y({},o),{},{global:g||{}})),v=this._getPTDatasets(r);return u||!u&&b?f?this._mergeProps(f,g,b,v):Y(Y(Y({},g),b),v):Y(Y({},b),v)},_getPTSelf:function(){for(var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];return a.mergeProps(this._usePT.apply(this,[this._getPT(e,this.$name)].concat(r)),this._usePT.apply(this,[this.$_attrsPT].concat(r)))},_getPTDatasets:function(){var e,n,r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",o="data-pc-",i=r==="root"&&P.isNotEmpty((e=this.pt)===null||e===void 0?void 0:e["data-pc-section"]);return r!=="transition"&&Y(Y({},r==="root"&&Y(rn({},"".concat(o,"name"),P.toFlatCase(i?(n=this.pt)===null||n===void 0?void 0:n["data-pc-section"]:this.$.type.name)),i&&rn({},"".concat(o,"extend"),P.toFlatCase(this.$.type.name)))),{},rn({},"".concat(o,"section"),P.toFlatCase(r)))},_getPTClassValue:function(){var e=this._getOptionValue.apply(this,arguments);return P.isString(e)||P.isArray(e)?{class:e}:e},_getPT:function(e){var n=this,r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"",o=arguments.length>2?arguments[2]:void 0,i=function(c){var l,u=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,d=o?o(c):c,f=P.toFlatCase(r),g=P.toFlatCase(n.$name);return(l=u?f!==g?d==null?void 0:d[f]:void 0:d==null?void 0:d[f])!==null&&l!==void 0?l:d};return e!=null&&e.hasOwnProperty("_usept")?{_usept:e._usept,originalValue:i(e.originalValue),value:i(e.value)}:i(e,!0)},_usePT:function(e,n,r,o){var i=function(S){return n(S,r,o)};if(e!=null&&e.hasOwnProperty("_usept")){var s,c=e._usept||((s=this.$config)===null||s===void 0?void 0:s.ptOptions)||{},l=c.mergeSections,u=l===void 0?!0:l,d=c.mergeProps,f=d===void 0?!1:d,g=i(e.originalValue),b=i(e.value);return g===void 0&&b===void 0?void 0:P.isString(b)?b:P.isString(g)?g:u||!u&&b?f?this._mergeProps(f,g,b):Y(Y({},g),b):b}return i(e)},_useGlobalPT:function(e,n,r){return this._usePT(this.globalPT,e,n,r)},_useDefaultPT:function(e,n,r){return this._usePT(this.defaultPT,e,n,r)},ptm:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return this._getPTValue(this.pt,e,Y(Y({},this.$params),n))},ptmi:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return a.mergeProps(this.$_attrsNoPT,this.ptm(e,n))},ptmo:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"",r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return this._getPTValue(e,n,Y({instance:this},r),!1)},cx:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return this.isUnstyled?void 0:this._getOptionValue(this.$style.classes,e,Y(Y({},this.$params),n))},sx:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0,r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};if(n){var o=this._getOptionValue(this.$style.inlineStyles,e,Y(Y({},this.$params),r)),i=this._getOptionValue(rr.inlineStyles,e,Y(Y({},this.$params),r));return[i,o]}}},computed:{globalPT:function(){var e,n=this;return this._getPT((e=this.$config)===null||e===void 0?void 0:e.pt,void 0,function(r){return P.getItemValue(r,{instance:n})})},defaultPT:function(){var e,n=this;return this._getPT((e=this.$config)===null||e===void 0?void 0:e.pt,void 0,function(r){return n._getOptionValue(r,n.$name,Y({},n.$params))||P.getItemValue(r,Y({},n.$params))})},isUnstyled:function(){var e;return this.unstyled!==void 0?this.unstyled:(e=this.$config)===null||e===void 0?void 0:e.unstyled},$params:function(){var e=this._getHostInstance(this)||this.$parent;return{instance:this,props:this.$props,state:this.$data,attrs:this.$attrs,parent:{instance:e,props:e==null?void 0:e.$props,state:e==null?void 0:e.$data,attrs:e==null?void 0:e.$attrs},parentInstance:e}},$style:function(){return Y(Y({classes:void 0,inlineStyles:void 0,loadStyle:function(){},loadCustomStyle:function(){}},(this._getHostInstance(this)||{}).$style),this.$options.style)},$config:function(){var e;return(e=this.$primevue)===null||e===void 0?void 0:e.config},$name:function(){return this.$options.hostName||this.$.type.name},$_attrsPT:function(){return Object.entries(this.$attrs||{}).filter(function(e){var n=nn(e,1),r=n[0];return r==null?void 0:r.startsWith("pt:")}).reduce(function(e,n){var r=nn(n,2),o=r[0],i=r[1],s=o.split(":"),c=td(s),l=c.slice(1);return l==null||l.reduce(function(u,d,f,g){return!u[d]&&(u[d]=f===g.length-1?i:{}),u[d]},e),e},{})},$_attrsNoPT:function(){return Object.entries(this.$attrs||{}).filter(function(e){var n=nn(e,1),r=n[0];return!(r!=null&&r.startsWith("pt:"))}).reduce(function(e,n){var r=nn(n,2),o=r[0],i=r[1];return e[o]=i,e},{})}}},sd=`
110
110
  .p-icon {
111
111
  display: inline-block;
112
112
  }
@@ -137,24 +137,19 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
137
137
  transform: rotate(359deg);
138
138
  }
139
139
  }
140
- `,yd=ct.extend({name:"baseicon",css:gd});function zt(t){"@babel/helpers - typeof";return zt=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},zt(t)}function fi(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(t,o).enumerable})),n.push.apply(n,r)}return n}function pi(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?fi(Object(n),!0).forEach(function(r){bd(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):fi(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function bd(t,e,n){return e=vd(e),e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function vd(t){var e=wd(t,"string");return zt(e)=="symbol"?e:String(e)}function wd(t,e){if(zt(t)!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e||"default");if(zt(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}var mi={name:"BaseIcon",extends:yn,props:{label:{type:String,default:void 0},spin:{type:Boolean,default:!1}},style:yd,methods:{pti:function(){var e=D.isEmpty(this.label);return pi(pi({},!this.isUnstyled&&{class:["p-icon",{"p-icon-spin":this.spin}]}),{},{role:e?void 0:"img","aria-label":e?void 0:this.label,"aria-hidden":e})}}},hr={name:"ChevronDownIcon",extends:mi},Ed=a.createElementVNode("path",{d:"M7.01744 10.398C6.91269 10.3985 6.8089 10.378 6.71215 10.3379C6.61541 10.2977 6.52766 10.2386 6.45405 10.1641L1.13907 4.84913C1.03306 4.69404 0.985221 4.5065 1.00399 4.31958C1.02276 4.13266 1.10693 3.95838 1.24166 3.82747C1.37639 3.69655 1.55301 3.61742 1.74039 3.60402C1.92777 3.59062 2.11386 3.64382 2.26584 3.75424L7.01744 8.47394L11.769 3.75424C11.9189 3.65709 12.097 3.61306 12.2748 3.62921C12.4527 3.64535 12.6199 3.72073 12.7498 3.84328C12.8797 3.96582 12.9647 4.12842 12.9912 4.30502C13.0177 4.48162 12.9841 4.662 12.8958 4.81724L7.58083 10.1322C7.50996 10.2125 7.42344 10.2775 7.32656 10.3232C7.22968 10.3689 7.12449 10.3944 7.01744 10.398Z",fill:"currentColor"},null,-1),Sd=[Ed];function Cd(t,e,n,r,o,i){return a.openBlock(),a.createElementBlock("svg",a.mergeProps({width:"14",height:"14",viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg"},t.pti()),Sd,16)}hr.render=Cd;var gr={name:"ChevronRightIcon",extends:mi},_d=a.createElementVNode("path",{d:"M4.38708 13C4.28408 13.0005 4.18203 12.9804 4.08691 12.9409C3.99178 12.9014 3.9055 12.8433 3.83313 12.7701C3.68634 12.6231 3.60388 12.4238 3.60388 12.2161C3.60388 12.0084 3.68634 11.8091 3.83313 11.6622L8.50507 6.99022L3.83313 2.31827C3.69467 2.16968 3.61928 1.97313 3.62287 1.77005C3.62645 1.56698 3.70872 1.37322 3.85234 1.22959C3.99596 1.08597 4.18972 1.00371 4.3928 1.00012C4.59588 0.996539 4.79242 1.07192 4.94102 1.21039L10.1669 6.43628C10.3137 6.58325 10.3962 6.78249 10.3962 6.99022C10.3962 7.19795 10.3137 7.39718 10.1669 7.54416L4.94102 12.7701C4.86865 12.8433 4.78237 12.9014 4.68724 12.9409C4.59212 12.9804 4.49007 13.0005 4.38708 13Z",fill:"currentColor"},null,-1),Ad=[_d];function kd(t,e,n,r,o,i){return a.openBlock(),a.createElementBlock("svg",a.mergeProps({width:"14",height:"14",viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg"},t.pti()),Ad,16)}gr.render=kd;var xd={root:"p-panelmenu p-component",panel:"p-panelmenu-panel",header:function(e){var n=e.instance,r=e.item;return["p-panelmenu-header",{"p-highlight":n.isItemActive(r)&&!!r.items,"p-disabled":n.isItemDisabled(r)}]},headerContent:"p-panelmenu-header-content",headerAction:"p-panelmenu-header-action",headerIcon:"p-menuitem-icon",headerLabel:"p-menuitem-text",toggleableContent:"p-toggleable-content",menuContent:"p-panelmenu-content",menu:"p-panelmenu-root-list",menuitem:function(e){var n=e.instance,r=e.processedItem;return["p-menuitem",{"p-focus":n.isItemFocused(r),"p-disabled":n.isItemDisabled(r)}]},content:"p-menuitem-content",action:"p-menuitem-link",icon:"p-menuitem-icon",label:"p-menuitem-text",submenuIcon:"p-submenu-icon",submenu:"p-submenu-list",separator:"p-menuitem-separator"},Id=ct.extend({name:"panelmenu",classes:xd});function Wt(t){"@babel/helpers - typeof";return Wt=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Wt(t)}function hi(t,e){return Ld(t)||Od(t,e)||Td(t,e)||Pd()}function Pd(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
141
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Td(t,e){if(t){if(typeof t=="string")return gi(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);if(n==="Object"&&t.constructor&&(n=t.constructor.name),n==="Map"||n==="Set")return Array.from(t);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return gi(t,e)}}function gi(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function Od(t,e){var n=t==null?null:typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(n!=null){var r,o,i,s,c=[],l=!0,d=!1;try{if(i=(n=n.call(t)).next,e===0){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=i.call(n)).done)&&(c.push(r.value),c.length!==e);l=!0);}catch(f){d=!0,o=f}finally{try{if(!l&&n.return!=null&&(s=n.return(),Object(s)!==s))return}finally{if(d)throw o}}return c}}function Ld(t){if(Array.isArray(t))return t}function yi(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(t,o).enumerable})),n.push.apply(n,r)}return n}function le(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?yi(Object(n),!0).forEach(function(r){yr(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):yi(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function yr(t,e,n){return e=Bd(e),e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function Bd(t){var e=Fd(t,"string");return Wt(e)=="symbol"?e:String(e)}function Fd(t,e){if(Wt(t)!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e||"default");if(Wt(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}var re={_getMeta:function(){return[D.isObject(arguments.length<=0?void 0:arguments[0])||arguments.length<=0?void 0:arguments[0],D.getItemValue(D.isObject(arguments.length<=0?void 0:arguments[0])?arguments.length<=0?void 0:arguments[0]:arguments.length<=1?void 0:arguments[1])]},_getConfig:function(e,n){var r,o,i;return(r=(e==null||(o=e.instance)===null||o===void 0?void 0:o.$primevue)||(n==null||(i=n.ctx)===null||i===void 0||(i=i.appContext)===null||i===void 0||(i=i.config)===null||i===void 0||(i=i.globalProperties)===null||i===void 0?void 0:i.$primevue))===null||r===void 0?void 0:r.config},_getOptionValue:function(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"",r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},o=D.toFlatCase(n).split("."),i=o.shift();return i?D.isObject(e)?re._getOptionValue(D.getItemValue(e[Object.keys(e).find(function(s){return D.toFlatCase(s)===i})||""],r),o.join("."),r):void 0:D.getItemValue(e,r)},_getPTValue:function(){var e,n,r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"",s=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},c=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!0,l=function(){var q=re._getOptionValue.apply(re,arguments);return D.isString(q)||D.isArray(q)?{class:q}:q},d=((e=r.binding)===null||e===void 0||(e=e.value)===null||e===void 0?void 0:e.ptOptions)||((n=r.$config)===null||n===void 0?void 0:n.ptOptions)||{},f=d.mergeSections,p=f===void 0?!0:f,v=d.mergeProps,w=v===void 0?!1:v,_=c?re._useDefaultPT(r,r.defaultPT(),l,i,s):void 0,x=re._usePT(r,re._getPT(o,r.$name),l,i,le(le({},s),{},{global:_||{}})),C=re._getPTDatasets(r,i);return p||!p&&x?w?re._mergeProps(r,w,_,x,C):le(le(le({},_),x),C):le(le({},x),C)},_getPTDatasets:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"",r="data-pc-";return le(le({},n==="root"&&yr({},"".concat(r,"name"),D.toFlatCase(e.$name))),{},yr({},"".concat(r,"section"),D.toFlatCase(n)))},_getPT:function(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"",r=arguments.length>2?arguments[2]:void 0,o=function(s){var c,l=r?r(s):s,d=D.toFlatCase(n);return(c=l==null?void 0:l[d])!==null&&c!==void 0?c:l};return e!=null&&e.hasOwnProperty("_usept")?{_usept:e._usept,originalValue:o(e.originalValue),value:o(e.value)}:o(e)},_usePT:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0,r=arguments.length>2?arguments[2]:void 0,o=arguments.length>3?arguments[3]:void 0,i=arguments.length>4?arguments[4]:void 0,s=function(C){return r(C,o,i)};if(n!=null&&n.hasOwnProperty("_usept")){var c,l=n._usept||((c=e.$config)===null||c===void 0?void 0:c.ptOptions)||{},d=l.mergeSections,f=d===void 0?!0:d,p=l.mergeProps,v=p===void 0?!1:p,w=s(n.originalValue),_=s(n.value);return w===void 0&&_===void 0?void 0:D.isString(_)?_:D.isString(w)?w:f||!f&&_?v?re._mergeProps(e,v,w,_):le(le({},w),_):_}return s(n)},_useDefaultPT:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=arguments.length>2?arguments[2]:void 0,o=arguments.length>3?arguments[3]:void 0,i=arguments.length>4?arguments[4]:void 0;return re._usePT(e,n,r,o,i)},_hook:function(e,n,r,o,i,s){var c,l,d="on".concat(D.toCapitalCase(n)),f=re._getConfig(o,i),p=r==null?void 0:r.$instance,v=re._usePT(p,re._getPT(o==null||(c=o.value)===null||c===void 0?void 0:c.pt,e),re._getOptionValue,"hooks.".concat(d)),w=re._useDefaultPT(p,f==null||(l=f.pt)===null||l===void 0||(l=l.directives)===null||l===void 0?void 0:l[e],re._getOptionValue,"hooks.".concat(d)),_={el:r,binding:o,vnode:i,prevVnode:s};v==null||v(p,_),w==null||w(p,_)},_mergeProps:function(){for(var e=arguments.length>1?arguments[1]:void 0,n=arguments.length,r=new Array(n>2?n-2:0),o=2;o<n;o++)r[o-2]=arguments[o];return D.isFunction(e)?e.apply(void 0,r):a.mergeProps.apply(void 0,r)},_extend:function(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=function(i,s,c,l,d){var f,p;s._$instances=s._$instances||{};var v=re._getConfig(c,l),w=s._$instances[e]||{},_=D.isEmpty(w)?le(le({},n),n==null?void 0:n.methods):{};s._$instances[e]=le(le({},w),{},{$name:e,$host:s,$binding:c,$modifiers:c==null?void 0:c.modifiers,$value:c==null?void 0:c.value,$el:w.$el||s||void 0,$style:le({classes:void 0,inlineStyles:void 0,loadStyle:function(){}},n==null?void 0:n.style),$config:v,defaultPT:function(){return re._getPT(v==null?void 0:v.pt,void 0,function(C){var $;return C==null||($=C.directives)===null||$===void 0?void 0:$[e]})},isUnstyled:function(){var C,$;return((C=s.$instance)===null||C===void 0||(C=C.$binding)===null||C===void 0||(C=C.value)===null||C===void 0?void 0:C.unstyled)!==void 0?($=s.$instance)===null||$===void 0||($=$.$binding)===null||$===void 0||($=$.value)===null||$===void 0?void 0:$.unstyled:v==null?void 0:v.unstyled},ptm:function(){var C,$=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",q=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return re._getPTValue(s.$instance,(C=s.$instance)===null||C===void 0||(C=C.$binding)===null||C===void 0||(C=C.value)===null||C===void 0?void 0:C.pt,$,le({},q))},ptmo:function(){var C=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},$=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"",q=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return re._getPTValue(s.$instance,C,$,q,!1)},cx:function(){var C,$,q=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",V=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return(C=s.$instance)!==null&&C!==void 0&&C.isUnstyled()?void 0:re._getOptionValue(($=s.$instance)===null||$===void 0||($=$.$style)===null||$===void 0?void 0:$.classes,q,le({},V))},sx:function(){var C,$=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",q=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0,V=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return q?re._getOptionValue((C=s.$instance)===null||C===void 0||(C=C.$style)===null||C===void 0?void 0:C.inlineStyles,$,le({},V)):void 0}},_),s.$instance=s._$instances[e],(f=(p=s.$instance)[i])===null||f===void 0||f.call(p,s,c,l,d),s["$".concat(e)]=s.$instance,re._hook(e,i,s,c,l,d)};return{created:function(i,s,c,l){r("created",i,s,c,l)},beforeMount:function(i,s,c,l){var d,f,p,v,w=re._getConfig(s,c);ct.loadStyle({nonce:w==null||(d=w.csp)===null||d===void 0?void 0:d.nonce}),!((f=i.$instance)!==null&&f!==void 0&&f.isUnstyled())&&((p=i.$instance)===null||p===void 0||(p=p.$style)===null||p===void 0||p.loadStyle({nonce:w==null||(v=w.csp)===null||v===void 0?void 0:v.nonce})),r("beforeMount",i,s,c,l)},mounted:function(i,s,c,l){var d,f,p,v,w=re._getConfig(s,c);ct.loadStyle({nonce:w==null||(d=w.csp)===null||d===void 0?void 0:d.nonce}),!((f=i.$instance)!==null&&f!==void 0&&f.isUnstyled())&&((p=i.$instance)===null||p===void 0||(p=p.$style)===null||p===void 0||p.loadStyle({nonce:w==null||(v=w.csp)===null||v===void 0?void 0:v.nonce})),r("mounted",i,s,c,l)},beforeUpdate:function(i,s,c,l){r("beforeUpdate",i,s,c,l)},updated:function(i,s,c,l){r("updated",i,s,c,l)},beforeUnmount:function(i,s,c,l){r("beforeUnmount",i,s,c,l)},unmounted:function(i,s,c,l){r("unmounted",i,s,c,l)}}},extend:function(){var e=re._getMeta.apply(re,arguments),n=hi(e,2),r=n[0],o=n[1];return le({extend:function(){var s=re._getMeta.apply(re,arguments),c=hi(s,2),l=c[0],d=c[1];return re.extend(l,le(le(le({},o),o==null?void 0:o.methods),d))}},re._extend(r,o))}},Rd={root:"p-ink"},$d=ct.extend({name:"ripple",classes:Rd}),Nd=re.extend({style:$d});function Dd(t){return jd(t)||Hd(t)||Ud(t)||Md()}function Md(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
142
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Ud(t,e){if(t){if(typeof t=="string")return br(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);if(n==="Object"&&t.constructor&&(n=t.constructor.name),n==="Map"||n==="Set")return Array.from(t);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return br(t,e)}}function Hd(t){if(typeof Symbol<"u"&&t[Symbol.iterator]!=null||t["@@iterator"]!=null)return Array.from(t)}function jd(t){if(Array.isArray(t))return br(t)}function br(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}var Vd=Nd.extend("ripple",{mounted:function(e){var n,r=e==null||(n=e.$instance)===null||n===void 0?void 0:n.$config;r&&r.ripple&&(this.create(e),this.bindEvents(e),e.setAttribute("data-pd-ripple",!0))},unmounted:function(e){this.remove(e)},timeout:void 0,methods:{bindEvents:function(e){e.addEventListener("mousedown",this.onMouseDown.bind(this))},unbindEvents:function(e){e.removeEventListener("mousedown",this.onMouseDown.bind(this))},create:function(e){var n=Z.createElement("span",{role:"presentation","aria-hidden":!0,"data-p-ink":!0,"data-p-ink-active":!1,class:!this.isUnstyled()&&this.cx("root"),onAnimationEnd:this.onAnimationEnd.bind(this),"p-bind":this.ptm("root")});e.appendChild(n),this.$el=n},remove:function(e){var n=this.getInk(e);n&&(this.unbindEvents(e),n.removeEventListener("animationend",this.onAnimationEnd),n.remove())},onMouseDown:function(e){var n=this,r=e.currentTarget,o=this.getInk(r);if(!(!o||getComputedStyle(o,null).display==="none")){if(!this.isUnstyled()&&Z.removeClass(o,"p-ink-active"),o.setAttribute("data-p-ink-active","false"),!Z.getHeight(o)&&!Z.getWidth(o)){var i=Math.max(Z.getOuterWidth(r),Z.getOuterHeight(r));o.style.height=i+"px",o.style.width=i+"px"}var s=Z.getOffset(r),c=e.pageX-s.left+document.body.scrollTop-Z.getWidth(o)/2,l=e.pageY-s.top+document.body.scrollLeft-Z.getHeight(o)/2;o.style.top=l+"px",o.style.left=c+"px",!this.isUnstyled()&&Z.addClass(o,"p-ink-active"),o.setAttribute("data-p-ink-active","true"),this.timeout=setTimeout(function(){o&&(!n.isUnstyled()&&Z.removeClass(o,"p-ink-active"),o.setAttribute("data-p-ink-active","false"))},401)}},onAnimationEnd:function(e){this.timeout&&clearTimeout(this.timeout),!this.isUnstyled()&&Z.removeClass(e.currentTarget,"p-ink-active"),e.currentTarget.setAttribute("data-p-ink-active","false")},getInk:function(e){return e&&e.children?Dd(e.children).find(function(n){return Z.getAttribute(n,"data-pc-name")==="ripple"}):void 0}}}),Kd={name:"BasePanelMenu",extends:yn,props:{model:{type:Array,default:null},expandedKeys:{type:Object,default:null},multiple:{type:Boolean,default:!1},tabindex:{type:Number,default:0}},style:Id,provide:function(){return{$parentInstance:this}}},bi={name:"PanelMenuSub",hostName:"PanelMenu",extends:yn,emits:["item-toggle","item-mousemove"],props:{panelId:{type:String,default:null},focusedItemId:{type:String,default:null},items:{type:Array,default:null},level:{type:Number,default:0},templates:{type:Object,default:null},activeItemPath:{type:Object,default:null},tabindex:{type:Number,default:-1}},methods:{getItemId:function(e){return"".concat(this.panelId,"_").concat(e.key)},getItemKey:function(e){return this.getItemId(e)},getItemProp:function(e,n,r){return e&&e.item?D.getItemValue(e.item[n],r):void 0},getItemLabel:function(e){return this.getItemProp(e,"label")},getPTOptions:function(e,n,r){return this.ptm(e,{context:{item:n,index:r,active:this.isItemActive(n),focused:this.isItemFocused(n),disabled:this.isItemDisabled(n)}})},isItemActive:function(e){return this.activeItemPath.some(function(n){return n.key===e.key})},isItemVisible:function(e){return this.getItemProp(e,"visible")!==!1},isItemDisabled:function(e){return this.getItemProp(e,"disabled")},isItemFocused:function(e){return this.focusedItemId===this.getItemId(e)},isItemGroup:function(e){return D.isNotEmpty(e.items)},onItemClick:function(e,n){this.getItemProp(n,"command",{originalEvent:e,item:n.item}),this.$emit("item-toggle",{processedItem:n,expanded:!this.isItemActive(n)})},onItemToggle:function(e){this.$emit("item-toggle",e)},onItemMouseMove:function(e,n){this.$emit("item-mousemove",{originalEvent:e,processedItem:n})},getAriaSetSize:function(){var e=this;return this.items.filter(function(n){return e.isItemVisible(n)&&!e.getItemProp(n,"separator")}).length},getAriaPosInset:function(e){var n=this;return e-this.items.slice(0,e).filter(function(r){return n.isItemVisible(r)&&n.getItemProp(r,"separator")}).length+1},getMenuItemProps:function(e,n){return{action:a.mergeProps({class:this.cx("action"),tabindex:-1,"aria-hidden":!0},this.getPTOptions("action",e,n)),icon:a.mergeProps({class:[this.cx("icon"),this.getItemProp(e,"icon")]},this.getPTOptions("icon",e,n)),label:a.mergeProps({class:this.cx("label")},this.getPTOptions("label",e,n)),submenuicon:a.mergeProps({class:this.cx("submenuIcon")},this.getPTOptions("submenuicon",e,n))}}},components:{ChevronRightIcon:gr,ChevronDownIcon:hr},directives:{ripple:Vd}},zd=["tabindex"],Wd=["id","aria-label","aria-expanded","aria-level","aria-setsize","aria-posinset","data-p-focused","data-p-disabled"],qd=["onClick","onMousemove"],Gd=["href","target"];function Jd(t,e,n,r,o,i){var s=a.resolveComponent("PanelMenuSub",!0),c=a.resolveDirective("ripple");return a.openBlock(),a.createElementBlock("ul",{class:a.normalizeClass(t.cx("submenu")),tabindex:n.tabindex},[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(n.items,function(l,d){return a.openBlock(),a.createElementBlock(a.Fragment,{key:i.getItemKey(l)},[i.isItemVisible(l)&&!i.getItemProp(l,"separator")?(a.openBlock(),a.createElementBlock("li",a.mergeProps({key:0,id:i.getItemId(l),class:[t.cx("menuitem",{processedItem:l}),i.getItemProp(l,"class")],style:i.getItemProp(l,"style"),role:"treeitem","aria-label":i.getItemLabel(l),"aria-expanded":i.isItemGroup(l)?i.isItemActive(l):void 0,"aria-level":n.level+1,"aria-setsize":i.getAriaSetSize(),"aria-posinset":i.getAriaPosInset(d)},i.getPTOptions("menuitem",l,d),{"data-p-focused":i.isItemFocused(l),"data-p-disabled":i.isItemDisabled(l)}),[a.createElementVNode("div",a.mergeProps({class:t.cx("content"),onClick:function(p){return i.onItemClick(p,l)},onMousemove:function(p){return i.onItemMouseMove(p,l)}},i.getPTOptions("content",l,d)),[n.templates.item?(a.openBlock(),a.createBlock(a.resolveDynamicComponent(n.templates.item),{key:1,item:l.item,root:!1,active:i.isItemActive(l),hasSubmenu:i.isItemGroup(l),label:i.getItemLabel(l),props:i.getMenuItemProps(l,d)},null,8,["item","active","hasSubmenu","label","props"])):a.withDirectives((a.openBlock(),a.createElementBlock("a",a.mergeProps({key:0,href:i.getItemProp(l,"url"),class:t.cx("action"),target:i.getItemProp(l,"target"),tabindex:"-1","aria-hidden":"true"},i.getPTOptions("action",l,d)),[i.isItemGroup(l)?(a.openBlock(),a.createElementBlock(a.Fragment,{key:0},[n.templates.submenuicon?(a.openBlock(),a.createBlock(a.resolveDynamicComponent(n.templates.submenuicon),a.mergeProps({key:0,class:t.cx("submenuIcon"),active:i.isItemActive(l)},i.getPTOptions("submenuIcon",l,d)),null,16,["class","active"])):(a.openBlock(),a.createBlock(a.resolveDynamicComponent(i.isItemActive(l)?"ChevronDownIcon":"ChevronRightIcon"),a.mergeProps({key:1,class:t.cx("submenuIcon")},i.getPTOptions("submenuIcon",l,d)),null,16,["class"]))],64)):a.createCommentVNode("",!0),n.templates.itemicon?(a.openBlock(),a.createBlock(a.resolveDynamicComponent(n.templates.itemicon),{key:1,item:l.item,class:a.normalizeClass(t.cx("icon"))},null,8,["item","class"])):i.getItemProp(l,"icon")?(a.openBlock(),a.createElementBlock("span",a.mergeProps({key:2,class:[t.cx("icon"),i.getItemProp(l,"icon")]},i.getPTOptions("icon",l,d)),null,16)):a.createCommentVNode("",!0),a.createElementVNode("span",a.mergeProps({class:t.cx("label")},i.getPTOptions("label",l,d)),a.toDisplayString(i.getItemLabel(l)),17)],16,Gd)),[[c]])],16,qd),a.createVNode(a.Transition,a.mergeProps({name:"p-toggleable-content"},t.ptm("transition")),{default:a.withCtx(function(){return[a.withDirectives(a.createElementVNode("div",a.mergeProps({class:t.cx("toggleableContent")},t.ptm("toggleableContent")),[i.isItemVisible(l)&&i.isItemGroup(l)?(a.openBlock(),a.createBlock(s,a.mergeProps({key:0,id:i.getItemId(l)+"_list",role:"group",panelId:n.panelId,focusedItemId:n.focusedItemId,items:l.items,level:n.level+1,templates:n.templates,activeItemPath:n.activeItemPath,onItemToggle:i.onItemToggle,onItemMousemove:e[0]||(e[0]=function(f){return t.$emit("item-mousemove",f)}),pt:t.pt,unstyled:t.unstyled},t.ptm("submenu")),null,16,["id","panelId","focusedItemId","items","level","templates","activeItemPath","onItemToggle","pt","unstyled"])):a.createCommentVNode("",!0)],16),[[a.vShow,i.isItemActive(l)]])]}),_:2},1040)],16,Wd)):a.createCommentVNode("",!0),i.isItemVisible(l)&&i.getItemProp(l,"separator")?(a.openBlock(),a.createElementBlock("li",a.mergeProps({key:1,style:i.getItemProp(l,"style"),class:[t.cx("separator"),i.getItemProp(l,"class")],role:"separator"},t.ptm("separator")),null,16)):a.createCommentVNode("",!0)],64)}),128))],10,zd)}bi.render=Jd;function Yd(t,e){return ef(t)||Qd(t,e)||Zd(t,e)||Xd()}function Xd(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
143
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Zd(t,e){if(t){if(typeof t=="string")return vi(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);if(n==="Object"&&t.constructor&&(n=t.constructor.name),n==="Map"||n==="Set")return Array.from(t);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return vi(t,e)}}function vi(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function Qd(t,e){var n=t==null?null:typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(n!=null){var r,o,i,s,c=[],l=!0,d=!1;try{if(i=(n=n.call(t)).next,e===0){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=i.call(n)).done)&&(c.push(r.value),c.length!==e);l=!0);}catch(f){d=!0,o=f}finally{try{if(!l&&n.return!=null&&(s=n.return(),Object(s)!==s))return}finally{if(d)throw o}}return c}}function ef(t){if(Array.isArray(t))return t}var wi={name:"PanelMenuList",hostName:"PanelMenu",extends:yn,emits:["item-toggle","header-focus"],props:{panelId:{type:String,default:null},items:{type:Array,default:null},templates:{type:Object,default:null},expandedKeys:{type:Object,default:null}},searchTimeout:null,searchValue:null,data:function(){return{focused:!1,focusedItem:null,activeItemPath:[]}},watch:{expandedKeys:function(e){this.autoUpdateActiveItemPath(e)}},mounted:function(){this.autoUpdateActiveItemPath(this.expandedKeys)},methods:{getItemProp:function(e,n){return e&&e.item?D.getItemValue(e.item[n]):void 0},getItemLabel:function(e){return this.getItemProp(e,"label")},isItemVisible:function(e){return this.getItemProp(e,"visible")!==!1},isItemDisabled:function(e){return this.getItemProp(e,"disabled")},isItemActive:function(e){return this.activeItemPath.some(function(n){return n.key===e.parentKey})},isItemGroup:function(e){return D.isNotEmpty(e.items)},onFocus:function(e){this.focused=!0,this.focusedItem=this.focusedItem||(this.isElementInPanel(e,e.relatedTarget)?this.findFirstItem():this.findLastItem())},onBlur:function(){this.focused=!1,this.focusedItem=null,this.searchValue=""},onKeyDown:function(e){var n=e.metaKey||e.ctrlKey;switch(e.code){case"ArrowDown":this.onArrowDownKey(e);break;case"ArrowUp":this.onArrowUpKey(e);break;case"ArrowLeft":this.onArrowLeftKey(e);break;case"ArrowRight":this.onArrowRightKey(e);break;case"Home":this.onHomeKey(e);break;case"End":this.onEndKey(e);break;case"Space":this.onSpaceKey(e);break;case"Enter":case"NumpadEnter":this.onEnterKey(e);break;case"Escape":case"Tab":case"PageDown":case"PageUp":case"Backspace":case"ShiftLeft":case"ShiftRight":break;default:!n&&D.isPrintableCharacter(e.key)&&this.searchItems(e,e.key);break}},onArrowDownKey:function(e){var n=D.isNotEmpty(this.focusedItem)?this.findNextItem(this.focusedItem):this.findFirstItem();this.changeFocusedItem({originalEvent:e,processedItem:n,focusOnNext:!0}),e.preventDefault()},onArrowUpKey:function(e){var n=D.isNotEmpty(this.focusedItem)?this.findPrevItem(this.focusedItem):this.findLastItem();this.changeFocusedItem({originalEvent:e,processedItem:n,selfCheck:!0}),e.preventDefault()},onArrowLeftKey:function(e){var n=this;if(D.isNotEmpty(this.focusedItem)){var r=this.activeItemPath.some(function(o){return o.key===n.focusedItem.key});r?this.activeItemPath=this.activeItemPath.filter(function(o){return o.key!==n.focusedItem.key}):this.focusedItem=D.isNotEmpty(this.focusedItem.parent)?this.focusedItem.parent:this.focusedItem,e.preventDefault()}},onArrowRightKey:function(e){var n=this;if(D.isNotEmpty(this.focusedItem)){var r=this.isItemGroup(this.focusedItem);if(r){var o=this.activeItemPath.some(function(i){return i.key===n.focusedItem.key});o?this.onArrowDownKey(e):(this.activeItemPath=this.activeItemPath.filter(function(i){return i.parentKey!==n.focusedItem.parentKey}),this.activeItemPath.push(this.focusedItem))}e.preventDefault()}},onHomeKey:function(e){this.changeFocusedItem({originalEvent:e,processedItem:this.findFirstItem(),allowHeaderFocus:!1}),e.preventDefault()},onEndKey:function(e){this.changeFocusedItem({originalEvent:e,processedItem:this.findLastItem(),focusOnNext:!0,allowHeaderFocus:!1}),e.preventDefault()},onEnterKey:function(e){if(D.isNotEmpty(this.focusedItem)){var n=Z.findSingle(this.$el,'li[id="'.concat("".concat(this.focusedItemId),'"]')),r=n&&(Z.findSingle(n,'[data-pc-section="action"]')||Z.findSingle(n,"a,button"));r?r.click():n&&n.click()}e.preventDefault()},onSpaceKey:function(e){this.onEnterKey(e)},onItemToggle:function(e){var n=e.processedItem,r=e.expanded;this.expandedKeys?this.$emit("item-toggle",{item:n.item,expanded:r}):(this.activeItemPath=this.activeItemPath.filter(function(o){return o.parentKey!==n.parentKey}),r&&this.activeItemPath.push(n)),this.focusedItem=n,Z.focus(this.$el)},onItemMouseMove:function(e){this.focused&&(this.focusedItem=e.processedItem)},isElementInPanel:function(e,n){var r=e.currentTarget.closest('[data-pc-section="panel"]');return r&&r.contains(n)},isItemMatched:function(e){var n;return this.isValidItem(e)&&((n=this.getItemLabel(e))===null||n===void 0?void 0:n.toLocaleLowerCase(this.searchLocale).startsWith(this.searchValue.toLocaleLowerCase(this.searchLocale)))},isVisibleItem:function(e){return!!e&&(e.level===0||this.isItemActive(e))&&this.isItemVisible(e)},isValidItem:function(e){return!!e&&!this.isItemDisabled(e)&&!this.getItemProp(e,"separator")},findFirstItem:function(){var e=this;return this.visibleItems.find(function(n){return e.isValidItem(n)})},findLastItem:function(){var e=this;return D.findLast(this.visibleItems,function(n){return e.isValidItem(n)})},findNextItem:function(e){var n=this,r=this.visibleItems.findIndex(function(i){return i.key===e.key}),o=r<this.visibleItems.length-1?this.visibleItems.slice(r+1).find(function(i){return n.isValidItem(i)}):void 0;return o||e},findPrevItem:function(e){var n=this,r=this.visibleItems.findIndex(function(i){return i.key===e.key}),o=r>0?D.findLast(this.visibleItems.slice(0,r),function(i){return n.isValidItem(i)}):void 0;return o||e},searchItems:function(e,n){var r=this;this.searchValue=(this.searchValue||"")+n;var o=null,i=!1;if(D.isNotEmpty(this.focusedItem)){var s=this.visibleItems.findIndex(function(c){return c.key===r.focusedItem.key});o=this.visibleItems.slice(s).find(function(c){return r.isItemMatched(c)}),o=D.isEmpty(o)?this.visibleItems.slice(0,s).find(function(c){return r.isItemMatched(c)}):o}else o=this.visibleItems.find(function(c){return r.isItemMatched(c)});return D.isNotEmpty(o)&&(i=!0),D.isEmpty(o)&&D.isEmpty(this.focusedItem)&&(o=this.findFirstItem()),D.isNotEmpty(o)&&this.changeFocusedItem({originalEvent:e,processedItem:o,allowHeaderFocus:!1}),this.searchTimeout&&clearTimeout(this.searchTimeout),this.searchTimeout=setTimeout(function(){r.searchValue="",r.searchTimeout=null},500),i},changeFocusedItem:function(e){var n=e.originalEvent,r=e.processedItem,o=e.focusOnNext,i=e.selfCheck,s=e.allowHeaderFocus,c=s===void 0?!0:s;D.isNotEmpty(this.focusedItem)&&this.focusedItem.key!==r.key?(this.focusedItem=r,this.scrollInView()):c&&this.$emit("header-focus",{originalEvent:n,focusOnNext:o,selfCheck:i})},scrollInView:function(){var e=Z.findSingle(this.$el,'li[id="'.concat("".concat(this.focusedItemId),'"]'));e&&e.scrollIntoView&&e.scrollIntoView({block:"nearest",inline:"start"})},autoUpdateActiveItemPath:function(e){var n=this;this.activeItemPath=Object.entries(e||{}).reduce(function(r,o){var i=Yd(o,2),s=i[0],c=i[1];if(c){var l=n.findProcessedItemByItemKey(s);l&&r.push(l)}return r},[])},findProcessedItemByItemKey:function(e,n){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0;if(n=n||r===0&&this.processedItems,!n)return null;for(var o=0;o<n.length;o++){var i=n[o];if(this.getItemProp(i,"key")===e)return i;var s=this.findProcessedItemByItemKey(e,i.items,r+1);if(s)return s}},createProcessedItems:function(e){var n=this,r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:"",s=[];return e&&e.forEach(function(c,l){var d=(i!==""?i+"_":"")+l,f={item:c,index:l,level:r,key:d,parent:o,parentKey:i};f.items=n.createProcessedItems(c.items,r+1,f,d),s.push(f)}),s},flatItems:function(e){var n=this,r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[];return e&&e.forEach(function(o){n.isVisibleItem(o)&&(r.push(o),n.flatItems(o.items,r))}),r}},computed:{processedItems:function(){return this.createProcessedItems(this.items||[])},visibleItems:function(){return this.flatItems(this.processedItems)},focusedItemId:function(){return D.isNotEmpty(this.focusedItem)?"".concat(this.panelId,"_").concat(this.focusedItem.key):null}},components:{PanelMenuSub:bi}};function tf(t,e,n,r,o,i){var s=a.resolveComponent("PanelMenuSub");return a.openBlock(),a.createBlock(s,a.mergeProps({id:n.panelId+"_list",class:t.cx("menu"),role:"tree",tabindex:-1,"aria-activedescendant":o.focused?i.focusedItemId:void 0,panelId:n.panelId,focusedItemId:o.focused?i.focusedItemId:void 0,items:i.processedItems,templates:n.templates,activeItemPath:o.activeItemPath,onFocus:i.onFocus,onBlur:i.onBlur,onKeydown:i.onKeyDown,onItemToggle:i.onItemToggle,onItemMousemove:i.onItemMouseMove,pt:t.pt,unstyled:t.unstyled},t.ptm("menu")),null,16,["id","class","aria-activedescendant","panelId","focusedItemId","items","templates","activeItemPath","onFocus","onBlur","onKeydown","onItemToggle","onItemMousemove","pt","unstyled"])}wi.render=tf;function qt(t){"@babel/helpers - typeof";return qt=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},qt(t)}function Ei(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(t,o).enumerable})),n.push.apply(n,r)}return n}function nf(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?Ei(Object(n),!0).forEach(function(r){rf(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Ei(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function rf(t,e,n){return e=of(e),e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function of(t){var e=sf(t,"string");return qt(e)=="symbol"?e:String(e)}function sf(t,e){if(qt(t)!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e||"default");if(qt(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}var Si={name:"PanelMenu",extends:Kd,inheritAttrs:!1,emits:["update:expandedKeys","panel-open","panel-close"],data:function(){return{id:this.$attrs.id,activeItem:null,activeItems:[]}},watch:{"$attrs.id":function(e){this.id=e||ei()}},mounted:function(){this.id=this.id||ei()},methods:{getItemProp:function(e,n){return e?D.getItemValue(e[n]):void 0},getItemLabel:function(e){return this.getItemProp(e,"label")},getPTOptions:function(e,n,r){return this.ptm(e,{context:{index:r,active:this.isItemActive(n),focused:this.isItemFocused(n),disabled:this.isItemDisabled(n)}})},isItemActive:function(e){return this.expandedKeys?this.expandedKeys[this.getItemProp(e,"key")]:this.multiple?this.activeItems.some(function(n){return D.equals(e,n)}):D.equals(e,this.activeItem)},isItemVisible:function(e){return this.getItemProp(e,"visible")!==!1},isItemDisabled:function(e){return this.getItemProp(e,"disabled")},isItemFocused:function(e){return D.equals(e,this.activeItem)},getPanelId:function(e){return"".concat(this.id,"_").concat(e)},getPanelKey:function(e){return this.getPanelId(e)},getHeaderId:function(e){return"".concat(this.getPanelId(e),"_header")},getContentId:function(e){return"".concat(this.getPanelId(e),"_content")},onHeaderClick:function(e,n){if(this.isItemDisabled(n)){e.preventDefault();return}n.command&&n.command({originalEvent:e,item:n}),this.changeActiveItem(e,n),Z.focus(e.currentTarget)},onHeaderKeyDown:function(e,n){switch(e.code){case"ArrowDown":this.onHeaderArrowDownKey(e);break;case"ArrowUp":this.onHeaderArrowUpKey(e);break;case"Home":this.onHeaderHomeKey(e);break;case"End":this.onHeaderEndKey(e);break;case"Enter":case"NumpadEnter":case"Space":this.onHeaderEnterKey(e,n);break}},onHeaderArrowDownKey:function(e){var n=Z.getAttribute(e.currentTarget,"data-p-highlight")===!0?Z.findSingle(e.currentTarget.nextElementSibling,'[data-pc-section="menu"]'):null;n?Z.focus(n):this.updateFocusedHeader({originalEvent:e,focusOnNext:!0}),e.preventDefault()},onHeaderArrowUpKey:function(e){var n=this.findPrevHeader(e.currentTarget.parentElement)||this.findLastHeader(),r=Z.getAttribute(n,"data-p-highlight")===!0?Z.findSingle(n.nextElementSibling,'[data-pc-section="menu"]'):null;r?Z.focus(r):this.updateFocusedHeader({originalEvent:e,focusOnNext:!1}),e.preventDefault()},onHeaderHomeKey:function(e){this.changeFocusedHeader(e,this.findFirstHeader()),e.preventDefault()},onHeaderEndKey:function(e){this.changeFocusedHeader(e,this.findLastHeader()),e.preventDefault()},onHeaderEnterKey:function(e,n){var r=Z.findSingle(e.currentTarget,'[data-pc-section="headeraction"]');r?r.click():this.onHeaderClick(e,n),e.preventDefault()},findNextHeader:function(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,r=n?e:e.nextElementSibling,o=Z.findSingle(r,'[data-pc-section="header"]');return o?Z.getAttribute(o,"data-p-disabled")?this.findNextHeader(o.parentElement):o:null},findPrevHeader:function(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,r=n?e:e.previousElementSibling,o=Z.findSingle(r,'[data-pc-section="header"]');return o?Z.getAttribute(o,"data-p-disabled")?this.findPrevHeader(o.parentElement):o:null},findFirstHeader:function(){return this.findNextHeader(this.$el.firstElementChild,!0)},findLastHeader:function(){return this.findPrevHeader(this.$el.lastElementChild,!0)},updateFocusedHeader:function(e){var n=e.originalEvent,r=e.focusOnNext,o=e.selfCheck,i=n.currentTarget.closest('[data-pc-section="panel"]'),s=o?Z.findSingle(i,'[data-pc-section="header"]'):r?this.findNextHeader(i):this.findPrevHeader(i);s?this.changeFocusedHeader(n,s):r?this.onHeaderHomeKey(n):this.onHeaderEndKey(n)},changeActiveItem:function(e,n){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;if(!this.isItemDisabled(n)){var o=this.isItemActive(n),i=o?"panel-close":"panel-open";this.activeItem=r?n:this.activeItem&&D.equals(n,this.activeItem)?null:n,this.multiple&&(this.activeItems.some(function(s){return D.equals(n,s)})?this.activeItems=this.activeItems.filter(function(s){return!D.equals(n,s)}):this.activeItems.push(n)),this.changeExpandedKeys({item:n,expanded:!o}),this.$emit(i,{originalEvent:e,item:n})}},changeExpandedKeys:function(e){var n=e.item,r=e.expanded,o=r===void 0?!1:r;if(this.expandedKeys){var i=nf({},this.expandedKeys);o?i[n.key]=!0:delete i[n.key],this.$emit("update:expandedKeys",i)}},changeFocusedHeader:function(e,n){n&&Z.focus(n)},getMenuItemProps:function(e,n){return{icon:a.mergeProps({class:[this.cx("headerIcon"),this.getItemProp(e,"icon")]},this.getPTOptions("headerIcon",e,n)),label:a.mergeProps({class:this.cx("headerLabel")},this.getPTOptions("headerLabel",e,n))}}},components:{PanelMenuList:wi,ChevronRightIcon:gr,ChevronDownIcon:hr}},af=["id"],lf=["id","tabindex","aria-label","aria-expanded","aria-controls","aria-disabled","onClick","onKeydown","data-p-highlight","data-p-disabled"],cf=["href"],uf=["id","aria-labelledby"];function df(t,e,n,r,o,i){var s=a.resolveComponent("PanelMenuList");return a.openBlock(),a.createElementBlock("div",a.mergeProps({id:o.id,class:t.cx("root")},t.ptmi("root")),[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(t.model,function(c,l){return a.openBlock(),a.createElementBlock(a.Fragment,{key:i.getPanelKey(l)},[i.isItemVisible(c)?(a.openBlock(),a.createElementBlock("div",a.mergeProps({key:0,style:i.getItemProp(c,"style"),class:[t.cx("panel"),i.getItemProp(c,"class")]},t.ptm("panel")),[a.createElementVNode("div",a.mergeProps({id:i.getHeaderId(l),class:[t.cx("header",{item:c}),i.getItemProp(c,"headerClass")],tabindex:i.isItemDisabled(c)?-1:t.tabindex,role:"button","aria-label":i.getItemLabel(c),"aria-expanded":i.isItemActive(c),"aria-controls":i.getContentId(l),"aria-disabled":i.isItemDisabled(c),onClick:function(f){return i.onHeaderClick(f,c)},onKeydown:function(f){return i.onHeaderKeyDown(f,c)}},i.getPTOptions("header",c,l),{"data-p-highlight":i.isItemActive(c),"data-p-disabled":i.isItemDisabled(c)}),[a.createElementVNode("div",a.mergeProps({class:t.cx("headerContent")},i.getPTOptions("headerContent",c,l)),[t.$slots.item?(a.openBlock(),a.createBlock(a.resolveDynamicComponent(t.$slots.item),{key:1,item:c,root:!0,active:i.isItemActive(c),hasSubmenu:i.getItemProp(c,"items"),label:i.getItemLabel(c),props:i.getMenuItemProps(c,l)},null,8,["item","active","hasSubmenu","label","props"])):(a.openBlock(),a.createElementBlock("a",a.mergeProps({key:0,href:i.getItemProp(c,"url"),class:t.cx("headerAction"),tabindex:-1},i.getPTOptions("headerAction",c,l)),[i.getItemProp(c,"items")?a.renderSlot(t.$slots,"submenuicon",{key:0,active:i.isItemActive(c)},function(){return[(a.openBlock(),a.createBlock(a.resolveDynamicComponent(i.isItemActive(c)?"ChevronDownIcon":"ChevronRightIcon"),a.mergeProps({class:t.cx("submenuIcon")},i.getPTOptions("submenuIcon",c,l)),null,16,["class"]))]}):a.createCommentVNode("",!0),t.$slots.headericon?(a.openBlock(),a.createBlock(a.resolveDynamicComponent(t.$slots.headericon),{key:1,item:c,class:a.normalizeClass([t.cx("headerIcon"),i.getItemProp(c,"icon")])},null,8,["item","class"])):i.getItemProp(c,"icon")?(a.openBlock(),a.createElementBlock("span",a.mergeProps({key:2,class:[t.cx("headerIcon"),i.getItemProp(c,"icon")]},i.getPTOptions("headerIcon",c,l)),null,16)):a.createCommentVNode("",!0),a.createElementVNode("span",a.mergeProps({class:t.cx("headerLabel")},i.getPTOptions("headerLabel",c,l)),a.toDisplayString(i.getItemLabel(c)),17)],16,cf))],16)],16,lf),a.createVNode(a.Transition,a.mergeProps({name:"p-toggleable-content"},t.ptm("transition")),{default:a.withCtx(function(){return[a.withDirectives(a.createElementVNode("div",a.mergeProps({id:i.getContentId(l),class:t.cx("toggleableContent"),role:"region","aria-labelledby":i.getHeaderId(l)},t.ptm("toggleableContent")),[i.getItemProp(c,"items")?(a.openBlock(),a.createElementBlock("div",a.mergeProps({key:0,class:t.cx("menuContent")},t.ptm("menuContent")),[a.createVNode(s,{panelId:i.getPanelId(l),items:i.getItemProp(c,"items"),templates:t.$slots,expandedKeys:t.expandedKeys,onItemToggle:i.changeExpandedKeys,onHeaderFocus:i.updateFocusedHeader,pt:t.pt,unstyled:t.unstyled},null,8,["panelId","items","templates","expandedKeys","onItemToggle","onHeaderFocus","pt","unstyled"])],16)):a.createCommentVNode("",!0)],16,uf),[[a.vShow,i.isItemActive(c)]])]}),_:2},1040)],16)):a.createCommentVNode("",!0)],64)}),128))],16,af)}Si.render=df;const ff=["data-active","href","onClick"],pf={class:"sf-ml-2"},mf=["href","target"],hf={class:"sf-ml-2"},gf=a.createElementVNode("div",{class:"sf-flex-grow-1"},null,-1),yf=a.defineComponent({__name:"PanelMenu",props:{items:{}},setup(t){const e=t,n=rt.useRoute(),r=a.computed(()=>e.items);o(r.value);function o(c,l=void 0){c.forEach(d=>{l&&(d.parentKey=l),d.items&&o(d.items,d.key)})}const i=a.ref({});function s(c,l,d=void 0){c.forEach(f=>{f.routeName&&f.routeName===l&&d&&(i.value[d]=d===f.parentKey),f.items&&s(f.items,l,f.key)})}return a.watch(()=>n.name,c=>{c&&s(r.value,c.toString())}),(c,l)=>{const d=a.resolveComponent("router-link");return a.openBlock(),a.createBlock(a.unref(Si),{model:r.value,expandedKeys:i.value,"onUpdate:expandedKeys":l[0]||(l[0]=f=>i.value=f),multiple:!0,class:a.normalizeClass("sf-p-2")},{item:a.withCtx(({item:f,active:p})=>[f.routeName?(a.openBlock(),a.createBlock(d,{key:0,to:{name:f.routeName},custom:""},{default:a.withCtx(({href:v,navigate:w,isActive:_})=>[a.createElementVNode("a",{class:"sf-flex sf-align-items-center sf-px-3 sf-py-2 sf-ripple","data-active":_,href:v,onClick:w},[a.createVNode(Qe,{icon:f.icon??"chevron_right"},null,8,["icon"]),a.createElementVNode("span",pf,a.toDisplayString(f.label),1)],8,ff)]),_:2},1032,["to"])):(a.openBlock(),a.createElementBlock("a",{key:1,class:"sf-flex sf-align-items-center sf-pl-3 sf-py-2",href:f.url,target:f.target},[f.icon?(a.openBlock(),a.createBlock(Qe,{key:0,icon:f.icon},null,8,["icon"])):a.createCommentVNode("",!0),a.createElementVNode("span",hf,a.toDisplayString(f.label),1),gf,a.createVNode(Qe,{icon:p?"expand_less":"expand_more"},null,8,["icon"])],8,mf))]),_:1},8,["model","expandedKeys"])}}});var bf=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function vf(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}function wf(t){if(t.__esModule)return t;var e=t.default;if(typeof e=="function"){var n=function r(){return this instanceof r?Reflect.construct(e,arguments,this.constructor):e.apply(this,arguments)};n.prototype=e.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(t).forEach(function(r){var o=Object.getOwnPropertyDescriptor(t,r);Object.defineProperty(n,r,o.get?o:{enumerable:!0,get:function(){return t[r]}})}),n}var bn={};bn.byteLength=Cf,bn.toByteArray=Af,bn.fromByteArray=If;for(var Ke=[],Ne=[],Ef=typeof Uint8Array<"u"?Uint8Array:Array,vr="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",vt=0,Sf=vr.length;vt<Sf;++vt)Ke[vt]=vr[vt],Ne[vr.charCodeAt(vt)]=vt;Ne[45]=62,Ne[95]=63;function Ci(t){var e=t.length;if(e%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var n=t.indexOf("=");n===-1&&(n=e);var r=n===e?0:4-n%4;return[n,r]}function Cf(t){var e=Ci(t),n=e[0],r=e[1];return(n+r)*3/4-r}function _f(t,e,n){return(e+n)*3/4-n}function Af(t){var e,n=Ci(t),r=n[0],o=n[1],i=new Ef(_f(t,r,o)),s=0,c=o>0?r-4:r,l;for(l=0;l<c;l+=4)e=Ne[t.charCodeAt(l)]<<18|Ne[t.charCodeAt(l+1)]<<12|Ne[t.charCodeAt(l+2)]<<6|Ne[t.charCodeAt(l+3)],i[s++]=e>>16&255,i[s++]=e>>8&255,i[s++]=e&255;return o===2&&(e=Ne[t.charCodeAt(l)]<<2|Ne[t.charCodeAt(l+1)]>>4,i[s++]=e&255),o===1&&(e=Ne[t.charCodeAt(l)]<<10|Ne[t.charCodeAt(l+1)]<<4|Ne[t.charCodeAt(l+2)]>>2,i[s++]=e>>8&255,i[s++]=e&255),i}function kf(t){return Ke[t>>18&63]+Ke[t>>12&63]+Ke[t>>6&63]+Ke[t&63]}function xf(t,e,n){for(var r,o=[],i=e;i<n;i+=3)r=(t[i]<<16&16711680)+(t[i+1]<<8&65280)+(t[i+2]&255),o.push(kf(r));return o.join("")}function If(t){for(var e,n=t.length,r=n%3,o=[],i=16383,s=0,c=n-r;s<c;s+=i)o.push(xf(t,s,s+i>c?c:s+i));return r===1?(e=t[n-1],o.push(Ke[e>>2]+Ke[e<<4&63]+"==")):r===2&&(e=(t[n-2]<<8)+t[n-1],o.push(Ke[e>>10]+Ke[e>>4&63]+Ke[e<<2&63]+"=")),o.join("")}var _i={exports:{}};const Ai=wf(Object.freeze(Object.defineProperty({__proto__:null,default:{}},Symbol.toStringTag,{value:"Module"})));/**
140
+ `,ad=Ye.extend({name:"baseicon",css:sd});function Lt(t){"@babel/helpers - typeof";return Lt=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Lt(t)}function ni(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(t,o).enumerable})),n.push.apply(n,r)}return n}function ri(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?ni(Object(n),!0).forEach(function(r){ld(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):ni(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function ld(t,e,n){return e=cd(e),e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function cd(t){var e=ud(t,"string");return Lt(e)=="symbol"?e:String(e)}function ud(t,e){if(Lt(t)!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e||"default");if(Lt(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}var oi={name:"BaseIcon",extends:on,props:{label:{type:String,default:void 0},spin:{type:Boolean,default:!1}},style:ad,methods:{pti:function(){var e=P.isEmpty(this.label);return ri(ri({},!this.isUnstyled&&{class:["p-icon",{"p-icon-spin":this.spin}]}),{},{role:e?void 0:"img","aria-label":e?void 0:this.label,"aria-hidden":e})}}},or={name:"ChevronDownIcon",extends:oi},dd=a.createElementVNode("path",{d:"M7.01744 10.398C6.91269 10.3985 6.8089 10.378 6.71215 10.3379C6.61541 10.2977 6.52766 10.2386 6.45405 10.1641L1.13907 4.84913C1.03306 4.69404 0.985221 4.5065 1.00399 4.31958C1.02276 4.13266 1.10693 3.95838 1.24166 3.82747C1.37639 3.69655 1.55301 3.61742 1.74039 3.60402C1.92777 3.59062 2.11386 3.64382 2.26584 3.75424L7.01744 8.47394L11.769 3.75424C11.9189 3.65709 12.097 3.61306 12.2748 3.62921C12.4527 3.64535 12.6199 3.72073 12.7498 3.84328C12.8797 3.96582 12.9647 4.12842 12.9912 4.30502C13.0177 4.48162 12.9841 4.662 12.8958 4.81724L7.58083 10.1322C7.50996 10.2125 7.42344 10.2775 7.32656 10.3232C7.22968 10.3689 7.12449 10.3944 7.01744 10.398Z",fill:"currentColor"},null,-1),fd=[dd];function pd(t,e,n,r,o,i){return a.openBlock(),a.createElementBlock("svg",a.mergeProps({width:"14",height:"14",viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg"},t.pti()),fd,16)}or.render=pd;var ir={name:"ChevronRightIcon",extends:oi},md=a.createElementVNode("path",{d:"M4.38708 13C4.28408 13.0005 4.18203 12.9804 4.08691 12.9409C3.99178 12.9014 3.9055 12.8433 3.83313 12.7701C3.68634 12.6231 3.60388 12.4238 3.60388 12.2161C3.60388 12.0084 3.68634 11.8091 3.83313 11.6622L8.50507 6.99022L3.83313 2.31827C3.69467 2.16968 3.61928 1.97313 3.62287 1.77005C3.62645 1.56698 3.70872 1.37322 3.85234 1.22959C3.99596 1.08597 4.18972 1.00371 4.3928 1.00012C4.59588 0.996539 4.79242 1.07192 4.94102 1.21039L10.1669 6.43628C10.3137 6.58325 10.3962 6.78249 10.3962 6.99022C10.3962 7.19795 10.3137 7.39718 10.1669 7.54416L4.94102 12.7701C4.86865 12.8433 4.78237 12.9014 4.68724 12.9409C4.59212 12.9804 4.49007 13.0005 4.38708 13Z",fill:"currentColor"},null,-1),hd=[md];function gd(t,e,n,r,o,i){return a.openBlock(),a.createElementBlock("svg",a.mergeProps({width:"14",height:"14",viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg"},t.pti()),hd,16)}ir.render=gd;var yd={root:"p-panelmenu p-component",panel:"p-panelmenu-panel",header:function(e){var n=e.instance,r=e.item;return["p-panelmenu-header",{"p-highlight":n.isItemActive(r)&&!!r.items,"p-disabled":n.isItemDisabled(r)}]},headerContent:"p-panelmenu-header-content",headerAction:"p-panelmenu-header-action",headerIcon:"p-menuitem-icon",headerLabel:"p-menuitem-text",toggleableContent:"p-toggleable-content",menuContent:"p-panelmenu-content",menu:"p-panelmenu-root-list",menuitem:function(e){var n=e.instance,r=e.processedItem;return["p-menuitem",{"p-focus":n.isItemFocused(r),"p-disabled":n.isItemDisabled(r)}]},content:"p-menuitem-content",action:"p-menuitem-link",icon:"p-menuitem-icon",label:"p-menuitem-text",submenuIcon:"p-submenu-icon",submenu:"p-submenu-list",separator:"p-menuitem-separator"},bd=Ye.extend({name:"panelmenu",classes:yd});function Ft(t){"@babel/helpers - typeof";return Ft=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Ft(t)}function ii(t,e){return Sd(t)||Ed(t,e)||wd(t,e)||vd()}function vd(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
141
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function wd(t,e){if(t){if(typeof t=="string")return si(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);if(n==="Object"&&t.constructor&&(n=t.constructor.name),n==="Map"||n==="Set")return Array.from(t);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return si(t,e)}}function si(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function Ed(t,e){var n=t==null?null:typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(n!=null){var r,o,i,s,c=[],l=!0,u=!1;try{if(i=(n=n.call(t)).next,e===0){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=i.call(n)).done)&&(c.push(r.value),c.length!==e);l=!0);}catch(d){u=!0,o=d}finally{try{if(!l&&n.return!=null&&(s=n.return(),Object(s)!==s))return}finally{if(u)throw o}}return c}}function Sd(t){if(Array.isArray(t))return t}function ai(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(t,o).enumerable})),n.push.apply(n,r)}return n}function Z(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?ai(Object(n),!0).forEach(function(r){sr(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):ai(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function sr(t,e,n){return e=Cd(e),e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function Cd(t){var e=Ad(t,"string");return Ft(e)=="symbol"?e:String(e)}function Ad(t,e){if(Ft(t)!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e||"default");if(Ft(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}var K={_getMeta:function(){return[P.isObject(arguments.length<=0?void 0:arguments[0])||arguments.length<=0?void 0:arguments[0],P.getItemValue(P.isObject(arguments.length<=0?void 0:arguments[0])?arguments.length<=0?void 0:arguments[0]:arguments.length<=1?void 0:arguments[1])]},_getConfig:function(e,n){var r,o,i;return(r=(e==null||(o=e.instance)===null||o===void 0?void 0:o.$primevue)||(n==null||(i=n.ctx)===null||i===void 0||(i=i.appContext)===null||i===void 0||(i=i.config)===null||i===void 0||(i=i.globalProperties)===null||i===void 0?void 0:i.$primevue))===null||r===void 0?void 0:r.config},_getOptionValue:function(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"",r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},o=P.toFlatCase(n).split("."),i=o.shift();return i?P.isObject(e)?K._getOptionValue(P.getItemValue(e[Object.keys(e).find(function(s){return P.toFlatCase(s)===i})||""],r),o.join("."),r):void 0:P.getItemValue(e,r)},_getPTValue:function(){var e,n,r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"",s=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},c=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!0,l=function(){var M=K._getOptionValue.apply(K,arguments);return P.isString(M)||P.isArray(M)?{class:M}:M},u=((e=r.binding)===null||e===void 0||(e=e.value)===null||e===void 0?void 0:e.ptOptions)||((n=r.$config)===null||n===void 0?void 0:n.ptOptions)||{},d=u.mergeSections,f=d===void 0?!0:d,g=u.mergeProps,b=g===void 0?!1:g,v=c?K._useDefaultPT(r,r.defaultPT(),l,i,s):void 0,S=K._usePT(r,K._getPT(o,r.$name),l,i,Z(Z({},s),{},{global:v||{}})),w=K._getPTDatasets(r,i);return f||!f&&S?b?K._mergeProps(r,b,v,S,w):Z(Z(Z({},v),S),w):Z(Z({},S),w)},_getPTDatasets:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"",r="data-pc-";return Z(Z({},n==="root"&&sr({},"".concat(r,"name"),P.toFlatCase(e.$name))),{},sr({},"".concat(r,"section"),P.toFlatCase(n)))},_getPT:function(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"",r=arguments.length>2?arguments[2]:void 0,o=function(s){var c,l=r?r(s):s,u=P.toFlatCase(n);return(c=l==null?void 0:l[u])!==null&&c!==void 0?c:l};return e!=null&&e.hasOwnProperty("_usept")?{_usept:e._usept,originalValue:o(e.originalValue),value:o(e.value)}:o(e)},_usePT:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0,r=arguments.length>2?arguments[2]:void 0,o=arguments.length>3?arguments[3]:void 0,i=arguments.length>4?arguments[4]:void 0,s=function(w){return r(w,o,i)};if(n!=null&&n.hasOwnProperty("_usept")){var c,l=n._usept||((c=e.$config)===null||c===void 0?void 0:c.ptOptions)||{},u=l.mergeSections,d=u===void 0?!0:u,f=l.mergeProps,g=f===void 0?!1:f,b=s(n.originalValue),v=s(n.value);return b===void 0&&v===void 0?void 0:P.isString(v)?v:P.isString(b)?b:d||!d&&v?g?K._mergeProps(e,g,b,v):Z(Z({},b),v):v}return s(n)},_useDefaultPT:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=arguments.length>2?arguments[2]:void 0,o=arguments.length>3?arguments[3]:void 0,i=arguments.length>4?arguments[4]:void 0;return K._usePT(e,n,r,o,i)},_hook:function(e,n,r,o,i,s){var c,l,u="on".concat(P.toCapitalCase(n)),d=K._getConfig(o,i),f=r==null?void 0:r.$instance,g=K._usePT(f,K._getPT(o==null||(c=o.value)===null||c===void 0?void 0:c.pt,e),K._getOptionValue,"hooks.".concat(u)),b=K._useDefaultPT(f,d==null||(l=d.pt)===null||l===void 0||(l=l.directives)===null||l===void 0?void 0:l[e],K._getOptionValue,"hooks.".concat(u)),v={el:r,binding:o,vnode:i,prevVnode:s};g==null||g(f,v),b==null||b(f,v)},_mergeProps:function(){for(var e=arguments.length>1?arguments[1]:void 0,n=arguments.length,r=new Array(n>2?n-2:0),o=2;o<n;o++)r[o-2]=arguments[o];return P.isFunction(e)?e.apply(void 0,r):a.mergeProps.apply(void 0,r)},_extend:function(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=function(i,s,c,l,u){var d,f;s._$instances=s._$instances||{};var g=K._getConfig(c,l),b=s._$instances[e]||{},v=P.isEmpty(b)?Z(Z({},n),n==null?void 0:n.methods):{};s._$instances[e]=Z(Z({},b),{},{$name:e,$host:s,$binding:c,$modifiers:c==null?void 0:c.modifiers,$value:c==null?void 0:c.value,$el:b.$el||s||void 0,$style:Z({classes:void 0,inlineStyles:void 0,loadStyle:function(){}},n==null?void 0:n.style),$config:g,defaultPT:function(){return K._getPT(g==null?void 0:g.pt,void 0,function(w){var I;return w==null||(I=w.directives)===null||I===void 0?void 0:I[e]})},isUnstyled:function(){var w,I;return((w=s.$instance)===null||w===void 0||(w=w.$binding)===null||w===void 0||(w=w.value)===null||w===void 0?void 0:w.unstyled)!==void 0?(I=s.$instance)===null||I===void 0||(I=I.$binding)===null||I===void 0||(I=I.value)===null||I===void 0?void 0:I.unstyled:g==null?void 0:g.unstyled},ptm:function(){var w,I=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",M=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return K._getPTValue(s.$instance,(w=s.$instance)===null||w===void 0||(w=w.$binding)===null||w===void 0||(w=w.value)===null||w===void 0?void 0:w.pt,I,Z({},M))},ptmo:function(){var w=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},I=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"",M=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return K._getPTValue(s.$instance,w,I,M,!1)},cx:function(){var w,I,M=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",$=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return(w=s.$instance)!==null&&w!==void 0&&w.isUnstyled()?void 0:K._getOptionValue((I=s.$instance)===null||I===void 0||(I=I.$style)===null||I===void 0?void 0:I.classes,M,Z({},$))},sx:function(){var w,I=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",M=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0,$=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return M?K._getOptionValue((w=s.$instance)===null||w===void 0||(w=w.$style)===null||w===void 0?void 0:w.inlineStyles,I,Z({},$)):void 0}},v),s.$instance=s._$instances[e],(d=(f=s.$instance)[i])===null||d===void 0||d.call(f,s,c,l,u),s["$".concat(e)]=s.$instance,K._hook(e,i,s,c,l,u)};return{created:function(i,s,c,l){r("created",i,s,c,l)},beforeMount:function(i,s,c,l){var u,d,f,g,b=K._getConfig(s,c);Ye.loadStyle({nonce:b==null||(u=b.csp)===null||u===void 0?void 0:u.nonce}),!((d=i.$instance)!==null&&d!==void 0&&d.isUnstyled())&&((f=i.$instance)===null||f===void 0||(f=f.$style)===null||f===void 0||f.loadStyle({nonce:b==null||(g=b.csp)===null||g===void 0?void 0:g.nonce})),r("beforeMount",i,s,c,l)},mounted:function(i,s,c,l){var u,d,f,g,b=K._getConfig(s,c);Ye.loadStyle({nonce:b==null||(u=b.csp)===null||u===void 0?void 0:u.nonce}),!((d=i.$instance)!==null&&d!==void 0&&d.isUnstyled())&&((f=i.$instance)===null||f===void 0||(f=f.$style)===null||f===void 0||f.loadStyle({nonce:b==null||(g=b.csp)===null||g===void 0?void 0:g.nonce})),r("mounted",i,s,c,l)},beforeUpdate:function(i,s,c,l){r("beforeUpdate",i,s,c,l)},updated:function(i,s,c,l){r("updated",i,s,c,l)},beforeUnmount:function(i,s,c,l){r("beforeUnmount",i,s,c,l)},unmounted:function(i,s,c,l){r("unmounted",i,s,c,l)}}},extend:function(){var e=K._getMeta.apply(K,arguments),n=ii(e,2),r=n[0],o=n[1];return Z({extend:function(){var s=K._getMeta.apply(K,arguments),c=ii(s,2),l=c[0],u=c[1];return K.extend(l,Z(Z(Z({},o),o==null?void 0:o.methods),u))}},K._extend(r,o))}},_d={root:"p-ink"},xd=Ye.extend({name:"ripple",classes:_d}),Pd=K.extend({style:xd});function Id(t){return Bd(t)||kd(t)||Od(t)||Td()}function Td(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
142
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Od(t,e){if(t){if(typeof t=="string")return ar(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);if(n==="Object"&&t.constructor&&(n=t.constructor.name),n==="Map"||n==="Set")return Array.from(t);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return ar(t,e)}}function kd(t){if(typeof Symbol<"u"&&t[Symbol.iterator]!=null||t["@@iterator"]!=null)return Array.from(t)}function Bd(t){if(Array.isArray(t))return ar(t)}function ar(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}var $d=Pd.extend("ripple",{mounted:function(e){var n,r=e==null||(n=e.$instance)===null||n===void 0?void 0:n.$config;r&&r.ripple&&(this.create(e),this.bindEvents(e),e.setAttribute("data-pd-ripple",!0))},unmounted:function(e){this.remove(e)},timeout:void 0,methods:{bindEvents:function(e){e.addEventListener("mousedown",this.onMouseDown.bind(this))},unbindEvents:function(e){e.removeEventListener("mousedown",this.onMouseDown.bind(this))},create:function(e){var n=j.createElement("span",{role:"presentation","aria-hidden":!0,"data-p-ink":!0,"data-p-ink-active":!1,class:!this.isUnstyled()&&this.cx("root"),onAnimationEnd:this.onAnimationEnd.bind(this),"p-bind":this.ptm("root")});e.appendChild(n),this.$el=n},remove:function(e){var n=this.getInk(e);n&&(this.unbindEvents(e),n.removeEventListener("animationend",this.onAnimationEnd),n.remove())},onMouseDown:function(e){var n=this,r=e.currentTarget,o=this.getInk(r);if(!(!o||getComputedStyle(o,null).display==="none")){if(!this.isUnstyled()&&j.removeClass(o,"p-ink-active"),o.setAttribute("data-p-ink-active","false"),!j.getHeight(o)&&!j.getWidth(o)){var i=Math.max(j.getOuterWidth(r),j.getOuterHeight(r));o.style.height=i+"px",o.style.width=i+"px"}var s=j.getOffset(r),c=e.pageX-s.left+document.body.scrollTop-j.getWidth(o)/2,l=e.pageY-s.top+document.body.scrollLeft-j.getHeight(o)/2;o.style.top=l+"px",o.style.left=c+"px",!this.isUnstyled()&&j.addClass(o,"p-ink-active"),o.setAttribute("data-p-ink-active","true"),this.timeout=setTimeout(function(){o&&(!n.isUnstyled()&&j.removeClass(o,"p-ink-active"),o.setAttribute("data-p-ink-active","false"))},401)}},onAnimationEnd:function(e){this.timeout&&clearTimeout(this.timeout),!this.isUnstyled()&&j.removeClass(e.currentTarget,"p-ink-active"),e.currentTarget.setAttribute("data-p-ink-active","false")},getInk:function(e){return e&&e.children?Id(e.children).find(function(n){return j.getAttribute(n,"data-pc-name")==="ripple"}):void 0}}}),Ld={name:"BasePanelMenu",extends:on,props:{model:{type:Array,default:null},expandedKeys:{type:Object,default:null},multiple:{type:Boolean,default:!1},tabindex:{type:Number,default:0}},style:bd,provide:function(){return{$parentInstance:this}}},li={name:"PanelMenuSub",hostName:"PanelMenu",extends:on,emits:["item-toggle","item-mousemove"],props:{panelId:{type:String,default:null},focusedItemId:{type:String,default:null},items:{type:Array,default:null},level:{type:Number,default:0},templates:{type:Object,default:null},activeItemPath:{type:Object,default:null},tabindex:{type:Number,default:-1}},methods:{getItemId:function(e){return"".concat(this.panelId,"_").concat(e.key)},getItemKey:function(e){return this.getItemId(e)},getItemProp:function(e,n,r){return e&&e.item?P.getItemValue(e.item[n],r):void 0},getItemLabel:function(e){return this.getItemProp(e,"label")},getPTOptions:function(e,n,r){return this.ptm(e,{context:{item:n,index:r,active:this.isItemActive(n),focused:this.isItemFocused(n),disabled:this.isItemDisabled(n)}})},isItemActive:function(e){return this.activeItemPath.some(function(n){return n.key===e.key})},isItemVisible:function(e){return this.getItemProp(e,"visible")!==!1},isItemDisabled:function(e){return this.getItemProp(e,"disabled")},isItemFocused:function(e){return this.focusedItemId===this.getItemId(e)},isItemGroup:function(e){return P.isNotEmpty(e.items)},onItemClick:function(e,n){this.getItemProp(n,"command",{originalEvent:e,item:n.item}),this.$emit("item-toggle",{processedItem:n,expanded:!this.isItemActive(n)})},onItemToggle:function(e){this.$emit("item-toggle",e)},onItemMouseMove:function(e,n){this.$emit("item-mousemove",{originalEvent:e,processedItem:n})},getAriaSetSize:function(){var e=this;return this.items.filter(function(n){return e.isItemVisible(n)&&!e.getItemProp(n,"separator")}).length},getAriaPosInset:function(e){var n=this;return e-this.items.slice(0,e).filter(function(r){return n.isItemVisible(r)&&n.getItemProp(r,"separator")}).length+1},getMenuItemProps:function(e,n){return{action:a.mergeProps({class:this.cx("action"),tabindex:-1,"aria-hidden":!0},this.getPTOptions("action",e,n)),icon:a.mergeProps({class:[this.cx("icon"),this.getItemProp(e,"icon")]},this.getPTOptions("icon",e,n)),label:a.mergeProps({class:this.cx("label")},this.getPTOptions("label",e,n)),submenuicon:a.mergeProps({class:this.cx("submenuIcon")},this.getPTOptions("submenuicon",e,n))}}},components:{ChevronRightIcon:ir,ChevronDownIcon:or},directives:{ripple:$d}},Fd=["tabindex"],Nd=["id","aria-label","aria-expanded","aria-level","aria-setsize","aria-posinset","data-p-focused","data-p-disabled"],Dd=["onClick","onMousemove"],Rd=["href","target"];function Md(t,e,n,r,o,i){var s=a.resolveComponent("PanelMenuSub",!0),c=a.resolveDirective("ripple");return a.openBlock(),a.createElementBlock("ul",{class:a.normalizeClass(t.cx("submenu")),tabindex:n.tabindex},[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(n.items,function(l,u){return a.openBlock(),a.createElementBlock(a.Fragment,{key:i.getItemKey(l)},[i.isItemVisible(l)&&!i.getItemProp(l,"separator")?(a.openBlock(),a.createElementBlock("li",a.mergeProps({key:0,id:i.getItemId(l),class:[t.cx("menuitem",{processedItem:l}),i.getItemProp(l,"class")],style:i.getItemProp(l,"style"),role:"treeitem","aria-label":i.getItemLabel(l),"aria-expanded":i.isItemGroup(l)?i.isItemActive(l):void 0,"aria-level":n.level+1,"aria-setsize":i.getAriaSetSize(),"aria-posinset":i.getAriaPosInset(u)},i.getPTOptions("menuitem",l,u),{"data-p-focused":i.isItemFocused(l),"data-p-disabled":i.isItemDisabled(l)}),[a.createElementVNode("div",a.mergeProps({class:t.cx("content"),onClick:function(f){return i.onItemClick(f,l)},onMousemove:function(f){return i.onItemMouseMove(f,l)}},i.getPTOptions("content",l,u)),[n.templates.item?(a.openBlock(),a.createBlock(a.resolveDynamicComponent(n.templates.item),{key:1,item:l.item,root:!1,active:i.isItemActive(l),hasSubmenu:i.isItemGroup(l),label:i.getItemLabel(l),props:i.getMenuItemProps(l,u)},null,8,["item","active","hasSubmenu","label","props"])):a.withDirectives((a.openBlock(),a.createElementBlock("a",a.mergeProps({key:0,href:i.getItemProp(l,"url"),class:t.cx("action"),target:i.getItemProp(l,"target"),tabindex:"-1","aria-hidden":"true"},i.getPTOptions("action",l,u)),[i.isItemGroup(l)?(a.openBlock(),a.createElementBlock(a.Fragment,{key:0},[n.templates.submenuicon?(a.openBlock(),a.createBlock(a.resolveDynamicComponent(n.templates.submenuicon),a.mergeProps({key:0,class:t.cx("submenuIcon"),active:i.isItemActive(l)},i.getPTOptions("submenuIcon",l,u)),null,16,["class","active"])):(a.openBlock(),a.createBlock(a.resolveDynamicComponent(i.isItemActive(l)?"ChevronDownIcon":"ChevronRightIcon"),a.mergeProps({key:1,class:t.cx("submenuIcon")},i.getPTOptions("submenuIcon",l,u)),null,16,["class"]))],64)):a.createCommentVNode("",!0),n.templates.itemicon?(a.openBlock(),a.createBlock(a.resolveDynamicComponent(n.templates.itemicon),{key:1,item:l.item,class:a.normalizeClass(t.cx("icon"))},null,8,["item","class"])):i.getItemProp(l,"icon")?(a.openBlock(),a.createElementBlock("span",a.mergeProps({key:2,class:[t.cx("icon"),i.getItemProp(l,"icon")]},i.getPTOptions("icon",l,u)),null,16)):a.createCommentVNode("",!0),a.createElementVNode("span",a.mergeProps({class:t.cx("label")},i.getPTOptions("label",l,u)),a.toDisplayString(i.getItemLabel(l)),17)],16,Rd)),[[c]])],16,Dd),a.createVNode(a.Transition,a.mergeProps({name:"p-toggleable-content"},t.ptm("transition")),{default:a.withCtx(function(){return[a.withDirectives(a.createElementVNode("div",a.mergeProps({class:t.cx("toggleableContent")},t.ptm("toggleableContent")),[i.isItemVisible(l)&&i.isItemGroup(l)?(a.openBlock(),a.createBlock(s,a.mergeProps({key:0,id:i.getItemId(l)+"_list",role:"group",panelId:n.panelId,focusedItemId:n.focusedItemId,items:l.items,level:n.level+1,templates:n.templates,activeItemPath:n.activeItemPath,onItemToggle:i.onItemToggle,onItemMousemove:e[0]||(e[0]=function(d){return t.$emit("item-mousemove",d)}),pt:t.pt,unstyled:t.unstyled},t.ptm("submenu")),null,16,["id","panelId","focusedItemId","items","level","templates","activeItemPath","onItemToggle","pt","unstyled"])):a.createCommentVNode("",!0)],16),[[a.vShow,i.isItemActive(l)]])]}),_:2},1040)],16,Nd)):a.createCommentVNode("",!0),i.isItemVisible(l)&&i.getItemProp(l,"separator")?(a.openBlock(),a.createElementBlock("li",a.mergeProps({key:1,style:i.getItemProp(l,"style"),class:[t.cx("separator"),i.getItemProp(l,"class")],role:"separator"},t.ptm("separator")),null,16)):a.createCommentVNode("",!0)],64)}),128))],10,Fd)}li.render=Md;function Hd(t,e){return Wd(t)||Ud(t,e)||Vd(t,e)||jd()}function jd(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
143
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Vd(t,e){if(t){if(typeof t=="string")return ci(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);if(n==="Object"&&t.constructor&&(n=t.constructor.name),n==="Map"||n==="Set")return Array.from(t);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return ci(t,e)}}function ci(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function Ud(t,e){var n=t==null?null:typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(n!=null){var r,o,i,s,c=[],l=!0,u=!1;try{if(i=(n=n.call(t)).next,e===0){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=i.call(n)).done)&&(c.push(r.value),c.length!==e);l=!0);}catch(d){u=!0,o=d}finally{try{if(!l&&n.return!=null&&(s=n.return(),Object(s)!==s))return}finally{if(u)throw o}}return c}}function Wd(t){if(Array.isArray(t))return t}var ui={name:"PanelMenuList",hostName:"PanelMenu",extends:on,emits:["item-toggle","header-focus"],props:{panelId:{type:String,default:null},items:{type:Array,default:null},templates:{type:Object,default:null},expandedKeys:{type:Object,default:null}},searchTimeout:null,searchValue:null,data:function(){return{focused:!1,focusedItem:null,activeItemPath:[]}},watch:{expandedKeys:function(e){this.autoUpdateActiveItemPath(e)}},mounted:function(){this.autoUpdateActiveItemPath(this.expandedKeys)},methods:{getItemProp:function(e,n){return e&&e.item?P.getItemValue(e.item[n]):void 0},getItemLabel:function(e){return this.getItemProp(e,"label")},isItemVisible:function(e){return this.getItemProp(e,"visible")!==!1},isItemDisabled:function(e){return this.getItemProp(e,"disabled")},isItemActive:function(e){return this.activeItemPath.some(function(n){return n.key===e.parentKey})},isItemGroup:function(e){return P.isNotEmpty(e.items)},onFocus:function(e){this.focused=!0,this.focusedItem=this.focusedItem||(this.isElementInPanel(e,e.relatedTarget)?this.findFirstItem():this.findLastItem())},onBlur:function(){this.focused=!1,this.focusedItem=null,this.searchValue=""},onKeyDown:function(e){var n=e.metaKey||e.ctrlKey;switch(e.code){case"ArrowDown":this.onArrowDownKey(e);break;case"ArrowUp":this.onArrowUpKey(e);break;case"ArrowLeft":this.onArrowLeftKey(e);break;case"ArrowRight":this.onArrowRightKey(e);break;case"Home":this.onHomeKey(e);break;case"End":this.onEndKey(e);break;case"Space":this.onSpaceKey(e);break;case"Enter":case"NumpadEnter":this.onEnterKey(e);break;case"Escape":case"Tab":case"PageDown":case"PageUp":case"Backspace":case"ShiftLeft":case"ShiftRight":break;default:!n&&P.isPrintableCharacter(e.key)&&this.searchItems(e,e.key);break}},onArrowDownKey:function(e){var n=P.isNotEmpty(this.focusedItem)?this.findNextItem(this.focusedItem):this.findFirstItem();this.changeFocusedItem({originalEvent:e,processedItem:n,focusOnNext:!0}),e.preventDefault()},onArrowUpKey:function(e){var n=P.isNotEmpty(this.focusedItem)?this.findPrevItem(this.focusedItem):this.findLastItem();this.changeFocusedItem({originalEvent:e,processedItem:n,selfCheck:!0}),e.preventDefault()},onArrowLeftKey:function(e){var n=this;if(P.isNotEmpty(this.focusedItem)){var r=this.activeItemPath.some(function(o){return o.key===n.focusedItem.key});r?this.activeItemPath=this.activeItemPath.filter(function(o){return o.key!==n.focusedItem.key}):this.focusedItem=P.isNotEmpty(this.focusedItem.parent)?this.focusedItem.parent:this.focusedItem,e.preventDefault()}},onArrowRightKey:function(e){var n=this;if(P.isNotEmpty(this.focusedItem)){var r=this.isItemGroup(this.focusedItem);if(r){var o=this.activeItemPath.some(function(i){return i.key===n.focusedItem.key});o?this.onArrowDownKey(e):(this.activeItemPath=this.activeItemPath.filter(function(i){return i.parentKey!==n.focusedItem.parentKey}),this.activeItemPath.push(this.focusedItem))}e.preventDefault()}},onHomeKey:function(e){this.changeFocusedItem({originalEvent:e,processedItem:this.findFirstItem(),allowHeaderFocus:!1}),e.preventDefault()},onEndKey:function(e){this.changeFocusedItem({originalEvent:e,processedItem:this.findLastItem(),focusOnNext:!0,allowHeaderFocus:!1}),e.preventDefault()},onEnterKey:function(e){if(P.isNotEmpty(this.focusedItem)){var n=j.findSingle(this.$el,'li[id="'.concat("".concat(this.focusedItemId),'"]')),r=n&&(j.findSingle(n,'[data-pc-section="action"]')||j.findSingle(n,"a,button"));r?r.click():n&&n.click()}e.preventDefault()},onSpaceKey:function(e){this.onEnterKey(e)},onItemToggle:function(e){var n=e.processedItem,r=e.expanded;this.expandedKeys?this.$emit("item-toggle",{item:n.item,expanded:r}):(this.activeItemPath=this.activeItemPath.filter(function(o){return o.parentKey!==n.parentKey}),r&&this.activeItemPath.push(n)),this.focusedItem=n,j.focus(this.$el)},onItemMouseMove:function(e){this.focused&&(this.focusedItem=e.processedItem)},isElementInPanel:function(e,n){var r=e.currentTarget.closest('[data-pc-section="panel"]');return r&&r.contains(n)},isItemMatched:function(e){var n;return this.isValidItem(e)&&((n=this.getItemLabel(e))===null||n===void 0?void 0:n.toLocaleLowerCase(this.searchLocale).startsWith(this.searchValue.toLocaleLowerCase(this.searchLocale)))},isVisibleItem:function(e){return!!e&&(e.level===0||this.isItemActive(e))&&this.isItemVisible(e)},isValidItem:function(e){return!!e&&!this.isItemDisabled(e)&&!this.getItemProp(e,"separator")},findFirstItem:function(){var e=this;return this.visibleItems.find(function(n){return e.isValidItem(n)})},findLastItem:function(){var e=this;return P.findLast(this.visibleItems,function(n){return e.isValidItem(n)})},findNextItem:function(e){var n=this,r=this.visibleItems.findIndex(function(i){return i.key===e.key}),o=r<this.visibleItems.length-1?this.visibleItems.slice(r+1).find(function(i){return n.isValidItem(i)}):void 0;return o||e},findPrevItem:function(e){var n=this,r=this.visibleItems.findIndex(function(i){return i.key===e.key}),o=r>0?P.findLast(this.visibleItems.slice(0,r),function(i){return n.isValidItem(i)}):void 0;return o||e},searchItems:function(e,n){var r=this;this.searchValue=(this.searchValue||"")+n;var o=null,i=!1;if(P.isNotEmpty(this.focusedItem)){var s=this.visibleItems.findIndex(function(c){return c.key===r.focusedItem.key});o=this.visibleItems.slice(s).find(function(c){return r.isItemMatched(c)}),o=P.isEmpty(o)?this.visibleItems.slice(0,s).find(function(c){return r.isItemMatched(c)}):o}else o=this.visibleItems.find(function(c){return r.isItemMatched(c)});return P.isNotEmpty(o)&&(i=!0),P.isEmpty(o)&&P.isEmpty(this.focusedItem)&&(o=this.findFirstItem()),P.isNotEmpty(o)&&this.changeFocusedItem({originalEvent:e,processedItem:o,allowHeaderFocus:!1}),this.searchTimeout&&clearTimeout(this.searchTimeout),this.searchTimeout=setTimeout(function(){r.searchValue="",r.searchTimeout=null},500),i},changeFocusedItem:function(e){var n=e.originalEvent,r=e.processedItem,o=e.focusOnNext,i=e.selfCheck,s=e.allowHeaderFocus,c=s===void 0?!0:s;P.isNotEmpty(this.focusedItem)&&this.focusedItem.key!==r.key?(this.focusedItem=r,this.scrollInView()):c&&this.$emit("header-focus",{originalEvent:n,focusOnNext:o,selfCheck:i})},scrollInView:function(){var e=j.findSingle(this.$el,'li[id="'.concat("".concat(this.focusedItemId),'"]'));e&&e.scrollIntoView&&e.scrollIntoView({block:"nearest",inline:"start"})},autoUpdateActiveItemPath:function(e){var n=this;this.activeItemPath=Object.entries(e||{}).reduce(function(r,o){var i=Hd(o,2),s=i[0],c=i[1];if(c){var l=n.findProcessedItemByItemKey(s);l&&r.push(l)}return r},[])},findProcessedItemByItemKey:function(e,n){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0;if(n=n||r===0&&this.processedItems,!n)return null;for(var o=0;o<n.length;o++){var i=n[o];if(this.getItemProp(i,"key")===e)return i;var s=this.findProcessedItemByItemKey(e,i.items,r+1);if(s)return s}},createProcessedItems:function(e){var n=this,r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:"",s=[];return e&&e.forEach(function(c,l){var u=(i!==""?i+"_":"")+l,d={item:c,index:l,level:r,key:u,parent:o,parentKey:i};d.items=n.createProcessedItems(c.items,r+1,d,u),s.push(d)}),s},flatItems:function(e){var n=this,r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[];return e&&e.forEach(function(o){n.isVisibleItem(o)&&(r.push(o),n.flatItems(o.items,r))}),r}},computed:{processedItems:function(){return this.createProcessedItems(this.items||[])},visibleItems:function(){return this.flatItems(this.processedItems)},focusedItemId:function(){return P.isNotEmpty(this.focusedItem)?"".concat(this.panelId,"_").concat(this.focusedItem.key):null}},components:{PanelMenuSub:li}};function Kd(t,e,n,r,o,i){var s=a.resolveComponent("PanelMenuSub");return a.openBlock(),a.createBlock(s,a.mergeProps({id:n.panelId+"_list",class:t.cx("menu"),role:"tree",tabindex:-1,"aria-activedescendant":o.focused?i.focusedItemId:void 0,panelId:n.panelId,focusedItemId:o.focused?i.focusedItemId:void 0,items:i.processedItems,templates:n.templates,activeItemPath:o.activeItemPath,onFocus:i.onFocus,onBlur:i.onBlur,onKeydown:i.onKeyDown,onItemToggle:i.onItemToggle,onItemMousemove:i.onItemMouseMove,pt:t.pt,unstyled:t.unstyled},t.ptm("menu")),null,16,["id","class","aria-activedescendant","panelId","focusedItemId","items","templates","activeItemPath","onFocus","onBlur","onKeydown","onItemToggle","onItemMousemove","pt","unstyled"])}ui.render=Kd;function Nt(t){"@babel/helpers - typeof";return Nt=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Nt(t)}function di(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(t,o).enumerable})),n.push.apply(n,r)}return n}function zd(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?di(Object(n),!0).forEach(function(r){qd(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):di(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function qd(t,e,n){return e=Gd(e),e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function Gd(t){var e=Jd(t,"string");return Nt(e)=="symbol"?e:String(e)}function Jd(t,e){if(Nt(t)!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e||"default");if(Nt(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}var fi={name:"PanelMenu",extends:Ld,inheritAttrs:!1,emits:["update:expandedKeys","panel-open","panel-close"],data:function(){return{id:this.$attrs.id,activeItem:null,activeItems:[]}},watch:{"$attrs.id":function(e){this.id=e||Wo()}},mounted:function(){this.id=this.id||Wo()},methods:{getItemProp:function(e,n){return e?P.getItemValue(e[n]):void 0},getItemLabel:function(e){return this.getItemProp(e,"label")},getPTOptions:function(e,n,r){return this.ptm(e,{context:{index:r,active:this.isItemActive(n),focused:this.isItemFocused(n),disabled:this.isItemDisabled(n)}})},isItemActive:function(e){return this.expandedKeys?this.expandedKeys[this.getItemProp(e,"key")]:this.multiple?this.activeItems.some(function(n){return P.equals(e,n)}):P.equals(e,this.activeItem)},isItemVisible:function(e){return this.getItemProp(e,"visible")!==!1},isItemDisabled:function(e){return this.getItemProp(e,"disabled")},isItemFocused:function(e){return P.equals(e,this.activeItem)},getPanelId:function(e){return"".concat(this.id,"_").concat(e)},getPanelKey:function(e){return this.getPanelId(e)},getHeaderId:function(e){return"".concat(this.getPanelId(e),"_header")},getContentId:function(e){return"".concat(this.getPanelId(e),"_content")},onHeaderClick:function(e,n){if(this.isItemDisabled(n)){e.preventDefault();return}n.command&&n.command({originalEvent:e,item:n}),this.changeActiveItem(e,n),j.focus(e.currentTarget)},onHeaderKeyDown:function(e,n){switch(e.code){case"ArrowDown":this.onHeaderArrowDownKey(e);break;case"ArrowUp":this.onHeaderArrowUpKey(e);break;case"Home":this.onHeaderHomeKey(e);break;case"End":this.onHeaderEndKey(e);break;case"Enter":case"NumpadEnter":case"Space":this.onHeaderEnterKey(e,n);break}},onHeaderArrowDownKey:function(e){var n=j.getAttribute(e.currentTarget,"data-p-highlight")===!0?j.findSingle(e.currentTarget.nextElementSibling,'[data-pc-section="menu"]'):null;n?j.focus(n):this.updateFocusedHeader({originalEvent:e,focusOnNext:!0}),e.preventDefault()},onHeaderArrowUpKey:function(e){var n=this.findPrevHeader(e.currentTarget.parentElement)||this.findLastHeader(),r=j.getAttribute(n,"data-p-highlight")===!0?j.findSingle(n.nextElementSibling,'[data-pc-section="menu"]'):null;r?j.focus(r):this.updateFocusedHeader({originalEvent:e,focusOnNext:!1}),e.preventDefault()},onHeaderHomeKey:function(e){this.changeFocusedHeader(e,this.findFirstHeader()),e.preventDefault()},onHeaderEndKey:function(e){this.changeFocusedHeader(e,this.findLastHeader()),e.preventDefault()},onHeaderEnterKey:function(e,n){var r=j.findSingle(e.currentTarget,'[data-pc-section="headeraction"]');r?r.click():this.onHeaderClick(e,n),e.preventDefault()},findNextHeader:function(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,r=n?e:e.nextElementSibling,o=j.findSingle(r,'[data-pc-section="header"]');return o?j.getAttribute(o,"data-p-disabled")?this.findNextHeader(o.parentElement):o:null},findPrevHeader:function(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,r=n?e:e.previousElementSibling,o=j.findSingle(r,'[data-pc-section="header"]');return o?j.getAttribute(o,"data-p-disabled")?this.findPrevHeader(o.parentElement):o:null},findFirstHeader:function(){return this.findNextHeader(this.$el.firstElementChild,!0)},findLastHeader:function(){return this.findPrevHeader(this.$el.lastElementChild,!0)},updateFocusedHeader:function(e){var n=e.originalEvent,r=e.focusOnNext,o=e.selfCheck,i=n.currentTarget.closest('[data-pc-section="panel"]'),s=o?j.findSingle(i,'[data-pc-section="header"]'):r?this.findNextHeader(i):this.findPrevHeader(i);s?this.changeFocusedHeader(n,s):r?this.onHeaderHomeKey(n):this.onHeaderEndKey(n)},changeActiveItem:function(e,n){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;if(!this.isItemDisabled(n)){var o=this.isItemActive(n),i=o?"panel-close":"panel-open";this.activeItem=r?n:this.activeItem&&P.equals(n,this.activeItem)?null:n,this.multiple&&(this.activeItems.some(function(s){return P.equals(n,s)})?this.activeItems=this.activeItems.filter(function(s){return!P.equals(n,s)}):this.activeItems.push(n)),this.changeExpandedKeys({item:n,expanded:!o}),this.$emit(i,{originalEvent:e,item:n})}},changeExpandedKeys:function(e){var n=e.item,r=e.expanded,o=r===void 0?!1:r;if(this.expandedKeys){var i=zd({},this.expandedKeys);o?i[n.key]=!0:delete i[n.key],this.$emit("update:expandedKeys",i)}},changeFocusedHeader:function(e,n){n&&j.focus(n)},getMenuItemProps:function(e,n){return{icon:a.mergeProps({class:[this.cx("headerIcon"),this.getItemProp(e,"icon")]},this.getPTOptions("headerIcon",e,n)),label:a.mergeProps({class:this.cx("headerLabel")},this.getPTOptions("headerLabel",e,n))}}},components:{PanelMenuList:ui,ChevronRightIcon:ir,ChevronDownIcon:or}},Yd=["id"],Xd=["id","tabindex","aria-label","aria-expanded","aria-controls","aria-disabled","onClick","onKeydown","data-p-highlight","data-p-disabled"],Zd=["href"],Qd=["id","aria-labelledby"];function ef(t,e,n,r,o,i){var s=a.resolveComponent("PanelMenuList");return a.openBlock(),a.createElementBlock("div",a.mergeProps({id:o.id,class:t.cx("root")},t.ptmi("root")),[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(t.model,function(c,l){return a.openBlock(),a.createElementBlock(a.Fragment,{key:i.getPanelKey(l)},[i.isItemVisible(c)?(a.openBlock(),a.createElementBlock("div",a.mergeProps({key:0,style:i.getItemProp(c,"style"),class:[t.cx("panel"),i.getItemProp(c,"class")]},t.ptm("panel")),[a.createElementVNode("div",a.mergeProps({id:i.getHeaderId(l),class:[t.cx("header",{item:c}),i.getItemProp(c,"headerClass")],tabindex:i.isItemDisabled(c)?-1:t.tabindex,role:"button","aria-label":i.getItemLabel(c),"aria-expanded":i.isItemActive(c),"aria-controls":i.getContentId(l),"aria-disabled":i.isItemDisabled(c),onClick:function(d){return i.onHeaderClick(d,c)},onKeydown:function(d){return i.onHeaderKeyDown(d,c)}},i.getPTOptions("header",c,l),{"data-p-highlight":i.isItemActive(c),"data-p-disabled":i.isItemDisabled(c)}),[a.createElementVNode("div",a.mergeProps({class:t.cx("headerContent")},i.getPTOptions("headerContent",c,l)),[t.$slots.item?(a.openBlock(),a.createBlock(a.resolveDynamicComponent(t.$slots.item),{key:1,item:c,root:!0,active:i.isItemActive(c),hasSubmenu:i.getItemProp(c,"items"),label:i.getItemLabel(c),props:i.getMenuItemProps(c,l)},null,8,["item","active","hasSubmenu","label","props"])):(a.openBlock(),a.createElementBlock("a",a.mergeProps({key:0,href:i.getItemProp(c,"url"),class:t.cx("headerAction"),tabindex:-1},i.getPTOptions("headerAction",c,l)),[i.getItemProp(c,"items")?a.renderSlot(t.$slots,"submenuicon",{key:0,active:i.isItemActive(c)},function(){return[(a.openBlock(),a.createBlock(a.resolveDynamicComponent(i.isItemActive(c)?"ChevronDownIcon":"ChevronRightIcon"),a.mergeProps({class:t.cx("submenuIcon")},i.getPTOptions("submenuIcon",c,l)),null,16,["class"]))]}):a.createCommentVNode("",!0),t.$slots.headericon?(a.openBlock(),a.createBlock(a.resolveDynamicComponent(t.$slots.headericon),{key:1,item:c,class:a.normalizeClass([t.cx("headerIcon"),i.getItemProp(c,"icon")])},null,8,["item","class"])):i.getItemProp(c,"icon")?(a.openBlock(),a.createElementBlock("span",a.mergeProps({key:2,class:[t.cx("headerIcon"),i.getItemProp(c,"icon")]},i.getPTOptions("headerIcon",c,l)),null,16)):a.createCommentVNode("",!0),a.createElementVNode("span",a.mergeProps({class:t.cx("headerLabel")},i.getPTOptions("headerLabel",c,l)),a.toDisplayString(i.getItemLabel(c)),17)],16,Zd))],16)],16,Xd),a.createVNode(a.Transition,a.mergeProps({name:"p-toggleable-content"},t.ptm("transition")),{default:a.withCtx(function(){return[a.withDirectives(a.createElementVNode("div",a.mergeProps({id:i.getContentId(l),class:t.cx("toggleableContent"),role:"region","aria-labelledby":i.getHeaderId(l)},t.ptm("toggleableContent")),[i.getItemProp(c,"items")?(a.openBlock(),a.createElementBlock("div",a.mergeProps({key:0,class:t.cx("menuContent")},t.ptm("menuContent")),[a.createVNode(s,{panelId:i.getPanelId(l),items:i.getItemProp(c,"items"),templates:t.$slots,expandedKeys:t.expandedKeys,onItemToggle:i.changeExpandedKeys,onHeaderFocus:i.updateFocusedHeader,pt:t.pt,unstyled:t.unstyled},null,8,["panelId","items","templates","expandedKeys","onItemToggle","onHeaderFocus","pt","unstyled"])],16)):a.createCommentVNode("",!0)],16,Qd),[[a.vShow,i.isItemActive(c)]])]}),_:2},1040)],16)):a.createCommentVNode("",!0)],64)}),128))],16,Yd)}fi.render=ef;const tf=["data-active","href","onClick"],nf={class:"sf-ml-2"},rf=["href","target"],of={class:"sf-ml-2"},sf=a.createElementVNode("div",{class:"sf-flex-grow-1"},null,-1),af=a.defineComponent({__name:"PanelMenu",props:{items:{}},setup(t){const e=t,n=We.useRoute(),r=a.computed(()=>e.items);o(r.value);function o(c,l=void 0){c.forEach(u=>{l&&(u.parentKey=l),u.items&&o(u.items,u.key)})}const i=a.ref({});function s(c,l,u=void 0){c.forEach(d=>{d.routeName&&d.routeName===l&&u&&(i.value[u]=u===d.parentKey),d.items&&s(d.items,l,d.key)})}return a.watch(()=>n.name,c=>{c&&s(r.value,c.toString())}),(c,l)=>{const u=a.resolveComponent("router-link");return a.openBlock(),a.createBlock(a.unref(fi),{model:r.value,expandedKeys:i.value,"onUpdate:expandedKeys":l[0]||(l[0]=d=>i.value=d),multiple:!0,class:a.normalizeClass("sf-p-2")},{item:a.withCtx(({item:d,active:f})=>[d.routeName?(a.openBlock(),a.createBlock(u,{key:0,to:{name:d.routeName},custom:""},{default:a.withCtx(({href:g,navigate:b,isActive:v})=>[a.createElementVNode("a",{class:"sf-flex sf-align-items-center sf-px-3 sf-py-2 sf-ripple","data-active":v,href:g,onClick:b},[a.createVNode(Re,{icon:d.icon??"chevron_right"},null,8,["icon"]),a.createElementVNode("span",nf,a.toDisplayString(d.label),1)],8,tf)]),_:2},1032,["to"])):(a.openBlock(),a.createElementBlock("a",{key:1,class:"sf-flex sf-align-items-center sf-pl-3 sf-py-2",href:d.url,target:d.target},[d.icon?(a.openBlock(),a.createBlock(Re,{key:0,icon:d.icon},null,8,["icon"])):a.createCommentVNode("",!0),a.createElementVNode("span",of,a.toDisplayString(d.label),1),sf,a.createVNode(Re,{icon:f?"expand_less":"expand_more"},null,8,["icon"])],8,rf))]),_:1},8,["model","expandedKeys"])}}});var lf=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function cf(t){if(t.__esModule)return t;var e=t.default;if(typeof e=="function"){var n=function r(){return this instanceof r?Reflect.construct(e,arguments,this.constructor):e.apply(this,arguments)};n.prototype=e.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(t).forEach(function(r){var o=Object.getOwnPropertyDescriptor(t,r);Object.defineProperty(n,r,o.get?o:{enumerable:!0,get:function(){return t[r]}})}),n}var uf={exports:{}};const pi=cf(Object.freeze(Object.defineProperty({__proto__:null,default:{}},Symbol.toStringTag,{value:"Module"})));/**
144
144
  * [js-sha256]{@link https://github.com/emn178/js-sha256}
145
145
  *
146
146
  * @version 0.10.1
147
147
  * @author Chen, Yi-Cyuan [emn178@gmail.com]
148
148
  * @copyright Chen, Yi-Cyuan 2014-2023
149
149
  * @license MIT
150
- */(function(t){(function(){var e="input is invalid type",n=typeof window=="object",r=n?window:{};r.JS_SHA256_NO_WINDOW&&(n=!1);var o=!n&&typeof self=="object",i=!r.JS_SHA256_NO_NODE_JS&&typeof process=="object"&&process.versions&&process.versions.node;i?r=bf:o&&(r=self);var s=!r.JS_SHA256_NO_COMMON_JS&&!0&&t.exports,c=!r.JS_SHA256_NO_ARRAY_BUFFER&&typeof ArrayBuffer<"u",l="0123456789abcdef".split(""),d=[-2147483648,8388608,32768,128],f=[24,16,8,0],p=[1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298],v=["hex","array","digest","arrayBuffer"],w=[];(r.JS_SHA256_NO_NODE_JS||!Array.isArray)&&(Array.isArray=function(y){return Object.prototype.toString.call(y)==="[object Array]"}),c&&(r.JS_SHA256_NO_ARRAY_BUFFER_IS_VIEW||!ArrayBuffer.isView)&&(ArrayBuffer.isView=function(y){return typeof y=="object"&&y.buffer&&y.buffer.constructor===ArrayBuffer});var _=function(y,L){return function(j){return new V(L,!0).update(j)[y]()}},x=function(y){var L=_("hex",y);i&&(L=C(L,y)),L.create=function(){return new V(y)},L.update=function(B){return L.create().update(B)};for(var j=0;j<v.length;++j){var F=v[j];L[F]=_(F,y)}return L},C=function(y,L){var j=Ai,F=Ai.Buffer,B=L?"sha224":"sha256",O;F.from&&!r.JS_SHA256_NO_BUFFER_FROM?O=F.from:O=function(A){return new F(A)};var W=function(A){if(typeof A=="string")return j.createHash(B).update(A,"utf8").digest("hex");if(A==null)throw new Error(e);return A.constructor===ArrayBuffer&&(A=new Uint8Array(A)),Array.isArray(A)||ArrayBuffer.isView(A)||A.constructor===F?j.createHash(B).update(O(A)).digest("hex"):y(A)};return W},$=function(y,L){return function(j,F){return new pe(j,L,!0).update(F)[y]()}},q=function(y){var L=$("hex",y);L.create=function(B){return new pe(B,y)},L.update=function(B,O){return L.create(B).update(O)};for(var j=0;j<v.length;++j){var F=v[j];L[F]=$(F,y)}return L};function V(y,L){L?(w[0]=w[16]=w[1]=w[2]=w[3]=w[4]=w[5]=w[6]=w[7]=w[8]=w[9]=w[10]=w[11]=w[12]=w[13]=w[14]=w[15]=0,this.blocks=w):this.blocks=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],y?(this.h0=3238371032,this.h1=914150663,this.h2=812702999,this.h3=4144912697,this.h4=4290775857,this.h5=1750603025,this.h6=1694076839,this.h7=3204075428):(this.h0=1779033703,this.h1=3144134277,this.h2=1013904242,this.h3=2773480762,this.h4=1359893119,this.h5=2600822924,this.h6=528734635,this.h7=1541459225),this.block=this.start=this.bytes=this.hBytes=0,this.finalized=this.hashed=!1,this.first=!0,this.is224=y}V.prototype.update=function(y){if(!this.finalized){var L,j=typeof y;if(j!=="string"){if(j==="object"){if(y===null)throw new Error(e);if(c&&y.constructor===ArrayBuffer)y=new Uint8Array(y);else if(!Array.isArray(y)&&(!c||!ArrayBuffer.isView(y)))throw new Error(e)}else throw new Error(e);L=!0}for(var F,B=0,O,W=y.length,A=this.blocks;B<W;){if(this.hashed&&(this.hashed=!1,A[0]=this.block,A[16]=A[1]=A[2]=A[3]=A[4]=A[5]=A[6]=A[7]=A[8]=A[9]=A[10]=A[11]=A[12]=A[13]=A[14]=A[15]=0),L)for(O=this.start;B<W&&O<64;++B)A[O>>2]|=y[B]<<f[O++&3];else for(O=this.start;B<W&&O<64;++B)F=y.charCodeAt(B),F<128?A[O>>2]|=F<<f[O++&3]:F<2048?(A[O>>2]|=(192|F>>6)<<f[O++&3],A[O>>2]|=(128|F&63)<<f[O++&3]):F<55296||F>=57344?(A[O>>2]|=(224|F>>12)<<f[O++&3],A[O>>2]|=(128|F>>6&63)<<f[O++&3],A[O>>2]|=(128|F&63)<<f[O++&3]):(F=65536+((F&1023)<<10|y.charCodeAt(++B)&1023),A[O>>2]|=(240|F>>18)<<f[O++&3],A[O>>2]|=(128|F>>12&63)<<f[O++&3],A[O>>2]|=(128|F>>6&63)<<f[O++&3],A[O>>2]|=(128|F&63)<<f[O++&3]);this.lastByteIndex=O,this.bytes+=O-this.start,O>=64?(this.block=A[16],this.start=O-64,this.hash(),this.hashed=!0):this.start=O}return this.bytes>4294967295&&(this.hBytes+=this.bytes/4294967296<<0,this.bytes=this.bytes%4294967296),this}},V.prototype.finalize=function(){if(!this.finalized){this.finalized=!0;var y=this.blocks,L=this.lastByteIndex;y[16]=this.block,y[L>>2]|=d[L&3],this.block=y[16],L>=56&&(this.hashed||this.hash(),y[0]=this.block,y[16]=y[1]=y[2]=y[3]=y[4]=y[5]=y[6]=y[7]=y[8]=y[9]=y[10]=y[11]=y[12]=y[13]=y[14]=y[15]=0),y[14]=this.hBytes<<3|this.bytes>>>29,y[15]=this.bytes<<3,this.hash()}},V.prototype.hash=function(){var y=this.h0,L=this.h1,j=this.h2,F=this.h3,B=this.h4,O=this.h5,W=this.h6,A=this.h7,G=this.blocks,ie,ce,fe,Ce,K,xe,u,h,E,I,S;for(ie=16;ie<64;++ie)K=G[ie-15],ce=(K>>>7|K<<25)^(K>>>18|K<<14)^K>>>3,K=G[ie-2],fe=(K>>>17|K<<15)^(K>>>19|K<<13)^K>>>10,G[ie]=G[ie-16]+ce+G[ie-7]+fe<<0;for(S=L&j,ie=0;ie<64;ie+=4)this.first?(this.is224?(h=300032,K=G[0]-1413257819,A=K-150054599<<0,F=K+24177077<<0):(h=704751109,K=G[0]-210244248,A=K-1521486534<<0,F=K+143694565<<0),this.first=!1):(ce=(y>>>2|y<<30)^(y>>>13|y<<19)^(y>>>22|y<<10),fe=(B>>>6|B<<26)^(B>>>11|B<<21)^(B>>>25|B<<7),h=y&L,Ce=h^y&j^S,u=B&O^~B&W,K=A+fe+u+p[ie]+G[ie],xe=ce+Ce,A=F+K<<0,F=K+xe<<0),ce=(F>>>2|F<<30)^(F>>>13|F<<19)^(F>>>22|F<<10),fe=(A>>>6|A<<26)^(A>>>11|A<<21)^(A>>>25|A<<7),E=F&y,Ce=E^F&L^h,u=A&B^~A&O,K=W+fe+u+p[ie+1]+G[ie+1],xe=ce+Ce,W=j+K<<0,j=K+xe<<0,ce=(j>>>2|j<<30)^(j>>>13|j<<19)^(j>>>22|j<<10),fe=(W>>>6|W<<26)^(W>>>11|W<<21)^(W>>>25|W<<7),I=j&F,Ce=I^j&y^E,u=W&A^~W&B,K=O+fe+u+p[ie+2]+G[ie+2],xe=ce+Ce,O=L+K<<0,L=K+xe<<0,ce=(L>>>2|L<<30)^(L>>>13|L<<19)^(L>>>22|L<<10),fe=(O>>>6|O<<26)^(O>>>11|O<<21)^(O>>>25|O<<7),S=L&j,Ce=S^L&F^I,u=O&W^~O&A,K=B+fe+u+p[ie+3]+G[ie+3],xe=ce+Ce,B=y+K<<0,y=K+xe<<0,this.chromeBugWorkAround=!0;this.h0=this.h0+y<<0,this.h1=this.h1+L<<0,this.h2=this.h2+j<<0,this.h3=this.h3+F<<0,this.h4=this.h4+B<<0,this.h5=this.h5+O<<0,this.h6=this.h6+W<<0,this.h7=this.h7+A<<0},V.prototype.hex=function(){this.finalize();var y=this.h0,L=this.h1,j=this.h2,F=this.h3,B=this.h4,O=this.h5,W=this.h6,A=this.h7,G=l[y>>28&15]+l[y>>24&15]+l[y>>20&15]+l[y>>16&15]+l[y>>12&15]+l[y>>8&15]+l[y>>4&15]+l[y&15]+l[L>>28&15]+l[L>>24&15]+l[L>>20&15]+l[L>>16&15]+l[L>>12&15]+l[L>>8&15]+l[L>>4&15]+l[L&15]+l[j>>28&15]+l[j>>24&15]+l[j>>20&15]+l[j>>16&15]+l[j>>12&15]+l[j>>8&15]+l[j>>4&15]+l[j&15]+l[F>>28&15]+l[F>>24&15]+l[F>>20&15]+l[F>>16&15]+l[F>>12&15]+l[F>>8&15]+l[F>>4&15]+l[F&15]+l[B>>28&15]+l[B>>24&15]+l[B>>20&15]+l[B>>16&15]+l[B>>12&15]+l[B>>8&15]+l[B>>4&15]+l[B&15]+l[O>>28&15]+l[O>>24&15]+l[O>>20&15]+l[O>>16&15]+l[O>>12&15]+l[O>>8&15]+l[O>>4&15]+l[O&15]+l[W>>28&15]+l[W>>24&15]+l[W>>20&15]+l[W>>16&15]+l[W>>12&15]+l[W>>8&15]+l[W>>4&15]+l[W&15];return this.is224||(G+=l[A>>28&15]+l[A>>24&15]+l[A>>20&15]+l[A>>16&15]+l[A>>12&15]+l[A>>8&15]+l[A>>4&15]+l[A&15]),G},V.prototype.toString=V.prototype.hex,V.prototype.digest=function(){this.finalize();var y=this.h0,L=this.h1,j=this.h2,F=this.h3,B=this.h4,O=this.h5,W=this.h6,A=this.h7,G=[y>>24&255,y>>16&255,y>>8&255,y&255,L>>24&255,L>>16&255,L>>8&255,L&255,j>>24&255,j>>16&255,j>>8&255,j&255,F>>24&255,F>>16&255,F>>8&255,F&255,B>>24&255,B>>16&255,B>>8&255,B&255,O>>24&255,O>>16&255,O>>8&255,O&255,W>>24&255,W>>16&255,W>>8&255,W&255];return this.is224||G.push(A>>24&255,A>>16&255,A>>8&255,A&255),G},V.prototype.array=V.prototype.digest,V.prototype.arrayBuffer=function(){this.finalize();var y=new ArrayBuffer(this.is224?28:32),L=new DataView(y);return L.setUint32(0,this.h0),L.setUint32(4,this.h1),L.setUint32(8,this.h2),L.setUint32(12,this.h3),L.setUint32(16,this.h4),L.setUint32(20,this.h5),L.setUint32(24,this.h6),this.is224||L.setUint32(28,this.h7),y};function pe(y,L,j){var F,B=typeof y;if(B==="string"){var O=[],W=y.length,A=0,G;for(F=0;F<W;++F)G=y.charCodeAt(F),G<128?O[A++]=G:G<2048?(O[A++]=192|G>>6,O[A++]=128|G&63):G<55296||G>=57344?(O[A++]=224|G>>12,O[A++]=128|G>>6&63,O[A++]=128|G&63):(G=65536+((G&1023)<<10|y.charCodeAt(++F)&1023),O[A++]=240|G>>18,O[A++]=128|G>>12&63,O[A++]=128|G>>6&63,O[A++]=128|G&63);y=O}else if(B==="object"){if(y===null)throw new Error(e);if(c&&y.constructor===ArrayBuffer)y=new Uint8Array(y);else if(!Array.isArray(y)&&(!c||!ArrayBuffer.isView(y)))throw new Error(e)}else throw new Error(e);y.length>64&&(y=new V(L,!0).update(y).array());var ie=[],ce=[];for(F=0;F<64;++F){var fe=y[F]||0;ie[F]=92^fe,ce[F]=54^fe}V.call(this,L,j),this.update(ce),this.oKeyPad=ie,this.inner=!0,this.sharedMemory=j}pe.prototype=new V,pe.prototype.finalize=function(){if(V.prototype.finalize.call(this),this.inner){this.inner=!1;var y=this.array();V.call(this,this.is224,this.sharedMemory),this.update(this.oKeyPad),this.update(y),V.prototype.finalize.call(this)}};var de=x();de.sha256=de,de.sha224=x(!0),de.sha256.hmac=q(),de.sha224.hmac=q(!0),s?t.exports=de:(r.sha256=de.sha256,r.sha224=de.sha224)})()})(_i);var Pf=_i.exports;const Tf=vf(Pf);class Gt extends Error{}Gt.prototype.name="InvalidTokenError";function Of(t){return decodeURIComponent(atob(t).replace(/(.)/g,(e,n)=>{let r=n.charCodeAt(0).toString(16).toUpperCase();return r.length<2&&(r="0"+r),"%"+r}))}function Lf(t){let e=t.replace(/-/g,"+").replace(/_/g,"/");switch(e.length%4){case 0:break;case 2:e+="==";break;case 3:e+="=";break;default:throw new Error("base64 string is not of the correct length")}try{return Of(e)}catch{return atob(e)}}function wr(t,e){if(typeof t!="string")throw new Gt("Invalid token specified: must be a string");e||(e={});const n=e.header===!0?0:1,r=t.split(".")[n];if(typeof r!="string")throw new Gt(`Invalid token specified: missing part #${n+1}`);let o;try{o=Lf(r)}catch(i){throw new Gt(`Invalid token specified: invalid base64 for part #${n+1} (${i.message})`)}try{return JSON.parse(o)}catch(i){throw new Gt(`Invalid token specified: invalid json for part #${n+1} (${i.message})`)}}if(typeof Promise>"u")throw Error("Keycloak requires an environment that supports Promises. Make sure that you include the appropriate polyfill.");function ki(t){if(!(this instanceof ki))throw new Error("The 'Keycloak' constructor must be invoked with 'new'.");for(var e=this,n,r=[],o,i={enable:!0,callbackList:[],interval:5},s=document.getElementsByTagName("script"),c=0;c<s.length;c++)(s[c].src.indexOf("keycloak.js")!==-1||s[c].src.indexOf("keycloak.min.js")!==-1)&&s[c].src.indexOf("version=")!==-1&&(e.iframeVersion=s[c].src.substring(s[c].src.indexOf("version=")+8).split("&")[0]);var l=!0,d=xe(console.info),f=xe(console.warn);e.init=function(u){if(e.didInitialize)throw new Error("A 'Keycloak' instance can only be initialized once.");e.didInitialize=!0,e.authenticated=!1,o=K();var h=["default","cordova","cordova-native"];if(u&&h.indexOf(u.adapter)>-1?n=ce(u.adapter):u&&typeof u.adapter=="object"?n=u.adapter:window.Cordova||window.cordova?n=ce("cordova"):n=ce(),u){if(typeof u.useNonce<"u"&&(l=u.useNonce),typeof u.checkLoginIframe<"u"&&(i.enable=u.checkLoginIframe),u.checkLoginIframeInterval&&(i.interval=u.checkLoginIframeInterval),u.onLoad==="login-required"&&(e.loginRequired=!0),u.responseMode)if(u.responseMode==="query"||u.responseMode==="fragment")e.responseMode=u.responseMode;else throw"Invalid value for responseMode";if(u.flow){switch(u.flow){case"standard":e.responseType="code";break;case"implicit":e.responseType="id_token token";break;case"hybrid":e.responseType="code id_token token";break;default:throw"Invalid value for flow"}e.flow=u.flow}if(u.timeSkew!=null&&(e.timeSkew=u.timeSkew),u.redirectUri&&(e.redirectUri=u.redirectUri),u.silentCheckSsoRedirectUri&&(e.silentCheckSsoRedirectUri=u.silentCheckSsoRedirectUri),typeof u.silentCheckSsoFallback=="boolean"?e.silentCheckSsoFallback=u.silentCheckSsoFallback:e.silentCheckSsoFallback=!0,u.pkceMethod){if(u.pkceMethod!=="S256")throw"Invalid value for pkceMethod";e.pkceMethod=u.pkceMethod}typeof u.enableLogging=="boolean"?e.enableLogging=u.enableLogging:e.enableLogging=!1,typeof u.scope=="string"&&(e.scope=u.scope),typeof u.acrValues=="string"&&(e.acrValues=u.acrValues),typeof u.messageReceiveTimeout=="number"&&u.messageReceiveTimeout>0?e.messageReceiveTimeout=u.messageReceiveTimeout:e.messageReceiveTimeout=1e4}e.responseMode||(e.responseMode="fragment"),e.responseType||(e.responseType="code",e.flow="standard");var E=B(),I=B();I.promise.then(function(){e.onReady&&e.onReady(e.authenticated),E.setSuccess(e.authenticated)}).catch(function(M){E.setError(M)});var S=V();function R(){var M=function(Q){Q||(z.prompt="none"),u&&u.locale&&(z.locale=u.locale),e.login(z).then(function(){I.setSuccess()}).catch(function(Ie){I.setError(Ie)})},N=function(){var Q=document.createElement("iframe"),Ie=e.createLoginUrl({prompt:"none",redirectUri:e.silentCheckSsoRedirectUri});Q.setAttribute("src",Ie),Q.setAttribute("sandbox","allow-scripts allow-same-origin"),Q.setAttribute("title","keycloak-silent-check-sso"),Q.style.display="none",document.body.appendChild(Q);var _e=function(ge){if(!(ge.origin!==window.location.origin||Q.contentWindow!==ge.source)){var qe=L(ge.data);q(qe,I),document.body.removeChild(Q),window.removeEventListener("message",_e)}};window.addEventListener("message",_e)},z={};switch(u.onLoad){case"check-sso":i.enable?W().then(function(){G().then(function(Q){Q?I.setSuccess():e.silentCheckSsoRedirectUri?N():M(!1)}).catch(function(Q){I.setError(Q)})}):e.silentCheckSsoRedirectUri?N():M(!1);break;case"login-required":M(!0);break;default:throw"Invalid value for onLoad"}}function k(){var M=L(window.location.href);if(M&&window.history.replaceState(window.history.state,null,M.newUrl),M&&M.valid)return W().then(function(){q(M,I)}).catch(function(N){I.setError(N)});u?u.token&&u.refreshToken?(de(u.token,u.refreshToken,u.idToken),i.enable?W().then(function(){G().then(function(N){N?(e.onAuthSuccess&&e.onAuthSuccess(),I.setSuccess(),A()):I.setSuccess()}).catch(function(N){I.setError(N)})}):e.updateToken(-1).then(function(){e.onAuthSuccess&&e.onAuthSuccess(),I.setSuccess()}).catch(function(N){e.onAuthError&&e.onAuthError(),u.onLoad?R():I.setError(N)})):u.onLoad?R():I.setSuccess():I.setSuccess()}function P(){var M=B(),N=function(){(document.readyState==="interactive"||document.readyState==="complete")&&(document.removeEventListener("readystatechange",N),M.setSuccess())};return document.addEventListener("readystatechange",N),N(),M.promise}return S.then(function(){P().then(ie).then(k).catch(function(M){E.setError(M)})}),S.catch(function(M){E.setError(M)}),E.promise},e.login=function(u){return n.login(u)};function p(u){var h=null,E=window.crypto||window.msCrypto;if(E&&E.getRandomValues&&window.Uint8Array)return h=new Uint8Array(u),E.getRandomValues(h),h;h=new Array(u);for(var I=0;I<h.length;I++)h[I]=Math.floor(256*Math.random());return h}function v(u){return w(u,"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789")}function w(u,h){for(var E=p(u),I=new Array(u),S=0;S<u;S++)I[S]=h.charCodeAt(E[S]%h.length);return String.fromCharCode.apply(null,I)}function _(u,h){switch(u){case"S256":var E=new Uint8Array(Tf.arrayBuffer(h)),I=bn.fromByteArray(E).replace(/\+/g,"-").replace(/\//g,"_").replace(/\=/g,"");return I;default:throw"Invalid value for pkceMethod"}}function x(u){var h={id_token:{acr:u}};return JSON.stringify(h)}e.createLoginUrl=function(u){var h=y(),E=y(),I=n.redirectUri(u),S={state:h,nonce:E,redirectUri:encodeURIComponent(I)};u&&u.prompt&&(S.prompt=u.prompt);var R;u&&u.action=="register"?R=e.endpoints.register():R=e.endpoints.authorize();var k=u&&u.scope||e.scope;k?k.indexOf("openid")===-1&&(k="openid "+k):k="openid";var P=R+"?client_id="+encodeURIComponent(e.clientId)+"&redirect_uri="+encodeURIComponent(I)+"&state="+encodeURIComponent(h)+"&response_mode="+encodeURIComponent(e.responseMode)+"&response_type="+encodeURIComponent(e.responseType)+"&scope="+encodeURIComponent(k);if(l&&(P=P+"&nonce="+encodeURIComponent(E)),u&&u.prompt&&(P+="&prompt="+encodeURIComponent(u.prompt)),u&&u.maxAge&&(P+="&max_age="+encodeURIComponent(u.maxAge)),u&&u.loginHint&&(P+="&login_hint="+encodeURIComponent(u.loginHint)),u&&u.idpHint&&(P+="&kc_idp_hint="+encodeURIComponent(u.idpHint)),u&&u.action&&u.action!="register"&&(P+="&kc_action="+encodeURIComponent(u.action)),u&&u.locale&&(P+="&ui_locales="+encodeURIComponent(u.locale)),u&&u.acr){var M=x(u.acr);P+="&claims="+encodeURIComponent(M)}if((u&&u.acrValues||e.acrValues)&&(P+="&acr_values="+encodeURIComponent(u.acrValues||e.acrValues)),e.pkceMethod){var N=v(96);S.pkceCodeVerifier=N;var z=_(e.pkceMethod,N);P+="&code_challenge="+z,P+="&code_challenge_method="+e.pkceMethod}return o.add(S),P},e.logout=function(u){return n.logout(u)},e.createLogoutUrl=function(u){var h=e.endpoints.logout()+"?client_id="+encodeURIComponent(e.clientId)+"&post_logout_redirect_uri="+encodeURIComponent(n.redirectUri(u,!1));return e.idToken&&(h+="&id_token_hint="+encodeURIComponent(e.idToken)),h},e.register=function(u){return n.register(u)},e.createRegisterUrl=function(u){return u||(u={}),u.action="register",e.createLoginUrl(u)},e.createAccountUrl=function(u){var h=C(),E=void 0;return typeof h<"u"&&(E=h+"/account?referrer="+encodeURIComponent(e.clientId)+"&referrer_uri="+encodeURIComponent(n.redirectUri(u))),E},e.accountManagement=function(){return n.accountManagement()},e.hasRealmRole=function(u){var h=e.realmAccess;return!!h&&h.roles.indexOf(u)>=0},e.hasResourceRole=function(u,h){if(!e.resourceAccess)return!1;var E=e.resourceAccess[h||e.clientId];return!!E&&E.roles.indexOf(u)>=0},e.loadUserProfile=function(){var u=C()+"/account",h=new XMLHttpRequest;h.open("GET",u,!0),h.setRequestHeader("Accept","application/json"),h.setRequestHeader("Authorization","bearer "+e.token);var E=B();return h.onreadystatechange=function(){h.readyState==4&&(h.status==200?(e.profile=JSON.parse(h.responseText),E.setSuccess(e.profile)):E.setError())},h.send(),E.promise},e.loadUserInfo=function(){var u=e.endpoints.userinfo(),h=new XMLHttpRequest;h.open("GET",u,!0),h.setRequestHeader("Accept","application/json"),h.setRequestHeader("Authorization","bearer "+e.token);var E=B();return h.onreadystatechange=function(){h.readyState==4&&(h.status==200?(e.userInfo=JSON.parse(h.responseText),E.setSuccess(e.userInfo)):E.setError())},h.send(),E.promise},e.isTokenExpired=function(u){if(!e.tokenParsed||!e.refreshToken&&e.flow!="implicit")throw"Not authenticated";if(e.timeSkew==null)return d("[KEYCLOAK] Unable to determine if token is expired as timeskew is not set"),!0;var h=e.tokenParsed.exp-Math.ceil(new Date().getTime()/1e3)+e.timeSkew;if(u){if(isNaN(u))throw"Invalid minValidity";h-=u}return h<0},e.updateToken=function(u){var h=B();if(!e.refreshToken)return h.setError(),h.promise;u=u||5;var E=function(){var S=!1;if(u==-1?(S=!0,d("[KEYCLOAK] Refreshing token: forced refresh")):(!e.tokenParsed||e.isTokenExpired(u))&&(S=!0,d("[KEYCLOAK] Refreshing token: token expired")),!S)h.setSuccess(!1);else{var R="grant_type=refresh_token&refresh_token="+e.refreshToken,k=e.endpoints.token();if(r.push(h),r.length==1){var P=new XMLHttpRequest;P.open("POST",k,!0),P.setRequestHeader("Content-type","application/x-www-form-urlencoded"),P.withCredentials=!0,R+="&client_id="+encodeURIComponent(e.clientId);var M=new Date().getTime();P.onreadystatechange=function(){if(P.readyState==4)if(P.status==200){d("[KEYCLOAK] Token refreshed"),M=(M+new Date().getTime())/2;var N=JSON.parse(P.responseText);de(N.access_token,N.refresh_token,N.id_token,M),e.onAuthRefreshSuccess&&e.onAuthRefreshSuccess();for(var z=r.pop();z!=null;z=r.pop())z.setSuccess(!0)}else{f("[KEYCLOAK] Failed to refresh token"),P.status==400&&e.clearToken(),e.onAuthRefreshError&&e.onAuthRefreshError();for(var z=r.pop();z!=null;z=r.pop())z.setError(!0)}},P.send(R)}}};if(i.enable){var I=G();I.then(function(){E()}).catch(function(S){h.setError(S)})}else E();return h.promise},e.clearToken=function(){e.token&&(de(null,null,null),e.onAuthLogout&&e.onAuthLogout(),e.loginRequired&&e.login())},e.setToken=de;function C(){if(typeof e.authServerUrl<"u")return e.authServerUrl.charAt(e.authServerUrl.length-1)=="/"?e.authServerUrl+"realms/"+encodeURIComponent(e.realm):e.authServerUrl+"/realms/"+encodeURIComponent(e.realm)}function $(){return window.location.origin?window.location.origin:window.location.protocol+"//"+window.location.hostname+(window.location.port?":"+window.location.port:"")}function q(u,h){var E=u.code,I=u.error,S=u.prompt,R=new Date().getTime();if(u.kc_action_status&&e.onActionUpdate&&e.onActionUpdate(u.kc_action_status),I){if(S!="none"){var k={error:I,error_description:u.error_description};e.onAuthError&&e.onAuthError(k),h&&h.setError(k)}else h&&h.setSuccess();return}else e.flow!="standard"&&(u.access_token||u.id_token)&&z(u.access_token,null,u.id_token,!0);if(e.flow!="implicit"&&E){var P="code="+E+"&grant_type=authorization_code",M=e.endpoints.token(),N=new XMLHttpRequest;N.open("POST",M,!0),N.setRequestHeader("Content-type","application/x-www-form-urlencoded"),P+="&client_id="+encodeURIComponent(e.clientId),P+="&redirect_uri="+u.redirectUri,u.pkceCodeVerifier&&(P+="&code_verifier="+u.pkceCodeVerifier),N.withCredentials=!0,N.onreadystatechange=function(){if(N.readyState==4)if(N.status==200){var Q=JSON.parse(N.responseText);z(Q.access_token,Q.refresh_token,Q.id_token,e.flow==="standard"),A()}else e.onAuthError&&e.onAuthError(),h&&h.setError()},N.send(P)}function z(Q,Ie,_e,ge){R=(R+new Date().getTime())/2,de(Q,Ie,_e,R),l&&(e.tokenParsed&&e.tokenParsed.nonce!=u.storedNonce||e.refreshTokenParsed&&e.refreshTokenParsed.nonce!=u.storedNonce||e.idTokenParsed&&e.idTokenParsed.nonce!=u.storedNonce)?(d("[KEYCLOAK] Invalid nonce, clearing token"),e.clearToken(),h&&h.setError()):ge&&(e.onAuthSuccess&&e.onAuthSuccess(),h&&h.setSuccess())}}function V(u){var h=B(),E;t?typeof t=="string"&&(E=t):E=location.origin+"/keycloak.json";function I(N){N?e.endpoints={authorize:function(){return N.authorization_endpoint},token:function(){return N.token_endpoint},logout:function(){if(!N.end_session_endpoint)throw"Not supported by the OIDC server";return N.end_session_endpoint},checkSessionIframe:function(){if(!N.check_session_iframe)throw"Not supported by the OIDC server";return N.check_session_iframe},register:function(){throw'Redirection to "Register user" page not supported in standard OIDC mode'},userinfo:function(){if(!N.userinfo_endpoint)throw"Not supported by the OIDC server";return N.userinfo_endpoint}}:e.endpoints={authorize:function(){return C()+"/protocol/openid-connect/auth"},token:function(){return C()+"/protocol/openid-connect/token"},logout:function(){return C()+"/protocol/openid-connect/logout"},checkSessionIframe:function(){var z=C()+"/protocol/openid-connect/login-status-iframe.html";return e.iframeVersion&&(z=z+"?version="+e.iframeVersion),z},thirdPartyCookiesIframe:function(){var z=C()+"/protocol/openid-connect/3p-cookies/step1.html";return e.iframeVersion&&(z=z+"?version="+e.iframeVersion),z},register:function(){return C()+"/protocol/openid-connect/registrations"},userinfo:function(){return C()+"/protocol/openid-connect/userinfo"}}}if(E){var S=new XMLHttpRequest;S.open("GET",E,!0),S.setRequestHeader("Accept","application/json"),S.onreadystatechange=function(){if(S.readyState==4)if(S.status==200||pe(S)){var N=JSON.parse(S.responseText);e.authServerUrl=N["auth-server-url"],e.realm=N.realm,e.clientId=N.resource,I(null),h.setSuccess()}else h.setError()},S.send()}else{if(!t.clientId)throw"clientId missing";e.clientId=t.clientId;var R=t.oidcProvider;if(R)if(typeof R=="string"){var M;R.charAt(R.length-1)=="/"?M=R+".well-known/openid-configuration":M=R+"/.well-known/openid-configuration";var S=new XMLHttpRequest;S.open("GET",M,!0),S.setRequestHeader("Accept","application/json"),S.onreadystatechange=function(){if(S.readyState==4)if(S.status==200||pe(S)){var z=JSON.parse(S.responseText);I(z),h.setSuccess()}else h.setError()},S.send()}else I(R),h.setSuccess();else{if(!t.url){for(var k=document.getElementsByTagName("script"),P=0;P<k.length;P++)if(k[P].src.match(/.*keycloak\.js/)){t.url=k[P].src.substr(0,k[P].src.indexOf("/js/keycloak.js"));break}}if(!t.realm)throw"realm missing";e.authServerUrl=t.url,e.realm=t.realm,I(null),h.setSuccess()}}return h.promise}function pe(u){return u.status==0&&u.responseText&&u.responseURL.startsWith("file:")}function de(u,h,E,I){if(e.tokenTimeoutHandle&&(clearTimeout(e.tokenTimeoutHandle),e.tokenTimeoutHandle=null),h?(e.refreshToken=h,e.refreshTokenParsed=wr(h)):(delete e.refreshToken,delete e.refreshTokenParsed),E?(e.idToken=E,e.idTokenParsed=wr(E)):(delete e.idToken,delete e.idTokenParsed),u){if(e.token=u,e.tokenParsed=wr(u),e.sessionId=e.tokenParsed.session_state,e.authenticated=!0,e.subject=e.tokenParsed.sub,e.realmAccess=e.tokenParsed.realm_access,e.resourceAccess=e.tokenParsed.resource_access,I&&(e.timeSkew=Math.floor(I/1e3)-e.tokenParsed.iat),e.timeSkew!=null&&(d("[KEYCLOAK] Estimated time difference between browser and server is "+e.timeSkew+" seconds"),e.onTokenExpired)){var S=(e.tokenParsed.exp-new Date().getTime()/1e3+e.timeSkew)*1e3;d("[KEYCLOAK] Token expires in "+Math.round(S/1e3)+" s"),S<=0?e.onTokenExpired():e.tokenTimeoutHandle=setTimeout(e.onTokenExpired,S)}}else delete e.token,delete e.tokenParsed,delete e.subject,delete e.realmAccess,delete e.resourceAccess,e.authenticated=!1}function y(){var u="0123456789abcdef",h=w(36,u).split("");h[14]="4",h[19]=u.substr(h[19]&3|8,1),h[8]=h[13]=h[18]=h[23]="-";var E=h.join("");return E}function L(u){var h=j(u);if(h){var E=o.get(h.state);return E&&(h.valid=!0,h.redirectUri=E.redirectUri,h.storedNonce=E.nonce,h.prompt=E.prompt,h.pkceCodeVerifier=E.pkceCodeVerifier),h}}function j(u){var h;switch(e.flow){case"standard":h=["code","state","session_state","kc_action_status","iss"];break;case"implicit":h=["access_token","token_type","id_token","state","session_state","expires_in","kc_action_status","iss"];break;case"hybrid":h=["access_token","token_type","id_token","code","state","session_state","expires_in","kc_action_status","iss"];break}h.push("error"),h.push("error_description"),h.push("error_uri");var E=u.indexOf("?"),I=u.indexOf("#"),S,R;if(e.responseMode==="query"&&E!==-1?(S=u.substring(0,E),R=F(u.substring(E+1,I!==-1?I:u.length),h),R.paramsString!==""&&(S+="?"+R.paramsString),I!==-1&&(S+=u.substring(I))):e.responseMode==="fragment"&&I!==-1&&(S=u.substring(0,I),R=F(u.substring(I+1),h),R.paramsString!==""&&(S+="#"+R.paramsString)),R&&R.oauthParams){if(e.flow==="standard"||e.flow==="hybrid"){if((R.oauthParams.code||R.oauthParams.error)&&R.oauthParams.state)return R.oauthParams.newUrl=S,R.oauthParams}else if(e.flow==="implicit"&&(R.oauthParams.access_token||R.oauthParams.error)&&R.oauthParams.state)return R.oauthParams.newUrl=S,R.oauthParams}}function F(u,h){for(var E=u.split("&"),I={paramsString:"",oauthParams:{}},S=0;S<E.length;S++){var R=E[S].indexOf("="),k=E[S].slice(0,R);h.indexOf(k)!==-1?I.oauthParams[k]=E[S].slice(R+1):(I.paramsString!==""&&(I.paramsString+="&"),I.paramsString+=E[S])}return I}function B(){var u={setSuccess:function(h){u.resolve(h)},setError:function(h){u.reject(h)}};return u.promise=new Promise(function(h,E){u.resolve=h,u.reject=E}),u}function O(u,h,E){var I=null,S=new Promise(function(R,k){I=setTimeout(function(){k({error:E||"Promise is not settled within timeout of "+h+"ms"})},h)});return Promise.race([u,S]).finally(function(){clearTimeout(I)})}function W(){var u=B();if(!i.enable||i.iframe)return u.setSuccess(),u.promise;var h=document.createElement("iframe");i.iframe=h,h.onload=function(){var S=e.endpoints.authorize();S.charAt(0)==="/"?i.iframeOrigin=$():i.iframeOrigin=S.substring(0,S.indexOf("/",8)),u.setSuccess()};var E=e.endpoints.checkSessionIframe();h.setAttribute("src",E),h.setAttribute("sandbox","allow-scripts allow-same-origin"),h.setAttribute("title","keycloak-session-iframe"),h.style.display="none",document.body.appendChild(h);var I=function(S){if(!(S.origin!==i.iframeOrigin||i.iframe.contentWindow!==S.source)&&(S.data=="unchanged"||S.data=="changed"||S.data=="error")){S.data!="unchanged"&&e.clearToken();for(var R=i.callbackList.splice(0,i.callbackList.length),k=R.length-1;k>=0;--k){var P=R[k];S.data=="error"?P.setError():P.setSuccess(S.data=="unchanged")}}};return window.addEventListener("message",I,!1),u.promise}function A(){i.enable&&e.token&&setTimeout(function(){G().then(function(u){u&&A()})},i.interval*1e3)}function G(){var u=B();if(i.iframe&&i.iframeOrigin){var h=e.clientId+" "+(e.sessionId?e.sessionId:"");i.callbackList.push(u);var E=i.iframeOrigin;i.callbackList.length==1&&i.iframe.contentWindow.postMessage(h,E)}else u.setSuccess();return u.promise}function ie(){var u=B();if(i.enable||e.silentCheckSsoRedirectUri){var h=document.createElement("iframe");h.setAttribute("src",e.endpoints.thirdPartyCookiesIframe()),h.setAttribute("sandbox","allow-scripts allow-same-origin"),h.setAttribute("title","keycloak-3p-check-iframe"),h.style.display="none",document.body.appendChild(h);var E=function(I){h.contentWindow===I.source&&(I.data!=="supported"&&I.data!=="unsupported"||(I.data==="unsupported"&&(f(`[KEYCLOAK] Your browser is blocking access to 3rd-party cookies, this means:
151
-
152
- - It is not possible to retrieve tokens without redirecting to the Keycloak server (a.k.a. no support for silent authentication).
153
- - It is not possible to automatically detect changes to the session status (such as the user logging out in another tab).
154
-
155
- For more information see: https://www.keycloak.org/docs/latest/securing_apps/#_modern_browsers`),i.enable=!1,e.silentCheckSsoFallback&&(e.silentCheckSsoRedirectUri=!1)),document.body.removeChild(h),window.removeEventListener("message",E),u.setSuccess()))};window.addEventListener("message",E,!1)}else u.setSuccess();return O(u.promise,e.messageReceiveTimeout,"Timeout when waiting for 3rd party check iframe message.")}function ce(u){if(!u||u=="default")return{login:function(k){return window.location.assign(e.createLoginUrl(k)),B().promise},logout:function(k){return window.location.replace(e.createLogoutUrl(k)),B().promise},register:function(k){return window.location.assign(e.createRegisterUrl(k)),B().promise},accountManagement:function(){var k=e.createAccountUrl();if(typeof k<"u")window.location.href=k;else throw"Not supported by the OIDC server";return B().promise},redirectUri:function(k,P){return k&&k.redirectUri?k.redirectUri:e.redirectUri?e.redirectUri:location.href}};if(u=="cordova"){i.enable=!1;var h=function(k,P,M){return window.cordova&&window.cordova.InAppBrowser?window.cordova.InAppBrowser.open(k,P,M):window.open(k,P,M)},E=function(k){return k&&k.cordovaOptions?Object.keys(k.cordovaOptions).reduce(function(P,M){return P[M]=k.cordovaOptions[M],P},{}):{}},I=function(k){return Object.keys(k).reduce(function(P,M){return P.push(M+"="+k[M]),P},[]).join(",")},S=function(k){var P=E(k);return P.location="no",k&&k.prompt=="none"&&(P.hidden="yes"),I(P)},R=function(){return e.redirectUri||"http://localhost"};return{login:function(k){var P=B(),M=S(k),N=e.createLoginUrl(k),z=h(N,"_blank",M),Q=!1,Ie=!1,_e=function(){Ie=!0,z.close()};return z.addEventListener("loadstart",function(ge){if(ge.url.indexOf(R())==0){var qe=L(ge.url);q(qe,P),_e(),Q=!0}}),z.addEventListener("loaderror",function(ge){if(!Q)if(ge.url.indexOf(R())==0){var qe=L(ge.url);q(qe,P),_e(),Q=!0}else P.setError(),_e()}),z.addEventListener("exit",function(ge){Ie||P.setError({reason:"closed_by_user"})}),P.promise},logout:function(k){var P=B(),M=e.createLogoutUrl(k),N=h(M,"_blank","location=no,hidden=yes,clearcache=yes"),z;return N.addEventListener("loadstart",function(Q){Q.url.indexOf(R())==0&&N.close()}),N.addEventListener("loaderror",function(Q){Q.url.indexOf(R())==0||(z=!0),N.close()}),N.addEventListener("exit",function(Q){z?P.setError():(e.clearToken(),P.setSuccess())}),P.promise},register:function(k){var P=B(),M=e.createRegisterUrl(),N=S(k),z=h(M,"_blank",N);return z.addEventListener("loadstart",function(Q){if(Q.url.indexOf(R())==0){z.close();var Ie=L(Q.url);q(Ie,P)}}),P.promise},accountManagement:function(){var k=e.createAccountUrl();if(typeof k<"u"){var P=h(k,"_blank","location=no");P.addEventListener("loadstart",function(M){M.url.indexOf(R())==0&&P.close()})}else throw"Not supported by the OIDC server"},redirectUri:function(k){return R()}}}if(u=="cordova-native")return i.enable=!1,{login:function(k){var P=B(),M=e.createLoginUrl(k);return universalLinks.subscribe("keycloak",function(N){universalLinks.unsubscribe("keycloak"),window.cordova.plugins.browsertab.close();var z=L(N.url);q(z,P)}),window.cordova.plugins.browsertab.openUrl(M),P.promise},logout:function(k){var P=B(),M=e.createLogoutUrl(k);return universalLinks.subscribe("keycloak",function(N){universalLinks.unsubscribe("keycloak"),window.cordova.plugins.browsertab.close(),e.clearToken(),P.setSuccess()}),window.cordova.plugins.browsertab.openUrl(M),P.promise},register:function(k){var P=B(),M=e.createRegisterUrl(k);return universalLinks.subscribe("keycloak",function(N){universalLinks.unsubscribe("keycloak"),window.cordova.plugins.browsertab.close();var z=L(N.url);q(z,P)}),window.cordova.plugins.browsertab.openUrl(M),P.promise},accountManagement:function(){var k=e.createAccountUrl();if(typeof k<"u")window.cordova.plugins.browsertab.openUrl(k);else throw"Not supported by the OIDC server"},redirectUri:function(k){return k&&k.redirectUri?k.redirectUri:e.redirectUri?e.redirectUri:"http://localhost"}};throw"invalid adapter type: "+u}var fe=function(){if(!(this instanceof fe))return new fe;localStorage.setItem("kc-test","test"),localStorage.removeItem("kc-test");var u=this;function h(){for(var E=new Date().getTime(),I=0;I<localStorage.length;I++){var S=localStorage.key(I);if(S&&S.indexOf("kc-callback-")==0){var R=localStorage.getItem(S);if(R)try{var k=JSON.parse(R).expires;(!k||k<E)&&localStorage.removeItem(S)}catch{localStorage.removeItem(S)}}}}u.get=function(E){if(E){var I="kc-callback-"+E,S=localStorage.getItem(I);return S&&(localStorage.removeItem(I),S=JSON.parse(S)),h(),S}},u.add=function(E){h();var I="kc-callback-"+E.state;E.expires=new Date().getTime()+60*60*1e3,localStorage.setItem(I,JSON.stringify(E))}},Ce=function(){if(!(this instanceof Ce))return new Ce;var u=this;u.get=function(S){if(S){var R=E("kc-callback-"+S);if(I("kc-callback-"+S,"",h(-100)),R)return JSON.parse(R)}},u.add=function(S){I("kc-callback-"+S.state,JSON.stringify(S),h(60))},u.removeItem=function(S){I(S,"",h(-100))};var h=function(S){var R=new Date;return R.setTime(R.getTime()+S*60*1e3),R},E=function(S){for(var R=S+"=",k=document.cookie.split(";"),P=0;P<k.length;P++){for(var M=k[P];M.charAt(0)==" ";)M=M.substring(1);if(M.indexOf(R)==0)return M.substring(R.length,M.length)}return""},I=function(S,R,k){var P=S+"="+R+"; expires="+k.toUTCString()+"; ";document.cookie=P}};function K(){try{return new fe}catch{}return new Ce}function xe(u){return function(){e.enableLogging&&u.apply(console,Array.prototype.slice.call(arguments))}}}async function Bf(){const t="silent-login.html",e=await fetch(location.origin+"/"+t).then(async n=>n.status!==200?!1:(await n.text()).includes("silent-login-iframe-result")).catch(()=>!1);if(!e){const n=`O arquivo ${t} não foi localizado no projeto ou não possui o conteúdo correto!`;console.warn(n),document.documentElement.setAttribute("data-app-message",n)}return e}let Ff;function Rf(t){if(!t)return Ff;const e=new ki(t),n={},r=async(s={},c)=>{if(await Bf())return s.onLoad==="login-required"&&document.documentElement.setAttribute("data-app-message","Autorizando..."),e.init(s).then(async d=>{d&&await o(),c&&typeof c=="function"&&c(),document.documentElement.classList.add("app-mounted")}).catch(d=>{console.error(d),document.documentElement.setAttribute("data-app-message","Não foi possível conectar no servidor de autenticação.")})},o=async()=>{const s=await e.loadUserInfo();n.email=s.email??"",n.emailVerified=s.email_verified===!0,n.firstName=s.given_name??"",n.lastName=s.family_name??"",n.name=s.name??"",n.sub=s.sub??"",n.username=s.preferred_username??"",n.roles=[...s.role??[]],n.groups=[...s.group??[]],n.IsInRole=c=>n.roles.includes(c),sessionStorage.setItem("name",n.name)};return{Instance:e,User:n,Init:r,Logout:()=>{e.logout({redirectUri:location.origin}).then(()=>{sessionStorage.removeItem("name")})}}}const $f=t=>Rf(t);class Er{constructor(e=null){Me(this,"errors",[]);Me(this,"_value",null);Me(this,"_httpStatusCode");this._value=e,this._httpStatusCode=200}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){this.errors.push(e),this._httpStatusCode===200&&(this._httpStatusCode=400)}WithErrors(e){e.forEach(n=>this.WithError(n))}}function xi(t,e){return function(){return t.apply(e,arguments)}}const{toString:Nf}=Object.prototype,{getPrototypeOf:Sr}=Object,vn=(t=>e=>{const n=Nf.call(e);return t[n]||(t[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),ze=t=>(t=t.toLowerCase(),e=>vn(e)===t),wn=t=>e=>typeof e===t,{isArray:wt}=Array,Jt=wn("undefined");function Df(t){return t!==null&&!Jt(t)&&t.constructor!==null&&!Jt(t.constructor)&&De(t.constructor.isBuffer)&&t.constructor.isBuffer(t)}const Ii=ze("ArrayBuffer");function Mf(t){let e;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?e=ArrayBuffer.isView(t):e=t&&t.buffer&&Ii(t.buffer),e}const Uf=wn("string"),De=wn("function"),Pi=wn("number"),En=t=>t!==null&&typeof t=="object",Hf=t=>t===!0||t===!1,Sn=t=>{if(vn(t)!=="object")return!1;const e=Sr(t);return(e===null||e===Object.prototype||Object.getPrototypeOf(e)===null)&&!(Symbol.toStringTag in t)&&!(Symbol.iterator in t)},jf=ze("Date"),Vf=ze("File"),Kf=ze("Blob"),zf=ze("FileList"),Wf=t=>En(t)&&De(t.pipe),qf=t=>{let e;return t&&(typeof FormData=="function"&&t instanceof FormData||De(t.append)&&((e=vn(t))==="formdata"||e==="object"&&De(t.toString)&&t.toString()==="[object FormData]"))},Gf=ze("URLSearchParams"),Jf=t=>t.trim?t.trim():t.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function Yt(t,e,{allOwnKeys:n=!1}={}){if(t===null||typeof t>"u")return;let r,o;if(typeof t!="object"&&(t=[t]),wt(t))for(r=0,o=t.length;r<o;r++)e.call(null,t[r],r,t);else{const i=n?Object.getOwnPropertyNames(t):Object.keys(t),s=i.length;let c;for(r=0;r<s;r++)c=i[r],e.call(null,t[c],c,t)}}function Ti(t,e){e=e.toLowerCase();const n=Object.keys(t);let r=n.length,o;for(;r-- >0;)if(o=n[r],e===o.toLowerCase())return o;return null}const Oi=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,Li=t=>!Jt(t)&&t!==Oi;function Cr(){const{caseless:t}=Li(this)&&this||{},e={},n=(r,o)=>{const i=t&&Ti(e,o)||o;Sn(e[i])&&Sn(r)?e[i]=Cr(e[i],r):Sn(r)?e[i]=Cr({},r):wt(r)?e[i]=r.slice():e[i]=r};for(let r=0,o=arguments.length;r<o;r++)arguments[r]&&Yt(arguments[r],n);return e}const Yf=(t,e,n,{allOwnKeys:r}={})=>(Yt(e,(o,i)=>{n&&De(o)?t[i]=xi(o,n):t[i]=o},{allOwnKeys:r}),t),Xf=t=>(t.charCodeAt(0)===65279&&(t=t.slice(1)),t),Zf=(t,e,n,r)=>{t.prototype=Object.create(e.prototype,r),t.prototype.constructor=t,Object.defineProperty(t,"super",{value:e.prototype}),n&&Object.assign(t.prototype,n)},Qf=(t,e,n,r)=>{let o,i,s;const c={};if(e=e||{},t==null)return e;do{for(o=Object.getOwnPropertyNames(t),i=o.length;i-- >0;)s=o[i],(!r||r(s,t,e))&&!c[s]&&(e[s]=t[s],c[s]=!0);t=n!==!1&&Sr(t)}while(t&&(!n||n(t,e))&&t!==Object.prototype);return e},ep=(t,e,n)=>{t=String(t),(n===void 0||n>t.length)&&(n=t.length),n-=e.length;const r=t.indexOf(e,n);return r!==-1&&r===n},tp=t=>{if(!t)return null;if(wt(t))return t;let e=t.length;if(!Pi(e))return null;const n=new Array(e);for(;e-- >0;)n[e]=t[e];return n},np=(t=>e=>t&&e instanceof t)(typeof Uint8Array<"u"&&Sr(Uint8Array)),rp=(t,e)=>{const r=(t&&t[Symbol.iterator]).call(t);let o;for(;(o=r.next())&&!o.done;){const i=o.value;e.call(t,i[0],i[1])}},op=(t,e)=>{let n;const r=[];for(;(n=t.exec(e))!==null;)r.push(n);return r},ip=ze("HTMLFormElement"),sp=t=>t.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,r,o){return r.toUpperCase()+o}),Bi=(({hasOwnProperty:t})=>(e,n)=>t.call(e,n))(Object.prototype),ap=ze("RegExp"),Fi=(t,e)=>{const n=Object.getOwnPropertyDescriptors(t),r={};Yt(n,(o,i)=>{let s;(s=e(o,i,t))!==!1&&(r[i]=s||o)}),Object.defineProperties(t,r)},lp=t=>{Fi(t,(e,n)=>{if(De(t)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const r=t[n];if(De(r)){if(e.enumerable=!1,"writable"in e){e.writable=!1;return}e.set||(e.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")})}})},cp=(t,e)=>{const n={},r=o=>{o.forEach(i=>{n[i]=!0})};return wt(t)?r(t):r(String(t).split(e)),n},up=()=>{},dp=(t,e)=>(t=+t,Number.isFinite(t)?t:e),_r="abcdefghijklmnopqrstuvwxyz",Ri="0123456789",$i={DIGIT:Ri,ALPHA:_r,ALPHA_DIGIT:_r+_r.toUpperCase()+Ri},fp=(t=16,e=$i.ALPHA_DIGIT)=>{let n="";const{length:r}=e;for(;t--;)n+=e[Math.random()*r|0];return n};function pp(t){return!!(t&&De(t.append)&&t[Symbol.toStringTag]==="FormData"&&t[Symbol.iterator])}const mp=t=>{const e=new Array(10),n=(r,o)=>{if(En(r)){if(e.indexOf(r)>=0)return;if(!("toJSON"in r)){e[o]=r;const i=wt(r)?[]:{};return Yt(r,(s,c)=>{const l=n(s,o+1);!Jt(l)&&(i[c]=l)}),e[o]=void 0,i}}return r};return n(t,0)},hp=ze("AsyncFunction"),b={isArray:wt,isArrayBuffer:Ii,isBuffer:Df,isFormData:qf,isArrayBufferView:Mf,isString:Uf,isNumber:Pi,isBoolean:Hf,isObject:En,isPlainObject:Sn,isUndefined:Jt,isDate:jf,isFile:Vf,isBlob:Kf,isRegExp:ap,isFunction:De,isStream:Wf,isURLSearchParams:Gf,isTypedArray:np,isFileList:zf,forEach:Yt,merge:Cr,extend:Yf,trim:Jf,stripBOM:Xf,inherits:Zf,toFlatObject:Qf,kindOf:vn,kindOfTest:ze,endsWith:ep,toArray:tp,forEachEntry:rp,matchAll:op,isHTMLForm:ip,hasOwnProperty:Bi,hasOwnProp:Bi,reduceDescriptors:Fi,freezeMethods:lp,toObjectSet:cp,toCamelCase:sp,noop:up,toFiniteNumber:dp,findKey:Ti,global:Oi,isContextDefined:Li,ALPHABET:$i,generateString:fp,isSpecCompliantForm:pp,toJSONObject:mp,isAsyncFn:hp,isThenable:t=>t&&(En(t)||De(t))&&De(t.then)&&De(t.catch)};function ne(t,e,n,r,o){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=t,this.name="AxiosError",e&&(this.code=e),n&&(this.config=n),r&&(this.request=r),o&&(this.response=o)}b.inherits(ne,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:b.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const Ni=ne.prototype,Di={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(t=>{Di[t]={value:t}}),Object.defineProperties(ne,Di),Object.defineProperty(Ni,"isAxiosError",{value:!0}),ne.from=(t,e,n,r,o,i)=>{const s=Object.create(Ni);return b.toFlatObject(t,s,function(l){return l!==Error.prototype},c=>c!=="isAxiosError"),ne.call(s,t.message,e,n,r,o),s.cause=t,s.name=t.name,i&&Object.assign(s,i),s};const gp=null;function Ar(t){return b.isPlainObject(t)||b.isArray(t)}function Mi(t){return b.endsWith(t,"[]")?t.slice(0,-2):t}function Ui(t,e,n){return t?t.concat(e).map(function(o,i){return o=Mi(o),!n&&i?"["+o+"]":o}).join(n?".":""):e}function yp(t){return b.isArray(t)&&!t.some(Ar)}const bp=b.toFlatObject(b,{},null,function(e){return/^is[A-Z]/.test(e)});function Cn(t,e,n){if(!b.isObject(t))throw new TypeError("target must be an object");e=e||new FormData,n=b.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(x,C){return!b.isUndefined(C[x])});const r=n.metaTokens,o=n.visitor||f,i=n.dots,s=n.indexes,l=(n.Blob||typeof Blob<"u"&&Blob)&&b.isSpecCompliantForm(e);if(!b.isFunction(o))throw new TypeError("visitor must be a function");function d(_){if(_===null)return"";if(b.isDate(_))return _.toISOString();if(!l&&b.isBlob(_))throw new ne("Blob is not supported. Use a Buffer instead.");return b.isArrayBuffer(_)||b.isTypedArray(_)?l&&typeof Blob=="function"?new Blob([_]):Buffer.from(_):_}function f(_,x,C){let $=_;if(_&&!C&&typeof _=="object"){if(b.endsWith(x,"{}"))x=r?x:x.slice(0,-2),_=JSON.stringify(_);else if(b.isArray(_)&&yp(_)||(b.isFileList(_)||b.endsWith(x,"[]"))&&($=b.toArray(_)))return x=Mi(x),$.forEach(function(V,pe){!(b.isUndefined(V)||V===null)&&e.append(s===!0?Ui([x],pe,i):s===null?x:x+"[]",d(V))}),!1}return Ar(_)?!0:(e.append(Ui(C,x,i),d(_)),!1)}const p=[],v=Object.assign(bp,{defaultVisitor:f,convertValue:d,isVisitable:Ar});function w(_,x){if(!b.isUndefined(_)){if(p.indexOf(_)!==-1)throw Error("Circular reference detected in "+x.join("."));p.push(_),b.forEach(_,function($,q){(!(b.isUndefined($)||$===null)&&o.call(e,$,b.isString(q)?q.trim():q,x,v))===!0&&w($,x?x.concat(q):[q])}),p.pop()}}if(!b.isObject(t))throw new TypeError("data must be an object");return w(t),e}function Hi(t){const e={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(t).replace(/[!'()~]|%20|%00/g,function(r){return e[r]})}function kr(t,e){this._pairs=[],t&&Cn(t,this,e)}const ji=kr.prototype;ji.append=function(e,n){this._pairs.push([e,n])},ji.toString=function(e){const n=e?function(r){return e.call(this,r,Hi)}:Hi;return this._pairs.map(function(o){return n(o[0])+"="+n(o[1])},"").join("&")};function vp(t){return encodeURIComponent(t).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function Vi(t,e,n){if(!e)return t;const r=n&&n.encode||vp,o=n&&n.serialize;let i;if(o?i=o(e,n):i=b.isURLSearchParams(e)?e.toString():new kr(e,n).toString(r),i){const s=t.indexOf("#");s!==-1&&(t=t.slice(0,s)),t+=(t.indexOf("?")===-1?"?":"&")+i}return t}class Ki{constructor(){this.handlers=[]}use(e,n,r){return this.handlers.push({fulfilled:e,rejected:n,synchronous:r?r.synchronous:!1,runWhen:r?r.runWhen:null}),this.handlers.length-1}eject(e){this.handlers[e]&&(this.handlers[e]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(e){b.forEach(this.handlers,function(r){r!==null&&e(r)})}}const zi={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},wp={isBrowser:!0,classes:{URLSearchParams:typeof URLSearchParams<"u"?URLSearchParams:kr,FormData:typeof FormData<"u"?FormData:null,Blob:typeof Blob<"u"?Blob:null},protocols:["http","https","file","blob","url","data"]},Wi=typeof window<"u"&&typeof document<"u",Ep=(t=>Wi&&["ReactNative","NativeScript","NS"].indexOf(t)<0)(typeof navigator<"u"&&navigator.product),Sp=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",We={...Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:Wi,hasStandardBrowserEnv:Ep,hasStandardBrowserWebWorkerEnv:Sp},Symbol.toStringTag,{value:"Module"})),...wp};function Cp(t,e){return Cn(t,new We.classes.URLSearchParams,Object.assign({visitor:function(n,r,o,i){return We.isNode&&b.isBuffer(n)?(this.append(r,n.toString("base64")),!1):i.defaultVisitor.apply(this,arguments)}},e))}function _p(t){return b.matchAll(/\w+|\[(\w*)]/g,t).map(e=>e[0]==="[]"?"":e[1]||e[0])}function Ap(t){const e={},n=Object.keys(t);let r;const o=n.length;let i;for(r=0;r<o;r++)i=n[r],e[i]=t[i];return e}function qi(t){function e(n,r,o,i){let s=n[i++];if(s==="__proto__")return!0;const c=Number.isFinite(+s),l=i>=n.length;return s=!s&&b.isArray(o)?o.length:s,l?(b.hasOwnProp(o,s)?o[s]=[o[s],r]:o[s]=r,!c):((!o[s]||!b.isObject(o[s]))&&(o[s]=[]),e(n,r,o[s],i)&&b.isArray(o[s])&&(o[s]=Ap(o[s])),!c)}if(b.isFormData(t)&&b.isFunction(t.entries)){const n={};return b.forEachEntry(t,(r,o)=>{e(_p(r),o,n,0)}),n}return null}function kp(t,e,n){if(b.isString(t))try{return(e||JSON.parse)(t),b.trim(t)}catch(r){if(r.name!=="SyntaxError")throw r}return(n||JSON.stringify)(t)}const xr={transitional:zi,adapter:["xhr","http"],transformRequest:[function(e,n){const r=n.getContentType()||"",o=r.indexOf("application/json")>-1,i=b.isObject(e);if(i&&b.isHTMLForm(e)&&(e=new FormData(e)),b.isFormData(e))return o&&o?JSON.stringify(qi(e)):e;if(b.isArrayBuffer(e)||b.isBuffer(e)||b.isStream(e)||b.isFile(e)||b.isBlob(e))return e;if(b.isArrayBufferView(e))return e.buffer;if(b.isURLSearchParams(e))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let c;if(i){if(r.indexOf("application/x-www-form-urlencoded")>-1)return Cp(e,this.formSerializer).toString();if((c=b.isFileList(e))||r.indexOf("multipart/form-data")>-1){const l=this.env&&this.env.FormData;return Cn(c?{"files[]":e}:e,l&&new l,this.formSerializer)}}return i||o?(n.setContentType("application/json",!1),kp(e)):e}],transformResponse:[function(e){const n=this.transitional||xr.transitional,r=n&&n.forcedJSONParsing,o=this.responseType==="json";if(e&&b.isString(e)&&(r&&!this.responseType||o)){const s=!(n&&n.silentJSONParsing)&&o;try{return JSON.parse(e)}catch(c){if(s)throw c.name==="SyntaxError"?ne.from(c,ne.ERR_BAD_RESPONSE,this,null,this.response):c}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:We.classes.FormData,Blob:We.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};b.forEach(["delete","get","head","post","put","patch"],t=>{xr.headers[t]={}});const Ir=xr,xp=b.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),Ip=t=>{const e={};let n,r,o;return t&&t.split(`
156
- `).forEach(function(s){o=s.indexOf(":"),n=s.substring(0,o).trim().toLowerCase(),r=s.substring(o+1).trim(),!(!n||e[n]&&xp[n])&&(n==="set-cookie"?e[n]?e[n].push(r):e[n]=[r]:e[n]=e[n]?e[n]+", "+r:r)}),e},Gi=Symbol("internals");function Xt(t){return t&&String(t).trim().toLowerCase()}function _n(t){return t===!1||t==null?t:b.isArray(t)?t.map(_n):String(t)}function Pp(t){const e=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let r;for(;r=n.exec(t);)e[r[1]]=r[2];return e}const Tp=t=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(t.trim());function Pr(t,e,n,r,o){if(b.isFunction(r))return r.call(this,e,n);if(o&&(e=n),!!b.isString(e)){if(b.isString(r))return e.indexOf(r)!==-1;if(b.isRegExp(r))return r.test(e)}}function Op(t){return t.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(e,n,r)=>n.toUpperCase()+r)}function Lp(t,e){const n=b.toCamelCase(" "+e);["get","set","has"].forEach(r=>{Object.defineProperty(t,r+n,{value:function(o,i,s){return this[r].call(this,e,o,i,s)},configurable:!0})})}class An{constructor(e){e&&this.set(e)}set(e,n,r){const o=this;function i(c,l,d){const f=Xt(l);if(!f)throw new Error("header name must be a non-empty string");const p=b.findKey(o,f);(!p||o[p]===void 0||d===!0||d===void 0&&o[p]!==!1)&&(o[p||l]=_n(c))}const s=(c,l)=>b.forEach(c,(d,f)=>i(d,f,l));return b.isPlainObject(e)||e instanceof this.constructor?s(e,n):b.isString(e)&&(e=e.trim())&&!Tp(e)?s(Ip(e),n):e!=null&&i(n,e,r),this}get(e,n){if(e=Xt(e),e){const r=b.findKey(this,e);if(r){const o=this[r];if(!n)return o;if(n===!0)return Pp(o);if(b.isFunction(n))return n.call(this,o,r);if(b.isRegExp(n))return n.exec(o);throw new TypeError("parser must be boolean|regexp|function")}}}has(e,n){if(e=Xt(e),e){const r=b.findKey(this,e);return!!(r&&this[r]!==void 0&&(!n||Pr(this,this[r],r,n)))}return!1}delete(e,n){const r=this;let o=!1;function i(s){if(s=Xt(s),s){const c=b.findKey(r,s);c&&(!n||Pr(r,r[c],c,n))&&(delete r[c],o=!0)}}return b.isArray(e)?e.forEach(i):i(e),o}clear(e){const n=Object.keys(this);let r=n.length,o=!1;for(;r--;){const i=n[r];(!e||Pr(this,this[i],i,e,!0))&&(delete this[i],o=!0)}return o}normalize(e){const n=this,r={};return b.forEach(this,(o,i)=>{const s=b.findKey(r,i);if(s){n[s]=_n(o),delete n[i];return}const c=e?Op(i):String(i).trim();c!==i&&delete n[i],n[c]=_n(o),r[c]=!0}),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){const n=Object.create(null);return b.forEach(this,(r,o)=>{r!=null&&r!==!1&&(n[o]=e&&b.isArray(r)?r.join(", "):r)}),n}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([e,n])=>e+": "+n).join(`
157
- `)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(e){return e instanceof this?e:new this(e)}static concat(e,...n){const r=new this(e);return n.forEach(o=>r.set(o)),r}static accessor(e){const r=(this[Gi]=this[Gi]={accessors:{}}).accessors,o=this.prototype;function i(s){const c=Xt(s);r[c]||(Lp(o,s),r[c]=!0)}return b.isArray(e)?e.forEach(i):i(e),this}}An.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),b.reduceDescriptors(An.prototype,({value:t},e)=>{let n=e[0].toUpperCase()+e.slice(1);return{get:()=>t,set(r){this[n]=r}}}),b.freezeMethods(An);const Je=An;function Tr(t,e){const n=this||Ir,r=e||n,o=Je.from(r.headers);let i=r.data;return b.forEach(t,function(c){i=c.call(n,i,o.normalize(),e?e.status:void 0)}),o.normalize(),i}function Ji(t){return!!(t&&t.__CANCEL__)}function Zt(t,e,n){ne.call(this,t??"canceled",ne.ERR_CANCELED,e,n),this.name="CanceledError"}b.inherits(Zt,ne,{__CANCEL__:!0});function Bp(t,e,n){const r=n.config.validateStatus;!n.status||!r||r(n.status)?t(n):e(new ne("Request failed with status code "+n.status,[ne.ERR_BAD_REQUEST,ne.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}const Fp=We.hasStandardBrowserEnv?{write(t,e,n,r,o,i){const s=[t+"="+encodeURIComponent(e)];b.isNumber(n)&&s.push("expires="+new Date(n).toGMTString()),b.isString(r)&&s.push("path="+r),b.isString(o)&&s.push("domain="+o),i===!0&&s.push("secure"),document.cookie=s.join("; ")},read(t){const e=document.cookie.match(new RegExp("(^|;\\s*)("+t+")=([^;]*)"));return e?decodeURIComponent(e[3]):null},remove(t){this.write(t,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function Rp(t){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(t)}function $p(t,e){return e?t.replace(/\/?\/$/,"")+"/"+e.replace(/^\/+/,""):t}function Yi(t,e){return t&&!Rp(e)?$p(t,e):e}const Np=We.hasStandardBrowserEnv?function(){const e=/(msie|trident)/i.test(navigator.userAgent),n=document.createElement("a");let r;function o(i){let s=i;return e&&(n.setAttribute("href",s),s=n.href),n.setAttribute("href",s),{href:n.href,protocol:n.protocol?n.protocol.replace(/:$/,""):"",host:n.host,search:n.search?n.search.replace(/^\?/,""):"",hash:n.hash?n.hash.replace(/^#/,""):"",hostname:n.hostname,port:n.port,pathname:n.pathname.charAt(0)==="/"?n.pathname:"/"+n.pathname}}return r=o(window.location.href),function(s){const c=b.isString(s)?o(s):s;return c.protocol===r.protocol&&c.host===r.host}}():function(){return function(){return!0}}();function Dp(t){const e=/^([-+\w]{1,25})(:?\/\/|:)/.exec(t);return e&&e[1]||""}function Mp(t,e){t=t||10;const n=new Array(t),r=new Array(t);let o=0,i=0,s;return e=e!==void 0?e:1e3,function(l){const d=Date.now(),f=r[i];s||(s=d),n[o]=l,r[o]=d;let p=i,v=0;for(;p!==o;)v+=n[p++],p=p%t;if(o=(o+1)%t,o===i&&(i=(i+1)%t),d-s<e)return;const w=f&&d-f;return w?Math.round(v*1e3/w):void 0}}function Xi(t,e){let n=0;const r=Mp(50,250);return o=>{const i=o.loaded,s=o.lengthComputable?o.total:void 0,c=i-n,l=r(c),d=i<=s;n=i;const f={loaded:i,total:s,progress:s?i/s:void 0,bytes:c,rate:l||void 0,estimated:l&&s&&d?(s-i)/l:void 0,event:o};f[e?"download":"upload"]=!0,t(f)}}const Or={http:gp,xhr:typeof XMLHttpRequest<"u"&&function(t){return new Promise(function(n,r){let o=t.data;const i=Je.from(t.headers).normalize();let{responseType:s,withXSRFToken:c}=t,l;function d(){t.cancelToken&&t.cancelToken.unsubscribe(l),t.signal&&t.signal.removeEventListener("abort",l)}let f;if(b.isFormData(o)){if(We.hasStandardBrowserEnv||We.hasStandardBrowserWebWorkerEnv)i.setContentType(!1);else if((f=i.getContentType())!==!1){const[x,...C]=f?f.split(";").map($=>$.trim()).filter(Boolean):[];i.setContentType([x||"multipart/form-data",...C].join("; "))}}let p=new XMLHttpRequest;if(t.auth){const x=t.auth.username||"",C=t.auth.password?unescape(encodeURIComponent(t.auth.password)):"";i.set("Authorization","Basic "+btoa(x+":"+C))}const v=Yi(t.baseURL,t.url);p.open(t.method.toUpperCase(),Vi(v,t.params,t.paramsSerializer),!0),p.timeout=t.timeout;function w(){if(!p)return;const x=Je.from("getAllResponseHeaders"in p&&p.getAllResponseHeaders()),$={data:!s||s==="text"||s==="json"?p.responseText:p.response,status:p.status,statusText:p.statusText,headers:x,config:t,request:p};Bp(function(V){n(V),d()},function(V){r(V),d()},$),p=null}if("onloadend"in p?p.onloadend=w:p.onreadystatechange=function(){!p||p.readyState!==4||p.status===0&&!(p.responseURL&&p.responseURL.indexOf("file:")===0)||setTimeout(w)},p.onabort=function(){p&&(r(new ne("Request aborted",ne.ECONNABORTED,t,p)),p=null)},p.onerror=function(){r(new ne("Network Error",ne.ERR_NETWORK,t,p)),p=null},p.ontimeout=function(){let C=t.timeout?"timeout of "+t.timeout+"ms exceeded":"timeout exceeded";const $=t.transitional||zi;t.timeoutErrorMessage&&(C=t.timeoutErrorMessage),r(new ne(C,$.clarifyTimeoutError?ne.ETIMEDOUT:ne.ECONNABORTED,t,p)),p=null},We.hasStandardBrowserEnv&&(c&&b.isFunction(c)&&(c=c(t)),c||c!==!1&&Np(v))){const x=t.xsrfHeaderName&&t.xsrfCookieName&&Fp.read(t.xsrfCookieName);x&&i.set(t.xsrfHeaderName,x)}o===void 0&&i.setContentType(null),"setRequestHeader"in p&&b.forEach(i.toJSON(),function(C,$){p.setRequestHeader($,C)}),b.isUndefined(t.withCredentials)||(p.withCredentials=!!t.withCredentials),s&&s!=="json"&&(p.responseType=t.responseType),typeof t.onDownloadProgress=="function"&&p.addEventListener("progress",Xi(t.onDownloadProgress,!0)),typeof t.onUploadProgress=="function"&&p.upload&&p.upload.addEventListener("progress",Xi(t.onUploadProgress)),(t.cancelToken||t.signal)&&(l=x=>{p&&(r(!x||x.type?new Zt(null,t,p):x),p.abort(),p=null)},t.cancelToken&&t.cancelToken.subscribe(l),t.signal&&(t.signal.aborted?l():t.signal.addEventListener("abort",l)));const _=Dp(v);if(_&&We.protocols.indexOf(_)===-1){r(new ne("Unsupported protocol "+_+":",ne.ERR_BAD_REQUEST,t));return}p.send(o||null)})}};b.forEach(Or,(t,e)=>{if(t){try{Object.defineProperty(t,"name",{value:e})}catch{}Object.defineProperty(t,"adapterName",{value:e})}});const Zi=t=>`- ${t}`,Up=t=>b.isFunction(t)||t===null||t===!1,Qi={getAdapter:t=>{t=b.isArray(t)?t:[t];const{length:e}=t;let n,r;const o={};for(let i=0;i<e;i++){n=t[i];let s;if(r=n,!Up(n)&&(r=Or[(s=String(n)).toLowerCase()],r===void 0))throw new ne(`Unknown adapter '${s}'`);if(r)break;o[s||"#"+i]=r}if(!r){const i=Object.entries(o).map(([c,l])=>`adapter ${c} `+(l===!1?"is not supported by the environment":"is not available in the build"));let s=e?i.length>1?`since :
158
- `+i.map(Zi).join(`
159
- `):" "+Zi(i[0]):"as no adapter specified";throw new ne("There is no suitable adapter to dispatch the request "+s,"ERR_NOT_SUPPORT")}return r},adapters:Or};function Lr(t){if(t.cancelToken&&t.cancelToken.throwIfRequested(),t.signal&&t.signal.aborted)throw new Zt(null,t)}function es(t){return Lr(t),t.headers=Je.from(t.headers),t.data=Tr.call(t,t.transformRequest),["post","put","patch"].indexOf(t.method)!==-1&&t.headers.setContentType("application/x-www-form-urlencoded",!1),Qi.getAdapter(t.adapter||Ir.adapter)(t).then(function(r){return Lr(t),r.data=Tr.call(t,t.transformResponse,r),r.headers=Je.from(r.headers),r},function(r){return Ji(r)||(Lr(t),r&&r.response&&(r.response.data=Tr.call(t,t.transformResponse,r.response),r.response.headers=Je.from(r.response.headers))),Promise.reject(r)})}const ts=t=>t instanceof Je?t.toJSON():t;function Et(t,e){e=e||{};const n={};function r(d,f,p){return b.isPlainObject(d)&&b.isPlainObject(f)?b.merge.call({caseless:p},d,f):b.isPlainObject(f)?b.merge({},f):b.isArray(f)?f.slice():f}function o(d,f,p){if(b.isUndefined(f)){if(!b.isUndefined(d))return r(void 0,d,p)}else return r(d,f,p)}function i(d,f){if(!b.isUndefined(f))return r(void 0,f)}function s(d,f){if(b.isUndefined(f)){if(!b.isUndefined(d))return r(void 0,d)}else return r(void 0,f)}function c(d,f,p){if(p in e)return r(d,f);if(p in t)return r(void 0,d)}const l={url:i,method:i,data:i,baseURL:s,transformRequest:s,transformResponse:s,paramsSerializer:s,timeout:s,timeoutMessage:s,withCredentials:s,withXSRFToken:s,adapter:s,responseType:s,xsrfCookieName:s,xsrfHeaderName:s,onUploadProgress:s,onDownloadProgress:s,decompress:s,maxContentLength:s,maxBodyLength:s,beforeRedirect:s,transport:s,httpAgent:s,httpsAgent:s,cancelToken:s,socketPath:s,responseEncoding:s,validateStatus:c,headers:(d,f)=>o(ts(d),ts(f),!0)};return b.forEach(Object.keys(Object.assign({},t,e)),function(f){const p=l[f]||o,v=p(t[f],e[f],f);b.isUndefined(v)&&p!==c||(n[f]=v)}),n}const ns="1.6.5",Br={};["object","boolean","number","function","string","symbol"].forEach((t,e)=>{Br[t]=function(r){return typeof r===t||"a"+(e<1?"n ":" ")+t}});const rs={};Br.transitional=function(e,n,r){function o(i,s){return"[Axios v"+ns+"] Transitional option '"+i+"'"+s+(r?". "+r:"")}return(i,s,c)=>{if(e===!1)throw new ne(o(s," has been removed"+(n?" in "+n:"")),ne.ERR_DEPRECATED);return n&&!rs[s]&&(rs[s]=!0,console.warn(o(s," has been deprecated since v"+n+" and will be removed in the near future"))),e?e(i,s,c):!0}};function Hp(t,e,n){if(typeof t!="object")throw new ne("options must be an object",ne.ERR_BAD_OPTION_VALUE);const r=Object.keys(t);let o=r.length;for(;o-- >0;){const i=r[o],s=e[i];if(s){const c=t[i],l=c===void 0||s(c,i,t);if(l!==!0)throw new ne("option "+i+" must be "+l,ne.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new ne("Unknown option "+i,ne.ERR_BAD_OPTION)}}const Fr={assertOptions:Hp,validators:Br},nt=Fr.validators;class kn{constructor(e){this.defaults=e,this.interceptors={request:new Ki,response:new Ki}}request(e,n){typeof e=="string"?(n=n||{},n.url=e):n=e||{},n=Et(this.defaults,n);const{transitional:r,paramsSerializer:o,headers:i}=n;r!==void 0&&Fr.assertOptions(r,{silentJSONParsing:nt.transitional(nt.boolean),forcedJSONParsing:nt.transitional(nt.boolean),clarifyTimeoutError:nt.transitional(nt.boolean)},!1),o!=null&&(b.isFunction(o)?n.paramsSerializer={serialize:o}:Fr.assertOptions(o,{encode:nt.function,serialize:nt.function},!0)),n.method=(n.method||this.defaults.method||"get").toLowerCase();let s=i&&b.merge(i.common,i[n.method]);i&&b.forEach(["delete","get","head","post","put","patch","common"],_=>{delete i[_]}),n.headers=Je.concat(s,i);const c=[];let l=!0;this.interceptors.request.forEach(function(x){typeof x.runWhen=="function"&&x.runWhen(n)===!1||(l=l&&x.synchronous,c.unshift(x.fulfilled,x.rejected))});const d=[];this.interceptors.response.forEach(function(x){d.push(x.fulfilled,x.rejected)});let f,p=0,v;if(!l){const _=[es.bind(this),void 0];for(_.unshift.apply(_,c),_.push.apply(_,d),v=_.length,f=Promise.resolve(n);p<v;)f=f.then(_[p++],_[p++]);return f}v=c.length;let w=n;for(p=0;p<v;){const _=c[p++],x=c[p++];try{w=_(w)}catch(C){x.call(this,C);break}}try{f=es.call(this,w)}catch(_){return Promise.reject(_)}for(p=0,v=d.length;p<v;)f=f.then(d[p++],d[p++]);return f}getUri(e){e=Et(this.defaults,e);const n=Yi(e.baseURL,e.url);return Vi(n,e.params,e.paramsSerializer)}}b.forEach(["delete","get","head","options"],function(e){kn.prototype[e]=function(n,r){return this.request(Et(r||{},{method:e,url:n,data:(r||{}).data}))}}),b.forEach(["post","put","patch"],function(e){function n(r){return function(i,s,c){return this.request(Et(c||{},{method:e,headers:r?{"Content-Type":"multipart/form-data"}:{},url:i,data:s}))}}kn.prototype[e]=n(),kn.prototype[e+"Form"]=n(!0)});const xn=kn;class Rr{constructor(e){if(typeof e!="function")throw new TypeError("executor must be a function.");let n;this.promise=new Promise(function(i){n=i});const r=this;this.promise.then(o=>{if(!r._listeners)return;let i=r._listeners.length;for(;i-- >0;)r._listeners[i](o);r._listeners=null}),this.promise.then=o=>{let i;const s=new Promise(c=>{r.subscribe(c),i=c}).then(o);return s.cancel=function(){r.unsubscribe(i)},s},e(function(i,s,c){r.reason||(r.reason=new Zt(i,s,c),n(r.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(e){if(this.reason){e(this.reason);return}this._listeners?this._listeners.push(e):this._listeners=[e]}unsubscribe(e){if(!this._listeners)return;const n=this._listeners.indexOf(e);n!==-1&&this._listeners.splice(n,1)}static source(){let e;return{token:new Rr(function(o){e=o}),cancel:e}}}const jp=Rr;function Vp(t){return function(n){return t.apply(null,n)}}function Kp(t){return b.isObject(t)&&t.isAxiosError===!0}const $r={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries($r).forEach(([t,e])=>{$r[e]=t});const zp=$r;function os(t){const e=new xn(t),n=xi(xn.prototype.request,e);return b.extend(n,xn.prototype,e,{allOwnKeys:!0}),b.extend(n,e,null,{allOwnKeys:!0}),n.create=function(o){return os(Et(t,o))},n}const ue=os(Ir);ue.Axios=xn,ue.CanceledError=Zt,ue.CancelToken=jp,ue.isCancel=Ji,ue.VERSION=ns,ue.toFormData=Cn,ue.AxiosError=ne,ue.Cancel=ue.CanceledError,ue.all=function(e){return Promise.all(e)},ue.spread=Vp,ue.isAxiosError=Kp,ue.mergeConfig=Et,ue.AxiosHeaders=Je,ue.formToJSON=t=>qi(b.isHTMLForm(t)?new FormData(t):t),ue.getAdapter=Qi.getAdapter,ue.HttpStatusCode=zp,ue.default=ue;class is{constructor(e,n){Me(this,"keycloak");Me(this,"axios");Me(this,"fileName","silent-login.html");this.keycloak=e,this.axios=ue.create(),this.axios.defaults.baseURL=n,this.axios.defaults.headers.common["content-type"]="application/json",this.axios.defaults.timeout=1e3*60*5,this.axios.interceptors.request.use(async r=>{await this.SilentLogin();const o=this.keycloak.token;return r.headers.Authorization=`Bearer ${o}`,r})}ParseAppResult(e){try{const n=typeof e.hasSuccess=="boolean",r=typeof e.hasError=="boolean",o=typeof e.httpStatusCode=="number",i=Array.isArray(e.errors);return n&&r&&o&&i?e:null}catch{return null}}HandleThen(e){const n=new Er,r=this.ParseAppResult(e.data);return r===null?(n.value=e.data,n):r.hasError?(r.errors.forEach(o=>n.WithError(o)),n.httpStatusCode=r.httpStatusCode,n):(n.value=e.data.value,n)}HandleCatch(e){var o;const n=new Er,r=this.ParseAppResult((o=e.response)==null?void 0:o.data);return r===null?n.WithError(e.message):(n.WithErrors(r.errors),n.httpStatusCode=r.httpStatusCode),n}async SilentLogin(){return new Promise(async e=>{if(!this.isTokenExpired){e(!0);return}const n=this.GenerateIframe(),r=o=>{if(document.body.removeChild(n),window.removeEventListener("message",r),o.origin!==location.origin){e(!1);return}const i=o.data.action,s=o.data.code,c=o.data.state,l=o.data.error;if(i!=="silent-login-iframe-result"||l==="login_required"||!s){e(!1);return}const d=new XMLHttpRequest;d.open("POST",this.tokenExchangeUrl,!0),d.setRequestHeader("Content-type","application/x-www-form-urlencoded"),d.onreadystatechange=()=>{if(d.readyState===4){if(d.status===200){const f=JSON.parse(d.responseText);this.keycloak.setToken(f.access_token,null,f.id_token,new Date().getTime()),e(!0);return}e(!1)}},d.send(this.TokenExchangeParams(s,c))};window.addEventListener("message",r)}).then(e=>(e||(this.keycloak.clearToken(),this.keycloak.login()),e))}GetCodeVerifierFromState(e){const n=`kc-callback-${e}`,r=localStorage.getItem(n);if(r)return localStorage.removeItem(n),JSON.parse(r).pkceCodeVerifier}TokenExchangeParams(e,n){let r=`code=${e}&grant_type=authorization_code`;return r+=`&client_id=${encodeURIComponent(this.keycloak.clientId)}`,r+=`&redirect_uri=${this.silentLoginRedirectUrl}`,r+=`&code_verifier=${this.GetCodeVerifierFromState(n)}`,r}GenerateIframe(){const e=document.createElement("iframe");return e.src=this.keycloak.createLoginUrl({prompt:"none",redirectUri:this.silentLoginRedirectUrl})??"",document.body.appendChild(e),e}get silentLoginRedirectUrl(){return`${location.origin}/${this.fileName}`}get tokenExchangeUrl(){return`${this.keycloak.authServerUrl}/realms/${this.keycloak.realm}/protocol/openid-connect/token`}get isTokenExpired(){const e=this.keycloak.tokenParsed,n=e?e.exp:null;return!e||!n?!0:n-Math.ceil(new Date().getTime()/1e3)+(this.keycloak.timeSkew??0)<10}}const Wp=(t,e)=>new is(t,e);ir.SetInitialTheme(),ee.AppResult=Er,ee.AxiosClient=is,ee.SfButton=zr,ee.SfContent=Cu,ee.SfDrawer=Kr,ee.SfIcon=Qe,ee.SfLayout=bu,ee.SfMessage=Ou,ee.SfNavMenuLink=Eu,ee.SfPanelMenu=yf,ee.SfTabNavigation=Pu,ee.SfTooltip=Ln,ee.UseAlertService=Qc,ee.UseAuthService=$f,ee.UseAxiosClient=Wp,ee.UseConfirmService=Yo,ee.UseNavMenuService=Tn,Object.defineProperty(ee,Symbol.toStringTag,{value:"Module"})});
150
+ */(function(t){(function(){var e="input is invalid type",n=typeof window=="object",r=n?window:{};r.JS_SHA256_NO_WINDOW&&(n=!1);var o=!n&&typeof self=="object",i=!r.JS_SHA256_NO_NODE_JS&&typeof process=="object"&&process.versions&&process.versions.node;i?r=lf:o&&(r=self);var s=!r.JS_SHA256_NO_COMMON_JS&&!0&&t.exports,c=!r.JS_SHA256_NO_ARRAY_BUFFER&&typeof ArrayBuffer<"u",l="0123456789abcdef".split(""),u=[-2147483648,8388608,32768,128],d=[24,16,8,0],f=[1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298],g=["hex","array","digest","arrayBuffer"],b=[];(r.JS_SHA256_NO_NODE_JS||!Array.isArray)&&(Array.isArray=function(y){return Object.prototype.toString.call(y)==="[object Array]"}),c&&(r.JS_SHA256_NO_ARRAY_BUFFER_IS_VIEW||!ArrayBuffer.isView)&&(ArrayBuffer.isView=function(y){return typeof y=="object"&&y.buffer&&y.buffer.constructor===ArrayBuffer});var v=function(y,x){return function(B){return new $(x,!0).update(B)[y]()}},S=function(y){var x=v("hex",y);i&&(x=w(x,y)),x.create=function(){return new $(y)},x.update=function(T){return x.create().update(T)};for(var B=0;B<g.length;++B){var _=g[B];x[_]=v(_,y)}return x},w=function(y,x){var B=pi,_=pi.Buffer,T=x?"sha224":"sha256",A;_.from&&!r.JS_SHA256_NO_BUFFER_FROM?A=_.from:A=function(E){return new _(E)};var F=function(E){if(typeof E=="string")return B.createHash(T).update(E,"utf8").digest("hex");if(E==null)throw new Error(e);return E.constructor===ArrayBuffer&&(E=new Uint8Array(E)),Array.isArray(E)||ArrayBuffer.isView(E)||E.constructor===_?B.createHash(T).update(A(E)).digest("hex"):y(E)};return F},I=function(y,x){return function(B,_){return new ue(B,x,!0).update(_)[y]()}},M=function(y){var x=I("hex",y);x.create=function(T){return new ue(T,y)},x.update=function(T,A){return x.create(T).update(A)};for(var B=0;B<g.length;++B){var _=g[B];x[_]=I(_,y)}return x};function $(y,x){x?(b[0]=b[16]=b[1]=b[2]=b[3]=b[4]=b[5]=b[6]=b[7]=b[8]=b[9]=b[10]=b[11]=b[12]=b[13]=b[14]=b[15]=0,this.blocks=b):this.blocks=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],y?(this.h0=3238371032,this.h1=914150663,this.h2=812702999,this.h3=4144912697,this.h4=4290775857,this.h5=1750603025,this.h6=1694076839,this.h7=3204075428):(this.h0=1779033703,this.h1=3144134277,this.h2=1013904242,this.h3=2773480762,this.h4=1359893119,this.h5=2600822924,this.h6=528734635,this.h7=1541459225),this.block=this.start=this.bytes=this.hBytes=0,this.finalized=this.hashed=!1,this.first=!0,this.is224=y}$.prototype.update=function(y){if(!this.finalized){var x,B=typeof y;if(B!=="string"){if(B==="object"){if(y===null)throw new Error(e);if(c&&y.constructor===ArrayBuffer)y=new Uint8Array(y);else if(!Array.isArray(y)&&(!c||!ArrayBuffer.isView(y)))throw new Error(e)}else throw new Error(e);x=!0}for(var _,T=0,A,F=y.length,E=this.blocks;T<F;){if(this.hashed&&(this.hashed=!1,E[0]=this.block,E[16]=E[1]=E[2]=E[3]=E[4]=E[5]=E[6]=E[7]=E[8]=E[9]=E[10]=E[11]=E[12]=E[13]=E[14]=E[15]=0),x)for(A=this.start;T<F&&A<64;++T)E[A>>2]|=y[T]<<d[A++&3];else for(A=this.start;T<F&&A<64;++T)_=y.charCodeAt(T),_<128?E[A>>2]|=_<<d[A++&3]:_<2048?(E[A>>2]|=(192|_>>6)<<d[A++&3],E[A>>2]|=(128|_&63)<<d[A++&3]):_<55296||_>=57344?(E[A>>2]|=(224|_>>12)<<d[A++&3],E[A>>2]|=(128|_>>6&63)<<d[A++&3],E[A>>2]|=(128|_&63)<<d[A++&3]):(_=65536+((_&1023)<<10|y.charCodeAt(++T)&1023),E[A>>2]|=(240|_>>18)<<d[A++&3],E[A>>2]|=(128|_>>12&63)<<d[A++&3],E[A>>2]|=(128|_>>6&63)<<d[A++&3],E[A>>2]|=(128|_&63)<<d[A++&3]);this.lastByteIndex=A,this.bytes+=A-this.start,A>=64?(this.block=E[16],this.start=A-64,this.hash(),this.hashed=!0):this.start=A}return this.bytes>4294967295&&(this.hBytes+=this.bytes/4294967296<<0,this.bytes=this.bytes%4294967296),this}},$.prototype.finalize=function(){if(!this.finalized){this.finalized=!0;var y=this.blocks,x=this.lastByteIndex;y[16]=this.block,y[x>>2]|=u[x&3],this.block=y[16],x>=56&&(this.hashed||this.hash(),y[0]=this.block,y[16]=y[1]=y[2]=y[3]=y[4]=y[5]=y[6]=y[7]=y[8]=y[9]=y[10]=y[11]=y[12]=y[13]=y[14]=y[15]=0),y[14]=this.hBytes<<3|this.bytes>>>29,y[15]=this.bytes<<3,this.hash()}},$.prototype.hash=function(){var y=this.h0,x=this.h1,B=this.h2,_=this.h3,T=this.h4,A=this.h5,F=this.h6,E=this.h7,D=this.blocks,G,ne,se,Pe,L,Ie,q,Ve,X,Le,Ue;for(G=16;G<64;++G)L=D[G-15],ne=(L>>>7|L<<25)^(L>>>18|L<<14)^L>>>3,L=D[G-2],se=(L>>>17|L<<15)^(L>>>19|L<<13)^L>>>10,D[G]=D[G-16]+ne+D[G-7]+se<<0;for(Ue=x&B,G=0;G<64;G+=4)this.first?(this.is224?(Ve=300032,L=D[0]-1413257819,E=L-150054599<<0,_=L+24177077<<0):(Ve=704751109,L=D[0]-210244248,E=L-1521486534<<0,_=L+143694565<<0),this.first=!1):(ne=(y>>>2|y<<30)^(y>>>13|y<<19)^(y>>>22|y<<10),se=(T>>>6|T<<26)^(T>>>11|T<<21)^(T>>>25|T<<7),Ve=y&x,Pe=Ve^y&B^Ue,q=T&A^~T&F,L=E+se+q+f[G]+D[G],Ie=ne+Pe,E=_+L<<0,_=L+Ie<<0),ne=(_>>>2|_<<30)^(_>>>13|_<<19)^(_>>>22|_<<10),se=(E>>>6|E<<26)^(E>>>11|E<<21)^(E>>>25|E<<7),X=_&y,Pe=X^_&x^Ve,q=E&T^~E&A,L=F+se+q+f[G+1]+D[G+1],Ie=ne+Pe,F=B+L<<0,B=L+Ie<<0,ne=(B>>>2|B<<30)^(B>>>13|B<<19)^(B>>>22|B<<10),se=(F>>>6|F<<26)^(F>>>11|F<<21)^(F>>>25|F<<7),Le=B&_,Pe=Le^B&y^X,q=F&E^~F&T,L=A+se+q+f[G+2]+D[G+2],Ie=ne+Pe,A=x+L<<0,x=L+Ie<<0,ne=(x>>>2|x<<30)^(x>>>13|x<<19)^(x>>>22|x<<10),se=(A>>>6|A<<26)^(A>>>11|A<<21)^(A>>>25|A<<7),Ue=x&B,Pe=Ue^x&_^Le,q=A&F^~A&E,L=T+se+q+f[G+3]+D[G+3],Ie=ne+Pe,T=y+L<<0,y=L+Ie<<0,this.chromeBugWorkAround=!0;this.h0=this.h0+y<<0,this.h1=this.h1+x<<0,this.h2=this.h2+B<<0,this.h3=this.h3+_<<0,this.h4=this.h4+T<<0,this.h5=this.h5+A<<0,this.h6=this.h6+F<<0,this.h7=this.h7+E<<0},$.prototype.hex=function(){this.finalize();var y=this.h0,x=this.h1,B=this.h2,_=this.h3,T=this.h4,A=this.h5,F=this.h6,E=this.h7,D=l[y>>28&15]+l[y>>24&15]+l[y>>20&15]+l[y>>16&15]+l[y>>12&15]+l[y>>8&15]+l[y>>4&15]+l[y&15]+l[x>>28&15]+l[x>>24&15]+l[x>>20&15]+l[x>>16&15]+l[x>>12&15]+l[x>>8&15]+l[x>>4&15]+l[x&15]+l[B>>28&15]+l[B>>24&15]+l[B>>20&15]+l[B>>16&15]+l[B>>12&15]+l[B>>8&15]+l[B>>4&15]+l[B&15]+l[_>>28&15]+l[_>>24&15]+l[_>>20&15]+l[_>>16&15]+l[_>>12&15]+l[_>>8&15]+l[_>>4&15]+l[_&15]+l[T>>28&15]+l[T>>24&15]+l[T>>20&15]+l[T>>16&15]+l[T>>12&15]+l[T>>8&15]+l[T>>4&15]+l[T&15]+l[A>>28&15]+l[A>>24&15]+l[A>>20&15]+l[A>>16&15]+l[A>>12&15]+l[A>>8&15]+l[A>>4&15]+l[A&15]+l[F>>28&15]+l[F>>24&15]+l[F>>20&15]+l[F>>16&15]+l[F>>12&15]+l[F>>8&15]+l[F>>4&15]+l[F&15];return this.is224||(D+=l[E>>28&15]+l[E>>24&15]+l[E>>20&15]+l[E>>16&15]+l[E>>12&15]+l[E>>8&15]+l[E>>4&15]+l[E&15]),D},$.prototype.toString=$.prototype.hex,$.prototype.digest=function(){this.finalize();var y=this.h0,x=this.h1,B=this.h2,_=this.h3,T=this.h4,A=this.h5,F=this.h6,E=this.h7,D=[y>>24&255,y>>16&255,y>>8&255,y&255,x>>24&255,x>>16&255,x>>8&255,x&255,B>>24&255,B>>16&255,B>>8&255,B&255,_>>24&255,_>>16&255,_>>8&255,_&255,T>>24&255,T>>16&255,T>>8&255,T&255,A>>24&255,A>>16&255,A>>8&255,A&255,F>>24&255,F>>16&255,F>>8&255,F&255];return this.is224||D.push(E>>24&255,E>>16&255,E>>8&255,E&255),D},$.prototype.array=$.prototype.digest,$.prototype.arrayBuffer=function(){this.finalize();var y=new ArrayBuffer(this.is224?28:32),x=new DataView(y);return x.setUint32(0,this.h0),x.setUint32(4,this.h1),x.setUint32(8,this.h2),x.setUint32(12,this.h3),x.setUint32(16,this.h4),x.setUint32(20,this.h5),x.setUint32(24,this.h6),this.is224||x.setUint32(28,this.h7),y};function ue(y,x,B){var _,T=typeof y;if(T==="string"){var A=[],F=y.length,E=0,D;for(_=0;_<F;++_)D=y.charCodeAt(_),D<128?A[E++]=D:D<2048?(A[E++]=192|D>>6,A[E++]=128|D&63):D<55296||D>=57344?(A[E++]=224|D>>12,A[E++]=128|D>>6&63,A[E++]=128|D&63):(D=65536+((D&1023)<<10|y.charCodeAt(++_)&1023),A[E++]=240|D>>18,A[E++]=128|D>>12&63,A[E++]=128|D>>6&63,A[E++]=128|D&63);y=A}else if(T==="object"){if(y===null)throw new Error(e);if(c&&y.constructor===ArrayBuffer)y=new Uint8Array(y);else if(!Array.isArray(y)&&(!c||!ArrayBuffer.isView(y)))throw new Error(e)}else throw new Error(e);y.length>64&&(y=new $(x,!0).update(y).array());var G=[],ne=[];for(_=0;_<64;++_){var se=y[_]||0;G[_]=92^se,ne[_]=54^se}$.call(this,x,B),this.update(ne),this.oKeyPad=G,this.inner=!0,this.sharedMemory=B}ue.prototype=new $,ue.prototype.finalize=function(){if($.prototype.finalize.call(this),this.inner){this.inner=!1;var y=this.array();$.call(this,this.is224,this.sharedMemory),this.update(this.oKeyPad),this.update(y),$.prototype.finalize.call(this)}};var pe=S();pe.sha256=pe,pe.sha224=S(!0),pe.sha256.hmac=M(),pe.sha224.hmac=M(!0),s?t.exports=pe:(r.sha256=pe.sha256,r.sha224=pe.sha224)})()})(uf);class df extends Error{}if(df.prototype.name="InvalidTokenError",typeof Promise>"u")throw Error("Keycloak requires an environment that supports Promises. Make sure that you include the appropriate polyfill.");let ff;const pf=()=>ff;class lr{constructor(e=null){Ce(this,"errors",[]);Ce(this,"_value",null);Ce(this,"_httpStatusCode");this._value=e,this._httpStatusCode=200}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){this.errors.push(e),this._httpStatusCode===200&&(this._httpStatusCode=400)}WithErrors(e){e.forEach(n=>this.WithError(n))}}function mi(t,e){return function(){return t.apply(e,arguments)}}const{toString:mf}=Object.prototype,{getPrototypeOf:cr}=Object,sn=(t=>e=>{const n=mf.call(e);return t[n]||(t[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),Oe=t=>(t=t.toLowerCase(),e=>sn(e)===t),an=t=>e=>typeof e===t,{isArray:at}=Array,Dt=an("undefined");function hf(t){return t!==null&&!Dt(t)&&t.constructor!==null&&!Dt(t.constructor)&&Se(t.constructor.isBuffer)&&t.constructor.isBuffer(t)}const hi=Oe("ArrayBuffer");function gf(t){let e;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?e=ArrayBuffer.isView(t):e=t&&t.buffer&&hi(t.buffer),e}const yf=an("string"),Se=an("function"),gi=an("number"),ln=t=>t!==null&&typeof t=="object",bf=t=>t===!0||t===!1,cn=t=>{if(sn(t)!=="object")return!1;const e=cr(t);return(e===null||e===Object.prototype||Object.getPrototypeOf(e)===null)&&!(Symbol.toStringTag in t)&&!(Symbol.iterator in t)},vf=Oe("Date"),wf=Oe("File"),Ef=Oe("Blob"),Sf=Oe("FileList"),Cf=t=>ln(t)&&Se(t.pipe),Af=t=>{let e;return t&&(typeof FormData=="function"&&t instanceof FormData||Se(t.append)&&((e=sn(t))==="formdata"||e==="object"&&Se(t.toString)&&t.toString()==="[object FormData]"))},_f=Oe("URLSearchParams"),xf=t=>t.trim?t.trim():t.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function Rt(t,e,{allOwnKeys:n=!1}={}){if(t===null||typeof t>"u")return;let r,o;if(typeof t!="object"&&(t=[t]),at(t))for(r=0,o=t.length;r<o;r++)e.call(null,t[r],r,t);else{const i=n?Object.getOwnPropertyNames(t):Object.keys(t),s=i.length;let c;for(r=0;r<s;r++)c=i[r],e.call(null,t[c],c,t)}}function yi(t,e){e=e.toLowerCase();const n=Object.keys(t);let r=n.length,o;for(;r-- >0;)if(o=n[r],e===o.toLowerCase())return o;return null}const bi=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,vi=t=>!Dt(t)&&t!==bi;function ur(){const{caseless:t}=vi(this)&&this||{},e={},n=(r,o)=>{const i=t&&yi(e,o)||o;cn(e[i])&&cn(r)?e[i]=ur(e[i],r):cn(r)?e[i]=ur({},r):at(r)?e[i]=r.slice():e[i]=r};for(let r=0,o=arguments.length;r<o;r++)arguments[r]&&Rt(arguments[r],n);return e}const Pf=(t,e,n,{allOwnKeys:r}={})=>(Rt(e,(o,i)=>{n&&Se(o)?t[i]=mi(o,n):t[i]=o},{allOwnKeys:r}),t),If=t=>(t.charCodeAt(0)===65279&&(t=t.slice(1)),t),Tf=(t,e,n,r)=>{t.prototype=Object.create(e.prototype,r),t.prototype.constructor=t,Object.defineProperty(t,"super",{value:e.prototype}),n&&Object.assign(t.prototype,n)},Of=(t,e,n,r)=>{let o,i,s;const c={};if(e=e||{},t==null)return e;do{for(o=Object.getOwnPropertyNames(t),i=o.length;i-- >0;)s=o[i],(!r||r(s,t,e))&&!c[s]&&(e[s]=t[s],c[s]=!0);t=n!==!1&&cr(t)}while(t&&(!n||n(t,e))&&t!==Object.prototype);return e},kf=(t,e,n)=>{t=String(t),(n===void 0||n>t.length)&&(n=t.length),n-=e.length;const r=t.indexOf(e,n);return r!==-1&&r===n},Bf=t=>{if(!t)return null;if(at(t))return t;let e=t.length;if(!gi(e))return null;const n=new Array(e);for(;e-- >0;)n[e]=t[e];return n},$f=(t=>e=>t&&e instanceof t)(typeof Uint8Array<"u"&&cr(Uint8Array)),Lf=(t,e)=>{const r=(t&&t[Symbol.iterator]).call(t);let o;for(;(o=r.next())&&!o.done;){const i=o.value;e.call(t,i[0],i[1])}},Ff=(t,e)=>{let n;const r=[];for(;(n=t.exec(e))!==null;)r.push(n);return r},Nf=Oe("HTMLFormElement"),Df=t=>t.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,r,o){return r.toUpperCase()+o}),wi=(({hasOwnProperty:t})=>(e,n)=>t.call(e,n))(Object.prototype),Rf=Oe("RegExp"),Ei=(t,e)=>{const n=Object.getOwnPropertyDescriptors(t),r={};Rt(n,(o,i)=>{let s;(s=e(o,i,t))!==!1&&(r[i]=s||o)}),Object.defineProperties(t,r)},Mf=t=>{Ei(t,(e,n)=>{if(Se(t)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const r=t[n];if(Se(r)){if(e.enumerable=!1,"writable"in e){e.writable=!1;return}e.set||(e.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")})}})},Hf=(t,e)=>{const n={},r=o=>{o.forEach(i=>{n[i]=!0})};return at(t)?r(t):r(String(t).split(e)),n},jf=()=>{},Vf=(t,e)=>(t=+t,Number.isFinite(t)?t:e),dr="abcdefghijklmnopqrstuvwxyz",Si="0123456789",Ci={DIGIT:Si,ALPHA:dr,ALPHA_DIGIT:dr+dr.toUpperCase()+Si},Uf=(t=16,e=Ci.ALPHA_DIGIT)=>{let n="";const{length:r}=e;for(;t--;)n+=e[Math.random()*r|0];return n};function Wf(t){return!!(t&&Se(t.append)&&t[Symbol.toStringTag]==="FormData"&&t[Symbol.iterator])}const Kf=t=>{const e=new Array(10),n=(r,o)=>{if(ln(r)){if(e.indexOf(r)>=0)return;if(!("toJSON"in r)){e[o]=r;const i=at(r)?[]:{};return Rt(r,(s,c)=>{const l=n(s,o+1);!Dt(l)&&(i[c]=l)}),e[o]=void 0,i}}return r};return n(t,0)},zf=Oe("AsyncFunction"),h={isArray:at,isArrayBuffer:hi,isBuffer:hf,isFormData:Af,isArrayBufferView:gf,isString:yf,isNumber:gi,isBoolean:bf,isObject:ln,isPlainObject:cn,isUndefined:Dt,isDate:vf,isFile:wf,isBlob:Ef,isRegExp:Rf,isFunction:Se,isStream:Cf,isURLSearchParams:_f,isTypedArray:$f,isFileList:Sf,forEach:Rt,merge:ur,extend:Pf,trim:xf,stripBOM:If,inherits:Tf,toFlatObject:Of,kindOf:sn,kindOfTest:Oe,endsWith:kf,toArray:Bf,forEachEntry:Lf,matchAll:Ff,isHTMLForm:Nf,hasOwnProperty:wi,hasOwnProp:wi,reduceDescriptors:Ei,freezeMethods:Mf,toObjectSet:Hf,toCamelCase:Df,noop:jf,toFiniteNumber:Vf,findKey:yi,global:bi,isContextDefined:vi,ALPHABET:Ci,generateString:Uf,isSpecCompliantForm:Wf,toJSONObject:Kf,isAsyncFn:zf,isThenable:t=>t&&(ln(t)||Se(t))&&Se(t.then)&&Se(t.catch)};function W(t,e,n,r,o){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=t,this.name="AxiosError",e&&(this.code=e),n&&(this.config=n),r&&(this.request=r),o&&(this.response=o)}h.inherits(W,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:h.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const Ai=W.prototype,_i={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(t=>{_i[t]={value:t}}),Object.defineProperties(W,_i),Object.defineProperty(Ai,"isAxiosError",{value:!0}),W.from=(t,e,n,r,o,i)=>{const s=Object.create(Ai);return h.toFlatObject(t,s,function(l){return l!==Error.prototype},c=>c!=="isAxiosError"),W.call(s,t.message,e,n,r,o),s.cause=t,s.name=t.name,i&&Object.assign(s,i),s};const qf=null;function fr(t){return h.isPlainObject(t)||h.isArray(t)}function xi(t){return h.endsWith(t,"[]")?t.slice(0,-2):t}function Pi(t,e,n){return t?t.concat(e).map(function(o,i){return o=xi(o),!n&&i?"["+o+"]":o}).join(n?".":""):e}function Gf(t){return h.isArray(t)&&!t.some(fr)}const Jf=h.toFlatObject(h,{},null,function(e){return/^is[A-Z]/.test(e)});function un(t,e,n){if(!h.isObject(t))throw new TypeError("target must be an object");e=e||new FormData,n=h.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(S,w){return!h.isUndefined(w[S])});const r=n.metaTokens,o=n.visitor||d,i=n.dots,s=n.indexes,l=(n.Blob||typeof Blob<"u"&&Blob)&&h.isSpecCompliantForm(e);if(!h.isFunction(o))throw new TypeError("visitor must be a function");function u(v){if(v===null)return"";if(h.isDate(v))return v.toISOString();if(!l&&h.isBlob(v))throw new W("Blob is not supported. Use a Buffer instead.");return h.isArrayBuffer(v)||h.isTypedArray(v)?l&&typeof Blob=="function"?new Blob([v]):Buffer.from(v):v}function d(v,S,w){let I=v;if(v&&!w&&typeof v=="object"){if(h.endsWith(S,"{}"))S=r?S:S.slice(0,-2),v=JSON.stringify(v);else if(h.isArray(v)&&Gf(v)||(h.isFileList(v)||h.endsWith(S,"[]"))&&(I=h.toArray(v)))return S=xi(S),I.forEach(function($,ue){!(h.isUndefined($)||$===null)&&e.append(s===!0?Pi([S],ue,i):s===null?S:S+"[]",u($))}),!1}return fr(v)?!0:(e.append(Pi(w,S,i),u(v)),!1)}const f=[],g=Object.assign(Jf,{defaultVisitor:d,convertValue:u,isVisitable:fr});function b(v,S){if(!h.isUndefined(v)){if(f.indexOf(v)!==-1)throw Error("Circular reference detected in "+S.join("."));f.push(v),h.forEach(v,function(I,M){(!(h.isUndefined(I)||I===null)&&o.call(e,I,h.isString(M)?M.trim():M,S,g))===!0&&b(I,S?S.concat(M):[M])}),f.pop()}}if(!h.isObject(t))throw new TypeError("data must be an object");return b(t),e}function Ii(t){const e={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(t).replace(/[!'()~]|%20|%00/g,function(r){return e[r]})}function pr(t,e){this._pairs=[],t&&un(t,this,e)}const Ti=pr.prototype;Ti.append=function(e,n){this._pairs.push([e,n])},Ti.toString=function(e){const n=e?function(r){return e.call(this,r,Ii)}:Ii;return this._pairs.map(function(o){return n(o[0])+"="+n(o[1])},"").join("&")};function Yf(t){return encodeURIComponent(t).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function Oi(t,e,n){if(!e)return t;const r=n&&n.encode||Yf,o=n&&n.serialize;let i;if(o?i=o(e,n):i=h.isURLSearchParams(e)?e.toString():new pr(e,n).toString(r),i){const s=t.indexOf("#");s!==-1&&(t=t.slice(0,s)),t+=(t.indexOf("?")===-1?"?":"&")+i}return t}class ki{constructor(){this.handlers=[]}use(e,n,r){return this.handlers.push({fulfilled:e,rejected:n,synchronous:r?r.synchronous:!1,runWhen:r?r.runWhen:null}),this.handlers.length-1}eject(e){this.handlers[e]&&(this.handlers[e]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(e){h.forEach(this.handlers,function(r){r!==null&&e(r)})}}const Bi={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},Xf={isBrowser:!0,classes:{URLSearchParams:typeof URLSearchParams<"u"?URLSearchParams:pr,FormData:typeof FormData<"u"?FormData:null,Blob:typeof Blob<"u"?Blob:null},protocols:["http","https","file","blob","url","data"]},$i=typeof window<"u"&&typeof document<"u",Zf=(t=>$i&&["ReactNative","NativeScript","NS"].indexOf(t)<0)(typeof navigator<"u"&&navigator.product),Qf=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",ke={...Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:$i,hasStandardBrowserEnv:Zf,hasStandardBrowserWebWorkerEnv:Qf},Symbol.toStringTag,{value:"Module"})),...Xf};function ep(t,e){return un(t,new ke.classes.URLSearchParams,Object.assign({visitor:function(n,r,o,i){return ke.isNode&&h.isBuffer(n)?(this.append(r,n.toString("base64")),!1):i.defaultVisitor.apply(this,arguments)}},e))}function tp(t){return h.matchAll(/\w+|\[(\w*)]/g,t).map(e=>e[0]==="[]"?"":e[1]||e[0])}function np(t){const e={},n=Object.keys(t);let r;const o=n.length;let i;for(r=0;r<o;r++)i=n[r],e[i]=t[i];return e}function Li(t){function e(n,r,o,i){let s=n[i++];if(s==="__proto__")return!0;const c=Number.isFinite(+s),l=i>=n.length;return s=!s&&h.isArray(o)?o.length:s,l?(h.hasOwnProp(o,s)?o[s]=[o[s],r]:o[s]=r,!c):((!o[s]||!h.isObject(o[s]))&&(o[s]=[]),e(n,r,o[s],i)&&h.isArray(o[s])&&(o[s]=np(o[s])),!c)}if(h.isFormData(t)&&h.isFunction(t.entries)){const n={};return h.forEachEntry(t,(r,o)=>{e(tp(r),o,n,0)}),n}return null}function rp(t,e,n){if(h.isString(t))try{return(e||JSON.parse)(t),h.trim(t)}catch(r){if(r.name!=="SyntaxError")throw r}return(n||JSON.stringify)(t)}const mr={transitional:Bi,adapter:["xhr","http"],transformRequest:[function(e,n){const r=n.getContentType()||"",o=r.indexOf("application/json")>-1,i=h.isObject(e);if(i&&h.isHTMLForm(e)&&(e=new FormData(e)),h.isFormData(e))return o&&o?JSON.stringify(Li(e)):e;if(h.isArrayBuffer(e)||h.isBuffer(e)||h.isStream(e)||h.isFile(e)||h.isBlob(e))return e;if(h.isArrayBufferView(e))return e.buffer;if(h.isURLSearchParams(e))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let c;if(i){if(r.indexOf("application/x-www-form-urlencoded")>-1)return ep(e,this.formSerializer).toString();if((c=h.isFileList(e))||r.indexOf("multipart/form-data")>-1){const l=this.env&&this.env.FormData;return un(c?{"files[]":e}:e,l&&new l,this.formSerializer)}}return i||o?(n.setContentType("application/json",!1),rp(e)):e}],transformResponse:[function(e){const n=this.transitional||mr.transitional,r=n&&n.forcedJSONParsing,o=this.responseType==="json";if(e&&h.isString(e)&&(r&&!this.responseType||o)){const s=!(n&&n.silentJSONParsing)&&o;try{return JSON.parse(e)}catch(c){if(s)throw c.name==="SyntaxError"?W.from(c,W.ERR_BAD_RESPONSE,this,null,this.response):c}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:ke.classes.FormData,Blob:ke.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};h.forEach(["delete","get","head","post","put","patch"],t=>{mr.headers[t]={}});const hr=mr,op=h.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),ip=t=>{const e={};let n,r,o;return t&&t.split(`
151
+ `).forEach(function(s){o=s.indexOf(":"),n=s.substring(0,o).trim().toLowerCase(),r=s.substring(o+1).trim(),!(!n||e[n]&&op[n])&&(n==="set-cookie"?e[n]?e[n].push(r):e[n]=[r]:e[n]=e[n]?e[n]+", "+r:r)}),e},Fi=Symbol("internals");function Mt(t){return t&&String(t).trim().toLowerCase()}function dn(t){return t===!1||t==null?t:h.isArray(t)?t.map(dn):String(t)}function sp(t){const e=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let r;for(;r=n.exec(t);)e[r[1]]=r[2];return e}const ap=t=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(t.trim());function gr(t,e,n,r,o){if(h.isFunction(r))return r.call(this,e,n);if(o&&(e=n),!!h.isString(e)){if(h.isString(r))return e.indexOf(r)!==-1;if(h.isRegExp(r))return r.test(e)}}function lp(t){return t.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(e,n,r)=>n.toUpperCase()+r)}function cp(t,e){const n=h.toCamelCase(" "+e);["get","set","has"].forEach(r=>{Object.defineProperty(t,r+n,{value:function(o,i,s){return this[r].call(this,e,o,i,s)},configurable:!0})})}class fn{constructor(e){e&&this.set(e)}set(e,n,r){const o=this;function i(c,l,u){const d=Mt(l);if(!d)throw new Error("header name must be a non-empty string");const f=h.findKey(o,d);(!f||o[f]===void 0||u===!0||u===void 0&&o[f]!==!1)&&(o[f||l]=dn(c))}const s=(c,l)=>h.forEach(c,(u,d)=>i(u,d,l));return h.isPlainObject(e)||e instanceof this.constructor?s(e,n):h.isString(e)&&(e=e.trim())&&!ap(e)?s(ip(e),n):e!=null&&i(n,e,r),this}get(e,n){if(e=Mt(e),e){const r=h.findKey(this,e);if(r){const o=this[r];if(!n)return o;if(n===!0)return sp(o);if(h.isFunction(n))return n.call(this,o,r);if(h.isRegExp(n))return n.exec(o);throw new TypeError("parser must be boolean|regexp|function")}}}has(e,n){if(e=Mt(e),e){const r=h.findKey(this,e);return!!(r&&this[r]!==void 0&&(!n||gr(this,this[r],r,n)))}return!1}delete(e,n){const r=this;let o=!1;function i(s){if(s=Mt(s),s){const c=h.findKey(r,s);c&&(!n||gr(r,r[c],c,n))&&(delete r[c],o=!0)}}return h.isArray(e)?e.forEach(i):i(e),o}clear(e){const n=Object.keys(this);let r=n.length,o=!1;for(;r--;){const i=n[r];(!e||gr(this,this[i],i,e,!0))&&(delete this[i],o=!0)}return o}normalize(e){const n=this,r={};return h.forEach(this,(o,i)=>{const s=h.findKey(r,i);if(s){n[s]=dn(o),delete n[i];return}const c=e?lp(i):String(i).trim();c!==i&&delete n[i],n[c]=dn(o),r[c]=!0}),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){const n=Object.create(null);return h.forEach(this,(r,o)=>{r!=null&&r!==!1&&(n[o]=e&&h.isArray(r)?r.join(", "):r)}),n}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([e,n])=>e+": "+n).join(`
152
+ `)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(e){return e instanceof this?e:new this(e)}static concat(e,...n){const r=new this(e);return n.forEach(o=>r.set(o)),r}static accessor(e){const r=(this[Fi]=this[Fi]={accessors:{}}).accessors,o=this.prototype;function i(s){const c=Mt(s);r[c]||(cp(o,s),r[c]=!0)}return h.isArray(e)?e.forEach(i):i(e),this}}fn.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),h.reduceDescriptors(fn.prototype,({value:t},e)=>{let n=e[0].toUpperCase()+e.slice(1);return{get:()=>t,set(r){this[n]=r}}}),h.freezeMethods(fn);const $e=fn;function yr(t,e){const n=this||hr,r=e||n,o=$e.from(r.headers);let i=r.data;return h.forEach(t,function(c){i=c.call(n,i,o.normalize(),e?e.status:void 0)}),o.normalize(),i}function Ni(t){return!!(t&&t.__CANCEL__)}function Ht(t,e,n){W.call(this,t??"canceled",W.ERR_CANCELED,e,n),this.name="CanceledError"}h.inherits(Ht,W,{__CANCEL__:!0});function up(t,e,n){const r=n.config.validateStatus;!n.status||!r||r(n.status)?t(n):e(new W("Request failed with status code "+n.status,[W.ERR_BAD_REQUEST,W.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}const dp=ke.hasStandardBrowserEnv?{write(t,e,n,r,o,i){const s=[t+"="+encodeURIComponent(e)];h.isNumber(n)&&s.push("expires="+new Date(n).toGMTString()),h.isString(r)&&s.push("path="+r),h.isString(o)&&s.push("domain="+o),i===!0&&s.push("secure"),document.cookie=s.join("; ")},read(t){const e=document.cookie.match(new RegExp("(^|;\\s*)("+t+")=([^;]*)"));return e?decodeURIComponent(e[3]):null},remove(t){this.write(t,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function fp(t){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(t)}function pp(t,e){return e?t.replace(/\/?\/$/,"")+"/"+e.replace(/^\/+/,""):t}function Di(t,e){return t&&!fp(e)?pp(t,e):e}const mp=ke.hasStandardBrowserEnv?function(){const e=/(msie|trident)/i.test(navigator.userAgent),n=document.createElement("a");let r;function o(i){let s=i;return e&&(n.setAttribute("href",s),s=n.href),n.setAttribute("href",s),{href:n.href,protocol:n.protocol?n.protocol.replace(/:$/,""):"",host:n.host,search:n.search?n.search.replace(/^\?/,""):"",hash:n.hash?n.hash.replace(/^#/,""):"",hostname:n.hostname,port:n.port,pathname:n.pathname.charAt(0)==="/"?n.pathname:"/"+n.pathname}}return r=o(window.location.href),function(s){const c=h.isString(s)?o(s):s;return c.protocol===r.protocol&&c.host===r.host}}():function(){return function(){return!0}}();function hp(t){const e=/^([-+\w]{1,25})(:?\/\/|:)/.exec(t);return e&&e[1]||""}function gp(t,e){t=t||10;const n=new Array(t),r=new Array(t);let o=0,i=0,s;return e=e!==void 0?e:1e3,function(l){const u=Date.now(),d=r[i];s||(s=u),n[o]=l,r[o]=u;let f=i,g=0;for(;f!==o;)g+=n[f++],f=f%t;if(o=(o+1)%t,o===i&&(i=(i+1)%t),u-s<e)return;const b=d&&u-d;return b?Math.round(g*1e3/b):void 0}}function Ri(t,e){let n=0;const r=gp(50,250);return o=>{const i=o.loaded,s=o.lengthComputable?o.total:void 0,c=i-n,l=r(c),u=i<=s;n=i;const d={loaded:i,total:s,progress:s?i/s:void 0,bytes:c,rate:l||void 0,estimated:l&&s&&u?(s-i)/l:void 0,event:o};d[e?"download":"upload"]=!0,t(d)}}const br={http:qf,xhr:typeof XMLHttpRequest<"u"&&function(t){return new Promise(function(n,r){let o=t.data;const i=$e.from(t.headers).normalize();let{responseType:s,withXSRFToken:c}=t,l;function u(){t.cancelToken&&t.cancelToken.unsubscribe(l),t.signal&&t.signal.removeEventListener("abort",l)}let d;if(h.isFormData(o)){if(ke.hasStandardBrowserEnv||ke.hasStandardBrowserWebWorkerEnv)i.setContentType(!1);else if((d=i.getContentType())!==!1){const[S,...w]=d?d.split(";").map(I=>I.trim()).filter(Boolean):[];i.setContentType([S||"multipart/form-data",...w].join("; "))}}let f=new XMLHttpRequest;if(t.auth){const S=t.auth.username||"",w=t.auth.password?unescape(encodeURIComponent(t.auth.password)):"";i.set("Authorization","Basic "+btoa(S+":"+w))}const g=Di(t.baseURL,t.url);f.open(t.method.toUpperCase(),Oi(g,t.params,t.paramsSerializer),!0),f.timeout=t.timeout;function b(){if(!f)return;const S=$e.from("getAllResponseHeaders"in f&&f.getAllResponseHeaders()),I={data:!s||s==="text"||s==="json"?f.responseText:f.response,status:f.status,statusText:f.statusText,headers:S,config:t,request:f};up(function($){n($),u()},function($){r($),u()},I),f=null}if("onloadend"in f?f.onloadend=b:f.onreadystatechange=function(){!f||f.readyState!==4||f.status===0&&!(f.responseURL&&f.responseURL.indexOf("file:")===0)||setTimeout(b)},f.onabort=function(){f&&(r(new W("Request aborted",W.ECONNABORTED,t,f)),f=null)},f.onerror=function(){r(new W("Network Error",W.ERR_NETWORK,t,f)),f=null},f.ontimeout=function(){let w=t.timeout?"timeout of "+t.timeout+"ms exceeded":"timeout exceeded";const I=t.transitional||Bi;t.timeoutErrorMessage&&(w=t.timeoutErrorMessage),r(new W(w,I.clarifyTimeoutError?W.ETIMEDOUT:W.ECONNABORTED,t,f)),f=null},ke.hasStandardBrowserEnv&&(c&&h.isFunction(c)&&(c=c(t)),c||c!==!1&&mp(g))){const S=t.xsrfHeaderName&&t.xsrfCookieName&&dp.read(t.xsrfCookieName);S&&i.set(t.xsrfHeaderName,S)}o===void 0&&i.setContentType(null),"setRequestHeader"in f&&h.forEach(i.toJSON(),function(w,I){f.setRequestHeader(I,w)}),h.isUndefined(t.withCredentials)||(f.withCredentials=!!t.withCredentials),s&&s!=="json"&&(f.responseType=t.responseType),typeof t.onDownloadProgress=="function"&&f.addEventListener("progress",Ri(t.onDownloadProgress,!0)),typeof t.onUploadProgress=="function"&&f.upload&&f.upload.addEventListener("progress",Ri(t.onUploadProgress)),(t.cancelToken||t.signal)&&(l=S=>{f&&(r(!S||S.type?new Ht(null,t,f):S),f.abort(),f=null)},t.cancelToken&&t.cancelToken.subscribe(l),t.signal&&(t.signal.aborted?l():t.signal.addEventListener("abort",l)));const v=hp(g);if(v&&ke.protocols.indexOf(v)===-1){r(new W("Unsupported protocol "+v+":",W.ERR_BAD_REQUEST,t));return}f.send(o||null)})}};h.forEach(br,(t,e)=>{if(t){try{Object.defineProperty(t,"name",{value:e})}catch{}Object.defineProperty(t,"adapterName",{value:e})}});const Mi=t=>`- ${t}`,yp=t=>h.isFunction(t)||t===null||t===!1,Hi={getAdapter:t=>{t=h.isArray(t)?t:[t];const{length:e}=t;let n,r;const o={};for(let i=0;i<e;i++){n=t[i];let s;if(r=n,!yp(n)&&(r=br[(s=String(n)).toLowerCase()],r===void 0))throw new W(`Unknown adapter '${s}'`);if(r)break;o[s||"#"+i]=r}if(!r){const i=Object.entries(o).map(([c,l])=>`adapter ${c} `+(l===!1?"is not supported by the environment":"is not available in the build"));let s=e?i.length>1?`since :
153
+ `+i.map(Mi).join(`
154
+ `):" "+Mi(i[0]):"as no adapter specified";throw new W("There is no suitable adapter to dispatch the request "+s,"ERR_NOT_SUPPORT")}return r},adapters:br};function vr(t){if(t.cancelToken&&t.cancelToken.throwIfRequested(),t.signal&&t.signal.aborted)throw new Ht(null,t)}function ji(t){return vr(t),t.headers=$e.from(t.headers),t.data=yr.call(t,t.transformRequest),["post","put","patch"].indexOf(t.method)!==-1&&t.headers.setContentType("application/x-www-form-urlencoded",!1),Hi.getAdapter(t.adapter||hr.adapter)(t).then(function(r){return vr(t),r.data=yr.call(t,t.transformResponse,r),r.headers=$e.from(r.headers),r},function(r){return Ni(r)||(vr(t),r&&r.response&&(r.response.data=yr.call(t,t.transformResponse,r.response),r.response.headers=$e.from(r.response.headers))),Promise.reject(r)})}const Vi=t=>t instanceof $e?t.toJSON():t;function lt(t,e){e=e||{};const n={};function r(u,d,f){return h.isPlainObject(u)&&h.isPlainObject(d)?h.merge.call({caseless:f},u,d):h.isPlainObject(d)?h.merge({},d):h.isArray(d)?d.slice():d}function o(u,d,f){if(h.isUndefined(d)){if(!h.isUndefined(u))return r(void 0,u,f)}else return r(u,d,f)}function i(u,d){if(!h.isUndefined(d))return r(void 0,d)}function s(u,d){if(h.isUndefined(d)){if(!h.isUndefined(u))return r(void 0,u)}else return r(void 0,d)}function c(u,d,f){if(f in e)return r(u,d);if(f in t)return r(void 0,u)}const l={url:i,method:i,data:i,baseURL:s,transformRequest:s,transformResponse:s,paramsSerializer:s,timeout:s,timeoutMessage:s,withCredentials:s,withXSRFToken:s,adapter:s,responseType:s,xsrfCookieName:s,xsrfHeaderName:s,onUploadProgress:s,onDownloadProgress:s,decompress:s,maxContentLength:s,maxBodyLength:s,beforeRedirect:s,transport:s,httpAgent:s,httpsAgent:s,cancelToken:s,socketPath:s,responseEncoding:s,validateStatus:c,headers:(u,d)=>o(Vi(u),Vi(d),!0)};return h.forEach(Object.keys(Object.assign({},t,e)),function(d){const f=l[d]||o,g=f(t[d],e[d],d);h.isUndefined(g)&&f!==c||(n[d]=g)}),n}const Ui="1.6.5",wr={};["object","boolean","number","function","string","symbol"].forEach((t,e)=>{wr[t]=function(r){return typeof r===t||"a"+(e<1?"n ":" ")+t}});const Wi={};wr.transitional=function(e,n,r){function o(i,s){return"[Axios v"+Ui+"] Transitional option '"+i+"'"+s+(r?". "+r:"")}return(i,s,c)=>{if(e===!1)throw new W(o(s," has been removed"+(n?" in "+n:"")),W.ERR_DEPRECATED);return n&&!Wi[s]&&(Wi[s]=!0,console.warn(o(s," has been deprecated since v"+n+" and will be removed in the near future"))),e?e(i,s,c):!0}};function bp(t,e,n){if(typeof t!="object")throw new W("options must be an object",W.ERR_BAD_OPTION_VALUE);const r=Object.keys(t);let o=r.length;for(;o-- >0;){const i=r[o],s=e[i];if(s){const c=t[i],l=c===void 0||s(c,i,t);if(l!==!0)throw new W("option "+i+" must be "+l,W.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new W("Unknown option "+i,W.ERR_BAD_OPTION)}}const Er={assertOptions:bp,validators:wr},je=Er.validators;class pn{constructor(e){this.defaults=e,this.interceptors={request:new ki,response:new ki}}request(e,n){typeof e=="string"?(n=n||{},n.url=e):n=e||{},n=lt(this.defaults,n);const{transitional:r,paramsSerializer:o,headers:i}=n;r!==void 0&&Er.assertOptions(r,{silentJSONParsing:je.transitional(je.boolean),forcedJSONParsing:je.transitional(je.boolean),clarifyTimeoutError:je.transitional(je.boolean)},!1),o!=null&&(h.isFunction(o)?n.paramsSerializer={serialize:o}:Er.assertOptions(o,{encode:je.function,serialize:je.function},!0)),n.method=(n.method||this.defaults.method||"get").toLowerCase();let s=i&&h.merge(i.common,i[n.method]);i&&h.forEach(["delete","get","head","post","put","patch","common"],v=>{delete i[v]}),n.headers=$e.concat(s,i);const c=[];let l=!0;this.interceptors.request.forEach(function(S){typeof S.runWhen=="function"&&S.runWhen(n)===!1||(l=l&&S.synchronous,c.unshift(S.fulfilled,S.rejected))});const u=[];this.interceptors.response.forEach(function(S){u.push(S.fulfilled,S.rejected)});let d,f=0,g;if(!l){const v=[ji.bind(this),void 0];for(v.unshift.apply(v,c),v.push.apply(v,u),g=v.length,d=Promise.resolve(n);f<g;)d=d.then(v[f++],v[f++]);return d}g=c.length;let b=n;for(f=0;f<g;){const v=c[f++],S=c[f++];try{b=v(b)}catch(w){S.call(this,w);break}}try{d=ji.call(this,b)}catch(v){return Promise.reject(v)}for(f=0,g=u.length;f<g;)d=d.then(u[f++],u[f++]);return d}getUri(e){e=lt(this.defaults,e);const n=Di(e.baseURL,e.url);return Oi(n,e.params,e.paramsSerializer)}}h.forEach(["delete","get","head","options"],function(e){pn.prototype[e]=function(n,r){return this.request(lt(r||{},{method:e,url:n,data:(r||{}).data}))}}),h.forEach(["post","put","patch"],function(e){function n(r){return function(i,s,c){return this.request(lt(c||{},{method:e,headers:r?{"Content-Type":"multipart/form-data"}:{},url:i,data:s}))}}pn.prototype[e]=n(),pn.prototype[e+"Form"]=n(!0)});const mn=pn;class Sr{constructor(e){if(typeof e!="function")throw new TypeError("executor must be a function.");let n;this.promise=new Promise(function(i){n=i});const r=this;this.promise.then(o=>{if(!r._listeners)return;let i=r._listeners.length;for(;i-- >0;)r._listeners[i](o);r._listeners=null}),this.promise.then=o=>{let i;const s=new Promise(c=>{r.subscribe(c),i=c}).then(o);return s.cancel=function(){r.unsubscribe(i)},s},e(function(i,s,c){r.reason||(r.reason=new Ht(i,s,c),n(r.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(e){if(this.reason){e(this.reason);return}this._listeners?this._listeners.push(e):this._listeners=[e]}unsubscribe(e){if(!this._listeners)return;const n=this._listeners.indexOf(e);n!==-1&&this._listeners.splice(n,1)}static source(){let e;return{token:new Sr(function(o){e=o}),cancel:e}}}const vp=Sr;function wp(t){return function(n){return t.apply(null,n)}}function Ep(t){return h.isObject(t)&&t.isAxiosError===!0}const Cr={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(Cr).forEach(([t,e])=>{Cr[e]=t});const Sp=Cr;function Ki(t){const e=new mn(t),n=mi(mn.prototype.request,e);return h.extend(n,mn.prototype,e,{allOwnKeys:!0}),h.extend(n,e,null,{allOwnKeys:!0}),n.create=function(o){return Ki(lt(t,o))},n}const Q=Ki(hr);Q.Axios=mn,Q.CanceledError=Ht,Q.CancelToken=vp,Q.isCancel=Ni,Q.VERSION=Ui,Q.toFormData=un,Q.AxiosError=W,Q.Cancel=Q.CanceledError,Q.all=function(e){return Promise.all(e)},Q.spread=wp,Q.isAxiosError=Ep,Q.mergeConfig=lt,Q.AxiosHeaders=$e,Q.formToJSON=t=>Li(h.isHTMLForm(t)?new FormData(t):t),Q.getAdapter=Hi.getAdapter,Q.HttpStatusCode=Sp,Q.default=Q;class zi{constructor(e,n){Ce(this,"keycloak");Ce(this,"axios");Ce(this,"fileName","silent-login.html");this.keycloak=e,this.axios=Q.create(),this.axios.defaults.baseURL=n,this.axios.defaults.headers.common["content-type"]="application/json",this.axios.defaults.timeout=1e3*60*5,this.axios.interceptors.request.use(async r=>{await this.SilentLogin();const o=this.keycloak.token;return r.headers.Authorization=`Bearer ${o}`,r})}ParseAppResult(e){try{const n=typeof e.hasSuccess=="boolean",r=typeof e.hasError=="boolean",o=typeof e.httpStatusCode=="number",i=Array.isArray(e.errors);return n&&r&&o&&i?e:null}catch{return null}}HandleThen(e){const n=new lr,r=this.ParseAppResult(e.data);return r===null?(n.value=e.data,n):r.hasError?(r.errors.forEach(o=>n.WithError(o)),n.httpStatusCode=r.httpStatusCode,n):(n.value=e.data.value,n)}HandleCatch(e){var o;const n=new lr,r=this.ParseAppResult((o=e.response)==null?void 0:o.data);return r===null?n.WithError(e.message):(n.WithErrors(r.errors),n.httpStatusCode=r.httpStatusCode),n}async SilentLogin(){return new Promise(async e=>{if(!this.isTokenExpired){e(!0);return}const n=this.GenerateIframe(),r=o=>{if(document.body.removeChild(n),window.removeEventListener("message",r),o.origin!==location.origin){e(!1);return}const i=o.data.action,s=o.data.code,c=o.data.state,l=o.data.error;if(i!=="silent-login-iframe-result"||l==="login_required"||!s){e(!1);return}const u=new XMLHttpRequest;u.open("POST",this.tokenExchangeUrl,!0),u.setRequestHeader("Content-type","application/x-www-form-urlencoded"),u.onreadystatechange=()=>{if(u.readyState===4){if(u.status===200){const d=JSON.parse(u.responseText);this.keycloak.setToken(d.access_token,null,d.id_token,new Date().getTime()),e(!0);return}e(!1)}},u.send(this.TokenExchangeParams(s,c))};window.addEventListener("message",r)}).then(e=>(e||(this.keycloak.clearToken(),this.keycloak.login()),e))}GetCodeVerifierFromState(e){const n=`kc-callback-${e}`,r=localStorage.getItem(n);if(r)return localStorage.removeItem(n),JSON.parse(r).pkceCodeVerifier}TokenExchangeParams(e,n){let r=`code=${e}&grant_type=authorization_code`;return r+=`&client_id=${encodeURIComponent(this.keycloak.clientId)}`,r+=`&redirect_uri=${this.silentLoginRedirectUrl}`,r+=`&code_verifier=${this.GetCodeVerifierFromState(n)}`,r}GenerateIframe(){const e=document.createElement("iframe");return e.src=this.keycloak.createLoginUrl({prompt:"none",redirectUri:this.silentLoginRedirectUrl})??"",document.body.appendChild(e),e}get silentLoginRedirectUrl(){return`${location.origin}/${this.fileName}`}get tokenExchangeUrl(){return`${this.keycloak.authServerUrl}/realms/${this.keycloak.realm}/protocol/openid-connect/token`}get isTokenExpired(){const e=this.keycloak.tokenParsed,n=e?e.exp:null;return!e||!n?!0:n-Math.ceil(new Date().getTime()/1e3)+(this.keycloak.timeSkew??0)<10}}const Cp=(t,e)=>new zi(t,e);Gn.SetInitialTheme(),V.AppResult=lr,V.AxiosClient=zi,V.SfButton=Fr,V.SfContent=pu,V.SfDrawer=Lr,V.SfIcon=Re,V.SfLayout=lu,V.SfMessage=Eu,V.SfNavMenuLink=du,V.SfPanelMenu=af,V.SfTabNavigation=vu,V.SfTooltip=En,V.UseAlertService=Uc,V.UseAuthService=pf,V.UseAxiosClient=Cp,V.UseConfirmService=Ho,V.UseNavMenuService=vn,Object.defineProperty(V,Symbol.toStringTag,{value:"Module"})});
160
155
  //# sourceMappingURL=sf.prefeiturasp.vuecomponents.umd.js.map