@luizleon/sf.prefeiturasp.vuecomponents 4.1.12 → 4.1.13
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.
- package/dist/sf.prefeiturasp.vuecomponents.cjs +19 -19
- package/dist/sf.prefeiturasp.vuecomponents.cjs.map +1 -1
- package/dist/sf.prefeiturasp.vuecomponents.js +439 -439
- package/dist/sf.prefeiturasp.vuecomponents.js.map +1 -1
- package/dist/sf.prefeiturasp.vuecomponents.umd.cjs +17 -17
- package/dist/sf.prefeiturasp.vuecomponents.umd.cjs.map +1 -1
- package/package.json +1 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";var Ea=Object.defineProperty;var Ta=(t,e,n)=>e in t?Ea(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n;var Te=(t,e,n)=>Ta(t,typeof e!="symbol"?e+"":e,n);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const l=require("vue");class Aa{constructor(){Te(this,"_visible",l.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 Pa=new Aa,Vr=()=>Pa;class tt{constructor(e){Te(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 Us(t=[]){let e="body > *:not(script):not(style)";for(const r of t)e+=`, ${r}`;const n=Math.max(...Array.from(document.querySelectorAll(e)).map(r=>{const o=getComputedStyle(r).zIndex;return+o==+o?+o:0}));return n>=100?n:100}let Ia=(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 Vn=(t,e)=>{const n=t.__vccOpts||t;for(const[r,o]of e)n[r]=o;return n},xa={},Oa={class:"sf-loading-circle"},La=l.createElementVNode("div",null,[l.createElementVNode("svg",{viewBox:"25 25 50 50"},[l.createElementVNode("circle",{cx:"50",cy:"50",r:"20",fill:"none","stroke-width":"4","stroke-miterlimit":"10"})])],-1),$a=[La];function Ra(t,e){return l.openBlock(),l.createElementBlock("div",Oa,$a)}const Na=Vn(xa,[["render",Ra]]),jr=l.defineComponent({__name:"Tooltip",props:{text:{}},setup(t){const e=t;class n{constructor(){Te(this,"zIndex");Te(this,"wrapper");Te(this,"inner");this.zIndex=Us()+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(s){this.inner.textContent=e.text,document.body.appendChild(this.wrapper),this.Position(s),this.wrapper.classList.add("visible")}Hide(){this.wrapper.classList.remove("visible"),this.wrapper.remove()}Position(s){const a=s.currentTarget.getBoundingClientRect();this.FixWidth();const c=this.wrapper,u=10;c.style.top=`${a.bottom-u}px`,c.style.left=`${a.right-u}px`,this.OutOfBottom()&&(c.style.top=`${a.top-c.clientHeight+u}px`),this.OutOfRight()&&(c.style.left=`${a.left-c.clientWidth+u}px`)}FixWidth(){this.wrapper.style.width="fit-content",this.wrapper.style.wordBreak="normal",this.wrapper.style.whiteSpace="nowrap";const s=window.innerWidth/2;this.wrapper.clientWidth>s&&(this.wrapper.style.width=`${s}px`,this.wrapper.style.wordBreak="break-word",this.wrapper.style.whiteSpace="normal")}OutOfBottom(){return this.wrapper.getBoundingClientRect().bottom>(window.innerHeight||document.documentElement.clientHeight)}OutOfRight(){return this.wrapper.getBoundingClientRect().right>(window.innerWidth||document.documentElement.clientWidth)-10}}const r=new n;return l.onBeforeUnmount(()=>{r.Hide()}),(o,s)=>(l.openBlock(),l.createElementBlock("div",{class:"sf-tooltip-anchor",onMouseenter:s[0]||(s[0]=(...i)=>l.unref(r).Show&&l.unref(r).Show(...i)),onMouseleave:s[1]||(s[1]=(...i)=>l.unref(r).Hide&&l.unref(r).Hide(...i)),onMousedown:s[2]||(s[2]=(...i)=>l.unref(r).Hide&&l.unref(r).Hide(...i))},[l.renderSlot(o.$slots,"default")],32))}}),Ba=["disabled","tabindex"],Da=["data-color"],Ma=l.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:{},color:{default:"inherit"}},setup(t){const e=t,n=l.computed(()=>e.tooltip?jr:"div"),r=l.computed(()=>new tt(e.tooltip?"":"display-content").AddClass("sf-component-loading",e.loading).AddClass("sf-component-disabled",e.disabled).Build()),o=l.computed(()=>new tt(`${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-icon-xlarge",e.size==="xl").AddClass("sf-icon-2xlarge",e.size==="2xl").AddClass("sf-icon-3xlarge",e.size==="3xl").AddClass("sf-ripple",e.button===!0).AddClass(`${e.color}-color`,!!e.color&&e.color!=="inherit").Build());return(s,i)=>(l.openBlock(),l.createBlock(l.resolveDynamicComponent(n.value),{text:e.tooltip,class:l.normalizeClass(r.value)},{default:l.withCtx(()=>[e.visible?(l.openBlock(),l.createElementBlock("div",{key:0,style:l.normalizeStyle(e.style),class:l.normalizeClass(o.value)},[l.createElementVNode("button",l.mergeProps({class:["material-symbols-outlined",{"icon-filled":!!e.filled}],disabled:e.disabled||e.loading},e.buttonProps,{tabindex:e.button?void 0:-1}),[e.loading?(l.openBlock(),l.createBlock(Na,{key:0})):(l.openBlock(),l.createElementBlock(l.Fragment,{key:1},[l.createTextVNode(l.toDisplayString(e.icon),1)],64))],16,Ba),e.dot?(l.openBlock(),l.createElementBlock("span",{key:0,"data-color":e.dotColor},null,8,Da)):l.createCommentVNode("",!0)],6)):l.createCommentVNode("",!0)]),_:1},8,["text","class"]))}}),Ln=Vn(Ma,[["__scopeId","data-v-7ffc3790"]]),Ua=["id","onClick"],Ha={class:"sf-drawer-header"},Va={class:"sf-drawer-title"},ja={class:"sf-drawer-content"},Fa={key:0,class:"sf-drawer-footer"},Hs=l.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=l.useSlots(),s=l.ref(n.visible),i=l.ref(!1),a=l.ref(0),c=Ia();function u(){s.value=!1}function d(w){(w.key==="Escape"||w.code==="Escape")&&u()}function m(){r("open"),window.document.addEventListener("keydown",d,!0)}function g(w){a.value=Us(),w.style.zIndex=`${a.value}`}function _(w){var B;r("before-close"),(B=w==null?void 0:w.parentElement)==null||B.classList.add("sf-mask-overlay-leave")}function v(){window.document.removeEventListener("keydown",d,!0),i.value=!1}function T(){return new tt("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 l.watch(()=>n.visible,w=>{s.value=w}),l.watch(()=>s.value,w=>{r("update:visible",w),w&&(i.value=!0)}),(w,B)=>(l.openBlock(),l.createBlock(l.Teleport,{to:"body"},[i.value?(l.openBlock(),l.createElementBlock("div",{key:0,id:l.unref(c),class:l.normalizeClass(T()),style:l.normalizeStyle({zIndex:a.value-1}),onClick:l.withModifiers(u,["stop"])},[l.createVNode(l.Transition,{name:"sf-drawer",appear:"",onBeforeEnter:g,onEnter:m,onBeforeLeave:_,onAfterLeave:v},{default:l.withCtx(()=>[s.value?(l.openBlock(),l.createElementBlock("div",{key:0,class:l.normalizeClass(["sf-drawer",{"sf-drawer-with-footer":!!l.unref(o).footer}]),style:l.normalizeStyle(n.style),role:"dialog",onClick:B[0]||(B[0]=l.withModifiers(C=>w.void,["stop"]))},[l.createElementVNode("div",Ha,[l.createElementVNode("span",Va,[l.renderSlot(w.$slots,"title")]),l.createVNode(Ln,{button:!0,icon:"close",onClick:l.withModifiers(u,["stop"])},null,8,["onClick"])]),l.createElementVNode("div",ja,[l.renderSlot(w.$slots,"default")]),l.unref(o).footer?(l.openBlock(),l.createElementBlock("div",Fa,[l.renderSlot(w.$slots,"footer")])):l.createCommentVNode("",!0)],6)):l.createCommentVNode("",!0)]),_:3})],14,Ua)):l.createCommentVNode("",!0)]))}}),za=["id","name","disabled","data-color","form","type"],Ka={class:"sf-button-label"},Vs=l.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:{},iconFilled:{type:Boolean}},setup(t){const e=t;function n(){return new tt(`${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?(l.openBlock(),l.createElementBlock("button",{key:0,id:e.id,name:e.name,class:l.normalizeClass(n()),style:l.normalizeStyle(e.style),disabled:e.disabled||e.loading,"data-color":e.color,form:e.form,type:e.type},[e.icon?(l.openBlock(),l.createBlock(Ln,{key:0,icon:e.icon,loading:e.loading,size:e.size,color:void 0,"button-props":{tabindex:-1},filled:e.iconFilled},null,8,["icon","loading","size","filled"])):e.loading?(l.openBlock(),l.createBlock(Ln,{key:1,loading:!0,size:e.size,"button-props":{tabindex:-1}},null,8,["size"])):l.createCommentVNode("",!0),l.createElementVNode("span",Ka,[l.renderSlot(r.$slots,"default")])],14,za)):l.createCommentVNode("",!0)}}),js="SweetAlert2:",Wa=t=>{const e=[];for(let n=0;n<t.length;n++)e.indexOf(t[n])===-1&&e.push(t[n]);return e},Fr=t=>t.charAt(0).toUpperCase()+t.slice(1),Oe=t=>Array.prototype.slice.call(t),Ce=t=>{console.warn(`${js} ${typeof t=="object"?t.join(" "):t}`)},kt=t=>{console.error(`${js} ${t}`)},Ro=[],qa=t=>{Ro.includes(t)||(Ro.push(t),Ce(t))},Ga=(t,e)=>{qa(`"${t}" is deprecated and will be removed in the next major release. Please use "${e}" instead.`)},jn=t=>typeof t=="function"?t():t,zr=t=>t&&typeof t.toPromise=="function",fn=t=>zr(t)?t.toPromise():Promise.resolve(t),Kr=t=>t&&Promise.resolve(t)===t,It={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:"×",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},Ya=["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"],Ja={},Xa=["allowOutsideClick","allowEnterKey","backdrop","focusConfirm","focusDeny","focusCancel","returnFocus","heightAuto","keydownListenerCapture"],Fs=t=>Object.prototype.hasOwnProperty.call(It,t),zs=t=>Ya.indexOf(t)!==-1,kr=t=>Ja[t],Za=t=>{Fs(t)||Ce(`Unknown parameter "${t}"`)},Qa=t=>{Xa.includes(t)&&Ce(`The parameter "${t}" is incompatible with toasts`)},el=t=>{kr(t)&&Ga(t,kr(t))},tl=t=>{!t.backdrop&&t.allowOutsideClick&&Ce('"allowOutsideClick" parameter requires `backdrop` parameter to be set to `true`');for(const e in t)Za(e),t.toast&&Qa(e),el(e)},nl="swal2-",Ks=t=>{const e={};for(const n in t)e[t[n]]=nl+t[n];return e},b=Ks(["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=Ks(["success","warning","info","question","error"]),fe=()=>document.body.querySelector(`.${b.container}`),mn=t=>{const e=fe();return e?e.querySelector(t):null},Be=t=>mn(`.${t}`),Y=()=>Be(b.popup),pn=()=>Be(b.icon),Ws=()=>Be(b.title),$n=()=>Be(b["html-container"]),qs=()=>Be(b.image),Gs=()=>Be(b["progress-steps"]),Fn=()=>Be(b["validation-message"]),Ke=()=>mn(`.${b.actions} .${b.confirm}`),ut=()=>mn(`.${b.actions} .${b.deny}`),rl=()=>Be(b["input-label"]),$t=()=>mn(`.${b.loader}`),bt=()=>mn(`.${b.actions} .${b.cancel}`),hn=()=>Be(b.actions),Ys=()=>Be(b.footer),zn=()=>Be(b["timer-progress-bar"]),Wr=()=>Be(b.close),ol=`
|
|
1
|
+
"use strict";var Ea=Object.defineProperty;var Ta=(t,e,n)=>e in t?Ea(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n;var Te=(t,e,n)=>Ta(t,typeof e!="symbol"?e+"":e,n);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const l=require("vue");class Aa{constructor(){Te(this,"_visible",l.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 Pa=new Aa,jr=()=>Pa;class tt{constructor(e){Te(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 Us(t=[]){let e="body > *:not(script):not(style)";for(const r of t)e+=`, ${r}`;const n=Math.max(...Array.from(document.querySelectorAll(e)).map(r=>{const o=getComputedStyle(r).zIndex;return+o==+o?+o:0}));return n>=100?n:100}let Ia=(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 jn=(t,e)=>{const n=t.__vccOpts||t;for(const[r,o]of e)n[r]=o;return n},xa={},Oa={class:"sf-loading-circle"},La=l.createElementVNode("div",null,[l.createElementVNode("svg",{viewBox:"25 25 50 50"},[l.createElementVNode("circle",{cx:"50",cy:"50",r:"20",fill:"none","stroke-width":"4","stroke-miterlimit":"10"})])],-1),$a=[La];function Ra(t,e){return l.openBlock(),l.createElementBlock("div",Oa,$a)}const Na=jn(xa,[["render",Ra]]),Fr=l.defineComponent({__name:"Tooltip",props:{text:{}},setup(t){const e=t;class n{constructor(){Te(this,"zIndex");Te(this,"wrapper");Te(this,"inner");this.zIndex=Us()+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(s){this.inner.textContent=e.text,document.body.appendChild(this.wrapper),this.Position(s),this.wrapper.classList.add("visible")}Hide(){this.wrapper.classList.remove("visible"),this.wrapper.remove()}Position(s){const a=s.currentTarget.getBoundingClientRect();this.FixWidth();const c=this.wrapper,u=10;c.style.top=`${a.bottom-u}px`,c.style.left=`${a.right-u}px`,this.OutOfBottom()&&(c.style.top=`${a.top-c.clientHeight+u}px`),this.OutOfRight()&&(c.style.left=`${a.left-c.clientWidth+u}px`)}FixWidth(){this.wrapper.style.width="fit-content",this.wrapper.style.wordBreak="normal",this.wrapper.style.whiteSpace="nowrap";const s=window.innerWidth/2;this.wrapper.clientWidth>s&&(this.wrapper.style.width=`${s}px`,this.wrapper.style.wordBreak="break-word",this.wrapper.style.whiteSpace="normal")}OutOfBottom(){return this.wrapper.getBoundingClientRect().bottom>(window.innerHeight||document.documentElement.clientHeight)}OutOfRight(){return this.wrapper.getBoundingClientRect().right>(window.innerWidth||document.documentElement.clientWidth)-10}}const r=new n;return l.onBeforeUnmount(()=>{r.Hide()}),(o,s)=>(l.openBlock(),l.createElementBlock("div",{class:"sf-tooltip-anchor",onMouseenter:s[0]||(s[0]=(...i)=>l.unref(r).Show&&l.unref(r).Show(...i)),onMouseleave:s[1]||(s[1]=(...i)=>l.unref(r).Hide&&l.unref(r).Hide(...i)),onMousedown:s[2]||(s[2]=(...i)=>l.unref(r).Hide&&l.unref(r).Hide(...i))},[l.renderSlot(o.$slots,"default")],32))}}),Ba=["disabled","tabindex"],Da=["data-color"],Ma=l.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:{},color:{default:"inherit"}},setup(t){const e=t,n=l.computed(()=>e.tooltip?Fr:"div"),r=l.computed(()=>new tt(e.tooltip?"":"display-content").AddClass("sf-component-loading",e.loading).AddClass("sf-component-disabled",e.disabled).Build()),o=l.computed(()=>new tt(`${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-icon-xlarge",e.size==="xl").AddClass("sf-icon-2xlarge",e.size==="2xl").AddClass("sf-icon-3xlarge",e.size==="3xl").AddClass("sf-ripple",e.button===!0).AddClass(`${e.color}-color`,!!e.color&&e.color!=="inherit").Build());return(s,i)=>(l.openBlock(),l.createBlock(l.resolveDynamicComponent(n.value),{text:e.tooltip,class:l.normalizeClass(r.value)},{default:l.withCtx(()=>[e.visible?(l.openBlock(),l.createElementBlock("div",{key:0,style:l.normalizeStyle(e.style),class:l.normalizeClass(o.value)},[l.createElementVNode("button",l.mergeProps({class:["material-symbols-outlined",{"icon-filled":!!e.filled}],disabled:e.disabled||e.loading},e.buttonProps,{tabindex:e.button?void 0:-1}),[e.loading?(l.openBlock(),l.createBlock(Na,{key:0})):(l.openBlock(),l.createElementBlock(l.Fragment,{key:1},[l.createTextVNode(l.toDisplayString(e.icon),1)],64))],16,Ba),e.dot?(l.openBlock(),l.createElementBlock("span",{key:0,"data-color":e.dotColor},null,8,Da)):l.createCommentVNode("",!0)],6)):l.createCommentVNode("",!0)]),_:1},8,["text","class"]))}}),Ln=jn(Ma,[["__scopeId","data-v-7ffc3790"]]),Ua=["id","onClick"],Ha={class:"sf-drawer-header"},Va={class:"sf-drawer-title"},ja={class:"sf-drawer-content"},Fa={key:0,class:"sf-drawer-footer"},Hs=l.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=l.useSlots(),s=l.ref(n.visible),i=l.ref(!1),a=l.ref(0),c=Ia();function u(){s.value=!1}function d(w){(w.key==="Escape"||w.code==="Escape")&&u()}function m(){r("open"),window.document.addEventListener("keydown",d,!0)}function g(w){a.value=Us(),w.style.zIndex=`${a.value}`}function _(w){var B;r("before-close"),(B=w==null?void 0:w.parentElement)==null||B.classList.add("sf-mask-overlay-leave")}function v(){window.document.removeEventListener("keydown",d,!0),i.value=!1}function T(){return new tt("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 l.watch(()=>n.visible,w=>{s.value=w}),l.watch(()=>s.value,w=>{r("update:visible",w),w&&(i.value=!0)}),(w,B)=>(l.openBlock(),l.createBlock(l.Teleport,{to:"body"},[i.value?(l.openBlock(),l.createElementBlock("div",{key:0,id:l.unref(c),class:l.normalizeClass(T()),style:l.normalizeStyle({zIndex:a.value-1}),onClick:l.withModifiers(u,["stop"])},[l.createVNode(l.Transition,{name:"sf-drawer",appear:"",onBeforeEnter:g,onEnter:m,onBeforeLeave:_,onAfterLeave:v},{default:l.withCtx(()=>[s.value?(l.openBlock(),l.createElementBlock("div",{key:0,class:l.normalizeClass(["sf-drawer",{"sf-drawer-with-footer":!!l.unref(o).footer}]),style:l.normalizeStyle(n.style),role:"dialog",onClick:B[0]||(B[0]=l.withModifiers(C=>w.void,["stop"]))},[l.createElementVNode("div",Ha,[l.createElementVNode("span",Va,[l.renderSlot(w.$slots,"title")]),l.createVNode(Ln,{button:!0,icon:"close",onClick:l.withModifiers(u,["stop"])},null,8,["onClick"])]),l.createElementVNode("div",ja,[l.renderSlot(w.$slots,"default")]),l.unref(o).footer?(l.openBlock(),l.createElementBlock("div",Fa,[l.renderSlot(w.$slots,"footer")])):l.createCommentVNode("",!0)],6)):l.createCommentVNode("",!0)]),_:3})],14,Ua)):l.createCommentVNode("",!0)]))}}),za=["id","name","disabled","data-color","form","type"],Ka={class:"sf-button-label"},Vs=l.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:{},iconFilled:{type:Boolean}},setup(t){const e=t;function n(){return new tt(`${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?(l.openBlock(),l.createElementBlock("button",{key:0,id:e.id,name:e.name,class:l.normalizeClass(n()),style:l.normalizeStyle(e.style),disabled:e.disabled||e.loading,"data-color":e.color,form:e.form,type:e.type},[e.icon?(l.openBlock(),l.createBlock(Ln,{key:0,icon:e.icon,loading:e.loading,size:e.size,color:void 0,"button-props":{tabindex:-1},filled:e.iconFilled},null,8,["icon","loading","size","filled"])):e.loading?(l.openBlock(),l.createBlock(Ln,{key:1,loading:!0,size:e.size,"button-props":{tabindex:-1}},null,8,["size"])):l.createCommentVNode("",!0),l.createElementVNode("span",Ka,[l.renderSlot(r.$slots,"default")])],14,za)):l.createCommentVNode("",!0)}}),js="SweetAlert2:",Wa=t=>{const e=[];for(let n=0;n<t.length;n++)e.indexOf(t[n])===-1&&e.push(t[n]);return e},zr=t=>t.charAt(0).toUpperCase()+t.slice(1),Oe=t=>Array.prototype.slice.call(t),Ce=t=>{console.warn(`${js} ${typeof t=="object"?t.join(" "):t}`)},kt=t=>{console.error(`${js} ${t}`)},Ro=[],qa=t=>{Ro.includes(t)||(Ro.push(t),Ce(t))},Ga=(t,e)=>{qa(`"${t}" is deprecated and will be removed in the next major release. Please use "${e}" instead.`)},Fn=t=>typeof t=="function"?t():t,Kr=t=>t&&typeof t.toPromise=="function",fn=t=>Kr(t)?t.toPromise():Promise.resolve(t),Wr=t=>t&&Promise.resolve(t)===t,It={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:"×",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},Ya=["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"],Ja={},Xa=["allowOutsideClick","allowEnterKey","backdrop","focusConfirm","focusDeny","focusCancel","returnFocus","heightAuto","keydownListenerCapture"],Fs=t=>Object.prototype.hasOwnProperty.call(It,t),zs=t=>Ya.indexOf(t)!==-1,Cr=t=>Ja[t],Za=t=>{Fs(t)||Ce(`Unknown parameter "${t}"`)},Qa=t=>{Xa.includes(t)&&Ce(`The parameter "${t}" is incompatible with toasts`)},el=t=>{Cr(t)&&Ga(t,Cr(t))},tl=t=>{!t.backdrop&&t.allowOutsideClick&&Ce('"allowOutsideClick" parameter requires `backdrop` parameter to be set to `true`');for(const e in t)Za(e),t.toast&&Qa(e),el(e)},nl="swal2-",Ks=t=>{const e={};for(const n in t)e[t[n]]=nl+t[n];return e},b=Ks(["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=Ks(["success","warning","info","question","error"]),fe=()=>document.body.querySelector(`.${b.container}`),mn=t=>{const e=fe();return e?e.querySelector(t):null},Be=t=>mn(`.${t}`),Y=()=>Be(b.popup),pn=()=>Be(b.icon),Ws=()=>Be(b.title),$n=()=>Be(b["html-container"]),qs=()=>Be(b.image),Gs=()=>Be(b["progress-steps"]),zn=()=>Be(b["validation-message"]),Ke=()=>mn(`.${b.actions} .${b.confirm}`),ut=()=>mn(`.${b.actions} .${b.deny}`),rl=()=>Be(b["input-label"]),$t=()=>mn(`.${b.loader}`),bt=()=>mn(`.${b.actions} .${b.cancel}`),hn=()=>Be(b.actions),Ys=()=>Be(b.footer),Kn=()=>Be(b["timer-progress-bar"]),qr=()=>Be(b.close),ol=`
|
|
2
2
|
a[href],
|
|
3
3
|
area[href],
|
|
4
4
|
input:not([disabled]),
|
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
audio[controls],
|
|
14
14
|
video[controls],
|
|
15
15
|
summary
|
|
16
|
-
`,
|
|
16
|
+
`,Gr=()=>{const t=Oe(Y().querySelectorAll('[tabindex]:not([tabindex="-1"]):not([tabindex="0"])')).sort((n,r)=>{const o=parseInt(n.getAttribute("tabindex")),s=parseInt(r.getAttribute("tabindex"));return o>s?1:o<s?-1:0}),e=Oe(Y().querySelectorAll(ol)).filter(n=>n.getAttribute("tabindex")!=="-1");return Wa(t.concat(e)).filter(n=>Pe(n))},Yr=()=>rt(document.body,b.shown)&&!rt(document.body,b["toast-shown"])&&!rt(document.body,b["no-backdrop"]),Wn=()=>Y()&&rt(Y(),b.toast),sl=()=>Y().hasAttribute("data-loading"),xt={previousBodyPadding:null},de=(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)})}},rt=(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},il=(t,e)=>{Oe(t.classList).forEach(n=>{!Object.values(b).includes(n)&&!Object.values(Xt).includes(n)&&!Object.values(e.showClass).includes(n)&&t.classList.remove(n)})},Ne=(t,e,n)=>{if(il(t,e),e.customClass&&e.customClass[n]){if(typeof e.customClass[n]!="string"&&!e.customClass[n].forEach)return Ce(`Invalid type of customClass.${n}! Expected string or iterable object, got "${typeof e.customClass[n]}"`);W(t,e.customClass[n])}},Jr=(t,e)=>{if(!e)return null;switch(e){case"select":case"textarea":case"file":return t.querySelector(`.${b.popup} > .${b[e]}`);case"checkbox":return t.querySelector(`.${b.popup} > .${b.checkbox} input`);case"radio":return t.querySelector(`.${b.popup} > .${b.radio} input:checked`)||t.querySelector(`.${b.popup} > .${b.radio} input:first-child`);case"range":return t.querySelector(`.${b.popup} > .${b.range} input`);default:return t.querySelector(`.${b.popup} > .${b.input}`)}},Js=t=>{if(t.focus(),t.type!=="file"){const e=t.value;t.value="",t.value=e}},Xs=(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)}))},W=(t,e)=>{Xs(t,e,!0)},Je=(t,e)=>{Xs(t,e,!1)},ct=(t,e)=>{const n=Oe(t.childNodes);for(let r=0;r<n.length;r++)if(rt(n[r],e))return n[r]},Zt=(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)},le=(t,e="flex")=>{t.style.display=e},me=t=>{t.style.display="none"},No=(t,e,n,r)=>{const o=t.querySelector(e);o&&(o.style[n]=r)},qn=(t,e,n)=>{e?le(t,n):me(t)},Pe=t=>!!(t&&(t.offsetWidth||t.offsetHeight||t.getClientRects().length)),al=()=>!Pe(Ke())&&!Pe(ut())&&!Pe(bt()),Bo=t=>t.scrollHeight>t.clientHeight,Zs=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},Xr=(t,e=!1)=>{const n=Kn();Pe(n)&&(e&&(n.style.transition="none",n.style.width="100%"),setTimeout(()=>{n.style.transition=`width ${t/1e3}s linear`,n.style.width="0%"},10))},ll=()=>{const t=Kn(),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}%`},Qs=()=>typeof window>"u"||typeof document>"u",cl=100,H={},ul=()=>{H.previousActiveElement&&H.previousActiveElement.focus?(H.previousActiveElement.focus(),H.previousActiveElement=null):document.body&&document.body.focus()},dl=t=>new Promise(e=>{if(!t)return e();const n=window.scrollX,r=window.scrollY;H.restoreFocusTimeout=setTimeout(()=>{ul(),e()},cl),window.scrollTo(n,r)}),fl=`
|
|
17
17
|
<div aria-labelledby="${b.title}" aria-describedby="${b["html-container"]}" class="${b.popup}" tabindex="-1">
|
|
18
18
|
<button type="button" class="${b.close}"></button>
|
|
19
19
|
<ul class="${b["progress-steps"]}"></ul>
|
|
@@ -46,7 +46,7 @@
|
|
|
46
46
|
<div class="${b["timer-progress-bar"]}"></div>
|
|
47
47
|
</div>
|
|
48
48
|
</div>
|
|
49
|
-
`.replace(/(^|\n)\s*/g,""),ml=()=>{const t=fe();return t?(t.remove(),Je([document.documentElement,document.body],[b["no-backdrop"],b["toast-shown"],b["has-column"]]),!0):!1},pt=()=>{H.currentInstance.resetValidationMessage()},pl=()=>{const t=Y(),e=ct(t,b.input),n=ct(t,b.file),r=t.querySelector(`.${b.range} input`),o=t.querySelector(`.${b.range} output`),s=ct(t,b.select),i=t.querySelector(`.${b.checkbox} input`),a=ct(t,b.textarea);e.oninput=pt,n.onchange=pt,s.onchange=pt,i.onchange=pt,a.oninput=pt,r.oninput=()=>{pt(),o.value=r.value},r.onchange=()=>{pt(),r.nextSibling.value=r.value}},hl=t=>typeof t=="string"?document.querySelector(t):t,gl=t=>{const e=Y();e.setAttribute("role",t.toast?"alert":"dialog"),e.setAttribute("aria-live",t.toast?"polite":"assertive"),t.toast||e.setAttribute("aria-modal","true")},yl=t=>{window.getComputedStyle(t).direction==="rtl"&&W(fe(),b.rtl)},vl=t=>{const e=ml();if(Qs()){kt("SweetAlert2 requires document to initialize");return}const n=document.createElement("div");n.className=b.container,e&&W(n,b["no-transition"]),de(n,fl);const r=hl(t.target);r.appendChild(n),gl(t),yl(r),pl()},
|
|
49
|
+
`.replace(/(^|\n)\s*/g,""),ml=()=>{const t=fe();return t?(t.remove(),Je([document.documentElement,document.body],[b["no-backdrop"],b["toast-shown"],b["has-column"]]),!0):!1},pt=()=>{H.currentInstance.resetValidationMessage()},pl=()=>{const t=Y(),e=ct(t,b.input),n=ct(t,b.file),r=t.querySelector(`.${b.range} input`),o=t.querySelector(`.${b.range} output`),s=ct(t,b.select),i=t.querySelector(`.${b.checkbox} input`),a=ct(t,b.textarea);e.oninput=pt,n.onchange=pt,s.onchange=pt,i.onchange=pt,a.oninput=pt,r.oninput=()=>{pt(),o.value=r.value},r.onchange=()=>{pt(),r.nextSibling.value=r.value}},hl=t=>typeof t=="string"?document.querySelector(t):t,gl=t=>{const e=Y();e.setAttribute("role",t.toast?"alert":"dialog"),e.setAttribute("aria-live",t.toast?"polite":"assertive"),t.toast||e.setAttribute("aria-modal","true")},yl=t=>{window.getComputedStyle(t).direction==="rtl"&&W(fe(),b.rtl)},vl=t=>{const e=ml();if(Qs()){kt("SweetAlert2 requires document to initialize");return}const n=document.createElement("div");n.className=b.container,e&&W(n,b["no-transition"]),de(n,fl);const r=hl(t.target);r.appendChild(n),gl(t),yl(r),pl()},Zr=(t,e)=>{t instanceof HTMLElement?e.appendChild(t):typeof t=="object"?bl(t,e):t&&de(e,t)},bl=(t,e)=>{t.jquery?wl(e,t):de(e,t.toString())},wl=(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))},en=(()=>{if(Qs())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})(),Sl=()=>{const t=document.createElement("div");t.className=b["scrollbar-measure"],document.body.appendChild(t);const e=t.getBoundingClientRect().width-t.clientWidth;return document.body.removeChild(t),e},_l=(t,e)=>{const n=hn(),r=$t();!e.showConfirmButton&&!e.showDenyButton&&!e.showCancelButton?me(n):le(n),Ne(n,e,"actions"),kl(n,r,e),de(r,e.loaderHtml),Ne(r,e,"loader")};function kl(t,e,n){const r=Ke(),o=ut(),s=bt();ar(r,"confirm",n),ar(o,"deny",n),ar(s,"cancel",n),Cl(r,o,s,n),n.reverseButtons&&(n.toast?(t.insertBefore(s,r),t.insertBefore(o,r)):(t.insertBefore(s,e),t.insertBefore(o,e),t.insertBefore(r,e)))}function Cl(t,e,n,r){if(!r.buttonsStyling)return Je([t,e,n],b.styled);W([t,e,n],b.styled),r.confirmButtonColor&&(t.style.backgroundColor=r.confirmButtonColor,W(t,b["default-outline"])),r.denyButtonColor&&(e.style.backgroundColor=r.denyButtonColor,W(e,b["default-outline"])),r.cancelButtonColor&&(n.style.backgroundColor=r.cancelButtonColor,W(n,b["default-outline"]))}function ar(t,e,n){qn(t,n[`show${zr(e)}Button`],"inline-block"),de(t,n[`${e}ButtonText`]),t.setAttribute("aria-label",n[`${e}ButtonAriaLabel`]),t.className=b[e],Ne(t,n,`${e}Button`),W(t,n[`${e}ButtonClass`])}function El(t,e){typeof e=="string"?t.style.background=e:e||W([document.documentElement,document.body],b["no-backdrop"])}function Tl(t,e){e in b?W(t,b[e]):(Ce('The "position" parameter is not valid, defaulting to "center"'),W(t,b.center))}function Al(t,e){if(e&&typeof e=="string"){const n=`grow-${e}`;n in b&&W(t,b[n])}}const Pl=(t,e)=>{const n=fe();n&&(El(n,e.backdrop),Tl(n,e.position),Al(n,e.grow),Ne(n,e,"container"))},V={awaitingPromise:new WeakMap,promise:new WeakMap,innerParams:new WeakMap,domCache:new WeakMap},Il=["input","file","range","select","radio","checkbox","textarea"],xl=(t,e)=>{const n=Y(),r=V.innerParams.get(t),o=!r||e.input!==r.input;Il.forEach(s=>{const i=b[s],a=ct(n,i);$l(s,e.inputAttributes),a.className=i,o&&me(a)}),e.input&&(o&&Ol(e),Rl(e))},Ol=t=>{if(!Se[t.input])return kt(`Unexpected type of input! Expected "text", "email", "password", "number", "tel", "select", "radio", "checkbox", "textarea", "file" or "url", got "${t.input}"`);const e=ei(t.input),n=Se[t.input](e,t);le(n),setTimeout(()=>{Js(n)})},Ll=t=>{for(let e=0;e<t.attributes.length;e++){const n=t.attributes[e].name;["type","value","style"].includes(n)||t.removeAttribute(n)}},$l=(t,e)=>{const n=Jr(Y(),t);if(n){Ll(n);for(const r in e)n.setAttribute(r,e[r])}},Rl=t=>{const e=ei(t.input);t.customClass&&W(e,t.customClass.input)},Qr=(t,e)=>{(!t.placeholder||e.inputPlaceholder)&&(t.placeholder=e.inputPlaceholder)},gn=(t,e,n)=>{if(n.inputLabel){t.id=b.input;const r=document.createElement("label"),o=b["input-label"];r.setAttribute("for",t.id),r.className=o,W(r,n.customClass.inputLabel),r.innerText=n.inputLabel,e.insertAdjacentElement("beforebegin",r)}},ei=t=>{const e=b[t]?b[t]:b.input;return ct(Y(),e)},Se={};Se.text=Se.email=Se.password=Se.number=Se.tel=Se.url=(t,e)=>(typeof e.inputValue=="string"||typeof e.inputValue=="number"?t.value=e.inputValue:Wr(e.inputValue)||Ce(`Unexpected type of inputValue! Expected "string", "number" or "Promise", got "${typeof e.inputValue}"`),gn(t,t,e),Qr(t,e),t.type=e.input,t);Se.file=(t,e)=>(gn(t,t,e),Qr(t,e),t);Se.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,gn(n,t,e),t};Se.select=(t,e)=>{if(t.textContent="",e.inputPlaceholder){const n=document.createElement("option");de(n,e.inputPlaceholder),n.value="",n.disabled=!0,n.selected=!0,t.appendChild(n)}return gn(t,t,e),t};Se.radio=t=>(t.textContent="",t);Se.checkbox=(t,e)=>{const n=Jr(Y(),"checkbox");n.value="1",n.id=b.checkbox,n.checked=!!e.inputValue;const r=t.querySelector("span");return de(r,e.inputPlaceholder),t};Se.textarea=(t,e)=>{t.value=e.inputValue,Qr(t,e),gn(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(Y()).width),o=()=>{const s=t.offsetWidth+n(t);s>r?Y().style.width=`${s}px`:Y().style.width=null};new MutationObserver(o).observe(t,{attributes:!0,attributeFilter:["style"]})}}),t};const Nl=(t,e)=>{const n=$n();Ne(n,e,"htmlContainer"),e.html?(Zr(e.html,n),le(n,"block")):e.text?(n.textContent=e.text,le(n,"block")):me(n),xl(t,e)},Bl=(t,e)=>{const n=Ys();qn(n,e.footer),e.footer&&Zr(e.footer,n),Ne(n,e,"footer")},Dl=(t,e)=>{const n=qr();de(n,e.closeButtonHtml),Ne(n,e,"closeButton"),qn(n,e.showCloseButton),n.setAttribute("aria-label",e.closeButtonAriaLabel)},Ml=(t,e)=>{const n=V.innerParams.get(t),r=pn();if(n&&e.icon===n.icon){Mo(r,e),Do(r,e);return}if(!e.icon&&!e.iconHtml)return me(r);if(e.icon&&Object.keys(Xt).indexOf(e.icon)===-1)return kt(`Unknown icon! Expected "success", "error", "warning", "info" or "question", got "${e.icon}"`),me(r);le(r),Mo(r,e),Do(r,e),W(r,e.showClass.icon)},Do=(t,e)=>{for(const n in Xt)e.icon!==n&&Je(t,Xt[n]);W(t,Xt[e.icon]),jl(t,e),Ul(),Ne(t,e,"icon")},Ul=()=>{const t=Y(),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},Hl=`
|
|
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>
|
|
@@ -56,19 +56,19 @@
|
|
|
56
56
|
<span class="swal2-x-mark-line-left"></span>
|
|
57
57
|
<span class="swal2-x-mark-line-right"></span>
|
|
58
58
|
</span>
|
|
59
|
-
`,Mo=(t,e)=>{t.textContent="",e.iconHtml?de(t,Uo(e.iconHtml)):e.icon==="success"?de(t,Hl):e.icon==="error"?de(t,Vl):de(t,Uo({question:"?",warning:"!",info:"i"}[e.icon]))},jl=(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"])No(t,n,"backgroundColor",e.iconColor);No(t,".swal2-success-ring","borderColor",e.iconColor)}},Uo=t=>`<div class="${b["icon-content"]}">${t}</div>`,Fl=(t,e)=>{const n=qs();if(!e.imageUrl)return me(n);le(n,""),n.setAttribute("src",e.imageUrl),n.setAttribute("alt",e.imageAlt),Zt(n,"width",e.imageWidth),Zt(n,"height",e.imageHeight),n.className=b.image,Ne(n,e,"image")},zl=t=>{const e=document.createElement("li");return W(e,b["progress-step"]),de(e,t),e},Kl=t=>{const e=document.createElement("li");return W(e,b["progress-step-line"]),t.progressStepsDistance&&(e.style.width=t.progressStepsDistance),e},Wl=(t,e)=>{const n=Gs();if(!e.progressSteps||e.progressSteps.length===0)return me(n);le(n),n.textContent="",e.currentProgressStep>=e.progressSteps.length&&Ce("Invalid currentProgressStep parameter, it should be less than progressSteps.length (currentProgressStep like JS arrays starts from 0)"),e.progressSteps.forEach((r,o)=>{const s=zl(r);if(n.appendChild(s),o===e.currentProgressStep&&W(s,b["active-progress-step"]),o!==e.progressSteps.length-1){const i=Kl(e);n.appendChild(i)}})},ql=(t,e)=>{const n=Ws();
|
|
59
|
+
`,Mo=(t,e)=>{t.textContent="",e.iconHtml?de(t,Uo(e.iconHtml)):e.icon==="success"?de(t,Hl):e.icon==="error"?de(t,Vl):de(t,Uo({question:"?",warning:"!",info:"i"}[e.icon]))},jl=(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"])No(t,n,"backgroundColor",e.iconColor);No(t,".swal2-success-ring","borderColor",e.iconColor)}},Uo=t=>`<div class="${b["icon-content"]}">${t}</div>`,Fl=(t,e)=>{const n=qs();if(!e.imageUrl)return me(n);le(n,""),n.setAttribute("src",e.imageUrl),n.setAttribute("alt",e.imageAlt),Zt(n,"width",e.imageWidth),Zt(n,"height",e.imageHeight),n.className=b.image,Ne(n,e,"image")},zl=t=>{const e=document.createElement("li");return W(e,b["progress-step"]),de(e,t),e},Kl=t=>{const e=document.createElement("li");return W(e,b["progress-step-line"]),t.progressStepsDistance&&(e.style.width=t.progressStepsDistance),e},Wl=(t,e)=>{const n=Gs();if(!e.progressSteps||e.progressSteps.length===0)return me(n);le(n),n.textContent="",e.currentProgressStep>=e.progressSteps.length&&Ce("Invalid currentProgressStep parameter, it should be less than progressSteps.length (currentProgressStep like JS arrays starts from 0)"),e.progressSteps.forEach((r,o)=>{const s=zl(r);if(n.appendChild(s),o===e.currentProgressStep&&W(s,b["active-progress-step"]),o!==e.progressSteps.length-1){const i=Kl(e);n.appendChild(i)}})},ql=(t,e)=>{const n=Ws();qn(n,e.title||e.titleText,"block"),e.title&&Zr(e.title,n),e.titleText&&(n.innerText=e.titleText),Ne(n,e,"title")},Gl=(t,e)=>{const n=fe(),r=Y();e.toast?(Zt(n,"width",e.width),r.style.width="100%",r.insertBefore($t(),pn())):Zt(r,"width",e.width),Zt(r,"padding",e.padding),e.color&&(r.style.color=e.color),e.background&&(r.style.background=e.background),me(zn()),Yl(r,e)},Yl=(t,e)=>{t.className=`${b.popup} ${Pe(t)?e.showClass.popup:""}`,e.toast?(W([document.documentElement,document.body],b["toast-shown"]),W(t,b.toast)):W(t,b.modal),Ne(t,e,"popup"),typeof e.customClass=="string"&&W(t,e.customClass),e.icon&&W(t,b[`icon-${e.icon}`])},ti=(t,e)=>{Gl(t,e),Pl(t,e),Wl(t,e),Ml(t,e),Fl(t,e),ql(t,e),Dl(t,e),Nl(t,e),_l(t,e),Bl(t,e),typeof e.didRender=="function"&&e.didRender(Y())},Rt=Object.freeze({cancel:"cancel",backdrop:"backdrop",close:"close",esc:"esc",timer:"timer"}),Jl=()=>{Oe(document.body.children).forEach(e=>{e===fe()||e.contains(fe())||(e.hasAttribute("aria-hidden")&&e.setAttribute("data-previous-aria-hidden",e.getAttribute("aria-hidden")),e.setAttribute("aria-hidden","true"))})},ni=()=>{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")})},ri=["swal-title","swal-html","swal-footer"],Xl=t=>{const e=typeof t.template=="string"?document.querySelector(t.template):t.template;if(!e)return{};const n=e.content;return oc(n),Object.assign(Zl(n),Ql(n),ec(n),tc(n),nc(n),rc(n,ri))},Zl=t=>{const e={};return Oe(t.querySelectorAll("swal-param")).forEach(n=>{wt(n,["name","value"]);const r=n.getAttribute("name"),o=n.getAttribute("value");typeof It[r]=="boolean"&&o==="false"&&(e[r]=!1),typeof It[r]=="object"&&(e[r]=JSON.parse(o))}),e},Ql=t=>{const e={};return Oe(t.querySelectorAll("swal-button")).forEach(n=>{wt(n,["type","color","aria-label"]);const r=n.getAttribute("type");e[`${r}ButtonText`]=n.innerHTML,e[`show${zr(r)}Button`]=!0,n.hasAttribute("color")&&(e[`${r}ButtonColor`]=n.getAttribute("color")),n.hasAttribute("aria-label")&&(e[`${r}ButtonAriaLabel`]=n.getAttribute("aria-label"))}),e},ec=t=>{const e={},n=t.querySelector("swal-image");return n&&(wt(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},tc=t=>{const e={},n=t.querySelector("swal-icon");return n&&(wt(n,["type","color"]),n.hasAttribute("type")&&(e.icon=n.getAttribute("type")),n.hasAttribute("color")&&(e.iconColor=n.getAttribute("color")),e.iconHtml=n.innerHTML),e},nc=t=>{const e={},n=t.querySelector("swal-input");n&&(wt(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=>{wt(o,["value"]);const s=o.getAttribute("value"),i=o.innerHTML;e.inputOptions[s]=i})),e},rc=(t,e)=>{const n={};for(const r in e){const o=e[r],s=t.querySelector(o);s&&(wt(s,[]),n[o.replace(/^swal-/,"")]=s.innerHTML.trim())}return n},oc=t=>{const e=ri.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&&Ce(`Unrecognized element <${r}>`)})},wt=(t,e)=>{Oe(t.attributes).forEach(n=>{e.indexOf(n.name)===-1&&Ce([`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 sc(t){t.inputValidator||Object.keys(Ho).forEach(e=>{t.input===e&&(t.inputValidator=Ho[e])})}function ic(t){(!t.target||typeof t.target=="string"&&!document.querySelector(t.target)||typeof t.target!="string"&&!t.target.appendChild)&&(Ce('Target parameter is not valid, defaulting to "body"'),t.target="body")}function ac(t){sc(t),t.showLoaderOnConfirm&&!t.preConfirm&&Ce(`showLoaderOnConfirm is set to true, but preConfirm is not defined.
|
|
60
60
|
showLoaderOnConfirm should be used together with preConfirm, see usage example:
|
|
61
61
|
https://sweetalert2.github.io/#ajax-request`),ic(t),typeof t.title=="string"&&(t.title=t.title.split(`
|
|
62
|
-
`).join("<br />")),vl(t)}class lc{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 cc=()=>{xt.previousBodyPadding===null&&document.body.scrollHeight>window.innerHeight&&(xt.previousBodyPadding=parseInt(window.getComputedStyle(document.body).getPropertyValue("padding-right")),document.body.style.paddingRight=`${xt.previousBodyPadding+Sl()}px`)},uc=()=>{xt.previousBodyPadding!==null&&(document.body.style.paddingRight=`${xt.previousBodyPadding}px`,xt.previousBodyPadding=null)},dc=()=>{if((/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream||navigator.platform==="MacIntel"&&navigator.maxTouchPoints>1)&&!rt(document.body,b.iosfix)){const e=document.body.scrollTop;document.body.style.top=`${e*-1}px`,W(document.body,b.iosfix),mc(),fc()}},fc=()=>{const t=navigator.userAgent,e=!!t.match(/iPad/i)||!!t.match(/iPhone/i),n=!!t.match(/WebKit/i);e&&n&&!t.match(/CriOS/i)&&Y().scrollHeight>window.innerHeight-44&&(fe().style.paddingBottom="44px")},mc=()=>{const t=fe();let e;t.ontouchstart=n=>{e=pc(n)},t.ontouchmove=n=>{e&&(n.preventDefault(),n.stopPropagation())}},pc=t=>{const e=t.target,n=fe();return hc(t)||gc(t)?!1:e===n||!Bo(n)&&e.tagName!=="INPUT"&&e.tagName!=="TEXTAREA"&&!(Bo($n())&&$n().contains(e))},hc=t=>t.touches&&t.touches.length&&t.touches[0].touchType==="stylus",gc=t=>t.touches&&t.touches.length>1,yc=()=>{if(rt(document.body,b.iosfix)){const t=parseInt(document.body.style.top,10);Je(document.body,b.iosfix),document.body.style.top="",document.body.scrollTop=t*-1}},oi=10,vc=t=>{const e=fe(),n=Y();typeof t.willOpen=="function"&&t.willOpen(n);const o=window.getComputedStyle(document.body).overflowY;Sc(e,n,t),setTimeout(()=>{bc(e,n)},oi),Gr()&&(wc(e,t.scrollbarPadding,o),Jl()),!Kn()&&!H.previousActiveElement&&(H.previousActiveElement=document.activeElement),typeof t.didOpen=="function"&&setTimeout(()=>t.didOpen(n)),Je(e,b["no-transition"])},si=t=>{const e=Y();if(t.target!==e)return;const n=fe();e.removeEventListener(en,si),n.style.overflowY="auto"},bc=(t,e)=>{en&&Zs(e)?(t.style.overflowY="hidden",e.addEventListener(en,si)):t.style.overflowY="auto"},wc=(t,e,n)=>{dc(),e&&n!=="hidden"&&cc(),setTimeout(()=>{t.scrollTop=0})},Sc=(t,e,n)=>{W(t,n.showClass.backdrop),e.style.setProperty("opacity","0","important"),le(e,"grid"),setTimeout(()=>{W(e,n.showClass.popup),e.style.removeProperty("opacity")},oi),W([document.documentElement,document.body],b.shown),n.heightAuto&&n.backdrop&&!n.toast&&W([document.documentElement,document.body],b["height-auto"])},Ot=t=>{let e=Y();e||new Lt,e=Y();const n=$t();Kn()?me(pn()):_c(e,t),le(n),e.setAttribute("data-loading",!0),e.setAttribute("aria-busy",!0),e.focus()},_c=(t,e)=>{const n=hn(),r=$t();!e&&Pe(Ke())&&(e=Ke()),le(n),e&&(me(e),r.setAttribute("data-button-to-replace",e.className)),r.parentNode.insertBefore(r,e),W([t,n],b.loading)},kc=(t,e)=>{e.input==="select"||e.input==="radio"?Pc(t,e):["text","email","number","tel","textarea"].includes(e.input)&&(zr(e.inputValue)||Kr(e.inputValue))&&(Ot(Ke()),Ic(t,e))},Cc=(t,e)=>{const n=t.getInput();if(!n)return null;switch(e.input){case"checkbox":return Ec(n);case"radio":return Tc(n);case"file":return Ac(n);default:return e.inputAutoTrim?n.value.trim():n.value}},Ec=t=>t.checked?1:0,Tc=t=>t.checked?t.value:null,Ac=t=>t.files.length?t.getAttribute("multiple")!==null?t.files:t.files[0]:null,Pc=(t,e)=>{const n=Y(),r=o=>xc[e.input](n,Cr(o),e);zr(e.inputOptions)||Kr(e.inputOptions)?(Ot(Ke()),fn(e.inputOptions).then(o=>{t.hideLoading(),r(o)})):typeof e.inputOptions=="object"?r(e.inputOptions):kt(`Unexpected type of inputOptions! Expected object, Map or Promise, got ${typeof e.inputOptions}`)},Ic=(t,e)=>{const n=t.getInput();me(n),fn(e.inputValue).then(r=>{n.value=e.input==="number"?parseFloat(r)||0:`${r}`,le(n),n.focus(),t.hideLoading()}).catch(r=>{kt(`Error in inputValue promise: ${r}`),n.value="",le(n),n.focus(),t.hideLoading()})},xc={select:(t,e,n)=>{const r=ct(t,b.select),o=(s,i,a)=>{const c=document.createElement("option");c.value=a,de(c,i),c.selected=Vo(a,n.inputValue),s.appendChild(c)};e.forEach(s=>{const i=s[0],a=s[1];if(Array.isArray(a)){const c=document.createElement("optgroup");c.label=i,c.disabled=!1,r.appendChild(c),a.forEach(u=>o(c,u[1],u[0]))}else o(r,a,i)}),r.focus()},radio:(t,e,n)=>{const r=ct(t,b.radio);e.forEach(s=>{const i=s[0],a=s[1],c=document.createElement("input"),u=document.createElement("label");c.type="radio",c.name=b.radio,c.value=i,Vo(i,n.inputValue)&&(c.checked=!0);const d=document.createElement("span");de(d,a),d.className=b.label,u.appendChild(c),u.appendChild(d),r.appendChild(u)});const o=r.querySelectorAll("input");o.length&&o[0].focus()}},Cr=t=>{const e=[];return typeof Map<"u"&&t instanceof Map?t.forEach((n,r)=>{let o=n;typeof o=="object"&&(o=Cr(o)),e.push([r,o])}):Object.keys(t).forEach(n=>{let r=t[n];typeof r=="object"&&(r=Cr(r)),e.push([n,r])}),e},Vo=(t,e)=>e&&e.toString()===t.toString();function jo(){const t=V.innerParams.get(this);if(!t)return;const e=V.domCache.get(this);me(e.loader),Kn()?t.icon&&le(pn()):Oc(e),Je([e.popup,e.actions],b.loading),e.popup.removeAttribute("aria-busy"),e.popup.removeAttribute("data-loading"),e.confirmButton.disabled=!1,e.denyButton.disabled=!1,e.cancelButton.disabled=!1}const Oc=t=>{const e=t.popup.getElementsByClassName(t.loader.getAttribute("data-button-to-replace"));e.length?le(e[0],"inline-block"):al()&&me(t.actions)};function Lc(t){const e=V.innerParams.get(t||this),n=V.domCache.get(t||this);return n?Yr(n.popup,e.input):null}const tn={swalPromiseResolve:new WeakMap,swalPromiseReject:new WeakMap},$c=()=>Pe(Y()),ii=()=>Ke()&&Ke().click(),Rc=()=>ut()&&ut().click(),Nc=()=>bt()&&bt().click(),ai=t=>{t.keydownTarget&&t.keydownHandlerAdded&&(t.keydownTarget.removeEventListener("keydown",t.keydownHandler,{capture:t.keydownListenerCapture}),t.keydownHandlerAdded=!1)},Bc=(t,e,n,r)=>{ai(e),n.toast||(e.keydownHandler=o=>Mc(t,o,r),e.keydownTarget=n.keydownListenerCapture?window:Y(),e.keydownListenerCapture=n.keydownListenerCapture,e.keydownTarget.addEventListener("keydown",e.keydownHandler,{capture:e.keydownListenerCapture}),e.keydownHandlerAdded=!0)},Er=(t,e,n)=>{const r=qr();if(r.length)return e=e+n,e===r.length?e=0:e===-1&&(e=r.length-1),r[e].focus();Y().focus()},li=["ArrowRight","ArrowDown"],Dc=["ArrowLeft","ArrowUp"],Mc=(t,e,n)=>{const r=V.innerParams.get(t);r&&(e.isComposing||e.keyCode===229||(r.stopKeydownPropagation&&e.stopPropagation(),e.key==="Enter"?Uc(t,e,r):e.key==="Tab"?Hc(e,r):[...li,...Dc].includes(e.key)?Vc(e.key):e.key==="Escape"&&jc(e,r,n)))},Uc=(t,e,n)=>{if(jn(n.allowEnterKey)&&e.target&&t.getInput()&&e.target.outerHTML===t.getInput().outerHTML){if(["textarea","file"].includes(n.input))return;ii(),e.preventDefault()}},Hc=(t,e)=>{const n=t.target,r=qr();let o=-1;for(let s=0;s<r.length;s++)if(n===r[s]){o=s;break}t.shiftKey?Er(e,o,-1):Er(e,o,1),t.stopPropagation(),t.preventDefault()},Vc=t=>{const e=Ke(),n=ut(),r=bt();if(![e,n,r].includes(document.activeElement))return;const o=li.includes(t)?"nextElementSibling":"previousElementSibling";let s=document.activeElement;for(let i=0;i<hn().children.length;i++){if(s=s[o],!s)return;if(Pe(s)&&s instanceof HTMLButtonElement)break}s instanceof HTMLButtonElement&&s.focus()},jc=(t,e,n)=>{jn(e.allowEscapeKey)&&(t.preventDefault(),n(Rt.esc))};function ci(t,e,n,r){Kn()?Fo(t,r):(dl(n).then(()=>Fo(t,r)),ai(H)),/^((?!chrome|android).)*safari/i.test(navigator.userAgent)?(e.setAttribute("style","display:none !important"),e.removeAttribute("class"),e.innerHTML=""):e.remove(),Gr()&&(uc(),yc(),ni()),Fc()}function Fc(){Je([document.documentElement,document.body],[b.shown,b["height-auto"],b["no-backdrop"],b["toast-shown"]])}function _n(t){t=qc(t);const e=tn.swalPromiseResolve.get(this),n=Kc(this);this.isAwaitingPromise()?t.isDismissed||(yn(this),e(t)):n&&e(t)}function zc(){return!!V.awaitingPromise.get(this)}const Kc=t=>{const e=Y();if(!e)return!1;const n=V.innerParams.get(t);if(!n||rt(e,n.hideClass.popup))return!1;Je(e,n.showClass.popup),W(e,n.hideClass.popup);const r=fe();return Je(r,n.showClass.backdrop),W(r,n.hideClass.backdrop),Gc(t,e,n),!0};function Wc(t){const e=tn.swalPromiseReject.get(this);yn(this),e&&e(t)}const yn=t=>{t.isAwaitingPromise()&&(V.awaitingPromise.delete(t),V.innerParams.get(t)||t._destroy())},qc=t=>typeof t>"u"?{isConfirmed:!1,isDenied:!1,isDismissed:!0}:Object.assign({isConfirmed:!1,isDenied:!1,isDismissed:!1},t),Gc=(t,e,n)=>{const r=fe(),o=en&&Zs(e);typeof n.willClose=="function"&&n.willClose(e),o?Yc(t,e,r,n.returnFocus,n.didClose):ci(t,r,n.returnFocus,n.didClose)},Yc=(t,e,n,r,o)=>{H.swalCloseEventFinishedCallback=ci.bind(null,t,n,r,o),e.addEventListener(en,function(s){s.target===e&&(H.swalCloseEventFinishedCallback(),delete H.swalCloseEventFinishedCallback)})},Fo=(t,e)=>{setTimeout(()=>{typeof e=="function"&&e.bind(t.params)(),t._destroy()})};function ui(t,e,n){const r=V.domCache.get(t);e.forEach(o=>{r[o].disabled=n})}function di(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 Jc(){ui(this,["confirmButton","denyButton","cancelButton"],!1)}function Xc(){ui(this,["confirmButton","denyButton","cancelButton"],!0)}function Zc(){return di(this.getInput(),!1)}function Qc(){return di(this.getInput(),!0)}function eu(t){const e=V.domCache.get(this),n=V.innerParams.get(this);de(e.validationMessage,t),e.validationMessage.className=b["validation-message"],n.customClass&&n.customClass.validationMessage&&W(e.validationMessage,n.customClass.validationMessage),le(e.validationMessage);const r=this.getInput();r&&(r.setAttribute("aria-invalid",!0),r.setAttribute("aria-describedby",b["validation-message"]),Js(r),W(r,b.inputerror))}function tu(){const t=V.domCache.get(this);t.validationMessage&&me(t.validationMessage);const e=this.getInput();e&&(e.removeAttribute("aria-invalid"),e.removeAttribute("aria-describedby"),Je(e,b.inputerror))}function nu(){return V.domCache.get(this).progressSteps}function ru(t){const e=Y(),n=V.innerParams.get(this);if(!e||rt(e,n.hideClass.popup))return Ce("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=ou(t),o=Object.assign({},n,r);ti(this,o),V.innerParams.set(this,o),Object.defineProperties(this,{params:{value:Object.assign({},this.params,t),writable:!1,enumerable:!0}})}const ou=t=>{const e={};return Object.keys(t).forEach(n=>{zs(n)?e[n]=t[n]:Ce(`Invalid parameter to update: "${n}". Updatable params are listed here: https://github.com/sweetalert2/sweetalert2/blob/master/src/utils/params.js
|
|
62
|
+
`).join("<br />")),vl(t)}class lc{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 cc=()=>{xt.previousBodyPadding===null&&document.body.scrollHeight>window.innerHeight&&(xt.previousBodyPadding=parseInt(window.getComputedStyle(document.body).getPropertyValue("padding-right")),document.body.style.paddingRight=`${xt.previousBodyPadding+Sl()}px`)},uc=()=>{xt.previousBodyPadding!==null&&(document.body.style.paddingRight=`${xt.previousBodyPadding}px`,xt.previousBodyPadding=null)},dc=()=>{if((/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream||navigator.platform==="MacIntel"&&navigator.maxTouchPoints>1)&&!rt(document.body,b.iosfix)){const e=document.body.scrollTop;document.body.style.top=`${e*-1}px`,W(document.body,b.iosfix),mc(),fc()}},fc=()=>{const t=navigator.userAgent,e=!!t.match(/iPad/i)||!!t.match(/iPhone/i),n=!!t.match(/WebKit/i);e&&n&&!t.match(/CriOS/i)&&Y().scrollHeight>window.innerHeight-44&&(fe().style.paddingBottom="44px")},mc=()=>{const t=fe();let e;t.ontouchstart=n=>{e=pc(n)},t.ontouchmove=n=>{e&&(n.preventDefault(),n.stopPropagation())}},pc=t=>{const e=t.target,n=fe();return hc(t)||gc(t)?!1:e===n||!Bo(n)&&e.tagName!=="INPUT"&&e.tagName!=="TEXTAREA"&&!(Bo($n())&&$n().contains(e))},hc=t=>t.touches&&t.touches.length&&t.touches[0].touchType==="stylus",gc=t=>t.touches&&t.touches.length>1,yc=()=>{if(rt(document.body,b.iosfix)){const t=parseInt(document.body.style.top,10);Je(document.body,b.iosfix),document.body.style.top="",document.body.scrollTop=t*-1}},oi=10,vc=t=>{const e=fe(),n=Y();typeof t.willOpen=="function"&&t.willOpen(n);const o=window.getComputedStyle(document.body).overflowY;Sc(e,n,t),setTimeout(()=>{bc(e,n)},oi),Yr()&&(wc(e,t.scrollbarPadding,o),Jl()),!Wn()&&!H.previousActiveElement&&(H.previousActiveElement=document.activeElement),typeof t.didOpen=="function"&&setTimeout(()=>t.didOpen(n)),Je(e,b["no-transition"])},si=t=>{const e=Y();if(t.target!==e)return;const n=fe();e.removeEventListener(en,si),n.style.overflowY="auto"},bc=(t,e)=>{en&&Zs(e)?(t.style.overflowY="hidden",e.addEventListener(en,si)):t.style.overflowY="auto"},wc=(t,e,n)=>{dc(),e&&n!=="hidden"&&cc(),setTimeout(()=>{t.scrollTop=0})},Sc=(t,e,n)=>{W(t,n.showClass.backdrop),e.style.setProperty("opacity","0","important"),le(e,"grid"),setTimeout(()=>{W(e,n.showClass.popup),e.style.removeProperty("opacity")},oi),W([document.documentElement,document.body],b.shown),n.heightAuto&&n.backdrop&&!n.toast&&W([document.documentElement,document.body],b["height-auto"])},Ot=t=>{let e=Y();e||new Lt,e=Y();const n=$t();Wn()?me(pn()):_c(e,t),le(n),e.setAttribute("data-loading",!0),e.setAttribute("aria-busy",!0),e.focus()},_c=(t,e)=>{const n=hn(),r=$t();!e&&Pe(Ke())&&(e=Ke()),le(n),e&&(me(e),r.setAttribute("data-button-to-replace",e.className)),r.parentNode.insertBefore(r,e),W([t,n],b.loading)},kc=(t,e)=>{e.input==="select"||e.input==="radio"?Pc(t,e):["text","email","number","tel","textarea"].includes(e.input)&&(Kr(e.inputValue)||Wr(e.inputValue))&&(Ot(Ke()),Ic(t,e))},Cc=(t,e)=>{const n=t.getInput();if(!n)return null;switch(e.input){case"checkbox":return Ec(n);case"radio":return Tc(n);case"file":return Ac(n);default:return e.inputAutoTrim?n.value.trim():n.value}},Ec=t=>t.checked?1:0,Tc=t=>t.checked?t.value:null,Ac=t=>t.files.length?t.getAttribute("multiple")!==null?t.files:t.files[0]:null,Pc=(t,e)=>{const n=Y(),r=o=>xc[e.input](n,Er(o),e);Kr(e.inputOptions)||Wr(e.inputOptions)?(Ot(Ke()),fn(e.inputOptions).then(o=>{t.hideLoading(),r(o)})):typeof e.inputOptions=="object"?r(e.inputOptions):kt(`Unexpected type of inputOptions! Expected object, Map or Promise, got ${typeof e.inputOptions}`)},Ic=(t,e)=>{const n=t.getInput();me(n),fn(e.inputValue).then(r=>{n.value=e.input==="number"?parseFloat(r)||0:`${r}`,le(n),n.focus(),t.hideLoading()}).catch(r=>{kt(`Error in inputValue promise: ${r}`),n.value="",le(n),n.focus(),t.hideLoading()})},xc={select:(t,e,n)=>{const r=ct(t,b.select),o=(s,i,a)=>{const c=document.createElement("option");c.value=a,de(c,i),c.selected=Vo(a,n.inputValue),s.appendChild(c)};e.forEach(s=>{const i=s[0],a=s[1];if(Array.isArray(a)){const c=document.createElement("optgroup");c.label=i,c.disabled=!1,r.appendChild(c),a.forEach(u=>o(c,u[1],u[0]))}else o(r,a,i)}),r.focus()},radio:(t,e,n)=>{const r=ct(t,b.radio);e.forEach(s=>{const i=s[0],a=s[1],c=document.createElement("input"),u=document.createElement("label");c.type="radio",c.name=b.radio,c.value=i,Vo(i,n.inputValue)&&(c.checked=!0);const d=document.createElement("span");de(d,a),d.className=b.label,u.appendChild(c),u.appendChild(d),r.appendChild(u)});const o=r.querySelectorAll("input");o.length&&o[0].focus()}},Er=t=>{const e=[];return typeof Map<"u"&&t instanceof Map?t.forEach((n,r)=>{let o=n;typeof o=="object"&&(o=Er(o)),e.push([r,o])}):Object.keys(t).forEach(n=>{let r=t[n];typeof r=="object"&&(r=Er(r)),e.push([n,r])}),e},Vo=(t,e)=>e&&e.toString()===t.toString();function jo(){const t=V.innerParams.get(this);if(!t)return;const e=V.domCache.get(this);me(e.loader),Wn()?t.icon&&le(pn()):Oc(e),Je([e.popup,e.actions],b.loading),e.popup.removeAttribute("aria-busy"),e.popup.removeAttribute("data-loading"),e.confirmButton.disabled=!1,e.denyButton.disabled=!1,e.cancelButton.disabled=!1}const Oc=t=>{const e=t.popup.getElementsByClassName(t.loader.getAttribute("data-button-to-replace"));e.length?le(e[0],"inline-block"):al()&&me(t.actions)};function Lc(t){const e=V.innerParams.get(t||this),n=V.domCache.get(t||this);return n?Jr(n.popup,e.input):null}const tn={swalPromiseResolve:new WeakMap,swalPromiseReject:new WeakMap},$c=()=>Pe(Y()),ii=()=>Ke()&&Ke().click(),Rc=()=>ut()&&ut().click(),Nc=()=>bt()&&bt().click(),ai=t=>{t.keydownTarget&&t.keydownHandlerAdded&&(t.keydownTarget.removeEventListener("keydown",t.keydownHandler,{capture:t.keydownListenerCapture}),t.keydownHandlerAdded=!1)},Bc=(t,e,n,r)=>{ai(e),n.toast||(e.keydownHandler=o=>Mc(t,o,r),e.keydownTarget=n.keydownListenerCapture?window:Y(),e.keydownListenerCapture=n.keydownListenerCapture,e.keydownTarget.addEventListener("keydown",e.keydownHandler,{capture:e.keydownListenerCapture}),e.keydownHandlerAdded=!0)},Tr=(t,e,n)=>{const r=Gr();if(r.length)return e=e+n,e===r.length?e=0:e===-1&&(e=r.length-1),r[e].focus();Y().focus()},li=["ArrowRight","ArrowDown"],Dc=["ArrowLeft","ArrowUp"],Mc=(t,e,n)=>{const r=V.innerParams.get(t);r&&(e.isComposing||e.keyCode===229||(r.stopKeydownPropagation&&e.stopPropagation(),e.key==="Enter"?Uc(t,e,r):e.key==="Tab"?Hc(e,r):[...li,...Dc].includes(e.key)?Vc(e.key):e.key==="Escape"&&jc(e,r,n)))},Uc=(t,e,n)=>{if(Fn(n.allowEnterKey)&&e.target&&t.getInput()&&e.target.outerHTML===t.getInput().outerHTML){if(["textarea","file"].includes(n.input))return;ii(),e.preventDefault()}},Hc=(t,e)=>{const n=t.target,r=Gr();let o=-1;for(let s=0;s<r.length;s++)if(n===r[s]){o=s;break}t.shiftKey?Tr(e,o,-1):Tr(e,o,1),t.stopPropagation(),t.preventDefault()},Vc=t=>{const e=Ke(),n=ut(),r=bt();if(![e,n,r].includes(document.activeElement))return;const o=li.includes(t)?"nextElementSibling":"previousElementSibling";let s=document.activeElement;for(let i=0;i<hn().children.length;i++){if(s=s[o],!s)return;if(Pe(s)&&s instanceof HTMLButtonElement)break}s instanceof HTMLButtonElement&&s.focus()},jc=(t,e,n)=>{Fn(e.allowEscapeKey)&&(t.preventDefault(),n(Rt.esc))};function ci(t,e,n,r){Wn()?Fo(t,r):(dl(n).then(()=>Fo(t,r)),ai(H)),/^((?!chrome|android).)*safari/i.test(navigator.userAgent)?(e.setAttribute("style","display:none !important"),e.removeAttribute("class"),e.innerHTML=""):e.remove(),Yr()&&(uc(),yc(),ni()),Fc()}function Fc(){Je([document.documentElement,document.body],[b.shown,b["height-auto"],b["no-backdrop"],b["toast-shown"]])}function _n(t){t=qc(t);const e=tn.swalPromiseResolve.get(this),n=Kc(this);this.isAwaitingPromise()?t.isDismissed||(yn(this),e(t)):n&&e(t)}function zc(){return!!V.awaitingPromise.get(this)}const Kc=t=>{const e=Y();if(!e)return!1;const n=V.innerParams.get(t);if(!n||rt(e,n.hideClass.popup))return!1;Je(e,n.showClass.popup),W(e,n.hideClass.popup);const r=fe();return Je(r,n.showClass.backdrop),W(r,n.hideClass.backdrop),Gc(t,e,n),!0};function Wc(t){const e=tn.swalPromiseReject.get(this);yn(this),e&&e(t)}const yn=t=>{t.isAwaitingPromise()&&(V.awaitingPromise.delete(t),V.innerParams.get(t)||t._destroy())},qc=t=>typeof t>"u"?{isConfirmed:!1,isDenied:!1,isDismissed:!0}:Object.assign({isConfirmed:!1,isDenied:!1,isDismissed:!1},t),Gc=(t,e,n)=>{const r=fe(),o=en&&Zs(e);typeof n.willClose=="function"&&n.willClose(e),o?Yc(t,e,r,n.returnFocus,n.didClose):ci(t,r,n.returnFocus,n.didClose)},Yc=(t,e,n,r,o)=>{H.swalCloseEventFinishedCallback=ci.bind(null,t,n,r,o),e.addEventListener(en,function(s){s.target===e&&(H.swalCloseEventFinishedCallback(),delete H.swalCloseEventFinishedCallback)})},Fo=(t,e)=>{setTimeout(()=>{typeof e=="function"&&e.bind(t.params)(),t._destroy()})};function ui(t,e,n){const r=V.domCache.get(t);e.forEach(o=>{r[o].disabled=n})}function di(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 Jc(){ui(this,["confirmButton","denyButton","cancelButton"],!1)}function Xc(){ui(this,["confirmButton","denyButton","cancelButton"],!0)}function Zc(){return di(this.getInput(),!1)}function Qc(){return di(this.getInput(),!0)}function eu(t){const e=V.domCache.get(this),n=V.innerParams.get(this);de(e.validationMessage,t),e.validationMessage.className=b["validation-message"],n.customClass&&n.customClass.validationMessage&&W(e.validationMessage,n.customClass.validationMessage),le(e.validationMessage);const r=this.getInput();r&&(r.setAttribute("aria-invalid",!0),r.setAttribute("aria-describedby",b["validation-message"]),Js(r),W(r,b.inputerror))}function tu(){const t=V.domCache.get(this);t.validationMessage&&me(t.validationMessage);const e=this.getInput();e&&(e.removeAttribute("aria-invalid"),e.removeAttribute("aria-describedby"),Je(e,b.inputerror))}function nu(){return V.domCache.get(this).progressSteps}function ru(t){const e=Y(),n=V.innerParams.get(this);if(!e||rt(e,n.hideClass.popup))return Ce("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=ou(t),o=Object.assign({},n,r);ti(this,o),V.innerParams.set(this,o),Object.defineProperties(this,{params:{value:Object.assign({},this.params,t),writable:!1,enumerable:!0}})}const ou=t=>{const e={};return Object.keys(t).forEach(n=>{zs(n)?e[n]=t[n]:Ce(`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 su(){const t=V.domCache.get(this),e=V.innerParams.get(this);if(!e){fi(this);return}t.popup&&H.swalCloseEventFinishedCallback&&(H.swalCloseEventFinishedCallback(),delete H.swalCloseEventFinishedCallback),H.deferDisposalTimer&&(clearTimeout(H.deferDisposalTimer),delete H.deferDisposalTimer),typeof e.didDestroy=="function"&&e.didDestroy(),iu(this)}const iu=t=>{fi(t),delete t.params,delete H.keydownHandler,delete H.keydownTarget,delete H.currentInstance},fi=t=>{t.isAwaitingPromise()?(ar(V,t),V.awaitingPromise.set(t,!0)):(ar(tn,t),ar(V,t))},ar=(t,e)=>{for(const n in t)t[n].delete(e)},mi=Object.freeze(Object.defineProperty({__proto__:null,_destroy:su,close:_n,closeModal:_n,closePopup:_n,closeToast:_n,disableButtons:Xc,disableInput:Qc,disableLoading:jo,enableButtons:Jc,enableInput:Zc,getInput:Lc,getProgressSteps:nu,handleAwaitingPromise:yn,hideLoading:jo,isAwaitingPromise:zc,rejectPromise:Wc,resetValidationMessage:tu,showValidationMessage:eu,update:ru},Symbol.toStringTag,{value:"Module"})),au=t=>{const e=V.innerParams.get(t);t.disableButtons(),e.input?pi(t,"confirm"):eo(t,!0)},lu=t=>{const e=V.innerParams.get(t);t.disableButtons(),e.returnInputValueOnDeny?pi(t,"deny"):Qr(t,!1)},cu=(t,e)=>{t.disableButtons(),e(Rt.cancel)},pi=(t,e)=>{const n=V.innerParams.get(t);if(!n.input)return kt(`The "input" parameter is needed to be set when using returnInputValueOn${Fr(e)}`);const r=Cc(t,n);n.inputValidator?uu(t,r,e):t.getInput().checkValidity()?e==="deny"?Qr(t,r):eo(t,r):(t.enableButtons(),t.showValidationMessage(n.validationMessage))},uu=(t,e,n)=>{const r=V.innerParams.get(t);t.disableInput(),Promise.resolve().then(()=>fn(r.inputValidator(e,r.validationMessage))).then(s=>{t.enableButtons(),t.enableInput(),s?t.showValidationMessage(s):n==="deny"?Qr(t,e):eo(t,e)})},Qr=(t,e)=>{const n=V.innerParams.get(t||void 0);n.showLoaderOnDeny&&Ot(ut()),n.preDeny?(V.awaitingPromise.set(t||void 0,!0),Promise.resolve().then(()=>fn(n.preDeny(e,n.validationMessage))).then(o=>{o===!1?(t.hideLoading(),yn(t)):t.closePopup({isDenied:!0,value:typeof o>"u"?e:o})}).catch(o=>hi(t||void 0,o))):t.closePopup({isDenied:!0,value:e})},zo=(t,e)=>{t.closePopup({isConfirmed:!0,value:e})},hi=(t,e)=>{t.rejectPromise(e)},eo=(t,e)=>{const n=V.innerParams.get(t||void 0);n.showLoaderOnConfirm&&Ot(),n.preConfirm?(t.resetValidationMessage(),V.awaitingPromise.set(t||void 0,!0),Promise.resolve().then(()=>fn(n.preConfirm(e,n.validationMessage))).then(o=>{Pe(Fn())||o===!1?(t.hideLoading(),yn(t)):zo(t,typeof o>"u"?e:o)}).catch(o=>hi(t||void 0,o))):zo(t,e)},du=(t,e,n)=>{V.innerParams.get(t).toast?fu(t,e,n):(pu(e),hu(e),gu(t,e,n))},fu=(t,e,n)=>{e.popup.onclick=()=>{const r=V.innerParams.get(t);r&&(mu(r)||r.timer||r.input)||n(Rt.close)}},mu=t=>t.showConfirmButton||t.showDenyButton||t.showCancelButton||t.showCloseButton;let Rn=!1;const pu=t=>{t.popup.onmousedown=()=>{t.container.onmouseup=function(e){t.container.onmouseup=void 0,e.target===t.container&&(Rn=!0)}}},hu=t=>{t.container.onmousedown=()=>{t.popup.onmouseup=function(e){t.popup.onmouseup=void 0,(e.target===t.popup||t.popup.contains(e.target))&&(Rn=!0)}}},gu=(t,e,n)=>{e.container.onclick=r=>{const o=V.innerParams.get(t);if(Rn){Rn=!1;return}r.target===e.container&&jn(o.allowOutsideClick)&&n(Rt.backdrop)}},yu=t=>typeof t=="object"&&t.jquery,Ko=t=>t instanceof Element||yu(t),vu=t=>{const e={};return typeof t[0]=="object"&&!Ko(t[0])?Object.assign(e,t[0]):["title","html","icon"].forEach((n,r)=>{const o=t[r];typeof o=="string"||Ko(o)?e[n]=o:o!==void 0&&kt(`Unexpected type of ${n}! Expected "string" or "Element", got ${typeof o}`)}),e};function bu(...t){const e=this;return new e(...t)}function wu(t){class e extends this{_main(r,o){return super._main(r,Object.assign({},t,o))}}return e}const Su=()=>H.timeout&&H.timeout.getTimerLeft(),gi=()=>{if(H.timeout)return ll(),H.timeout.stop()},yi=()=>{if(H.timeout){const t=H.timeout.start();return Jr(t),t}},_u=()=>{const t=H.timeout;return t&&(t.running?gi():yi())},ku=t=>{if(H.timeout){const e=H.timeout.increase(t);return Jr(e,!0),e}},Cu=()=>H.timeout&&H.timeout.isRunning();let Wo=!1;const Tr={};function Eu(t="data-swal-template"){Tr[t]=this,Wo||(document.body.addEventListener("click",Tu),Wo=!0)}const Tu=t=>{for(let e=t.target;e&&e!==document;e=e.parentNode)for(const n in Tr){const r=e.getAttribute(n);if(r){Tr[n].fire({template:r});return}}},Au=Object.freeze(Object.defineProperty({__proto__:null,argsToParams:vu,bindClickHandler:Eu,clickCancel:Nc,clickConfirm:ii,clickDeny:Rc,enableLoading:Ot,fire:bu,getActions:hn,getCancelButton:bt,getCloseButton:Wr,getConfirmButton:Ke,getContainer:fe,getDenyButton:ut,getFocusableElements:qr,getFooter:Ys,getHtmlContainer:$n,getIcon:pn,getImage:qs,getInputLabel:rl,getLoader:$t,getPopup:Y,getTimerLeft:Su,getTimerProgressBar:zn,getTitle:Ws,getValidationMessage:Fn,increaseTimer:ku,isDeprecatedParameter:kr,isLoading:sl,isTimerRunning:Cu,isUpdatableParameter:zs,isValidParameter:Fs,isVisible:$c,mixin:wu,resumeTimer:yi,showLoading:Ot,stopTimer:gi,toggleTimer:_u},Symbol.toStringTag,{value:"Module"}));let Ar;class Nt{constructor(...e){if(typeof window>"u")return;Ar=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);V.promise.set(this,r)}_main(e,n={}){tl(Object.assign({},n,e)),H.currentInstance&&(H.currentInstance._destroy(),Gr()&&ni()),H.currentInstance=this;const r=Iu(e,n);ac(r),Object.freeze(r),H.timeout&&(H.timeout.stop(),delete H.timeout),clearTimeout(H.restoreFocusTimeout);const o=xu(this);return ti(this,r),V.innerParams.set(this,r),Pu(this,o,r)}then(e){return V.promise.get(this).then(e)}finally(e){return V.promise.get(this).finally(e)}}const Pu=(t,e,n)=>new Promise((r,o)=>{const s=i=>{t.closePopup({isDismissed:!0,dismiss:i})};tn.swalPromiseResolve.set(t,r),tn.swalPromiseReject.set(t,o),e.confirmButton.onclick=()=>au(t),e.denyButton.onclick=()=>lu(t),e.cancelButton.onclick=()=>cu(t,s),e.closeButton.onclick=()=>s(Rt.close),du(t,e,s),Bc(t,H,n,s),kc(t,n),vc(n),Ou(H,n,s),Lu(e,n),setTimeout(()=>{e.container.scrollTop=0})}),Iu=(t,e)=>{const n=Xl(t),r=Object.assign({},It,e,n,t);return r.showClass=Object.assign({},It.showClass,r.showClass),r.hideClass=Object.assign({},It.hideClass,r.hideClass),r},xu=t=>{const e={popup:Y(),container:fe(),actions:hn(),confirmButton:Ke(),denyButton:ut(),cancelButton:bt(),loader:$t(),closeButton:Wr(),validationMessage:Fn(),progressSteps:Gs()};return V.domCache.set(t,e),e},Ou=(t,e,n)=>{const r=zn();me(r),e.timer&&(t.timeout=new lc(()=>{n("timer"),delete t.timeout},e.timer),e.timerProgressBar&&(le(r),Ne(r,e,"timerProgressBar"),setTimeout(()=>{t.timeout&&t.timeout.running&&Jr(e.timer)})))},Lu=(t,e)=>{if(!e.toast){if(!jn(e.allowEnterKey))return Ru();$u(t,e)||Er(e,-1,1)}},$u=(t,e)=>e.focusDeny&&Pe(t.denyButton)?(t.denyButton.focus(),!0):e.focusCancel&&Pe(t.cancelButton)?(t.cancelButton.focus(),!0):e.focusConfirm&&Pe(t.confirmButton)?(t.confirmButton.focus(),!0):!1,Ru=()=>{document.activeElement instanceof HTMLElement&&typeof document.activeElement.blur=="function"&&document.activeElement.blur()};Object.assign(Nt.prototype,mi);Object.assign(Nt,Au);Object.keys(mi).forEach(t=>{Nt[t]=function(...e){if(Ar)return Ar[t](...e)}});Nt.DismissReason=Rt;Nt.version="11.4.8";const Lt=Nt;Lt.default=Lt;/*! @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:vi,setPrototypeOf:qo,isFrozen:Nu,getPrototypeOf:Bu,getOwnPropertyDescriptor:Du}=Object;let{freeze:ye,seal:We,create:bi}=Object,{apply:Pr,construct:Ir}=typeof Reflect<"u"&&Reflect;ye||(ye=function(e){return e});We||(We=function(e){return e});Pr||(Pr=function(e,n,r){return e.apply(n,r)});Ir||(Ir=function(e,n){return new e(...n)});const kn=Le(Array.prototype.forEach),Go=Le(Array.prototype.pop),Vt=Le(Array.prototype.push),Pn=Le(String.prototype.toLowerCase),lr=Le(String.prototype.toString),Mu=Le(String.prototype.match),jt=Le(String.prototype.replace),Uu=Le(String.prototype.indexOf),Hu=Le(String.prototype.trim),Ve=Le(Object.prototype.hasOwnProperty),Ae=Le(RegExp.prototype.test),Ft=Vu(TypeError);function Le(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 Pr(t,e,r)}}function Vu(t){return function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return Ir(t,n)}}function z(t,e){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:Pn;qo&&qo(t,null);let r=e.length;for(;r--;){let o=e[r];if(typeof o=="string"){const s=n(o);s!==o&&(Nu(e)||(e[r]=s),o=s)}t[o]=!0}return t}function ju(t){for(let e=0;e<t.length;e++)Ve(t,e)||(t[e]=null);return t}function ht(t){const e=bi(null);for(const[n,r]of vi(t))Ve(t,n)&&(Array.isArray(r)?e[n]=ju(r):r&&typeof r=="object"&&r.constructor===Object?e[n]=ht(r):e[n]=r);return e}function Cn(t,e){for(;t!==null;){const r=Du(t,e);if(r){if(r.get)return Le(r.get);if(typeof r.value=="function")return Le(r.value)}t=Bu(t)}function n(){return null}return n}const Yo=ye(["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"]),cr=ye(["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"]),ur=ye(["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"]),Fu=ye(["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"]),dr=ye(["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"]),zu=ye(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),Jo=ye(["#text"]),Xo=ye(["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"]),fr=ye(["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"]),Zo=ye(["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"]),En=ye(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),Ku=We(/\{\{[\w\W]*|[\w\W]*\}\}/gm),Wu=We(/<%[\w\W]*|[\w\W]*%>/gm),qu=We(/\${[\w\W]*}/gm),Gu=We(/^data-[\-\w.\u00B7-\uFFFF]/),Yu=We(/^aria-[\-\w]+$/),wi=We(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),Ju=We(/^(?:\w+script|data):/i),Xu=We(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),Si=We(/^html$/i);var Qo=Object.freeze({__proto__:null,MUSTACHE_EXPR:Ku,ERB_EXPR:Wu,TMPLIT_EXPR:qu,DATA_ATTR:Gu,ARIA_ATTR:Yu,IS_ALLOWED_URI:wi,IS_SCRIPT_OR_DATA:Ju,ATTR_WHITESPACE:Xu,DOCTYPE_NAME:Si});const Zu=function(){return typeof window>"u"?null:window},Qu=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 s="dompurify"+(r?"#"+r:"");try{return e.createPolicy(s,{createHTML(i){return i},createScriptURL(i){return i}})}catch{return console.warn("TrustedTypes policy "+s+" could not be created."),null}};function _i(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Zu();const e=N=>_i(N);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:s,HTMLTemplateElement:i,Node:a,Element:c,NodeFilter:u,NamedNodeMap:d=t.NamedNodeMap||t.MozNamedAttrMap,HTMLFormElement:m,DOMParser:g,trustedTypes:_}=t,v=c.prototype,T=Cn(v,"cloneNode"),w=Cn(v,"nextSibling"),B=Cn(v,"childNodes"),C=Cn(v,"parentNode");if(typeof i=="function"){const N=n.createElement("template");N.content&&N.content.ownerDocument&&(n=N.content.ownerDocument)}let A,j="";const{implementation:X,createNodeIterator:ne,createDocumentFragment:J,getElementsByTagName:pe}=n,{importNode:se}=r;let U={};e.isSupported=typeof vi=="function"&&typeof C=="function"&&X&&X.createHTMLDocument!==void 0;const{MUSTACHE_EXPR:Ee,ERB_EXPR:ve,TMPLIT_EXPR:De,DATA_ATTR:Me,ARIA_ATTR:ot,IS_SCRIPT_OR_DATA:Xe,ATTR_WHITESPACE:Ue}=Qo;let{IS_ALLOWED_URI:Ge}=Qo,te=null;const $e=z({},[...Yo,...cr,...ur,...dr,...Jo]);let f=null;const h=z({},[...Xo,...fr,...Zo,...En]);let S=Object.seal(bi(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}})),P=null,k=null,L=!0,E=!0,I=!1,D=!0,O=!1,$=!1,Z=!1,oe=!1,he=!1,ae=!1,Re=!1,po=!0,ho=!1;const ga="user-content-";let er=!0,Mt=!1,Ct={},Et=null;const go=z({},["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 yo=null;const vo=z({},["audio","video","img","source","image","track"]);let tr=null;const bo=z({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),wn="http://www.w3.org/1998/Math/MathML",Sn="http://www.w3.org/2000/svg",Ze="http://www.w3.org/1999/xhtml";let Tt=Ze,nr=!1,rr=null;const ya=z({},[wn,Sn,Ze],lr);let Ut=null;const va=["application/xhtml+xml","text/html"],ba="text/html";let ie=null,At=null;const wa=n.createElement("form"),wo=function(p){return p instanceof RegExp||p instanceof Function},or=function(){let p=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(!(At&&At===p)){if((!p||typeof p!="object")&&(p={}),p=ht(p),Ut=va.indexOf(p.PARSER_MEDIA_TYPE)===-1?ba:p.PARSER_MEDIA_TYPE,ie=Ut==="application/xhtml+xml"?lr:Pn,te=Ve(p,"ALLOWED_TAGS")?z({},p.ALLOWED_TAGS,ie):$e,f=Ve(p,"ALLOWED_ATTR")?z({},p.ALLOWED_ATTR,ie):h,rr=Ve(p,"ALLOWED_NAMESPACES")?z({},p.ALLOWED_NAMESPACES,lr):ya,tr=Ve(p,"ADD_URI_SAFE_ATTR")?z(ht(bo),p.ADD_URI_SAFE_ATTR,ie):bo,yo=Ve(p,"ADD_DATA_URI_TAGS")?z(ht(vo),p.ADD_DATA_URI_TAGS,ie):vo,Et=Ve(p,"FORBID_CONTENTS")?z({},p.FORBID_CONTENTS,ie):go,P=Ve(p,"FORBID_TAGS")?z({},p.FORBID_TAGS,ie):{},k=Ve(p,"FORBID_ATTR")?z({},p.FORBID_ATTR,ie):{},Ct=Ve(p,"USE_PROFILES")?p.USE_PROFILES:!1,L=p.ALLOW_ARIA_ATTR!==!1,E=p.ALLOW_DATA_ATTR!==!1,I=p.ALLOW_UNKNOWN_PROTOCOLS||!1,D=p.ALLOW_SELF_CLOSE_IN_ATTR!==!1,O=p.SAFE_FOR_TEMPLATES||!1,$=p.WHOLE_DOCUMENT||!1,he=p.RETURN_DOM||!1,ae=p.RETURN_DOM_FRAGMENT||!1,Re=p.RETURN_TRUSTED_TYPE||!1,oe=p.FORCE_BODY||!1,po=p.SANITIZE_DOM!==!1,ho=p.SANITIZE_NAMED_PROPS||!1,er=p.KEEP_CONTENT!==!1,Mt=p.IN_PLACE||!1,Ge=p.ALLOWED_URI_REGEXP||wi,Tt=p.NAMESPACE||Ze,S=p.CUSTOM_ELEMENT_HANDLING||{},p.CUSTOM_ELEMENT_HANDLING&&wo(p.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(S.tagNameCheck=p.CUSTOM_ELEMENT_HANDLING.tagNameCheck),p.CUSTOM_ELEMENT_HANDLING&&wo(p.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(S.attributeNameCheck=p.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),p.CUSTOM_ELEMENT_HANDLING&&typeof p.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements=="boolean"&&(S.allowCustomizedBuiltInElements=p.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),O&&(E=!1),ae&&(he=!0),Ct&&(te=z({},Jo),f=[],Ct.html===!0&&(z(te,Yo),z(f,Xo)),Ct.svg===!0&&(z(te,cr),z(f,fr),z(f,En)),Ct.svgFilters===!0&&(z(te,ur),z(f,fr),z(f,En)),Ct.mathMl===!0&&(z(te,dr),z(f,Zo),z(f,En))),p.ADD_TAGS&&(te===$e&&(te=ht(te)),z(te,p.ADD_TAGS,ie)),p.ADD_ATTR&&(f===h&&(f=ht(f)),z(f,p.ADD_ATTR,ie)),p.ADD_URI_SAFE_ATTR&&z(tr,p.ADD_URI_SAFE_ATTR,ie),p.FORBID_CONTENTS&&(Et===go&&(Et=ht(Et)),z(Et,p.FORBID_CONTENTS,ie)),er&&(te["#text"]=!0),$&&z(te,["html","head","body"]),te.table&&(z(te,["tbody"]),delete P.tbody),p.TRUSTED_TYPES_POLICY){if(typeof p.TRUSTED_TYPES_POLICY.createHTML!="function")throw Ft('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof p.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw Ft('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');A=p.TRUSTED_TYPES_POLICY,j=A.createHTML("")}else A===void 0&&(A=Qu(_,o)),A!==null&&typeof j=="string"&&(j=A.createHTML(""));ye&&ye(p),At=p}},So=z({},["mi","mo","mn","ms","mtext"]),_o=z({},["foreignobject","desc","title","annotation-xml"]),Sa=z({},["title","style","font","a","script"]),ko=z({},[...cr,...ur,...Fu]),Co=z({},[...dr,...zu]),_a=function(p){let x=C(p);(!x||!x.tagName)&&(x={namespaceURI:Tt,tagName:"template"});const R=Pn(p.tagName),Q=Pn(x.tagName);return rr[p.namespaceURI]?p.namespaceURI===Sn?x.namespaceURI===Ze?R==="svg":x.namespaceURI===wn?R==="svg"&&(Q==="annotation-xml"||So[Q]):!!ko[R]:p.namespaceURI===wn?x.namespaceURI===Ze?R==="math":x.namespaceURI===Sn?R==="math"&&_o[Q]:!!Co[R]:p.namespaceURI===Ze?x.namespaceURI===Sn&&!_o[Q]||x.namespaceURI===wn&&!So[Q]?!1:!Co[R]&&(Sa[R]||!ko[R]):!!(Ut==="application/xhtml+xml"&&rr[p.namespaceURI]):!1},ft=function(p){Vt(e.removed,{element:p});try{p.parentNode.removeChild(p)}catch{p.remove()}},sr=function(p,x){try{Vt(e.removed,{attribute:x.getAttributeNode(p),from:x})}catch{Vt(e.removed,{attribute:null,from:x})}if(x.removeAttribute(p),p==="is"&&!f[p])if(he||ae)try{ft(x)}catch{}else try{x.setAttribute(p,"")}catch{}},Eo=function(p){let x=null,R=null;if(oe)p="<remove></remove>"+p;else{const ue=Mu(p,/^[\r\n\t ]+/);R=ue&&ue[0]}Ut==="application/xhtml+xml"&&Tt===Ze&&(p='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+p+"</body></html>");const Q=A?A.createHTML(p):p;if(Tt===Ze)try{x=new g().parseFromString(Q,Ut)}catch{}if(!x||!x.documentElement){x=X.createDocument(Tt,"template",null);try{x.documentElement.innerHTML=nr?j:Q}catch{}}const ce=x.body||x.documentElement;return p&&R&&ce.insertBefore(n.createTextNode(R),ce.childNodes[0]||null),Tt===Ze?pe.call(x,$?"html":"body")[0]:$?x.documentElement:ce},To=function(p){return ne.call(p.ownerDocument||p,p,u.SHOW_ELEMENT|u.SHOW_COMMENT|u.SHOW_TEXT,null)},ka=function(p){return p instanceof m&&(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")},Ao=function(p){return typeof a=="function"&&p instanceof a},Qe=function(p,x,R){U[p]&&kn(U[p],Q=>{Q.call(e,x,R,At)})},Po=function(p){let x=null;if(Qe("beforeSanitizeElements",p,null),ka(p))return ft(p),!0;const R=ie(p.nodeName);if(Qe("uponSanitizeElement",p,{tagName:R,allowedTags:te}),p.hasChildNodes()&&!Ao(p.firstElementChild)&&Ae(/<[/\w]/g,p.innerHTML)&&Ae(/<[/\w]/g,p.textContent))return ft(p),!0;if(!te[R]||P[R]){if(!P[R]&&xo(R)&&(S.tagNameCheck instanceof RegExp&&Ae(S.tagNameCheck,R)||S.tagNameCheck instanceof Function&&S.tagNameCheck(R)))return!1;if(er&&!Et[R]){const Q=C(p)||p.parentNode,ce=B(p)||p.childNodes;if(ce&&Q){const ue=ce.length;for(let be=ue-1;be>=0;--be)Q.insertBefore(T(ce[be],!0),w(p))}}return ft(p),!0}return p instanceof c&&!_a(p)||(R==="noscript"||R==="noembed"||R==="noframes")&&Ae(/<\/no(script|embed|frames)/i,p.innerHTML)?(ft(p),!0):(O&&p.nodeType===3&&(x=p.textContent,kn([Ee,ve,De],Q=>{x=jt(x,Q," ")}),p.textContent!==x&&(Vt(e.removed,{element:p.cloneNode()}),p.textContent=x)),Qe("afterSanitizeElements",p,null),!1)},Io=function(p,x,R){if(po&&(x==="id"||x==="name")&&(R in n||R in wa))return!1;if(!(E&&!k[x]&&Ae(Me,x))){if(!(L&&Ae(ot,x))){if(!f[x]||k[x]){if(!(xo(p)&&(S.tagNameCheck instanceof RegExp&&Ae(S.tagNameCheck,p)||S.tagNameCheck instanceof Function&&S.tagNameCheck(p))&&(S.attributeNameCheck instanceof RegExp&&Ae(S.attributeNameCheck,x)||S.attributeNameCheck instanceof Function&&S.attributeNameCheck(x))||x==="is"&&S.allowCustomizedBuiltInElements&&(S.tagNameCheck instanceof RegExp&&Ae(S.tagNameCheck,R)||S.tagNameCheck instanceof Function&&S.tagNameCheck(R))))return!1}else if(!tr[x]){if(!Ae(Ge,jt(R,Ue,""))){if(!((x==="src"||x==="xlink:href"||x==="href")&&p!=="script"&&Uu(R,"data:")===0&&yo[p])){if(!(I&&!Ae(Xe,jt(R,Ue,"")))){if(R)return!1}}}}}}return!0},xo=function(p){return p!=="annotation-xml"&&p.indexOf("-")>0},Oo=function(p){Qe("beforeSanitizeAttributes",p,null);const{attributes:x}=p;if(!x)return;const R={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:f};let Q=x.length;for(;Q--;){const ce=x[Q],{name:ue,namespaceURI:be,value:mt}=ce,Ht=ie(ue);let we=ue==="value"?mt:Hu(mt);if(R.attrName=Ht,R.attrValue=we,R.keepAttr=!0,R.forceKeepAttr=void 0,Qe("uponSanitizeAttribute",p,R),we=R.attrValue,R.forceKeepAttr||(sr(ue,p),!R.keepAttr))continue;if(!D&&Ae(/\/>/i,we)){sr(ue,p);continue}O&&kn([Ee,ve,De],$o=>{we=jt(we,$o," ")});const Lo=ie(p.nodeName);if(Io(Lo,Ht,we)){if(ho&&(Ht==="id"||Ht==="name")&&(sr(ue,p),we=ga+we),A&&typeof _=="object"&&typeof _.getAttributeType=="function"&&!be)switch(_.getAttributeType(Lo,Ht)){case"TrustedHTML":{we=A.createHTML(we);break}case"TrustedScriptURL":{we=A.createScriptURL(we);break}}try{be?p.setAttributeNS(be,ue,we):p.setAttribute(ue,we),Go(e.removed)}catch{}}}Qe("afterSanitizeAttributes",p,null)},Ca=function N(p){let x=null;const R=To(p);for(Qe("beforeSanitizeShadowDOM",p,null);x=R.nextNode();)Qe("uponSanitizeShadowNode",x,null),!Po(x)&&(x.content instanceof s&&N(x.content),Oo(x));Qe("afterSanitizeShadowDOM",p,null)};return e.sanitize=function(N){let p=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},x=null,R=null,Q=null,ce=null;if(nr=!N,nr&&(N="<!-->"),typeof N!="string"&&!Ao(N))if(typeof N.toString=="function"){if(N=N.toString(),typeof N!="string")throw Ft("dirty is not a string, aborting")}else throw Ft("toString is not a function");if(!e.isSupported)return N;if(Z||or(p),e.removed=[],typeof N=="string"&&(Mt=!1),Mt){if(N.nodeName){const mt=ie(N.nodeName);if(!te[mt]||P[mt])throw Ft("root node is forbidden and cannot be sanitized in-place")}}else if(N instanceof a)x=Eo("<!---->"),R=x.ownerDocument.importNode(N,!0),R.nodeType===1&&R.nodeName==="BODY"||R.nodeName==="HTML"?x=R:x.appendChild(R);else{if(!he&&!O&&!$&&N.indexOf("<")===-1)return A&&Re?A.createHTML(N):N;if(x=Eo(N),!x)return he?null:Re?j:""}x&&oe&&ft(x.firstChild);const ue=To(Mt?N:x);for(;Q=ue.nextNode();)Po(Q)||(Q.content instanceof s&&Ca(Q.content),Oo(Q));if(Mt)return N;if(he){if(ae)for(ce=J.call(x.ownerDocument);x.firstChild;)ce.appendChild(x.firstChild);else ce=x;return(f.shadowroot||f.shadowrootmode)&&(ce=se.call(r,ce,!0)),ce}let be=$?x.outerHTML:x.innerHTML;return $&&te["!doctype"]&&x.ownerDocument&&x.ownerDocument.doctype&&x.ownerDocument.doctype.name&&Ae(Si,x.ownerDocument.doctype.name)&&(be="<!DOCTYPE "+x.ownerDocument.doctype.name+`>
|
|
65
|
-
`+be),O&&kn([Ee,ve,De],mt=>{be=jt(be,mt," ")}),A&&Re?A.createHTML(be):be},e.setConfig=function(){let N=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};or(N),Z=!0},e.clearConfig=function(){At=null,Z=!1},e.isValidAttribute=function(N,p,x){At||or({});const R=ie(N),Q=ie(p);return Io(R,Q,x)},e.addHook=function(N,p){typeof p=="function"&&(U[N]=U[N]||[],Vt(U[N],p))},e.removeHook=function(N){if(U[N])return Go(U[N])},e.removeHooks=function(N){U[N]&&(U[N]=[])},e.removeAllHooks=function(){U={}},e}var ki=_i();let Ci=class{get IsVisible(){return Lt.isVisible()}};class ed extends Ci{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(s=>{Lt.fire({allowEscapeKey:!1,allowOutsideClick:!1,icon:n,title:o,html:`<div style="max-height: 50vh; overflow: auto">${ki.sanitize(r)}</div>`}).then(()=>s(!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 td extends Ci{async CreateConfirmAsync(e){return new Promise(n=>{Lt.fire({showCancelButton:!0,allowEscapeKey:!1,allowOutsideClick:!1,icon:"question",title:e.title,html:ki.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 nd=()=>new ed,Ei=()=>new td;function rd(t){return t instanceof Uint8Array||t!=null&&typeof t=="object"&&t.constructor.name==="Uint8Array"}function Ti(t,...e){if(!rd(t))throw new Error("Uint8Array expected");if(e.length>0&&!e.includes(t.length))throw new Error(`Uint8Array expected of length ${e}, not of length=${t.length}`)}function es(t,e=!0){if(t.destroyed)throw new Error("Hash instance has been destroyed");if(e&&t.finished)throw new Error("Hash#digest() has already been called")}function od(t,e){Ti(t);const n=e.outputLen;if(t.length<n)throw new Error(`digestInto() expects output buffer of length at least ${n}`)}/*! noble-hashes - MIT License (c) 2022 Paul Miller (paulmillr.com) */const mr=t=>new DataView(t.buffer,t.byteOffset,t.byteLength),Ye=(t,e)=>t<<32-e|t>>>e;new Uint8Array(new Uint32Array([287454020]).buffer)[0];function sd(t){if(typeof t!="string")throw new Error(`utf8ToBytes expected string, got ${typeof t}`);return new Uint8Array(new TextEncoder().encode(t))}function Ai(t){return typeof t=="string"&&(t=sd(t)),Ti(t),t}class id{clone(){return this._cloneInto()}}function ad(t){const e=r=>t().update(Ai(r)).digest(),n=t();return e.outputLen=n.outputLen,e.blockLen=n.blockLen,e.create=()=>t(),e}function ld(t,e,n,r){if(typeof t.setBigUint64=="function")return t.setBigUint64(e,n,r);const o=BigInt(32),s=BigInt(4294967295),i=Number(n>>o&s),a=Number(n&s),c=r?4:0,u=r?0:4;t.setUint32(e+c,i,r),t.setUint32(e+u,a,r)}const cd=(t,e,n)=>t&e^~t&n,ud=(t,e,n)=>t&e^t&n^e&n;class dd extends id{constructor(e,n,r,o){super(),this.blockLen=e,this.outputLen=n,this.padOffset=r,this.isLE=o,this.finished=!1,this.length=0,this.pos=0,this.destroyed=!1,this.buffer=new Uint8Array(e),this.view=mr(this.buffer)}update(e){es(this);const{view:n,buffer:r,blockLen:o}=this;e=Ai(e);const s=e.length;for(let i=0;i<s;){const a=Math.min(o-this.pos,s-i);if(a===o){const c=mr(e);for(;o<=s-i;i+=o)this.process(c,i);continue}r.set(e.subarray(i,i+a),this.pos),this.pos+=a,i+=a,this.pos===o&&(this.process(n,0),this.pos=0)}return this.length+=e.length,this.roundClean(),this}digestInto(e){es(this),od(e,this),this.finished=!0;const{buffer:n,view:r,blockLen:o,isLE:s}=this;let{pos:i}=this;n[i++]=128,this.buffer.subarray(i).fill(0),this.padOffset>o-i&&(this.process(r,0),i=0);for(let m=i;m<o;m++)n[m]=0;ld(r,o-8,BigInt(this.length*8),s),this.process(r,0);const a=mr(e),c=this.outputLen;if(c%4)throw new Error("_sha2: outputLen should be aligned to 32bit");const u=c/4,d=this.get();if(u>d.length)throw new Error("_sha2: outputLen bigger than state");for(let m=0;m<u;m++)a.setUint32(4*m,d[m],s)}digest(){const{buffer:e,outputLen:n}=this;this.digestInto(e);const r=e.slice(0,n);return this.destroy(),r}_cloneInto(e){e||(e=new this.constructor),e.set(...this.get());const{blockLen:n,buffer:r,length:o,finished:s,destroyed:i,pos:a}=this;return e.length=o,e.pos=a,e.finished=s,e.destroyed=i,o%n&&e.buffer.set(r),e}}const fd=new Uint32Array([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]),st=new Uint32Array([1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225]),it=new Uint32Array(64);class md extends dd{constructor(){super(64,32,8,!1),this.A=st[0]|0,this.B=st[1]|0,this.C=st[2]|0,this.D=st[3]|0,this.E=st[4]|0,this.F=st[5]|0,this.G=st[6]|0,this.H=st[7]|0}get(){const{A:e,B:n,C:r,D:o,E:s,F:i,G:a,H:c}=this;return[e,n,r,o,s,i,a,c]}set(e,n,r,o,s,i,a,c){this.A=e|0,this.B=n|0,this.C=r|0,this.D=o|0,this.E=s|0,this.F=i|0,this.G=a|0,this.H=c|0}process(e,n){for(let m=0;m<16;m++,n+=4)it[m]=e.getUint32(n,!1);for(let m=16;m<64;m++){const g=it[m-15],_=it[m-2],v=Ye(g,7)^Ye(g,18)^g>>>3,T=Ye(_,17)^Ye(_,19)^_>>>10;it[m]=T+it[m-7]+v+it[m-16]|0}let{A:r,B:o,C:s,D:i,E:a,F:c,G:u,H:d}=this;for(let m=0;m<64;m++){const g=Ye(a,6)^Ye(a,11)^Ye(a,25),_=d+g+cd(a,c,u)+fd[m]+it[m]|0,T=(Ye(r,2)^Ye(r,13)^Ye(r,22))+ud(r,o,s)|0;d=u,u=c,c=a,a=i+_|0,i=s,s=o,o=r,r=_+T|0}r=r+this.A|0,o=o+this.B|0,s=s+this.C|0,i=i+this.D|0,a=a+this.E|0,c=c+this.F|0,u=u+this.G|0,d=d+this.H|0,this.set(r,o,s,i,a,c,u,d)}roundClean(){it.fill(0)}destroy(){this.set(0,0,0,0,0,0,0,0),this.buffer.fill(0)}}const pd=ad(()=>new md);class qt extends Error{}qt.prototype.name="InvalidTokenError";function hd(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 gd(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 hd(e)}catch{return atob(e)}}function pr(t,e){if(typeof t!="string")throw new qt("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 qt(`Invalid token specified: missing part #${n+1}`);let o;try{o=gd(r)}catch(s){throw new qt(`Invalid token specified: invalid base64 for part #${n+1} (${s.message})`)}try{return JSON.parse(o)}catch(s){throw new qt(`Invalid token specified: invalid json for part #${n+1} (${s.message})`)}}if(typeof Promise>"u")throw Error("Keycloak requires an environment that supports Promises. Make sure that you include the appropriate polyfill.");function to(t){if(!(this instanceof to))throw new Error("The 'Keycloak' constructor must be invoked with 'new'.");for(var e=this,n,r=[],o,s={enable:!0,callbackList:[],interval:5},i=document.getElementsByTagName("script"),a=0;a<i.length;a++)(i[a].src.indexOf("keycloak.js")!==-1||i[a].src.indexOf("keycloak.min.js")!==-1)&&i[a].src.indexOf("version=")!==-1&&(e.iframeVersion=i[a].src.substring(i[a].src.indexOf("version=")+8).split("&")[0]);var c=!0,u=$e(console.info),d=$e(console.warn);e.init=function(f){if(e.didInitialize)throw new Error("A 'Keycloak' instance can only be initialized once.");e.didInitialize=!0,e.authenticated=!1,o=te();var h=["default","cordova","cordova-native"];if(f&&h.indexOf(f.adapter)>-1?n=Xe(f.adapter):f&&typeof f.adapter=="object"?n=f.adapter:window.Cordova||window.cordova?n=Xe("cordova"):n=Xe(),f){if(typeof f.useNonce<"u"&&(c=f.useNonce),typeof f.checkLoginIframe<"u"&&(s.enable=f.checkLoginIframe),f.checkLoginIframeInterval&&(s.interval=f.checkLoginIframeInterval),f.onLoad==="login-required"&&(e.loginRequired=!0),f.responseMode)if(f.responseMode==="query"||f.responseMode==="fragment")e.responseMode=f.responseMode;else throw"Invalid value for responseMode";if(f.flow){switch(f.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=f.flow}if(f.timeSkew!=null&&(e.timeSkew=f.timeSkew),f.redirectUri&&(e.redirectUri=f.redirectUri),f.silentCheckSsoRedirectUri&&(e.silentCheckSsoRedirectUri=f.silentCheckSsoRedirectUri),typeof f.silentCheckSsoFallback=="boolean"?e.silentCheckSsoFallback=f.silentCheckSsoFallback:e.silentCheckSsoFallback=!0,typeof f.pkceMethod<"u"){if(f.pkceMethod!=="S256"&&f.pkceMethod!==!1)throw new TypeError(`Invalid value for pkceMethod', expected 'S256' or false but got ${f.pkceMethod}.`);e.pkceMethod=f.pkceMethod}else e.pkceMethod="S256";typeof f.enableLogging=="boolean"?e.enableLogging=f.enableLogging:e.enableLogging=!1,f.logoutMethod==="POST"?e.logoutMethod="POST":e.logoutMethod="GET",typeof f.scope=="string"&&(e.scope=f.scope),typeof f.acrValues=="string"&&(e.acrValues=f.acrValues),typeof f.messageReceiveTimeout=="number"&&f.messageReceiveTimeout>0?e.messageReceiveTimeout=f.messageReceiveTimeout:e.messageReceiveTimeout=1e4}e.responseMode||(e.responseMode="fragment"),e.responseType||(e.responseType="code",e.flow="standard");var S=U(),P=U();P.promise.then(function(){e.onReady&&e.onReady(e.authenticated),S.setSuccess(e.authenticated)}).catch(function(O){S.setError(O)});var k=A(),L=function(){u("[KEYCLOAK] Executing check-sso silently");var O=document.createElement("iframe"),$=e.createLoginUrl({prompt:"none",redirectUri:e.silentCheckSsoRedirectUri});return O.setAttribute("src",$),O.setAttribute("sandbox","allow-storage-access-by-user-activation allow-scripts allow-same-origin"),O.setAttribute("title","keycloak-silent-check-sso"),O.style.display="none",document.body.appendChild(O),new Promise(function(oe){var he=function(ae){if(!(ae.origin!==window.location.origin||O.contentWindow!==ae.source)){var Re=J(ae.data);C(Re,P,oe),document.body.removeChild(O),window.removeEventListener("message",he)}};window.addEventListener("message",he)})};e.getAccessTokenAsync=async()=>{const O=e.tokenParsed,$=O?O.exp:null;return!O||!$?null:$-Math.ceil(new Date().getTime()/1e3)+(e.timeSkew??0)<10?await L()??null:e.token};function E(){var O=function(Z){Z||($.prompt="none"),f&&f.locale&&($.locale=f.locale),e.login($).then(function(){P.setSuccess()}).catch(function(oe){P.setError(oe)})},$={};switch(f.onLoad){case"check-sso":s.enable?ve().then(function(){Me().then(function(Z){Z?P.setSuccess():e.silentCheckSsoRedirectUri?L():O(!1)}).catch(function(Z){P.setError(Z)})}):e.silentCheckSsoRedirectUri?L():O(!1);break;case"login-required":O(!0);break;default:throw"Invalid value for onLoad"}}function I(){var O=J(window.location.href);if(O&&window.history.replaceState(window.history.state,null,O.newUrl),O&&O.valid)return ve().then(function(){C(O,P)}).catch(function($){P.setError($)});f?f.token&&f.refreshToken?(X(f.token,f.refreshToken,f.idToken),s.enable?ve().then(function(){Me().then(function($){$?(e.onAuthSuccess&&e.onAuthSuccess(),P.setSuccess(),De()):P.setSuccess()}).catch(function($){P.setError($)})}):e.updateToken(-1).then(function(){e.onAuthSuccess&&e.onAuthSuccess(),P.setSuccess()}).catch(function($){e.onAuthError&&e.onAuthError(),f.onLoad?E():P.setError($)})):f.onLoad?E():P.setSuccess():P.setSuccess()}function D(){var O=U(),$=function(){(document.readyState==="interactive"||document.readyState==="complete")&&(document.removeEventListener("readystatechange",$),O.setSuccess())};return document.addEventListener("readystatechange",$),$(),O.promise}return k.then(function(){D().then(ot).then(I).catch(function(O){S.setError(O)})}),k.catch(function(O){S.setError(O)}),S.promise},e.login=function(f){return n.login(f)};function m(f){var h=null,S=window.crypto||window.msCrypto;if(S&&S.getRandomValues&&window.Uint8Array)return h=new Uint8Array(f),S.getRandomValues(h),h;h=new Array(f);for(var P=0;P<h.length;P++)h[P]=Math.floor(256*Math.random());return h}function g(f){return _(f,"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789")}function _(f,h){for(var S=m(f),P=new Array(f),k=0;k<f;k++)P[k]=h.charCodeAt(S[k]%h.length);return String.fromCharCode.apply(null,P)}function v(f,h){if(f!=="S256")throw new TypeError(`Invalid value for 'pkceMethod', expected 'S256' but got '${f}'.`);const S=pd(h);return yd(S).replace(/\+/g,"-").replace(/\//g,"_").replace(/\=/g,"")}function T(f){var h={id_token:{acr:f}};return JSON.stringify(h)}e.createLoginUrl=function(f){var h=ne(),S=ne(),P=n.redirectUri(f),k={state:h,nonce:S,redirectUri:encodeURIComponent(P),loginOptions:f};f&&f.prompt&&(k.prompt=f.prompt);var L;f&&f.action=="register"?L=e.endpoints.register():L=e.endpoints.authorize();var E=f&&f.scope||e.scope;E?E.indexOf("openid")===-1&&(E="openid "+E):E="openid";var I=L+"?client_id="+encodeURIComponent(e.clientId)+"&redirect_uri="+encodeURIComponent(P)+"&state="+encodeURIComponent(h)+"&response_mode="+encodeURIComponent(e.responseMode)+"&response_type="+encodeURIComponent(e.responseType)+"&scope="+encodeURIComponent(E);if(c&&(I=I+"&nonce="+encodeURIComponent(S)),f&&f.prompt&&(I+="&prompt="+encodeURIComponent(f.prompt)),f&&f.maxAge&&(I+="&max_age="+encodeURIComponent(f.maxAge)),f&&f.loginHint&&(I+="&login_hint="+encodeURIComponent(f.loginHint)),f&&f.idpHint&&(I+="&kc_idp_hint="+encodeURIComponent(f.idpHint)),f&&f.action&&f.action!="register"&&(I+="&kc_action="+encodeURIComponent(f.action)),f&&f.locale&&(I+="&ui_locales="+encodeURIComponent(f.locale)),f&&f.acr){var D=T(f.acr);I+="&claims="+encodeURIComponent(D)}if((f&&f.acrValues||e.acrValues)&&(I+="&acr_values="+encodeURIComponent(f.acrValues||e.acrValues)),e.pkceMethod){var O=g(96);k.pkceCodeVerifier=O;var $=v(e.pkceMethod,O);I+="&code_challenge="+$,I+="&code_challenge_method="+e.pkceMethod}return o.add(k),I},e.logout=function(f){return n.logout(f)},e.createLogoutUrl=function(f){if(((f==null?void 0:f.logoutMethod)??e.logoutMethod)==="POST")return e.endpoints.logout();var S=e.endpoints.logout()+"?client_id="+encodeURIComponent(e.clientId)+"&post_logout_redirect_uri="+encodeURIComponent(n.redirectUri(f,!1));return e.idToken&&(S+="&id_token_hint="+encodeURIComponent(e.idToken)),S},e.register=function(f){return n.register(f)},e.createRegisterUrl=function(f){return f||(f={}),f.action="register",e.createLoginUrl(f)},e.createAccountUrl=function(f){var h=w(),S=void 0;return typeof h<"u"&&(S=h+"/account?referrer="+encodeURIComponent(e.clientId)+"&referrer_uri="+encodeURIComponent(n.redirectUri(f))),S},e.accountManagement=function(){return n.accountManagement()},e.hasRealmRole=function(f){var h=e.realmAccess;return!!h&&h.roles.indexOf(f)>=0},e.hasResourceRole=function(f,h){if(!e.resourceAccess)return!1;var S=e.resourceAccess[h||e.clientId];return!!S&&S.roles.indexOf(f)>=0},e.loadUserProfile=function(){var f=w()+"/account",h=new XMLHttpRequest;h.open("GET",f,!0),h.setRequestHeader("Accept","application/json"),h.setRequestHeader("Authorization","bearer "+e.token);var S=U();return h.onreadystatechange=function(){h.readyState==4&&(h.status==200?(e.profile=JSON.parse(h.responseText),S.setSuccess(e.profile)):S.setError())},h.send(),S.promise},e.loadUserInfo=function(){var f=e.endpoints.userinfo(),h=new XMLHttpRequest;h.open("GET",f,!0),h.setRequestHeader("Accept","application/json"),h.setRequestHeader("Authorization","bearer "+e.token);var S=U();return h.onreadystatechange=function(){h.readyState==4&&(h.status==200?(e.userInfo=JSON.parse(h.responseText),S.setSuccess(e.userInfo)):S.setError())},h.send(),S.promise},e.isTokenExpired=function(f){if(!e.tokenParsed||!e.refreshToken&&e.flow!="implicit")throw"Not authenticated";if(e.timeSkew==null)return u("[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(f){if(isNaN(f))throw"Invalid minValidity";h-=f}return h<0},e.updateToken=function(f){var h=U();if(!e.refreshToken)return h.setError(),h.promise;f=f||5;var S=function(){var k=!1;if(f==-1?(k=!0,u("[KEYCLOAK] Refreshing token: forced refresh")):(!e.tokenParsed||e.isTokenExpired(f))&&(k=!0,u("[KEYCLOAK] Refreshing token: token expired")),!k)h.setSuccess(!1);else{var L="grant_type=refresh_token&refresh_token="+e.refreshToken,E=e.endpoints.token();if(r.push(h),r.length==1){var I=new XMLHttpRequest;I.open("POST",E,!0),I.setRequestHeader("Content-type","application/x-www-form-urlencoded"),I.withCredentials=!0,L+="&client_id="+encodeURIComponent(e.clientId);var D=new Date().getTime();I.onreadystatechange=function(){if(I.readyState==4)if(I.status==200){u("[KEYCLOAK] Token refreshed"),D=(D+new Date().getTime())/2;var O=JSON.parse(I.responseText);X(O.access_token,O.refresh_token,O.id_token,D),e.onAuthRefreshSuccess&&e.onAuthRefreshSuccess();for(var $=r.pop();$!=null;$=r.pop())$.setSuccess(!0)}else{d("[KEYCLOAK] Failed to refresh token"),I.status==400&&e.clearToken(),e.onAuthRefreshError&&e.onAuthRefreshError();for(var $=r.pop();$!=null;$=r.pop())$.setError(!0)}},I.send(L)}}};if(s.enable){var P=Me();P.then(function(){S()}).catch(function(k){h.setError(k)})}else S();return h.promise},e.clearToken=function(){e.token&&(X(null,null,null),e.onAuthLogout&&e.onAuthLogout(),e.loginRequired&&e.login())};function w(){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 B(){return window.location.origin?window.location.origin:window.location.protocol+"//"+window.location.hostname+(window.location.port?":"+window.location.port:"")}function C(f,h,S=null){var P=f.code,k=f.error,L=f.prompt,E=new Date().getTime();if(f.kc_action_status&&e.onActionUpdate&&e.onActionUpdate(f.kc_action_status),k){if(L!="none")if(f.error_description&&f.error_description==="authentication_expired")e.login(f.loginOptions);else{var I={error:k,error_description:f.error_description};e.onAuthError&&e.onAuthError(I),h&&h.setError(I)}else h&&h.setSuccess(),S&&S();return}else e.flow!="standard"&&(f.access_token||f.id_token)&&Z(f.access_token,null,f.id_token,!0);if(e.flow!="implicit"&&P){var D="code="+P+"&grant_type=authorization_code",O=e.endpoints.token(),$=new XMLHttpRequest;$.open("POST",O,!0),$.setRequestHeader("Content-type","application/x-www-form-urlencoded"),D+="&client_id="+encodeURIComponent(e.clientId),D+="&redirect_uri="+f.redirectUri,f.pkceCodeVerifier&&(D+="&code_verifier="+f.pkceCodeVerifier),$.withCredentials=!0,$.onreadystatechange=function(){if($.readyState==4)if($.status==200){var oe=JSON.parse($.responseText);Z(oe.access_token,oe.refresh_token,oe.id_token,e.flow==="standard"),De()}else e.onAuthError&&e.onAuthError(),h&&h.setError()},$.send(D)}function Z(oe,he,ae,Re){if(E=(E+new Date().getTime())/2,X(oe,he,ae,E),c&&e.idTokenParsed&&e.idTokenParsed.nonce!=f.storedNonce)u("[KEYCLOAK] Invalid nonce, clearing token"),e.clearToken(),h&&h.setError();else if(Re){e.onAuthSuccess&&e.onAuthSuccess(),h&&h.setSuccess(),S&&S(oe);return}}}function A(f){var h=U(),S;t?typeof t=="string"&&(S=t):S="keycloak.json";function P(O){O?e.endpoints={authorize:function(){return O.authorization_endpoint},token:function(){return O.token_endpoint},logout:function(){if(!O.end_session_endpoint)throw"Not supported by the OIDC server";return O.end_session_endpoint},checkSessionIframe:function(){if(!O.check_session_iframe)throw"Not supported by the OIDC server";return O.check_session_iframe},register:function(){throw'Redirection to "Register user" page not supported in standard OIDC mode'},userinfo:function(){if(!O.userinfo_endpoint)throw"Not supported by the OIDC server";return O.userinfo_endpoint}}:e.endpoints={authorize:function(){return w()+"/protocol/openid-connect/auth"},token:function(){return w()+"/protocol/openid-connect/token"},logout:function(){return w()+"/protocol/openid-connect/logout"},checkSessionIframe:function(){var $=w()+"/protocol/openid-connect/login-status-iframe.html";return e.iframeVersion&&($=$+"?version="+e.iframeVersion),$},thirdPartyCookiesIframe:function(){var $=w()+"/protocol/openid-connect/3p-cookies/step1.html";return e.iframeVersion&&($=$+"?version="+e.iframeVersion),$},register:function(){return w()+"/protocol/openid-connect/registrations"},userinfo:function(){return w()+"/protocol/openid-connect/userinfo"}}}if(S){var k=new XMLHttpRequest;k.open("GET",S,!0),k.setRequestHeader("Accept","application/json"),k.onreadystatechange=function(){if(k.readyState==4)if(k.status==200||j(k)){var O=JSON.parse(k.responseText);e.authServerUrl=O["auth-server-url"],e.realm=O.realm,e.clientId=O.resource,P(null),h.setSuccess()}else h.setError()},k.send()}else{if(!t.clientId)throw"clientId missing";e.clientId=t.clientId;var L=t.oidcProvider;if(L)if(typeof L=="string"){var D;L.charAt(L.length-1)=="/"?D=L+".well-known/openid-configuration":D=L+"/.well-known/openid-configuration";var k=new XMLHttpRequest;k.open("GET",D,!0),k.setRequestHeader("Accept","application/json"),k.onreadystatechange=function(){if(k.readyState==4)if(k.status==200||j(k)){var $=JSON.parse(k.responseText);P($),h.setSuccess()}else h.setError()},k.send()}else P(L),h.setSuccess();else{if(!t.url){for(var E=document.getElementsByTagName("script"),I=0;I<E.length;I++)if(E[I].src.match(/.*keycloak\.js/)){t.url=E[I].src.substr(0,E[I].src.indexOf("/js/keycloak.js"));break}}if(!t.realm)throw"realm missing";e.authServerUrl=t.url,e.realm=t.realm,P(null),h.setSuccess()}}return h.promise}function j(f){return f.status==0&&f.responseText&&f.responseURL.startsWith("file:")}function X(f,h,S,P){if(e.tokenTimeoutHandle&&(clearTimeout(e.tokenTimeoutHandle),e.tokenTimeoutHandle=null),h?(e.refreshToken=h,e.refreshTokenParsed=pr(h)):(delete e.refreshToken,delete e.refreshTokenParsed),S?(e.idToken=S,e.idTokenParsed=pr(S)):(delete e.idToken,delete e.idTokenParsed),f){if(e.token=f,e.tokenParsed=pr(f),e.sessionId=e.tokenParsed.sid,e.authenticated=!0,e.subject=e.tokenParsed.sub,e.realmAccess=e.tokenParsed.realm_access,e.resourceAccess=e.tokenParsed.resource_access,P&&(e.timeSkew=Math.floor(P/1e3)-e.tokenParsed.iat),e.timeSkew!=null&&(u("[KEYCLOAK] Estimated time difference between browser and server is "+e.timeSkew+" seconds"),e.onTokenExpired)){var k=(e.tokenParsed.exp-new Date().getTime()/1e3+e.timeSkew)*1e3;u("[KEYCLOAK] Token expires in "+Math.round(k/1e3)+" s"),k<=0?e.onTokenExpired():e.tokenTimeoutHandle=setTimeout(e.onTokenExpired,k)}}else delete e.token,delete e.tokenParsed,delete e.subject,delete e.realmAccess,delete e.resourceAccess,e.authenticated=!1}function ne(){var f="0123456789abcdef",h=_(36,f).split("");h[14]="4",h[19]=f.substr(h[19]&3|8,1),h[8]=h[13]=h[18]=h[23]="-";var S=h.join("");return S}function J(f){var h=pe(f);if(h){var S=o.get(h.state);return S&&(h.valid=!0,h.redirectUri=S.redirectUri,h.storedNonce=S.nonce,h.prompt=S.prompt,h.pkceCodeVerifier=S.pkceCodeVerifier,h.loginOptions=S.loginOptions),h}}function pe(f){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 S=f.indexOf("?"),P=f.indexOf("#"),k,L;if(e.responseMode==="query"&&S!==-1?(k=f.substring(0,S),L=se(f.substring(S+1,P!==-1?P:f.length),h),L.paramsString!==""&&(k+="?"+L.paramsString),P!==-1&&(k+=f.substring(P))):e.responseMode==="fragment"&&P!==-1&&(k=f.substring(0,P),L=se(f.substring(P+1),h),L.paramsString!==""&&(k+="#"+L.paramsString)),L&&L.oauthParams){if(e.flow==="standard"||e.flow==="hybrid"){if((L.oauthParams.code||L.oauthParams.error)&&L.oauthParams.state)return L.oauthParams.newUrl=k,L.oauthParams}else if(e.flow==="implicit"&&(L.oauthParams.access_token||L.oauthParams.error)&&L.oauthParams.state)return L.oauthParams.newUrl=k,L.oauthParams}}function se(f,h){for(var S=f.split("&"),P={paramsString:"",oauthParams:{}},k=0;k<S.length;k++){var L=S[k].indexOf("="),E=S[k].slice(0,L);h.indexOf(E)!==-1?P.oauthParams[E]=S[k].slice(L+1):(P.paramsString!==""&&(P.paramsString+="&"),P.paramsString+=S[k])}return P}function U(){var f={setSuccess:function(h){f.resolve(h)},setError:function(h){f.reject(h)}};return f.promise=new Promise(function(h,S){f.resolve=h,f.reject=S}),f}function Ee(f,h,S){var P=null,k=new Promise(function(L,E){P=setTimeout(function(){E({error:S})},h)});return Promise.race([f,k]).finally(function(){clearTimeout(P)})}function ve(){var f=U();if(!s.enable||s.iframe)return f.setSuccess(),f.promise;var h=document.createElement("iframe");s.iframe=h,h.onload=function(){var k=e.endpoints.authorize();k.charAt(0)==="/"?s.iframeOrigin=B():s.iframeOrigin=k.substring(0,k.indexOf("/",8)),f.setSuccess()};var S=e.endpoints.checkSessionIframe();h.setAttribute("src",S),h.setAttribute("sandbox","allow-storage-access-by-user-activation allow-scripts allow-same-origin"),h.setAttribute("title","keycloak-session-iframe"),h.style.display="none",document.body.appendChild(h);var P=function(k){if(!(k.origin!==s.iframeOrigin||s.iframe.contentWindow!==k.source)&&(k.data=="unchanged"||k.data=="changed"||k.data=="error")){k.data!="unchanged"&&e.clearToken();for(var L=s.callbackList.splice(0,s.callbackList.length),E=L.length-1;E>=0;--E){var I=L[E];k.data=="error"?I.setError():I.setSuccess(k.data=="unchanged")}}};return window.addEventListener("message",P,!1),f.promise}function De(){s.enable&&e.token&&setTimeout(function(){Me().then(function(f){f&&De()})},s.interval*1e3)}function Me(){var f=U();if(s.iframe&&s.iframeOrigin){var h=e.clientId+" "+(e.sessionId?e.sessionId:"");s.callbackList.push(f);var S=s.iframeOrigin;s.callbackList.length==1&&s.iframe.contentWindow.postMessage(h,S)}else f.setSuccess();return f.promise}function ot(){var f=U();if(s.enable||e.silentCheckSsoRedirectUri){var h=document.createElement("iframe");h.setAttribute("src",e.endpoints.thirdPartyCookiesIframe()),h.setAttribute("sandbox","allow-storage-access-by-user-activation allow-scripts allow-same-origin"),h.setAttribute("title","keycloak-3p-check-iframe"),h.style.display="none",document.body.appendChild(h);var S=function(P){h.contentWindow===P.source&&(P.data!=="supported"&&P.data!=="unsupported"||(P.data==="unsupported"&&(d(`[KEYCLOAK] Your browser is blocking access to 3rd-party cookies, this means:
|
|
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 su(){const t=V.domCache.get(this),e=V.innerParams.get(this);if(!e){fi(this);return}t.popup&&H.swalCloseEventFinishedCallback&&(H.swalCloseEventFinishedCallback(),delete H.swalCloseEventFinishedCallback),H.deferDisposalTimer&&(clearTimeout(H.deferDisposalTimer),delete H.deferDisposalTimer),typeof e.didDestroy=="function"&&e.didDestroy(),iu(this)}const iu=t=>{fi(t),delete t.params,delete H.keydownHandler,delete H.keydownTarget,delete H.currentInstance},fi=t=>{t.isAwaitingPromise()?(lr(V,t),V.awaitingPromise.set(t,!0)):(lr(tn,t),lr(V,t))},lr=(t,e)=>{for(const n in t)t[n].delete(e)},mi=Object.freeze(Object.defineProperty({__proto__:null,_destroy:su,close:_n,closeModal:_n,closePopup:_n,closeToast:_n,disableButtons:Xc,disableInput:Qc,disableLoading:jo,enableButtons:Jc,enableInput:Zc,getInput:Lc,getProgressSteps:nu,handleAwaitingPromise:yn,hideLoading:jo,isAwaitingPromise:zc,rejectPromise:Wc,resetValidationMessage:tu,showValidationMessage:eu,update:ru},Symbol.toStringTag,{value:"Module"})),au=t=>{const e=V.innerParams.get(t);t.disableButtons(),e.input?pi(t,"confirm"):to(t,!0)},lu=t=>{const e=V.innerParams.get(t);t.disableButtons(),e.returnInputValueOnDeny?pi(t,"deny"):eo(t,!1)},cu=(t,e)=>{t.disableButtons(),e(Rt.cancel)},pi=(t,e)=>{const n=V.innerParams.get(t);if(!n.input)return kt(`The "input" parameter is needed to be set when using returnInputValueOn${zr(e)}`);const r=Cc(t,n);n.inputValidator?uu(t,r,e):t.getInput().checkValidity()?e==="deny"?eo(t,r):to(t,r):(t.enableButtons(),t.showValidationMessage(n.validationMessage))},uu=(t,e,n)=>{const r=V.innerParams.get(t);t.disableInput(),Promise.resolve().then(()=>fn(r.inputValidator(e,r.validationMessage))).then(s=>{t.enableButtons(),t.enableInput(),s?t.showValidationMessage(s):n==="deny"?eo(t,e):to(t,e)})},eo=(t,e)=>{const n=V.innerParams.get(t||void 0);n.showLoaderOnDeny&&Ot(ut()),n.preDeny?(V.awaitingPromise.set(t||void 0,!0),Promise.resolve().then(()=>fn(n.preDeny(e,n.validationMessage))).then(o=>{o===!1?(t.hideLoading(),yn(t)):t.closePopup({isDenied:!0,value:typeof o>"u"?e:o})}).catch(o=>hi(t||void 0,o))):t.closePopup({isDenied:!0,value:e})},zo=(t,e)=>{t.closePopup({isConfirmed:!0,value:e})},hi=(t,e)=>{t.rejectPromise(e)},to=(t,e)=>{const n=V.innerParams.get(t||void 0);n.showLoaderOnConfirm&&Ot(),n.preConfirm?(t.resetValidationMessage(),V.awaitingPromise.set(t||void 0,!0),Promise.resolve().then(()=>fn(n.preConfirm(e,n.validationMessage))).then(o=>{Pe(zn())||o===!1?(t.hideLoading(),yn(t)):zo(t,typeof o>"u"?e:o)}).catch(o=>hi(t||void 0,o))):zo(t,e)},du=(t,e,n)=>{V.innerParams.get(t).toast?fu(t,e,n):(pu(e),hu(e),gu(t,e,n))},fu=(t,e,n)=>{e.popup.onclick=()=>{const r=V.innerParams.get(t);r&&(mu(r)||r.timer||r.input)||n(Rt.close)}},mu=t=>t.showConfirmButton||t.showDenyButton||t.showCancelButton||t.showCloseButton;let Rn=!1;const pu=t=>{t.popup.onmousedown=()=>{t.container.onmouseup=function(e){t.container.onmouseup=void 0,e.target===t.container&&(Rn=!0)}}},hu=t=>{t.container.onmousedown=()=>{t.popup.onmouseup=function(e){t.popup.onmouseup=void 0,(e.target===t.popup||t.popup.contains(e.target))&&(Rn=!0)}}},gu=(t,e,n)=>{e.container.onclick=r=>{const o=V.innerParams.get(t);if(Rn){Rn=!1;return}r.target===e.container&&Fn(o.allowOutsideClick)&&n(Rt.backdrop)}},yu=t=>typeof t=="object"&&t.jquery,Ko=t=>t instanceof Element||yu(t),vu=t=>{const e={};return typeof t[0]=="object"&&!Ko(t[0])?Object.assign(e,t[0]):["title","html","icon"].forEach((n,r)=>{const o=t[r];typeof o=="string"||Ko(o)?e[n]=o:o!==void 0&&kt(`Unexpected type of ${n}! Expected "string" or "Element", got ${typeof o}`)}),e};function bu(...t){const e=this;return new e(...t)}function wu(t){class e extends this{_main(r,o){return super._main(r,Object.assign({},t,o))}}return e}const Su=()=>H.timeout&&H.timeout.getTimerLeft(),gi=()=>{if(H.timeout)return ll(),H.timeout.stop()},yi=()=>{if(H.timeout){const t=H.timeout.start();return Xr(t),t}},_u=()=>{const t=H.timeout;return t&&(t.running?gi():yi())},ku=t=>{if(H.timeout){const e=H.timeout.increase(t);return Xr(e,!0),e}},Cu=()=>H.timeout&&H.timeout.isRunning();let Wo=!1;const Ar={};function Eu(t="data-swal-template"){Ar[t]=this,Wo||(document.body.addEventListener("click",Tu),Wo=!0)}const Tu=t=>{for(let e=t.target;e&&e!==document;e=e.parentNode)for(const n in Ar){const r=e.getAttribute(n);if(r){Ar[n].fire({template:r});return}}},Au=Object.freeze(Object.defineProperty({__proto__:null,argsToParams:vu,bindClickHandler:Eu,clickCancel:Nc,clickConfirm:ii,clickDeny:Rc,enableLoading:Ot,fire:bu,getActions:hn,getCancelButton:bt,getCloseButton:qr,getConfirmButton:Ke,getContainer:fe,getDenyButton:ut,getFocusableElements:Gr,getFooter:Ys,getHtmlContainer:$n,getIcon:pn,getImage:qs,getInputLabel:rl,getLoader:$t,getPopup:Y,getTimerLeft:Su,getTimerProgressBar:Kn,getTitle:Ws,getValidationMessage:zn,increaseTimer:ku,isDeprecatedParameter:Cr,isLoading:sl,isTimerRunning:Cu,isUpdatableParameter:zs,isValidParameter:Fs,isVisible:$c,mixin:wu,resumeTimer:yi,showLoading:Ot,stopTimer:gi,toggleTimer:_u},Symbol.toStringTag,{value:"Module"}));let Pr;class Nt{constructor(...e){if(typeof window>"u")return;Pr=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);V.promise.set(this,r)}_main(e,n={}){tl(Object.assign({},n,e)),H.currentInstance&&(H.currentInstance._destroy(),Yr()&&ni()),H.currentInstance=this;const r=Iu(e,n);ac(r),Object.freeze(r),H.timeout&&(H.timeout.stop(),delete H.timeout),clearTimeout(H.restoreFocusTimeout);const o=xu(this);return ti(this,r),V.innerParams.set(this,r),Pu(this,o,r)}then(e){return V.promise.get(this).then(e)}finally(e){return V.promise.get(this).finally(e)}}const Pu=(t,e,n)=>new Promise((r,o)=>{const s=i=>{t.closePopup({isDismissed:!0,dismiss:i})};tn.swalPromiseResolve.set(t,r),tn.swalPromiseReject.set(t,o),e.confirmButton.onclick=()=>au(t),e.denyButton.onclick=()=>lu(t),e.cancelButton.onclick=()=>cu(t,s),e.closeButton.onclick=()=>s(Rt.close),du(t,e,s),Bc(t,H,n,s),kc(t,n),vc(n),Ou(H,n,s),Lu(e,n),setTimeout(()=>{e.container.scrollTop=0})}),Iu=(t,e)=>{const n=Xl(t),r=Object.assign({},It,e,n,t);return r.showClass=Object.assign({},It.showClass,r.showClass),r.hideClass=Object.assign({},It.hideClass,r.hideClass),r},xu=t=>{const e={popup:Y(),container:fe(),actions:hn(),confirmButton:Ke(),denyButton:ut(),cancelButton:bt(),loader:$t(),closeButton:qr(),validationMessage:zn(),progressSteps:Gs()};return V.domCache.set(t,e),e},Ou=(t,e,n)=>{const r=Kn();me(r),e.timer&&(t.timeout=new lc(()=>{n("timer"),delete t.timeout},e.timer),e.timerProgressBar&&(le(r),Ne(r,e,"timerProgressBar"),setTimeout(()=>{t.timeout&&t.timeout.running&&Xr(e.timer)})))},Lu=(t,e)=>{if(!e.toast){if(!Fn(e.allowEnterKey))return Ru();$u(t,e)||Tr(e,-1,1)}},$u=(t,e)=>e.focusDeny&&Pe(t.denyButton)?(t.denyButton.focus(),!0):e.focusCancel&&Pe(t.cancelButton)?(t.cancelButton.focus(),!0):e.focusConfirm&&Pe(t.confirmButton)?(t.confirmButton.focus(),!0):!1,Ru=()=>{document.activeElement instanceof HTMLElement&&typeof document.activeElement.blur=="function"&&document.activeElement.blur()};Object.assign(Nt.prototype,mi);Object.assign(Nt,Au);Object.keys(mi).forEach(t=>{Nt[t]=function(...e){if(Pr)return Pr[t](...e)}});Nt.DismissReason=Rt;Nt.version="11.4.8";const Lt=Nt;Lt.default=Lt;/*! @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:vi,setPrototypeOf:qo,isFrozen:Nu,getPrototypeOf:Bu,getOwnPropertyDescriptor:Du}=Object;let{freeze:ye,seal:We,create:bi}=Object,{apply:Ir,construct:xr}=typeof Reflect<"u"&&Reflect;ye||(ye=function(e){return e});We||(We=function(e){return e});Ir||(Ir=function(e,n,r){return e.apply(n,r)});xr||(xr=function(e,n){return new e(...n)});const kn=Le(Array.prototype.forEach),Go=Le(Array.prototype.pop),Vt=Le(Array.prototype.push),Pn=Le(String.prototype.toLowerCase),cr=Le(String.prototype.toString),Mu=Le(String.prototype.match),jt=Le(String.prototype.replace),Uu=Le(String.prototype.indexOf),Hu=Le(String.prototype.trim),Ve=Le(Object.prototype.hasOwnProperty),Ae=Le(RegExp.prototype.test),Ft=Vu(TypeError);function Le(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 Ir(t,e,r)}}function Vu(t){return function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return xr(t,n)}}function z(t,e){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:Pn;qo&&qo(t,null);let r=e.length;for(;r--;){let o=e[r];if(typeof o=="string"){const s=n(o);s!==o&&(Nu(e)||(e[r]=s),o=s)}t[o]=!0}return t}function ju(t){for(let e=0;e<t.length;e++)Ve(t,e)||(t[e]=null);return t}function ht(t){const e=bi(null);for(const[n,r]of vi(t))Ve(t,n)&&(Array.isArray(r)?e[n]=ju(r):r&&typeof r=="object"&&r.constructor===Object?e[n]=ht(r):e[n]=r);return e}function Cn(t,e){for(;t!==null;){const r=Du(t,e);if(r){if(r.get)return Le(r.get);if(typeof r.value=="function")return Le(r.value)}t=Bu(t)}function n(){return null}return n}const Yo=ye(["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"]),ur=ye(["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"]),dr=ye(["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"]),Fu=ye(["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"]),fr=ye(["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"]),zu=ye(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),Jo=ye(["#text"]),Xo=ye(["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"]),mr=ye(["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"]),Zo=ye(["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"]),En=ye(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),Ku=We(/\{\{[\w\W]*|[\w\W]*\}\}/gm),Wu=We(/<%[\w\W]*|[\w\W]*%>/gm),qu=We(/\${[\w\W]*}/gm),Gu=We(/^data-[\-\w.\u00B7-\uFFFF]/),Yu=We(/^aria-[\-\w]+$/),wi=We(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),Ju=We(/^(?:\w+script|data):/i),Xu=We(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),Si=We(/^html$/i);var Qo=Object.freeze({__proto__:null,MUSTACHE_EXPR:Ku,ERB_EXPR:Wu,TMPLIT_EXPR:qu,DATA_ATTR:Gu,ARIA_ATTR:Yu,IS_ALLOWED_URI:wi,IS_SCRIPT_OR_DATA:Ju,ATTR_WHITESPACE:Xu,DOCTYPE_NAME:Si});const Zu=function(){return typeof window>"u"?null:window},Qu=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 s="dompurify"+(r?"#"+r:"");try{return e.createPolicy(s,{createHTML(i){return i},createScriptURL(i){return i}})}catch{return console.warn("TrustedTypes policy "+s+" could not be created."),null}};function _i(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Zu();const e=N=>_i(N);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:s,HTMLTemplateElement:i,Node:a,Element:c,NodeFilter:u,NamedNodeMap:d=t.NamedNodeMap||t.MozNamedAttrMap,HTMLFormElement:m,DOMParser:g,trustedTypes:_}=t,v=c.prototype,T=Cn(v,"cloneNode"),w=Cn(v,"nextSibling"),B=Cn(v,"childNodes"),C=Cn(v,"parentNode");if(typeof i=="function"){const N=n.createElement("template");N.content&&N.content.ownerDocument&&(n=N.content.ownerDocument)}let A,j="";const{implementation:X,createNodeIterator:ne,createDocumentFragment:J,getElementsByTagName:pe}=n,{importNode:se}=r;let U={};e.isSupported=typeof vi=="function"&&typeof C=="function"&&X&&X.createHTMLDocument!==void 0;const{MUSTACHE_EXPR:Ee,ERB_EXPR:ve,TMPLIT_EXPR:De,DATA_ATTR:Me,ARIA_ATTR:ot,IS_SCRIPT_OR_DATA:Xe,ATTR_WHITESPACE:Ue}=Qo;let{IS_ALLOWED_URI:Ge}=Qo,te=null;const $e=z({},[...Yo,...ur,...dr,...fr,...Jo]);let f=null;const h=z({},[...Xo,...mr,...Zo,...En]);let S=Object.seal(bi(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}})),P=null,k=null,L=!0,E=!0,I=!1,D=!0,O=!1,$=!1,Z=!1,oe=!1,he=!1,ae=!1,Re=!1,po=!0,ho=!1;const ga="user-content-";let tr=!0,Mt=!1,Ct={},Et=null;const go=z({},["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 yo=null;const vo=z({},["audio","video","img","source","image","track"]);let nr=null;const bo=z({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),wn="http://www.w3.org/1998/Math/MathML",Sn="http://www.w3.org/2000/svg",Ze="http://www.w3.org/1999/xhtml";let Tt=Ze,rr=!1,or=null;const ya=z({},[wn,Sn,Ze],cr);let Ut=null;const va=["application/xhtml+xml","text/html"],ba="text/html";let ie=null,At=null;const wa=n.createElement("form"),wo=function(p){return p instanceof RegExp||p instanceof Function},sr=function(){let p=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(!(At&&At===p)){if((!p||typeof p!="object")&&(p={}),p=ht(p),Ut=va.indexOf(p.PARSER_MEDIA_TYPE)===-1?ba:p.PARSER_MEDIA_TYPE,ie=Ut==="application/xhtml+xml"?cr:Pn,te=Ve(p,"ALLOWED_TAGS")?z({},p.ALLOWED_TAGS,ie):$e,f=Ve(p,"ALLOWED_ATTR")?z({},p.ALLOWED_ATTR,ie):h,or=Ve(p,"ALLOWED_NAMESPACES")?z({},p.ALLOWED_NAMESPACES,cr):ya,nr=Ve(p,"ADD_URI_SAFE_ATTR")?z(ht(bo),p.ADD_URI_SAFE_ATTR,ie):bo,yo=Ve(p,"ADD_DATA_URI_TAGS")?z(ht(vo),p.ADD_DATA_URI_TAGS,ie):vo,Et=Ve(p,"FORBID_CONTENTS")?z({},p.FORBID_CONTENTS,ie):go,P=Ve(p,"FORBID_TAGS")?z({},p.FORBID_TAGS,ie):{},k=Ve(p,"FORBID_ATTR")?z({},p.FORBID_ATTR,ie):{},Ct=Ve(p,"USE_PROFILES")?p.USE_PROFILES:!1,L=p.ALLOW_ARIA_ATTR!==!1,E=p.ALLOW_DATA_ATTR!==!1,I=p.ALLOW_UNKNOWN_PROTOCOLS||!1,D=p.ALLOW_SELF_CLOSE_IN_ATTR!==!1,O=p.SAFE_FOR_TEMPLATES||!1,$=p.WHOLE_DOCUMENT||!1,he=p.RETURN_DOM||!1,ae=p.RETURN_DOM_FRAGMENT||!1,Re=p.RETURN_TRUSTED_TYPE||!1,oe=p.FORCE_BODY||!1,po=p.SANITIZE_DOM!==!1,ho=p.SANITIZE_NAMED_PROPS||!1,tr=p.KEEP_CONTENT!==!1,Mt=p.IN_PLACE||!1,Ge=p.ALLOWED_URI_REGEXP||wi,Tt=p.NAMESPACE||Ze,S=p.CUSTOM_ELEMENT_HANDLING||{},p.CUSTOM_ELEMENT_HANDLING&&wo(p.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(S.tagNameCheck=p.CUSTOM_ELEMENT_HANDLING.tagNameCheck),p.CUSTOM_ELEMENT_HANDLING&&wo(p.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(S.attributeNameCheck=p.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),p.CUSTOM_ELEMENT_HANDLING&&typeof p.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements=="boolean"&&(S.allowCustomizedBuiltInElements=p.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),O&&(E=!1),ae&&(he=!0),Ct&&(te=z({},Jo),f=[],Ct.html===!0&&(z(te,Yo),z(f,Xo)),Ct.svg===!0&&(z(te,ur),z(f,mr),z(f,En)),Ct.svgFilters===!0&&(z(te,dr),z(f,mr),z(f,En)),Ct.mathMl===!0&&(z(te,fr),z(f,Zo),z(f,En))),p.ADD_TAGS&&(te===$e&&(te=ht(te)),z(te,p.ADD_TAGS,ie)),p.ADD_ATTR&&(f===h&&(f=ht(f)),z(f,p.ADD_ATTR,ie)),p.ADD_URI_SAFE_ATTR&&z(nr,p.ADD_URI_SAFE_ATTR,ie),p.FORBID_CONTENTS&&(Et===go&&(Et=ht(Et)),z(Et,p.FORBID_CONTENTS,ie)),tr&&(te["#text"]=!0),$&&z(te,["html","head","body"]),te.table&&(z(te,["tbody"]),delete P.tbody),p.TRUSTED_TYPES_POLICY){if(typeof p.TRUSTED_TYPES_POLICY.createHTML!="function")throw Ft('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof p.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw Ft('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');A=p.TRUSTED_TYPES_POLICY,j=A.createHTML("")}else A===void 0&&(A=Qu(_,o)),A!==null&&typeof j=="string"&&(j=A.createHTML(""));ye&&ye(p),At=p}},So=z({},["mi","mo","mn","ms","mtext"]),_o=z({},["foreignobject","desc","title","annotation-xml"]),Sa=z({},["title","style","font","a","script"]),ko=z({},[...ur,...dr,...Fu]),Co=z({},[...fr,...zu]),_a=function(p){let x=C(p);(!x||!x.tagName)&&(x={namespaceURI:Tt,tagName:"template"});const R=Pn(p.tagName),Q=Pn(x.tagName);return or[p.namespaceURI]?p.namespaceURI===Sn?x.namespaceURI===Ze?R==="svg":x.namespaceURI===wn?R==="svg"&&(Q==="annotation-xml"||So[Q]):!!ko[R]:p.namespaceURI===wn?x.namespaceURI===Ze?R==="math":x.namespaceURI===Sn?R==="math"&&_o[Q]:!!Co[R]:p.namespaceURI===Ze?x.namespaceURI===Sn&&!_o[Q]||x.namespaceURI===wn&&!So[Q]?!1:!Co[R]&&(Sa[R]||!ko[R]):!!(Ut==="application/xhtml+xml"&&or[p.namespaceURI]):!1},ft=function(p){Vt(e.removed,{element:p});try{p.parentNode.removeChild(p)}catch{p.remove()}},ir=function(p,x){try{Vt(e.removed,{attribute:x.getAttributeNode(p),from:x})}catch{Vt(e.removed,{attribute:null,from:x})}if(x.removeAttribute(p),p==="is"&&!f[p])if(he||ae)try{ft(x)}catch{}else try{x.setAttribute(p,"")}catch{}},Eo=function(p){let x=null,R=null;if(oe)p="<remove></remove>"+p;else{const ue=Mu(p,/^[\r\n\t ]+/);R=ue&&ue[0]}Ut==="application/xhtml+xml"&&Tt===Ze&&(p='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+p+"</body></html>");const Q=A?A.createHTML(p):p;if(Tt===Ze)try{x=new g().parseFromString(Q,Ut)}catch{}if(!x||!x.documentElement){x=X.createDocument(Tt,"template",null);try{x.documentElement.innerHTML=rr?j:Q}catch{}}const ce=x.body||x.documentElement;return p&&R&&ce.insertBefore(n.createTextNode(R),ce.childNodes[0]||null),Tt===Ze?pe.call(x,$?"html":"body")[0]:$?x.documentElement:ce},To=function(p){return ne.call(p.ownerDocument||p,p,u.SHOW_ELEMENT|u.SHOW_COMMENT|u.SHOW_TEXT,null)},ka=function(p){return p instanceof m&&(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")},Ao=function(p){return typeof a=="function"&&p instanceof a},Qe=function(p,x,R){U[p]&&kn(U[p],Q=>{Q.call(e,x,R,At)})},Po=function(p){let x=null;if(Qe("beforeSanitizeElements",p,null),ka(p))return ft(p),!0;const R=ie(p.nodeName);if(Qe("uponSanitizeElement",p,{tagName:R,allowedTags:te}),p.hasChildNodes()&&!Ao(p.firstElementChild)&&Ae(/<[/\w]/g,p.innerHTML)&&Ae(/<[/\w]/g,p.textContent))return ft(p),!0;if(!te[R]||P[R]){if(!P[R]&&xo(R)&&(S.tagNameCheck instanceof RegExp&&Ae(S.tagNameCheck,R)||S.tagNameCheck instanceof Function&&S.tagNameCheck(R)))return!1;if(tr&&!Et[R]){const Q=C(p)||p.parentNode,ce=B(p)||p.childNodes;if(ce&&Q){const ue=ce.length;for(let be=ue-1;be>=0;--be)Q.insertBefore(T(ce[be],!0),w(p))}}return ft(p),!0}return p instanceof c&&!_a(p)||(R==="noscript"||R==="noembed"||R==="noframes")&&Ae(/<\/no(script|embed|frames)/i,p.innerHTML)?(ft(p),!0):(O&&p.nodeType===3&&(x=p.textContent,kn([Ee,ve,De],Q=>{x=jt(x,Q," ")}),p.textContent!==x&&(Vt(e.removed,{element:p.cloneNode()}),p.textContent=x)),Qe("afterSanitizeElements",p,null),!1)},Io=function(p,x,R){if(po&&(x==="id"||x==="name")&&(R in n||R in wa))return!1;if(!(E&&!k[x]&&Ae(Me,x))){if(!(L&&Ae(ot,x))){if(!f[x]||k[x]){if(!(xo(p)&&(S.tagNameCheck instanceof RegExp&&Ae(S.tagNameCheck,p)||S.tagNameCheck instanceof Function&&S.tagNameCheck(p))&&(S.attributeNameCheck instanceof RegExp&&Ae(S.attributeNameCheck,x)||S.attributeNameCheck instanceof Function&&S.attributeNameCheck(x))||x==="is"&&S.allowCustomizedBuiltInElements&&(S.tagNameCheck instanceof RegExp&&Ae(S.tagNameCheck,R)||S.tagNameCheck instanceof Function&&S.tagNameCheck(R))))return!1}else if(!nr[x]){if(!Ae(Ge,jt(R,Ue,""))){if(!((x==="src"||x==="xlink:href"||x==="href")&&p!=="script"&&Uu(R,"data:")===0&&yo[p])){if(!(I&&!Ae(Xe,jt(R,Ue,"")))){if(R)return!1}}}}}}return!0},xo=function(p){return p!=="annotation-xml"&&p.indexOf("-")>0},Oo=function(p){Qe("beforeSanitizeAttributes",p,null);const{attributes:x}=p;if(!x)return;const R={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:f};let Q=x.length;for(;Q--;){const ce=x[Q],{name:ue,namespaceURI:be,value:mt}=ce,Ht=ie(ue);let we=ue==="value"?mt:Hu(mt);if(R.attrName=Ht,R.attrValue=we,R.keepAttr=!0,R.forceKeepAttr=void 0,Qe("uponSanitizeAttribute",p,R),we=R.attrValue,R.forceKeepAttr||(ir(ue,p),!R.keepAttr))continue;if(!D&&Ae(/\/>/i,we)){ir(ue,p);continue}O&&kn([Ee,ve,De],$o=>{we=jt(we,$o," ")});const Lo=ie(p.nodeName);if(Io(Lo,Ht,we)){if(ho&&(Ht==="id"||Ht==="name")&&(ir(ue,p),we=ga+we),A&&typeof _=="object"&&typeof _.getAttributeType=="function"&&!be)switch(_.getAttributeType(Lo,Ht)){case"TrustedHTML":{we=A.createHTML(we);break}case"TrustedScriptURL":{we=A.createScriptURL(we);break}}try{be?p.setAttributeNS(be,ue,we):p.setAttribute(ue,we),Go(e.removed)}catch{}}}Qe("afterSanitizeAttributes",p,null)},Ca=function N(p){let x=null;const R=To(p);for(Qe("beforeSanitizeShadowDOM",p,null);x=R.nextNode();)Qe("uponSanitizeShadowNode",x,null),!Po(x)&&(x.content instanceof s&&N(x.content),Oo(x));Qe("afterSanitizeShadowDOM",p,null)};return e.sanitize=function(N){let p=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},x=null,R=null,Q=null,ce=null;if(rr=!N,rr&&(N="<!-->"),typeof N!="string"&&!Ao(N))if(typeof N.toString=="function"){if(N=N.toString(),typeof N!="string")throw Ft("dirty is not a string, aborting")}else throw Ft("toString is not a function");if(!e.isSupported)return N;if(Z||sr(p),e.removed=[],typeof N=="string"&&(Mt=!1),Mt){if(N.nodeName){const mt=ie(N.nodeName);if(!te[mt]||P[mt])throw Ft("root node is forbidden and cannot be sanitized in-place")}}else if(N instanceof a)x=Eo("<!---->"),R=x.ownerDocument.importNode(N,!0),R.nodeType===1&&R.nodeName==="BODY"||R.nodeName==="HTML"?x=R:x.appendChild(R);else{if(!he&&!O&&!$&&N.indexOf("<")===-1)return A&&Re?A.createHTML(N):N;if(x=Eo(N),!x)return he?null:Re?j:""}x&&oe&&ft(x.firstChild);const ue=To(Mt?N:x);for(;Q=ue.nextNode();)Po(Q)||(Q.content instanceof s&&Ca(Q.content),Oo(Q));if(Mt)return N;if(he){if(ae)for(ce=J.call(x.ownerDocument);x.firstChild;)ce.appendChild(x.firstChild);else ce=x;return(f.shadowroot||f.shadowrootmode)&&(ce=se.call(r,ce,!0)),ce}let be=$?x.outerHTML:x.innerHTML;return $&&te["!doctype"]&&x.ownerDocument&&x.ownerDocument.doctype&&x.ownerDocument.doctype.name&&Ae(Si,x.ownerDocument.doctype.name)&&(be="<!DOCTYPE "+x.ownerDocument.doctype.name+`>
|
|
65
|
+
`+be),O&&kn([Ee,ve,De],mt=>{be=jt(be,mt," ")}),A&&Re?A.createHTML(be):be},e.setConfig=function(){let N=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};sr(N),Z=!0},e.clearConfig=function(){At=null,Z=!1},e.isValidAttribute=function(N,p,x){At||sr({});const R=ie(N),Q=ie(p);return Io(R,Q,x)},e.addHook=function(N,p){typeof p=="function"&&(U[N]=U[N]||[],Vt(U[N],p))},e.removeHook=function(N){if(U[N])return Go(U[N])},e.removeHooks=function(N){U[N]&&(U[N]=[])},e.removeAllHooks=function(){U={}},e}var ki=_i();let Ci=class{get IsVisible(){return Lt.isVisible()}};class ed extends Ci{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(s=>{Lt.fire({allowEscapeKey:!1,allowOutsideClick:!1,icon:n,title:o,html:`<div style="max-height: 50vh; overflow: auto">${ki.sanitize(r)}</div>`}).then(()=>s(!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 td extends Ci{async CreateConfirmAsync(e){return new Promise(n=>{Lt.fire({showCancelButton:!0,allowEscapeKey:!1,allowOutsideClick:!1,icon:"question",title:e.title,html:ki.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 nd=()=>new ed,Ei=()=>new td;function rd(t){return t instanceof Uint8Array||t!=null&&typeof t=="object"&&t.constructor.name==="Uint8Array"}function Ti(t,...e){if(!rd(t))throw new Error("Uint8Array expected");if(e.length>0&&!e.includes(t.length))throw new Error(`Uint8Array expected of length ${e}, not of length=${t.length}`)}function es(t,e=!0){if(t.destroyed)throw new Error("Hash instance has been destroyed");if(e&&t.finished)throw new Error("Hash#digest() has already been called")}function od(t,e){Ti(t);const n=e.outputLen;if(t.length<n)throw new Error(`digestInto() expects output buffer of length at least ${n}`)}/*! noble-hashes - MIT License (c) 2022 Paul Miller (paulmillr.com) */const pr=t=>new DataView(t.buffer,t.byteOffset,t.byteLength),Ye=(t,e)=>t<<32-e|t>>>e;new Uint8Array(new Uint32Array([287454020]).buffer)[0];function sd(t){if(typeof t!="string")throw new Error(`utf8ToBytes expected string, got ${typeof t}`);return new Uint8Array(new TextEncoder().encode(t))}function Ai(t){return typeof t=="string"&&(t=sd(t)),Ti(t),t}class id{clone(){return this._cloneInto()}}function ad(t){const e=r=>t().update(Ai(r)).digest(),n=t();return e.outputLen=n.outputLen,e.blockLen=n.blockLen,e.create=()=>t(),e}function ld(t,e,n,r){if(typeof t.setBigUint64=="function")return t.setBigUint64(e,n,r);const o=BigInt(32),s=BigInt(4294967295),i=Number(n>>o&s),a=Number(n&s),c=r?4:0,u=r?0:4;t.setUint32(e+c,i,r),t.setUint32(e+u,a,r)}const cd=(t,e,n)=>t&e^~t&n,ud=(t,e,n)=>t&e^t&n^e&n;class dd extends id{constructor(e,n,r,o){super(),this.blockLen=e,this.outputLen=n,this.padOffset=r,this.isLE=o,this.finished=!1,this.length=0,this.pos=0,this.destroyed=!1,this.buffer=new Uint8Array(e),this.view=pr(this.buffer)}update(e){es(this);const{view:n,buffer:r,blockLen:o}=this;e=Ai(e);const s=e.length;for(let i=0;i<s;){const a=Math.min(o-this.pos,s-i);if(a===o){const c=pr(e);for(;o<=s-i;i+=o)this.process(c,i);continue}r.set(e.subarray(i,i+a),this.pos),this.pos+=a,i+=a,this.pos===o&&(this.process(n,0),this.pos=0)}return this.length+=e.length,this.roundClean(),this}digestInto(e){es(this),od(e,this),this.finished=!0;const{buffer:n,view:r,blockLen:o,isLE:s}=this;let{pos:i}=this;n[i++]=128,this.buffer.subarray(i).fill(0),this.padOffset>o-i&&(this.process(r,0),i=0);for(let m=i;m<o;m++)n[m]=0;ld(r,o-8,BigInt(this.length*8),s),this.process(r,0);const a=pr(e),c=this.outputLen;if(c%4)throw new Error("_sha2: outputLen should be aligned to 32bit");const u=c/4,d=this.get();if(u>d.length)throw new Error("_sha2: outputLen bigger than state");for(let m=0;m<u;m++)a.setUint32(4*m,d[m],s)}digest(){const{buffer:e,outputLen:n}=this;this.digestInto(e);const r=e.slice(0,n);return this.destroy(),r}_cloneInto(e){e||(e=new this.constructor),e.set(...this.get());const{blockLen:n,buffer:r,length:o,finished:s,destroyed:i,pos:a}=this;return e.length=o,e.pos=a,e.finished=s,e.destroyed=i,o%n&&e.buffer.set(r),e}}const fd=new Uint32Array([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]),st=new Uint32Array([1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225]),it=new Uint32Array(64);class md extends dd{constructor(){super(64,32,8,!1),this.A=st[0]|0,this.B=st[1]|0,this.C=st[2]|0,this.D=st[3]|0,this.E=st[4]|0,this.F=st[5]|0,this.G=st[6]|0,this.H=st[7]|0}get(){const{A:e,B:n,C:r,D:o,E:s,F:i,G:a,H:c}=this;return[e,n,r,o,s,i,a,c]}set(e,n,r,o,s,i,a,c){this.A=e|0,this.B=n|0,this.C=r|0,this.D=o|0,this.E=s|0,this.F=i|0,this.G=a|0,this.H=c|0}process(e,n){for(let m=0;m<16;m++,n+=4)it[m]=e.getUint32(n,!1);for(let m=16;m<64;m++){const g=it[m-15],_=it[m-2],v=Ye(g,7)^Ye(g,18)^g>>>3,T=Ye(_,17)^Ye(_,19)^_>>>10;it[m]=T+it[m-7]+v+it[m-16]|0}let{A:r,B:o,C:s,D:i,E:a,F:c,G:u,H:d}=this;for(let m=0;m<64;m++){const g=Ye(a,6)^Ye(a,11)^Ye(a,25),_=d+g+cd(a,c,u)+fd[m]+it[m]|0,T=(Ye(r,2)^Ye(r,13)^Ye(r,22))+ud(r,o,s)|0;d=u,u=c,c=a,a=i+_|0,i=s,s=o,o=r,r=_+T|0}r=r+this.A|0,o=o+this.B|0,s=s+this.C|0,i=i+this.D|0,a=a+this.E|0,c=c+this.F|0,u=u+this.G|0,d=d+this.H|0,this.set(r,o,s,i,a,c,u,d)}roundClean(){it.fill(0)}destroy(){this.set(0,0,0,0,0,0,0,0),this.buffer.fill(0)}}const pd=ad(()=>new md);class qt extends Error{}qt.prototype.name="InvalidTokenError";function hd(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 gd(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 hd(e)}catch{return atob(e)}}function hr(t,e){if(typeof t!="string")throw new qt("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 qt(`Invalid token specified: missing part #${n+1}`);let o;try{o=gd(r)}catch(s){throw new qt(`Invalid token specified: invalid base64 for part #${n+1} (${s.message})`)}try{return JSON.parse(o)}catch(s){throw new qt(`Invalid token specified: invalid json for part #${n+1} (${s.message})`)}}if(typeof Promise>"u")throw Error("Keycloak requires an environment that supports Promises. Make sure that you include the appropriate polyfill.");function no(t){if(!(this instanceof no))throw new Error("The 'Keycloak' constructor must be invoked with 'new'.");for(var e=this,n,r=[],o,s={enable:!0,callbackList:[],interval:5},i=document.getElementsByTagName("script"),a=0;a<i.length;a++)(i[a].src.indexOf("keycloak.js")!==-1||i[a].src.indexOf("keycloak.min.js")!==-1)&&i[a].src.indexOf("version=")!==-1&&(e.iframeVersion=i[a].src.substring(i[a].src.indexOf("version=")+8).split("&")[0]);var c=!0,u=$e(console.info),d=$e(console.warn);e.init=function(f){if(e.didInitialize)throw new Error("A 'Keycloak' instance can only be initialized once.");e.didInitialize=!0,e.authenticated=!1,o=te();var h=["default","cordova","cordova-native"];if(f&&h.indexOf(f.adapter)>-1?n=Xe(f.adapter):f&&typeof f.adapter=="object"?n=f.adapter:window.Cordova||window.cordova?n=Xe("cordova"):n=Xe(),f){if(typeof f.useNonce<"u"&&(c=f.useNonce),typeof f.checkLoginIframe<"u"&&(s.enable=f.checkLoginIframe),f.checkLoginIframeInterval&&(s.interval=f.checkLoginIframeInterval),f.onLoad==="login-required"&&(e.loginRequired=!0),f.responseMode)if(f.responseMode==="query"||f.responseMode==="fragment")e.responseMode=f.responseMode;else throw"Invalid value for responseMode";if(f.flow){switch(f.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=f.flow}if(f.timeSkew!=null&&(e.timeSkew=f.timeSkew),f.redirectUri&&(e.redirectUri=f.redirectUri),f.silentCheckSsoRedirectUri&&(e.silentCheckSsoRedirectUri=f.silentCheckSsoRedirectUri),typeof f.silentCheckSsoFallback=="boolean"?e.silentCheckSsoFallback=f.silentCheckSsoFallback:e.silentCheckSsoFallback=!0,typeof f.pkceMethod<"u"){if(f.pkceMethod!=="S256"&&f.pkceMethod!==!1)throw new TypeError(`Invalid value for pkceMethod', expected 'S256' or false but got ${f.pkceMethod}.`);e.pkceMethod=f.pkceMethod}else e.pkceMethod="S256";typeof f.enableLogging=="boolean"?e.enableLogging=f.enableLogging:e.enableLogging=!1,f.logoutMethod==="POST"?e.logoutMethod="POST":e.logoutMethod="GET",typeof f.scope=="string"&&(e.scope=f.scope),typeof f.acrValues=="string"&&(e.acrValues=f.acrValues),typeof f.messageReceiveTimeout=="number"&&f.messageReceiveTimeout>0?e.messageReceiveTimeout=f.messageReceiveTimeout:e.messageReceiveTimeout=1e4}e.responseMode||(e.responseMode="fragment"),e.responseType||(e.responseType="code",e.flow="standard");var S=U(),P=U();P.promise.then(function(){e.onReady&&e.onReady(e.authenticated),S.setSuccess(e.authenticated)}).catch(function(O){S.setError(O)});var k=A(),L=function(){u("[KEYCLOAK] Executing check-sso silently");var O=document.createElement("iframe"),$=e.createLoginUrl({prompt:"none",redirectUri:e.silentCheckSsoRedirectUri});return O.setAttribute("src",$),O.setAttribute("sandbox","allow-storage-access-by-user-activation allow-scripts allow-same-origin"),O.setAttribute("title","keycloak-silent-check-sso"),O.style.display="none",document.body.appendChild(O),new Promise(function(oe){var he=function(ae){if(!(ae.origin!==window.location.origin||O.contentWindow!==ae.source)){var Re=J(ae.data);C(Re,P,oe),document.body.removeChild(O),window.removeEventListener("message",he)}};window.addEventListener("message",he)})};e.getAccessTokenAsync=async()=>{const O=e.tokenParsed,$=O?O.exp:null;return!O||!$?null:$-Math.ceil(new Date().getTime()/1e3)+(e.timeSkew??0)<10?await L()??null:e.token};function E(){var O=function(Z){Z||($.prompt="none"),f&&f.locale&&($.locale=f.locale),e.login($).then(function(){P.setSuccess()}).catch(function(oe){P.setError(oe)})},$={};switch(f.onLoad){case"check-sso":s.enable?ve().then(function(){Me().then(function(Z){Z?P.setSuccess():e.silentCheckSsoRedirectUri?L():O(!1)}).catch(function(Z){P.setError(Z)})}):e.silentCheckSsoRedirectUri?L():O(!1);break;case"login-required":O(!0);break;default:throw"Invalid value for onLoad"}}function I(){var O=J(window.location.href);if(O&&window.history.replaceState(window.history.state,null,O.newUrl),O&&O.valid)return ve().then(function(){C(O,P)}).catch(function($){P.setError($)});f?f.token&&f.refreshToken?(X(f.token,f.refreshToken,f.idToken),s.enable?ve().then(function(){Me().then(function($){$?(e.onAuthSuccess&&e.onAuthSuccess(),P.setSuccess(),De()):P.setSuccess()}).catch(function($){P.setError($)})}):e.updateToken(-1).then(function(){e.onAuthSuccess&&e.onAuthSuccess(),P.setSuccess()}).catch(function($){e.onAuthError&&e.onAuthError(),f.onLoad?E():P.setError($)})):f.onLoad?E():P.setSuccess():P.setSuccess()}function D(){var O=U(),$=function(){(document.readyState==="interactive"||document.readyState==="complete")&&(document.removeEventListener("readystatechange",$),O.setSuccess())};return document.addEventListener("readystatechange",$),$(),O.promise}return k.then(function(){D().then(ot).then(I).catch(function(O){S.setError(O)})}),k.catch(function(O){S.setError(O)}),S.promise},e.login=function(f){return n.login(f)};function m(f){var h=null,S=window.crypto||window.msCrypto;if(S&&S.getRandomValues&&window.Uint8Array)return h=new Uint8Array(f),S.getRandomValues(h),h;h=new Array(f);for(var P=0;P<h.length;P++)h[P]=Math.floor(256*Math.random());return h}function g(f){return _(f,"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789")}function _(f,h){for(var S=m(f),P=new Array(f),k=0;k<f;k++)P[k]=h.charCodeAt(S[k]%h.length);return String.fromCharCode.apply(null,P)}function v(f,h){if(f!=="S256")throw new TypeError(`Invalid value for 'pkceMethod', expected 'S256' but got '${f}'.`);const S=pd(h);return yd(S).replace(/\+/g,"-").replace(/\//g,"_").replace(/\=/g,"")}function T(f){var h={id_token:{acr:f}};return JSON.stringify(h)}e.createLoginUrl=function(f){var h=ne(),S=ne(),P=n.redirectUri(f),k={state:h,nonce:S,redirectUri:encodeURIComponent(P),loginOptions:f};f&&f.prompt&&(k.prompt=f.prompt);var L;f&&f.action=="register"?L=e.endpoints.register():L=e.endpoints.authorize();var E=f&&f.scope||e.scope;E?E.indexOf("openid")===-1&&(E="openid "+E):E="openid";var I=L+"?client_id="+encodeURIComponent(e.clientId)+"&redirect_uri="+encodeURIComponent(P)+"&state="+encodeURIComponent(h)+"&response_mode="+encodeURIComponent(e.responseMode)+"&response_type="+encodeURIComponent(e.responseType)+"&scope="+encodeURIComponent(E);if(c&&(I=I+"&nonce="+encodeURIComponent(S)),f&&f.prompt&&(I+="&prompt="+encodeURIComponent(f.prompt)),f&&f.maxAge&&(I+="&max_age="+encodeURIComponent(f.maxAge)),f&&f.loginHint&&(I+="&login_hint="+encodeURIComponent(f.loginHint)),f&&f.idpHint&&(I+="&kc_idp_hint="+encodeURIComponent(f.idpHint)),f&&f.action&&f.action!="register"&&(I+="&kc_action="+encodeURIComponent(f.action)),f&&f.locale&&(I+="&ui_locales="+encodeURIComponent(f.locale)),f&&f.acr){var D=T(f.acr);I+="&claims="+encodeURIComponent(D)}if((f&&f.acrValues||e.acrValues)&&(I+="&acr_values="+encodeURIComponent(f.acrValues||e.acrValues)),e.pkceMethod){var O=g(96);k.pkceCodeVerifier=O;var $=v(e.pkceMethod,O);I+="&code_challenge="+$,I+="&code_challenge_method="+e.pkceMethod}return o.add(k),I},e.logout=function(f){return n.logout(f)},e.createLogoutUrl=function(f){if(((f==null?void 0:f.logoutMethod)??e.logoutMethod)==="POST")return e.endpoints.logout();var S=e.endpoints.logout()+"?client_id="+encodeURIComponent(e.clientId)+"&post_logout_redirect_uri="+encodeURIComponent(n.redirectUri(f,!1));return e.idToken&&(S+="&id_token_hint="+encodeURIComponent(e.idToken)),S},e.register=function(f){return n.register(f)},e.createRegisterUrl=function(f){return f||(f={}),f.action="register",e.createLoginUrl(f)},e.createAccountUrl=function(f){var h=w(),S=void 0;return typeof h<"u"&&(S=h+"/account?referrer="+encodeURIComponent(e.clientId)+"&referrer_uri="+encodeURIComponent(n.redirectUri(f))),S},e.accountManagement=function(){return n.accountManagement()},e.hasRealmRole=function(f){var h=e.realmAccess;return!!h&&h.roles.indexOf(f)>=0},e.hasResourceRole=function(f,h){if(!e.resourceAccess)return!1;var S=e.resourceAccess[h||e.clientId];return!!S&&S.roles.indexOf(f)>=0},e.loadUserProfile=function(){var f=w()+"/account",h=new XMLHttpRequest;h.open("GET",f,!0),h.setRequestHeader("Accept","application/json"),h.setRequestHeader("Authorization","bearer "+e.token);var S=U();return h.onreadystatechange=function(){h.readyState==4&&(h.status==200?(e.profile=JSON.parse(h.responseText),S.setSuccess(e.profile)):S.setError())},h.send(),S.promise},e.loadUserInfo=function(){var f=e.endpoints.userinfo(),h=new XMLHttpRequest;h.open("GET",f,!0),h.setRequestHeader("Accept","application/json"),h.setRequestHeader("Authorization","bearer "+e.token);var S=U();return h.onreadystatechange=function(){h.readyState==4&&(h.status==200?(e.userInfo=JSON.parse(h.responseText),S.setSuccess(e.userInfo)):S.setError())},h.send(),S.promise},e.isTokenExpired=function(f){if(!e.tokenParsed||!e.refreshToken&&e.flow!="implicit")throw"Not authenticated";if(e.timeSkew==null)return u("[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(f){if(isNaN(f))throw"Invalid minValidity";h-=f}return h<0},e.updateToken=function(f){var h=U();if(!e.refreshToken)return h.setError(),h.promise;f=f||5;var S=function(){var k=!1;if(f==-1?(k=!0,u("[KEYCLOAK] Refreshing token: forced refresh")):(!e.tokenParsed||e.isTokenExpired(f))&&(k=!0,u("[KEYCLOAK] Refreshing token: token expired")),!k)h.setSuccess(!1);else{var L="grant_type=refresh_token&refresh_token="+e.refreshToken,E=e.endpoints.token();if(r.push(h),r.length==1){var I=new XMLHttpRequest;I.open("POST",E,!0),I.setRequestHeader("Content-type","application/x-www-form-urlencoded"),I.withCredentials=!0,L+="&client_id="+encodeURIComponent(e.clientId);var D=new Date().getTime();I.onreadystatechange=function(){if(I.readyState==4)if(I.status==200){u("[KEYCLOAK] Token refreshed"),D=(D+new Date().getTime())/2;var O=JSON.parse(I.responseText);X(O.access_token,O.refresh_token,O.id_token,D),e.onAuthRefreshSuccess&&e.onAuthRefreshSuccess();for(var $=r.pop();$!=null;$=r.pop())$.setSuccess(!0)}else{d("[KEYCLOAK] Failed to refresh token"),I.status==400&&e.clearToken(),e.onAuthRefreshError&&e.onAuthRefreshError();for(var $=r.pop();$!=null;$=r.pop())$.setError(!0)}},I.send(L)}}};if(s.enable){var P=Me();P.then(function(){S()}).catch(function(k){h.setError(k)})}else S();return h.promise},e.clearToken=function(){e.token&&(X(null,null,null),e.onAuthLogout&&e.onAuthLogout(),e.loginRequired&&e.login())};function w(){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 B(){return window.location.origin?window.location.origin:window.location.protocol+"//"+window.location.hostname+(window.location.port?":"+window.location.port:"")}function C(f,h,S=null){var P=f.code,k=f.error,L=f.prompt,E=new Date().getTime();if(f.kc_action_status&&e.onActionUpdate&&e.onActionUpdate(f.kc_action_status),k){if(L!="none")if(f.error_description&&f.error_description==="authentication_expired")e.login(f.loginOptions);else{var I={error:k,error_description:f.error_description};e.onAuthError&&e.onAuthError(I),h&&h.setError(I)}else h&&h.setSuccess(),S&&S();return}else e.flow!="standard"&&(f.access_token||f.id_token)&&Z(f.access_token,null,f.id_token,!0);if(e.flow!="implicit"&&P){var D="code="+P+"&grant_type=authorization_code",O=e.endpoints.token(),$=new XMLHttpRequest;$.open("POST",O,!0),$.setRequestHeader("Content-type","application/x-www-form-urlencoded"),D+="&client_id="+encodeURIComponent(e.clientId),D+="&redirect_uri="+f.redirectUri,f.pkceCodeVerifier&&(D+="&code_verifier="+f.pkceCodeVerifier),$.withCredentials=!0,$.onreadystatechange=function(){if($.readyState==4)if($.status==200){var oe=JSON.parse($.responseText);Z(oe.access_token,oe.refresh_token,oe.id_token,e.flow==="standard"),De()}else e.onAuthError&&e.onAuthError(),h&&h.setError()},$.send(D)}function Z(oe,he,ae,Re){if(E=(E+new Date().getTime())/2,X(oe,he,ae,E),c&&e.idTokenParsed&&e.idTokenParsed.nonce!=f.storedNonce)u("[KEYCLOAK] Invalid nonce, clearing token"),e.clearToken(),h&&h.setError();else if(Re){e.onAuthSuccess&&e.onAuthSuccess(),h&&h.setSuccess(),S&&S(oe);return}}}function A(f){var h=U(),S;t?typeof t=="string"&&(S=t):S="keycloak.json";function P(O){O?e.endpoints={authorize:function(){return O.authorization_endpoint},token:function(){return O.token_endpoint},logout:function(){if(!O.end_session_endpoint)throw"Not supported by the OIDC server";return O.end_session_endpoint},checkSessionIframe:function(){if(!O.check_session_iframe)throw"Not supported by the OIDC server";return O.check_session_iframe},register:function(){throw'Redirection to "Register user" page not supported in standard OIDC mode'},userinfo:function(){if(!O.userinfo_endpoint)throw"Not supported by the OIDC server";return O.userinfo_endpoint}}:e.endpoints={authorize:function(){return w()+"/protocol/openid-connect/auth"},token:function(){return w()+"/protocol/openid-connect/token"},logout:function(){return w()+"/protocol/openid-connect/logout"},checkSessionIframe:function(){var $=w()+"/protocol/openid-connect/login-status-iframe.html";return e.iframeVersion&&($=$+"?version="+e.iframeVersion),$},thirdPartyCookiesIframe:function(){var $=w()+"/protocol/openid-connect/3p-cookies/step1.html";return e.iframeVersion&&($=$+"?version="+e.iframeVersion),$},register:function(){return w()+"/protocol/openid-connect/registrations"},userinfo:function(){return w()+"/protocol/openid-connect/userinfo"}}}if(S){var k=new XMLHttpRequest;k.open("GET",S,!0),k.setRequestHeader("Accept","application/json"),k.onreadystatechange=function(){if(k.readyState==4)if(k.status==200||j(k)){var O=JSON.parse(k.responseText);e.authServerUrl=O["auth-server-url"],e.realm=O.realm,e.clientId=O.resource,P(null),h.setSuccess()}else h.setError()},k.send()}else{if(!t.clientId)throw"clientId missing";e.clientId=t.clientId;var L=t.oidcProvider;if(L)if(typeof L=="string"){var D;L.charAt(L.length-1)=="/"?D=L+".well-known/openid-configuration":D=L+"/.well-known/openid-configuration";var k=new XMLHttpRequest;k.open("GET",D,!0),k.setRequestHeader("Accept","application/json"),k.onreadystatechange=function(){if(k.readyState==4)if(k.status==200||j(k)){var $=JSON.parse(k.responseText);P($),h.setSuccess()}else h.setError()},k.send()}else P(L),h.setSuccess();else{if(!t.url){for(var E=document.getElementsByTagName("script"),I=0;I<E.length;I++)if(E[I].src.match(/.*keycloak\.js/)){t.url=E[I].src.substr(0,E[I].src.indexOf("/js/keycloak.js"));break}}if(!t.realm)throw"realm missing";e.authServerUrl=t.url,e.realm=t.realm,P(null),h.setSuccess()}}return h.promise}function j(f){return f.status==0&&f.responseText&&f.responseURL.startsWith("file:")}function X(f,h,S,P){if(e.tokenTimeoutHandle&&(clearTimeout(e.tokenTimeoutHandle),e.tokenTimeoutHandle=null),h?(e.refreshToken=h,e.refreshTokenParsed=hr(h)):(delete e.refreshToken,delete e.refreshTokenParsed),S?(e.idToken=S,e.idTokenParsed=hr(S)):(delete e.idToken,delete e.idTokenParsed),f){if(e.token=f,e.tokenParsed=hr(f),e.sessionId=e.tokenParsed.sid,e.authenticated=!0,e.subject=e.tokenParsed.sub,e.realmAccess=e.tokenParsed.realm_access,e.resourceAccess=e.tokenParsed.resource_access,P&&(e.timeSkew=Math.floor(P/1e3)-e.tokenParsed.iat),e.timeSkew!=null&&(u("[KEYCLOAK] Estimated time difference between browser and server is "+e.timeSkew+" seconds"),e.onTokenExpired)){var k=(e.tokenParsed.exp-new Date().getTime()/1e3+e.timeSkew)*1e3;u("[KEYCLOAK] Token expires in "+Math.round(k/1e3)+" s"),k<=0?e.onTokenExpired():e.tokenTimeoutHandle=setTimeout(e.onTokenExpired,k)}}else delete e.token,delete e.tokenParsed,delete e.subject,delete e.realmAccess,delete e.resourceAccess,e.authenticated=!1}function ne(){var f="0123456789abcdef",h=_(36,f).split("");h[14]="4",h[19]=f.substr(h[19]&3|8,1),h[8]=h[13]=h[18]=h[23]="-";var S=h.join("");return S}function J(f){var h=pe(f);if(h){var S=o.get(h.state);return S&&(h.valid=!0,h.redirectUri=S.redirectUri,h.storedNonce=S.nonce,h.prompt=S.prompt,h.pkceCodeVerifier=S.pkceCodeVerifier,h.loginOptions=S.loginOptions),h}}function pe(f){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 S=f.indexOf("?"),P=f.indexOf("#"),k,L;if(e.responseMode==="query"&&S!==-1?(k=f.substring(0,S),L=se(f.substring(S+1,P!==-1?P:f.length),h),L.paramsString!==""&&(k+="?"+L.paramsString),P!==-1&&(k+=f.substring(P))):e.responseMode==="fragment"&&P!==-1&&(k=f.substring(0,P),L=se(f.substring(P+1),h),L.paramsString!==""&&(k+="#"+L.paramsString)),L&&L.oauthParams){if(e.flow==="standard"||e.flow==="hybrid"){if((L.oauthParams.code||L.oauthParams.error)&&L.oauthParams.state)return L.oauthParams.newUrl=k,L.oauthParams}else if(e.flow==="implicit"&&(L.oauthParams.access_token||L.oauthParams.error)&&L.oauthParams.state)return L.oauthParams.newUrl=k,L.oauthParams}}function se(f,h){for(var S=f.split("&"),P={paramsString:"",oauthParams:{}},k=0;k<S.length;k++){var L=S[k].indexOf("="),E=S[k].slice(0,L);h.indexOf(E)!==-1?P.oauthParams[E]=S[k].slice(L+1):(P.paramsString!==""&&(P.paramsString+="&"),P.paramsString+=S[k])}return P}function U(){var f={setSuccess:function(h){f.resolve(h)},setError:function(h){f.reject(h)}};return f.promise=new Promise(function(h,S){f.resolve=h,f.reject=S}),f}function Ee(f,h,S){var P=null,k=new Promise(function(L,E){P=setTimeout(function(){E({error:S})},h)});return Promise.race([f,k]).finally(function(){clearTimeout(P)})}function ve(){var f=U();if(!s.enable||s.iframe)return f.setSuccess(),f.promise;var h=document.createElement("iframe");s.iframe=h,h.onload=function(){var k=e.endpoints.authorize();k.charAt(0)==="/"?s.iframeOrigin=B():s.iframeOrigin=k.substring(0,k.indexOf("/",8)),f.setSuccess()};var S=e.endpoints.checkSessionIframe();h.setAttribute("src",S),h.setAttribute("sandbox","allow-storage-access-by-user-activation allow-scripts allow-same-origin"),h.setAttribute("title","keycloak-session-iframe"),h.style.display="none",document.body.appendChild(h);var P=function(k){if(!(k.origin!==s.iframeOrigin||s.iframe.contentWindow!==k.source)&&(k.data=="unchanged"||k.data=="changed"||k.data=="error")){k.data!="unchanged"&&e.clearToken();for(var L=s.callbackList.splice(0,s.callbackList.length),E=L.length-1;E>=0;--E){var I=L[E];k.data=="error"?I.setError():I.setSuccess(k.data=="unchanged")}}};return window.addEventListener("message",P,!1),f.promise}function De(){s.enable&&e.token&&setTimeout(function(){Me().then(function(f){f&&De()})},s.interval*1e3)}function Me(){var f=U();if(s.iframe&&s.iframeOrigin){var h=e.clientId+" "+(e.sessionId?e.sessionId:"");s.callbackList.push(f);var S=s.iframeOrigin;s.callbackList.length==1&&s.iframe.contentWindow.postMessage(h,S)}else f.setSuccess();return f.promise}function ot(){var f=U();if(s.enable||e.silentCheckSsoRedirectUri){var h=document.createElement("iframe");h.setAttribute("src",e.endpoints.thirdPartyCookiesIframe()),h.setAttribute("sandbox","allow-storage-access-by-user-activation allow-scripts allow-same-origin"),h.setAttribute("title","keycloak-3p-check-iframe"),h.style.display="none",document.body.appendChild(h);var S=function(P){h.contentWindow===P.source&&(P.data!=="supported"&&P.data!=="unsupported"||(P.data==="unsupported"&&(d(`[KEYCLOAK] Your browser is blocking access to 3rd-party cookies, this means:
|
|
66
66
|
|
|
67
67
|
- It is not possible to retrieve tokens without redirecting to the Keycloak server (a.k.a. no support for silent authentication).
|
|
68
68
|
- It is not possible to automatically detect changes to the session status (such as the user logging out in another tab).
|
|
69
69
|
|
|
70
|
-
For more information see: https://www.keycloak.org/docs/latest/securing_apps/#_modern_browsers`),s.enable=!1,e.silentCheckSsoFallback&&(e.silentCheckSsoRedirectUri=!1)),document.body.removeChild(h),window.removeEventListener("message",S),f.setSuccess()))};window.addEventListener("message",S,!1)}else f.setSuccess();return Ee(f.promise,e.messageReceiveTimeout,"Timeout when waiting for 3rd party check iframe message.")}function Xe(f){if(!f||f=="default")return{login:function(E){return window.location.assign(e.createLoginUrl(E)),U().promise},logout:async function(E){if(((E==null?void 0:E.logoutMethod)??e.logoutMethod)==="GET"){window.location.replace(e.createLogoutUrl(E));return}const D=e.createLogoutUrl(E),O=await fetch(D,{method:"POST",headers:{"Content-Type":"application/x-www-form-urlencoded"},body:new URLSearchParams({id_token_hint:e.idToken,client_id:e.clientId,post_logout_redirect_uri:n.redirectUri(E,!1)})});if(O.redirected){window.location.href=O.url;return}if(O.ok){window.location.reload();return}throw new Error("Logout failed, request returned an error code.")},register:function(E){return window.location.assign(e.createRegisterUrl(E)),U().promise},accountManagement:function(){var E=e.createAccountUrl();if(typeof E<"u")window.location.href=E;else throw"Not supported by the OIDC server";return U().promise},redirectUri:function(E,I){return E&&E.redirectUri?E.redirectUri:e.redirectUri?e.redirectUri:location.href}};if(f=="cordova"){s.enable=!1;var h=function(E,I,D){return window.cordova&&window.cordova.InAppBrowser?window.cordova.InAppBrowser.open(E,I,D):window.open(E,I,D)},S=function(E){return E&&E.cordovaOptions?Object.keys(E.cordovaOptions).reduce(function(I,D){return I[D]=E.cordovaOptions[D],I},{}):{}},P=function(E){return Object.keys(E).reduce(function(I,D){return I.push(D+"="+E[D]),I},[]).join(",")},k=function(E){var I=S(E);return I.location="no",E&&E.prompt=="none"&&(I.hidden="yes"),P(I)},L=function(){return e.redirectUri||"http://localhost"};return{login:function(E){var I=U(),D=k(E),O=e.createLoginUrl(E),$=h(O,"_blank",D),Z=!1,oe=!1,he=function(){oe=!0,$.close()};return $.addEventListener("loadstart",function(ae){if(ae.url.indexOf(L())==0){var Re=J(ae.url);C(Re,I),he(),Z=!0}}),$.addEventListener("loaderror",function(ae){if(!Z)if(ae.url.indexOf(L())==0){var Re=J(ae.url);C(Re,I),he(),Z=!0}else I.setError(),he()}),$.addEventListener("exit",function(ae){oe||I.setError({reason:"closed_by_user"})}),I.promise},logout:function(E){var I=U(),D=e.createLogoutUrl(E),O=h(D,"_blank","location=no,hidden=yes,clearcache=yes"),$;return O.addEventListener("loadstart",function(Z){Z.url.indexOf(L())==0&&O.close()}),O.addEventListener("loaderror",function(Z){Z.url.indexOf(L())==0||($=!0),O.close()}),O.addEventListener("exit",function(Z){$?I.setError():(e.clearToken(),I.setSuccess())}),I.promise},register:function(E){var I=U(),D=e.createRegisterUrl(),O=k(E),$=h(D,"_blank",O);return $.addEventListener("loadstart",function(Z){if(Z.url.indexOf(L())==0){$.close();var oe=J(Z.url);C(oe,I)}}),I.promise},accountManagement:function(){var E=e.createAccountUrl();if(typeof E<"u"){var I=h(E,"_blank","location=no");I.addEventListener("loadstart",function(D){D.url.indexOf(L())==0&&I.close()})}else throw"Not supported by the OIDC server"},redirectUri:function(E){return L()}}}if(f=="cordova-native")return s.enable=!1,{login:function(E){var I=U(),D=e.createLoginUrl(E);return universalLinks.subscribe("keycloak",function(O){universalLinks.unsubscribe("keycloak"),window.cordova.plugins.browsertab.close();var $=J(O.url);C($,I)}),window.cordova.plugins.browsertab.openUrl(D),I.promise},logout:function(E){var I=U(),D=e.createLogoutUrl(E);return universalLinks.subscribe("keycloak",function(O){universalLinks.unsubscribe("keycloak"),window.cordova.plugins.browsertab.close(),e.clearToken(),I.setSuccess()}),window.cordova.plugins.browsertab.openUrl(D),I.promise},register:function(E){var I=U(),D=e.createRegisterUrl(E);return universalLinks.subscribe("keycloak",function(O){universalLinks.unsubscribe("keycloak"),window.cordova.plugins.browsertab.close();var $=J(O.url);C($,I)}),window.cordova.plugins.browsertab.openUrl(D),I.promise},accountManagement:function(){var E=e.createAccountUrl();if(typeof E<"u")window.cordova.plugins.browsertab.openUrl(E);else throw"Not supported by the OIDC server"},redirectUri:function(E){return E&&E.redirectUri?E.redirectUri:e.redirectUri?e.redirectUri:"http://localhost"}};throw"invalid adapter type: "+f}var Ue=function(){if(!(this instanceof Ue))return new Ue;localStorage.setItem("kc-test","test"),localStorage.removeItem("kc-test");var f=this;function h(){for(var S=new Date().getTime(),P=0;P<localStorage.length;P++){var k=localStorage.key(P);if(k&&k.indexOf("kc-callback-")==0){var L=localStorage.getItem(k);if(L)try{var E=JSON.parse(L).expires;(!E||E<S)&&localStorage.removeItem(k)}catch{localStorage.removeItem(k)}}}}f.get=function(S){if(S){var P="kc-callback-"+S,k=localStorage.getItem(P);return k&&(localStorage.removeItem(P),k=JSON.parse(k)),h(),k}},f.add=function(S){h();var P="kc-callback-"+S.state;S.expires=new Date().getTime()+60*60*1e3,localStorage.setItem(P,JSON.stringify(S))}},Ge=function(){if(!(this instanceof Ge))return new Ge;var f=this;f.get=function(k){if(k){var L=S("kc-callback-"+k);if(P("kc-callback-"+k,"",h(-100)),L)return JSON.parse(L)}},f.add=function(k){P("kc-callback-"+k.state,JSON.stringify(k),h(60))},f.removeItem=function(k){P(k,"",h(-100))};var h=function(k){var L=new Date;return L.setTime(L.getTime()+k*60*1e3),L},S=function(k){for(var L=k+"=",E=document.cookie.split(";"),I=0;I<E.length;I++){for(var D=E[I];D.charAt(0)==" ";)D=D.substring(1);if(D.indexOf(L)==0)return D.substring(L.length,D.length)}return""},P=function(k,L,E){var I=k+"="+L+"; expires="+E.toUTCString()+"; ";document.cookie=I}};function te(){try{return new Ue}catch{}return new Ge}function $e(f){return function(){e.enableLogging&&f.apply(console,Array.prototype.slice.call(arguments))}}}function yd(t){const e=String.fromCodePoint(...t);return btoa(e)}class vd extends to{constructor(e){super(e)}GetAccessTokenAsync(){return this.getAccessTokenAsync()}}async function bd(){const t="silent-check-sso.html",e=await fetch(location.origin+"/"+t,{cache:"no-store"}).then(async n=>n.status===200).catch(()=>!1);return e||console.error(`O arquivo ${t} não foi localizado na raiz do projeto.`),e}let Pi;function wd(t){const e=new vd(t),n={Instance:e,isAuthenticated:!1,userinfo:null,InitAsync:async(r={})=>await bd()?await e.init(r).then(async s=>(n.isAuthenticated=s,s)).catch(s=>(console.info("Ocorreu um erro na inicialização. Verifique o console para mais detalhes."),console.error(s),!1)):!1};return Pi=n,n}const no=()=>l.reactive(Pi),Sd=t=>wd(t),_d=["data-cor"],kd={class:"sf-p-4"},Cd=l.defineComponent({__name:"HeaderAvatar",emits:["logout"],setup(t,{emit:e}){const n=Ei(),r=no(),o=l.ref("?"),s=e;async function i(){await n.CreateConfirmAsync({text:"Você deseja sair da conta?",confirmLabel:"sair"})&&s("logout")}function a(){var v;const d=(v=r.userinfo)==null?void 0:v.name;let m="?";if(!d)return m;const g=d.split(" ").filter(T=>T.length>0).map(T=>T[0].toUpperCase()),_=Math.min(2,g.length);return m=g.slice(0,_).join(""),m.length>0?m:"?"}const c=l.computed(()=>{const d=o.value[0],m=d==="?"?0:(d.charCodeAt(0)-64)%19;return Math.max(m,0)}),u=l.ref(!1);return l.onMounted(()=>{o.value=a()}),(d,m)=>(l.openBlock(),l.createElementBlock(l.Fragment,null,[l.createElementVNode("div",{id:"sf-header-avatar","data-cor":c.value,onClick:m[0]||(m[0]=g=>u.value=!0)},l.toDisplayString(o.value),9,_d),l.createVNode(Hs,{visible:u.value,"onUpdate:visible":m[1]||(m[1]=g=>u.value=g),position:"right"},{title:l.withCtx(()=>[l.createTextVNode("Minha conta")]),default:l.withCtx(()=>{var g;return[l.createElementVNode("div",kd,[l.createTextVNode(l.toDisplayString((g=l.unref(r).userinfo)==null?void 0:g.name)+" ",1),l.createVNode(Vs,{color:"error",onClick:i},{default:l.withCtx(()=>[l.createTextVNode("Sair")]),_:1})])]}),_:1},8,["visible"])],64))}}),Ed={},Td={xmlns:"http://www.w3.org/2000/svg",height:"48",viewBox:"0 -960 960 960",width:"48",class:"sf-svg-icon"},Ad=l.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),Pd=[Ad];function Id(t,e){return l.openBlock(),l.createElementBlock("svg",Td,Pd)}const xd=Vn(Ed,[["render",Id]]);class Od{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()}ClearStoredTheme(){localStorage.removeItem("color-scheme")}}const St=new Od,Ld=l.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),$d=[Ld],Rd=l.defineComponent({__name:"ThemeToggle",setup(t){return(e,n)=>(l.openBlock(),l.createElementBlock("button",{id:"sf-theme-toggle",onClick:n[0]||(n[0]=(...r)=>l.unref(St).Toggle&&l.unref(St).Toggle(...r))},$d))}}),Nd={id:"sf-layout"},Bd=l.createElementVNode("div",{class:"sf-layout-menu-toggler-logo"},null,-1),Dd={class:"title"},Md={class:"sf-layout-nav-content"},Ud=l.createElementVNode("div",{class:"sf-layout-nav-footer"},[l.createElementVNode("div",{class:"sf-layout-nav-footer-logo"})],-1),Hd=l.createElementVNode("section",{id:"sf-layout-page-title"},null,-1),Vd={id:"sf-layout-content"},jd=l.defineComponent({__name:"Layout",emits:["mounted","logout"],setup(t,{emit:e}){const n=Vr(),r=e;return l.onMounted(()=>{r("mounted")}),(o,s)=>(l.openBlock(),l.createElementBlock("div",Nd,[l.createElementVNode("header",null,[l.createElementVNode("div",{class:l.normalizeClass(["sf-layout-menu-toggler",{invert:l.unref(n).IsVisible}]),onClick:s[0]||(s[0]=i=>l.unref(n).Toggle())},[Bd,l.createVNode(xd)],2),l.createElementVNode("div",Dd,[l.renderSlot(o.$slots,"title")]),l.renderSlot(o.$slots,"action"),l.createVNode(jr,{text:"Tema"},{default:l.withCtx(()=>[l.createVNode(Rd)]),_:1}),l.createVNode(Cd,{onLogout:s[1]||(s[1]=i=>r("logout"))})]),l.createElementVNode("nav",{class:l.normalizeClass({visible:l.unref(n).IsVisible})},[l.createElementVNode("div",Md,[l.renderSlot(o.$slots,"menu")]),Ud],2),l.createElementVNode("main",{class:l.normalizeClass({"menu-visible":l.unref(n).IsVisible})},[Hd,l.createElementVNode("section",Vd,[l.renderSlot(o.$slots,"content")])],2)]))}}),Fd=l.defineComponent({__name:"ScrollToTop",setup(t){const e=l.ref(!1),n=`--${+new Date}`;let r=null;function o(){r==null||r.scrollTo(0,0)}return l.onMounted(()=>{var s;r=((s=document.getElementById(n))==null?void 0:s.parentElement)??null,r&&r.addEventListener("scroll",function(){e.value=this.scrollTop-this.clientHeight>0})}),(s,i)=>(l.openBlock(),l.createElementBlock("button",{id:n,class:l.normalizeClass(["sf-scrollToTop",{"sf-scrollToTop-visible":e.value}]),onClick:o},null,2))}}),zd=l.defineComponent({__name:"Content",props:{class:{},style:{},disableBodyPadding:{type:Boolean},disableHeaderPadding:{type:Boolean},disableFooterPadding:{type:Boolean}},setup(t){const e=t;function n(){return new tt("sf-content").AddClass(e.class,!!e.class).Build()}function r(){return new tt("sf-content-body").AddClass("sf-content-no-padding",e.disableBodyPadding).Build()}function o(){return new tt("sf-content-header").AddClass("sf-content-no-padding",e.disableHeaderPadding).Build()}function s(){return new tt("sf-content-footer").AddClass("sf-content-no-padding",e.disableFooterPadding).Build()}return(i,a)=>(l.openBlock(),l.createElementBlock("div",{class:l.normalizeClass(n()),style:l.normalizeStyle(e.style)},[l.createElementVNode("div",{class:l.normalizeClass(o())},[l.renderSlot(i.$slots,"header")],2),l.createElementVNode("div",{class:l.normalizeClass(r())},[l.renderSlot(i.$slots,"default"),l.createVNode(Fd)],2),l.createElementVNode("div",{class:l.normalizeClass(s())},[l.renderSlot(i.$slots,"footer")],2)],6))}}),Kd={class:"sf-tab-navigation"},Wd=l.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"},[l.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M15.75 19.5L8.25 12l7.5-7.5"})],-1),qd=[Wd],Gd=["data-active"],Yd=["href","onClick"],Jd=l.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"},[l.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M8.25 4.5l7.5 7.5-7.5 7.5"})],-1),Xd=[Jd],Zd=l.defineComponent({__name:"TabNavigation",props:{tabs:{}},setup(t){const e=t,n=l.ref(null),r=new ResizeObserver(c=>{a()}),o=l.ref(!1),s=l.ref(!1);function i(c=!1){const u=n.value.clientWidth;n.value.scrollLeft+=c?-u:u}function a(){const c=n.value.scrollWidth-n.value.clientWidth;o.value=n.value.scrollLeft>10,s.value=n.value.scrollLeft<c-10}return l.onMounted(()=>{n.value.addEventListener("scroll",a),r.observe(n.value)}),l.onBeforeUnmount(()=>{var c;try{(c=n.value)==null||c.removeEventListener("scroll",a),r.unobserve(n.value),r.disconnect()}catch{}}),(c,u)=>{const d=l.resolveComponent("RouterLink");return l.openBlock(),l.createElementBlock("div",Kd,[l.createElementVNode("div",{class:l.normalizeClass(["left-arrow",{active:o.value}]),onClick:u[0]||(u[0]=m=>i(!0))},qd,2),l.createElementVNode("ul",{ref_key:"trackerContainer",ref:n},[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(e.tabs,m=>(l.openBlock(),l.createBlock(d,{to:m.route,custom:!0},{default:l.withCtx(({navigate:g,isActive:_})=>[l.createElementVNode("li",{"data-active":_},[l.renderSlot(c.$slots,"item",{item:m,navigate:g,isActive:_},()=>[l.createElementVNode("a",{href:m.route,class:l.normalizeClass({active:_}),onClick:g},l.toDisplayString(m.text),11,Yd)])],8,Gd)]),_:2},1032,["to"]))),256))],512),l.createElementVNode("div",{class:l.normalizeClass(["right-arrow",{active:s.value}]),onClick:u[1]||(u[1]=m=>i())},Xd,2)])}}}),Qd=["data-icon"],ef=l.defineComponent({__name:"Message",props:{color:{default:"info"},class:{},style:{},icon:{}},setup(t){const e=t,n=l.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=l.computed(()=>new tt("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,s)=>(l.openBlock(),l.createElementBlock("div",{class:l.normalizeClass(r.value),"data-icon":n.value},[l.renderSlot(o.$slots,"default")],10,Qd))}});function tf(t,e){return t?t.classList?t.classList.contains(e):new RegExp("(^| )"+e+"( |$)","gi").test(t.className):!1}function nf(t,e){if(t&&e){const n=r=>{tf(t,r)||(t.classList?t.classList.add(r):t.className+=" "+r)};[e].flat().filter(Boolean).forEach(r=>r.split(" ").forEach(n))}}function hr(t,e){if(t&&e){const n=r=>{t.classList?t.classList.remove(r):t.className=t.className.replace(new RegExp("(^|\\b)"+r.split(" ").join("|")+"(\\b|$)","gi")," ")};[e].flat().filter(Boolean).forEach(r=>r.split(" ").forEach(n))}}function rf(t,e){return t instanceof HTMLElement?t.offsetWidth:0}function qn(t){return typeof HTMLElement=="object"?t instanceof HTMLElement:t&&typeof t=="object"&&t!==null&&t.nodeType===1&&typeof t.nodeName=="string"}function Nn(t,e={}){if(qn(t)){const n=(r,o)=>{var s,i;const a=(s=t==null?void 0:t.$attrs)!=null&&s[r]?[(i=t==null?void 0:t.$attrs)==null?void 0:i[r]]:[];return[o].flat().reduce((c,u)=>{if(u!=null){const d=typeof u;if(d==="string"||d==="number")c.push(u);else if(d==="object"){const m=Array.isArray(u)?n(r,u):Object.entries(u).map(([g,_])=>r==="style"&&(_||_===0)?`${g.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()}:${_}`:_?g:void 0);c=m.length?c.concat(m.filter(g=>!!g)):c}}return c},a)};Object.entries(e).forEach(([r,o])=>{if(o!=null){const s=r.match(/^on(.+)/);s?t.addEventListener(s[1].toLowerCase(),o):r==="p-bind"?Nn(t,o):(o=r==="class"?[...new Set(n("class",o))].join(" ").trim():r==="style"?n("style",o).join(";").trim():o,(t.$attrs=t.$attrs||{})&&(t.$attrs[r]=o),t.setAttribute(r,o))}})}}function of(t,e={},...n){{const r=document.createElement(t);return Nn(r,e),r.append(...n),r}}function je(t,e){return qn(t)?t.matches(e)?t:t.querySelector(e):null}function Gt(t,e){t&&document.activeElement!==t&&t.focus(e)}function Yt(t,e){if(qn(t)){const n=t.getAttribute(e);return isNaN(n)?n==="true"||n==="false"?n==="true":n:+n}}function ts(t){if(t){let e=t.offsetHeight,n=getComputedStyle(t);return e-=parseFloat(n.paddingTop)+parseFloat(n.paddingBottom)+parseFloat(n.borderTopWidth)+parseFloat(n.borderBottomWidth),e}return 0}function sf(t){if(t){let e=t.parentNode;return e&&e instanceof ShadowRoot&&e.host&&(e=e.host),e}return null}function af(t){if(t){let e=t.getBoundingClientRect();return{top:e.top+(window.pageYOffset||document.documentElement.scrollTop||document.body.scrollTop||0),left:e.left+(window.pageXOffset||document.documentElement.scrollLeft||document.body.scrollLeft||0)}}return{top:"auto",left:"auto"}}function lf(t,e){return t?t.offsetHeight:0}function cf(t){return!!(t!==null&&typeof t<"u"&&t.nodeName&&sf(t))}function ns(t){if(t){let e=t.offsetWidth,n=getComputedStyle(t);return e-=parseFloat(n.paddingLeft)+parseFloat(n.paddingRight)+parseFloat(n.borderLeftWidth)+parseFloat(n.borderRightWidth),e}return 0}function uf(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}function df(t,e="",n){qn(t)&&n!==null&&n!==void 0&&t.setAttribute(e,n)}function Ii(){const t=new Map;return{on(e,n){let r=t.get(e);return r?r.push(n):r=[n],t.set(e,r),this},off(e,n){let r=t.get(e);return r&&r.splice(r.indexOf(n)>>>0,1),this},emit(e,n){let r=t.get(e);r&&r.slice().map(o=>{o(n)})},clear(){t.clear()}}}function yt(t){return t==null||t===""||Array.isArray(t)&&t.length===0||!(t instanceof Date)&&typeof t=="object"&&Object.keys(t).length===0}function xr(t,e){if(t===e)return!0;if(t&&e&&typeof t=="object"&&typeof e=="object"){var n=Array.isArray(t),r=Array.isArray(e),o,s,i;if(n&&r){if(s=t.length,s!=e.length)return!1;for(o=s;o--!==0;)if(!xr(t[o],e[o]))return!1;return!0}if(n!=r)return!1;var a=t instanceof Date,c=e instanceof Date;if(a!=c)return!1;if(a&&c)return t.getTime()==e.getTime();var u=t instanceof RegExp,d=e instanceof RegExp;if(u!=d)return!1;if(u&&d)return t.toString()==e.toString();var m=Object.keys(t);if(s=m.length,s!==Object.keys(e).length)return!1;for(o=s;o--!==0;)if(!Object.prototype.hasOwnProperty.call(e,m[o]))return!1;for(o=s;o--!==0;)if(i=m[o],!xr(t[i],e[i]))return!1;return!0}return t!==t&&e!==e}function ro(t){return!!(t&&t.constructor&&t.call&&t.apply)}function G(t){return!yt(t)}function Pt(t,e,n){return xr(t,e)}function rs(t,e){let n;if(G(t))try{n=t.findLast(e)}catch{n=[...t].reverse().find(e)}return n}function dt(t,e=!0){return t instanceof Object&&t.constructor===Object&&(e||Object.keys(t).length!==0)}function Ie(t,...e){return ro(t)?t(...e):t}function _e(t,e=!0){return typeof t=="string"&&(e||t!=="")}function Fe(t){return _e(t)?t.replace(/(-|_)/g,"").toLowerCase():t}function oo(t,e="",n={}){const r=Fe(e).split("."),o=r.shift();return o?dt(t)?oo(Ie(t[Object.keys(t).find(s=>Fe(s)===o)||""],n),r.join("."),n):void 0:Ie(t,n)}function so(t,e=!0){return Array.isArray(t)&&(e||t.length!==0)}function xi(t){return G(t)&&!isNaN(t)}function ff(t=""){return G(t)&&t.length===1&&!!t.match(/\S| /)}function nt(t,e){if(e){const n=e.test(t);return e.lastIndex=0,n}return!1}function Qt(t){return t&&t.replace(/\/\*(?:(?!\*\/)[\s\S])*\*\/|[\r\n\t]+/g,"").replace(/ {2,}/g," ").replace(/ ([{:}]) /g,"$1").replace(/([;,]) /g,"$1").replace(/ !/g,"!").replace(/: /g,":")}function mf(t){return _e(t,!1)?t[0].toUpperCase()+t.slice(1):t}function Oi(t){return _e(t)?t.replace(/(_)/g,"-").replace(/[A-Z]/g,(e,n)=>n===0?e:"-"+e.toLowerCase()).toLowerCase():t}function os(t){return _e(t)?t.replace(/[A-Z]/g,(e,n)=>n===0?e:"."+e.toLowerCase()).toLowerCase():t}var Tn={};function pf(t="pui_id_"){return Tn.hasOwnProperty(t)||(Tn[t]=0),Tn[t]++,`${t}${Tn[t]}`}function Bn(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"pv_id_";return pf(t)}var hf=Object.defineProperty,gf=Object.defineProperties,yf=Object.getOwnPropertyDescriptors,Dn=Object.getOwnPropertySymbols,Li=Object.prototype.hasOwnProperty,$i=Object.prototype.propertyIsEnumerable,ss=(t,e,n)=>e in t?hf(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,zt=(t,e)=>{for(var n in e||(e={}))Li.call(e,n)&&ss(t,n,e[n]);if(Dn)for(var n of Dn(e))$i.call(e,n)&&ss(t,n,e[n]);return t},gr=(t,e)=>gf(t,yf(e)),Kt=(t,e)=>{var n={};for(var r in t)Li.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&Dn)for(var r of Dn(t))e.indexOf(r)<0&&$i.call(t,r)&&(n[r]=t[r]);return n},vf=Ii(),et=vf;function is(t,e){so(t)?t.push(...e||[]):dt(t)&&Object.assign(t,e)}function bf(t){return dt(t)&&t.hasOwnProperty("value")&&t.hasOwnProperty("type")?t.value:t}function as(t,e=""){return["opacity","z-index","line-height","font-weight","flex","flex-grow","flex-shrink","order"].some(r=>e.endsWith(r))?t:`${t}`.trim().split(" ").map(s=>xi(s)?`${s}px`:s).join(" ")}function wf(t){return t.replaceAll(/ /g,"").replace(/[^\w]/g,"-")}function Or(t="",e=""){return wf(`${_e(t,!1)&&_e(e,!1)?`${t}-`:t}${e}`)}function Ri(t="",e=""){return`--${Or(t,e)}`}function Ni(t,e="",n="",r=[],o){if(_e(t)){const s=/{([^}]*)}/g,i=t.trim();if(nt(i,s)){const a=i.replaceAll(s,d=>{const g=d.replace(/{|}/g,"").split(".").filter(_=>!r.some(v=>nt(_,v)));return`var(${Ri(n,Oi(g.join("-")))}${G(o)?`, ${o}`:""})`}),c=/(\d+\s+[\+\-\*\/]\s+\d+)/g,u=/var\([^)]+\)/g;return nt(a.replace(u,"0"),c)?`calc(${a})`:a}return as(i,e)}else if(xi(t))return as(t,e)}function Sf(t,e,n){_e(e,!1)&&t.push(`${e}:${n};`)}function Jt(t,e){return t?`${t}{${e}}`:""}var yr=(...t)=>_f(ee.getTheme(),...t),_f=(t={},e,n,r="variable")=>{if(e){const{variable:o,options:s}=ee.defaults||{},{prefix:i,transform:a}=(t==null?void 0:t.options)||s||{},u=nt(e,/{([^}]*)}/g)?e:`{${e}}`;return r==="value"||a==="strict"?ee.getTokenValue(e):Ni(u,void 0,i,[o.excludedKeyRegex],n)}return""};function kf(t,e={}){const n=ee.defaults.variable,{prefix:r=n.prefix,selector:o=n.selector,excludedKeyRegex:s=n.excludedKeyRegex}=e,i=(u,d="")=>Object.entries(u).reduce((m,[g,_])=>{const v=nt(g,s)?Or(d):Or(d,Oi(g)),T=bf(_);if(dt(T)){const{variables:w,tokens:B}=i(T,v);is(m.tokens,B),is(m.variables,w)}else m.tokens.push((r?v.replace(`${r}-`,""):v).replaceAll("-",".")),Sf(m.variables,Ri(v),Ni(T,v,r,[s]));return m},{variables:[],tokens:[]}),{variables:a,tokens:c}=i(t,r);return{value:a,tokens:c,declarations:a.join(""),css:Jt(o,a.join(""))}}var He={regex:{rules:{class:{pattern:/^\.([a-zA-Z][\w-]*)$/,resolve(t){return{type:"class",selector:t,matched:this.pattern.test(t.trim())}}},attr:{pattern:/^\[(.*)\]$/,resolve(t){return{type:"attr",selector:`:root${t}`,matched:this.pattern.test(t.trim())}}},media:{pattern:/^@media (.*)$/,resolve(t){return{type:"media",selector:`${t}{:root{[CSS]}}`,matched:this.pattern.test(t.trim())}}},system:{pattern:/^system$/,resolve(t){return{type:"system",selector:"@media (prefers-color-scheme: dark){:root{[CSS]}}",matched:this.pattern.test(t.trim())}}},custom:{resolve(t){return{type:"custom",selector:t,matched:!0}}}},resolve(t){const e=Object.keys(this.rules).filter(n=>n!=="custom").map(n=>this.rules[n]);return[t].flat().map(n=>{var r;return(r=e.map(o=>o.resolve(n)).find(o=>o.matched))!=null?r:this.rules.custom.resolve(n)})}},_toVariables(t,e){return kf(t,{prefix:e==null?void 0:e.prefix})},getCommon({name:t="",theme:e={},params:n,set:r,defaults:o}){var s,i,a,c;const{preset:u,options:d}=e;let m,g,_,v;if(G(u)){const{primitive:T,semantic:w}=u,B=w||{},{colorScheme:C}=B,A=Kt(B,["colorScheme"]),j=C||{},{dark:X}=j,ne=Kt(j,["dark"]),J=G(T)?this._toVariables({primitive:T},d):{},pe=G(A)?this._toVariables({semantic:A},d):{},se=G(ne)?this._toVariables({light:ne},d):{},U=G(X)?this._toVariables({dark:X},d):{},[Ee,ve]=[(s=J.declarations)!=null?s:"",J.tokens],[De,Me]=[(i=pe.declarations)!=null?i:"",pe.tokens||[]],[ot,Xe]=[(a=se.declarations)!=null?a:"",se.tokens||[]],[Ue,Ge]=[(c=U.declarations)!=null?c:"",U.tokens||[]];m=this.transformCSS(t,Ee,"light","variable",d,r,o),g=ve;const te=this.transformCSS(t,`${De}${ot}color-scheme:light`,"light","variable",d,r,o),$e=this.transformCSS(t,`${Ue}color-scheme:dark`,"dark","variable",d,r,o);_=`${te}${$e}`,v=[...new Set([...Me,...Xe,...Ge])]}return{primitive:{css:m,tokens:g},semantic:{css:_,tokens:v}}},getPreset({name:t="",preset:e={},options:n,params:r,set:o,defaults:s,selector:i}){var a,c,u;const d=t.replace("-directive",""),m=e,{colorScheme:g}=m,_=Kt(m,["colorScheme"]),v=g||{},{dark:T}=v,w=Kt(v,["dark"]),B=G(_)?this._toVariables({[d]:_},n):{},C=G(w)?this._toVariables({[d]:w},n):{},A=G(T)?this._toVariables({[d]:T},n):{},[j,X]=[(a=B.declarations)!=null?a:"",B.tokens||[]],[ne,J]=[(c=C.declarations)!=null?c:"",C.tokens||[]],[pe,se]=[(u=A.declarations)!=null?u:"",A.tokens||[]],U=[...new Set([...X,...J,...se])],Ee=this.transformCSS(d,`${j}${ne}`,"light","variable",n,o,s,i),ve=this.transformCSS(d,pe,"dark","variable",n,o,s,i);return{css:`${Ee}${ve}`,tokens:U}},getPresetC({name:t="",theme:e={},params:n,set:r,defaults:o}){var s;const{preset:i,options:a}=e,c=(s=i==null?void 0:i.components)==null?void 0:s[t];return this.getPreset({name:t,preset:c,options:a,params:n,set:r,defaults:o})},getPresetD({name:t="",theme:e={},params:n,set:r,defaults:o}){var s;const i=t.replace("-directive",""),{preset:a,options:c}=e,u=(s=a==null?void 0:a.directives)==null?void 0:s[i];return this.getPreset({name:i,preset:u,options:c,params:n,set:r,defaults:o})},getColorSchemeOption(t,e){var n;return this.regex.resolve((n=t.darkModeSelector)!=null?n:e.options.darkModeSelector)},getLayerOrder(t,e={},n,r){const{cssLayer:o}=e;return o?`@layer ${Ie(o.order||"primeui",n)}`:""},getCommonStyleSheet({name:t="",theme:e={},params:n,props:r={},set:o,defaults:s}){const i=this.getCommon({name:t,theme:e,params:n,set:o,defaults:s}),a=Object.entries(r).reduce((c,[u,d])=>c.push(`${u}="${d}"`)&&c,[]).join(" ");return Object.entries(i||{}).reduce((c,[u,d])=>{if(d!=null&&d.css){const m=Qt(d==null?void 0:d.css),g=`${u}-variables`;c.push(`<style type="text/css" data-primevue-style-id="${g}" ${a}>${m}</style>`)}return c},[]).join("")},getStyleSheet({name:t="",theme:e={},params:n,props:r={},set:o,defaults:s}){var i;const a={name:t,theme:e,params:n,set:o,defaults:s},c=(i=t.includes("-directive")?this.getPresetD(a):this.getPresetC(a))==null?void 0:i.css,u=Object.entries(r).reduce((d,[m,g])=>d.push(`${m}="${g}"`)&&d,[]).join(" ");return c?`<style type="text/css" data-primevue-style-id="${t}-variables" ${u}>${Qt(c)}</style>`:""},createTokens(t={},e,n="",r="",o={}){return Object.entries(t).forEach(([s,i])=>{const a=nt(s,e.variable.excludedKeyRegex)?n:n?`${n}.${os(s)}`:os(s),c=r?`${r}.${s}`:s;dt(i)?this.createTokens(i,e,a,c,o):(o[a]||(o[a]={paths:[],computed(u,d={}){if(u){const m=this.paths.find(g=>g.scheme===u)||this.paths.find(g=>g.scheme==="none");return m==null?void 0:m.computed(u,d.binding)}return this.paths.map(m=>m.computed(m.scheme,d[m.scheme]))}}),o[a].paths.push({path:c,value:i,scheme:c.includes("colorScheme.light")?"light":c.includes("colorScheme.dark")?"dark":"none",computed(u,d={}){const m=/{([^}]*)}/g;let g=i;if(d.name=this.path,d.binding||(d.binding={}),nt(i,m)){const v=i.trim().replaceAll(m,B=>{var C,A;const j=B.replace(/{|}/g,"");return(A=(C=o[j])==null?void 0:C.computed(u,d))==null?void 0:A.value}),T=/(\d+\w*\s+[\+\-\*\/]\s+\d+\w*)/g,w=/var\([^)]+\)/g;g=nt(v.replace(w,"0"),T)?`calc(${v})`:v}return yt(d.binding)&&delete d.binding,{colorScheme:u,path:this.path,paths:d,value:g.includes("undefined")?void 0:g}}}))}),o},getTokenValue(t,e,n){var r;const s=(c=>c.split(".").filter(d=>!nt(d.toLowerCase(),n.variable.excludedKeyRegex)).join("."))(e),i=e.includes("colorScheme.light")?"light":e.includes("colorScheme.dark")?"dark":void 0,a=[(r=t[s])==null?void 0:r.computed(i)].flat().filter(c=>c);return a.length===1?a[0].value:a.reduce((c={},u)=>{const d=u,{colorScheme:m}=d,g=Kt(d,["colorScheme"]);return c[m]=g,c},void 0)},transformCSS(t,e,n,r,o={},s,i,a){if(G(e)){const{cssLayer:c}=o;if(r!=="style"){const u=this.getColorSchemeOption(o,i),d=a?Jt(a,e):e;e=n==="dark"?u.reduce((m,{selector:g})=>(G(g)&&(m+=g.includes("[CSS]")?g.replace("[CSS]",d):Jt(g,d)),m),""):Jt(a??":root",e)}if(c){const u={name:"primeui",order:"primeui"};dt(c)&&(u.name=Ie(c.name,{name:t,type:r})),G(u.name)&&(e=Jt(`@layer ${u.name}`,e),s==null||s.layerNames(u.name))}return e}return""}},ee={defaults:{variable:{prefix:"p",selector:":root",excludedKeyRegex:/^(primitive|semantic|components|directives|variables|colorscheme|light|dark|common|root|states)$/gi},options:{prefix:"p",darkModeSelector:"system",cssLayer:!1}},_theme:void 0,_layerNames:new Set,_loadedStyleNames:new Set,_loadingStyles:new Set,_tokens:{},update(t={}){const{theme:e}=t;e&&(this._theme=gr(zt({},e),{options:zt(zt({},this.defaults.options),e.options)}),this._tokens=He.createTokens(this.preset,this.defaults),this.clearLoadedStyleNames())},get theme(){return this._theme},get preset(){var t;return((t=this.theme)==null?void 0:t.preset)||{}},get options(){var t;return((t=this.theme)==null?void 0:t.options)||{}},get tokens(){return this._tokens},getTheme(){return this.theme},setTheme(t){this.update({theme:t}),et.emit("theme:change",t)},getPreset(){return this.preset},setPreset(t){this._theme=gr(zt({},this.theme),{preset:t}),this._tokens=He.createTokens(t,this.defaults),this.clearLoadedStyleNames(),et.emit("preset:change",t),et.emit("theme:change",this.theme)},getOptions(){return this.options},setOptions(t){this._theme=gr(zt({},this.theme),{options:t}),this.clearLoadedStyleNames(),et.emit("options:change",t),et.emit("theme:change",this.theme)},getLayerNames(){return[...this._layerNames]},setLayerNames(t){this._layerNames.add(t)},getLoadedStyleNames(){return this._loadedStyleNames},isStyleNameLoaded(t){return this._loadedStyleNames.has(t)},setLoadedStyleName(t){this._loadedStyleNames.add(t)},deleteLoadedStyleName(t){this._loadedStyleNames.delete(t)},clearLoadedStyleNames(){this._loadedStyleNames.clear()},getTokenValue(t){return He.getTokenValue(this.tokens,t,this.defaults)},getCommon(t="",e){return He.getCommon({name:t,theme:this.theme,params:e,defaults:this.defaults,set:{layerNames:this.setLayerNames.bind(this)}})},getComponent(t="",e){const n={name:t,theme:this.theme,params:e,defaults:this.defaults,set:{layerNames:this.setLayerNames.bind(this)}};return He.getPresetC(n)},getDirective(t="",e){const n={name:t,theme:this.theme,params:e,defaults:this.defaults,set:{layerNames:this.setLayerNames.bind(this)}};return He.getPresetD(n)},getCustomPreset(t="",e,n,r){const o={name:t,preset:e,options:this.options,selector:n,params:r,defaults:this.defaults,set:{layerNames:this.setLayerNames.bind(this)}};return He.getPreset(o)},getLayerOrderCSS(t=""){return He.getLayerOrder(t,this.options,{names:this.getLayerNames()},this.defaults)},transformCSS(t="",e,n="style",r){return He.transformCSS(t,e,r,n,this.options,{layerNames:this.setLayerNames.bind(this)},this.defaults)},getCommonStyleSheet(t="",e,n={}){return He.getCommonStyleSheet({name:t,theme:this.theme,params:e,props:n,defaults:this.defaults,set:{layerNames:this.setLayerNames.bind(this)}})},getStyleSheet(t,e,n={}){return He.getStyleSheet({name:t,theme:this.theme,params:e,props:n,defaults:this.defaults,set:{layerNames:this.setLayerNames.bind(this)}})},onStyleMounted(t){this._loadingStyles.add(t)},onStyleUpdated(t){this._loadingStyles.add(t)},onStyleLoaded(t,{name:e}){this._loadingStyles.size&&(this._loadingStyles.delete(e),et.emit(`theme:${e}:load`,t),!this._loadingStyles.size&&et.emit("theme:load"))}},lt={_loadedStyleNames:new Set,getLoadedStyleNames:function(){return this._loadedStyleNames},isStyleNameLoaded:function(e){return this._loadedStyleNames.has(e)},setLoadedStyleName:function(e){this._loadedStyleNames.add(e)},deleteLoadedStyleName:function(e){this._loadedStyleNames.delete(e)},clearLoadedStyleNames:function(){this._loadedStyleNames.clear()}};function nn(t){"@babel/helpers - typeof";return nn=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},nn(t)}function ls(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 cs(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?ls(Object(n),!0).forEach(function(r){Cf(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):ls(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function Cf(t,e,n){return(e=Ef(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function Ef(t){var e=Tf(t,"string");return nn(e)=="symbol"?e:e+""}function Tf(t,e){if(nn(t)!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e||"default");if(nn(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function Af(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;l.getCurrentInstance()?l.onMounted(t):e?t():l.nextTick(t)}var Pf=0;function If(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=l.ref(!1),r=l.ref(t),o=l.ref(null),s=uf()?window.document:void 0,i=e.document,a=i===void 0?s:i,c=e.immediate,u=c===void 0?!0:c,d=e.manual,m=d===void 0?!1:d,g=e.name,_=g===void 0?"style_".concat(++Pf):g,v=e.id,T=v===void 0?void 0:v,w=e.media,B=w===void 0?void 0:w,C=e.nonce,A=C===void 0?void 0:C,j=e.first,X=j===void 0?!1:j,ne=e.onMounted,J=ne===void 0?void 0:ne,pe=e.onUpdated,se=pe===void 0?void 0:pe,U=e.onLoad,Ee=U===void 0?void 0:U,ve=e.props,De=ve===void 0?{}:ve,Me=function(){},ot=function(Ge){var te=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(a){var $e=cs(cs({},De),te),f=$e.name||_,h=$e.id||T,S=$e.nonce||A;o.value=a.querySelector('style[data-primevue-style-id="'.concat(f,'"]'))||a.getElementById(h)||a.createElement("style"),o.value.isConnected||(r.value=Ge||t,Nn(o.value,{type:"text/css",id:h,media:B,nonce:S}),X?a.head.prepend(o.value):a.head.appendChild(o.value),df(o.value,"data-primevue-style-id",f),Nn(o.value,$e),o.value.onload=function(P){return Ee==null?void 0:Ee(P,{name:f})},J==null||J(f)),!n.value&&(Me=l.watch(r,function(P){o.value.textContent=P,se==null||se(f)},{immediate:!0}),n.value=!0)}},Xe=function(){!a||!n.value||(Me(),cf(o.value)&&a.head.removeChild(o.value),n.value=!1)};return u&&!m&&Af(ot),{id:T,name:_,el:o,css:r,unload:Xe,load:ot,isLoaded:l.readonly(n)}}function rn(t){"@babel/helpers - typeof";return rn=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},rn(t)}function us(t,e){return $f(t)||Lf(t,e)||Of(t,e)||xf()}function xf(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
71
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Of(t,e){if(t){if(typeof t=="string")return ds(t,e);var n={}.toString.call(t).slice(8,-1);return n==="Object"&&t.constructor&&(n=t.constructor.name),n==="Map"||n==="Set"?Array.from(t):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?ds(t,e):void 0}}function ds(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n<e;n++)r[n]=t[n];return r}function Lf(t,e){var n=t==null?null:typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(n!=null){var r,o,s,i,a=[],c=!0,u=!1;try{if(s=(n=n.call(t)).next,e!==0)for(;!(c=(r=s.call(n)).done)&&(a.push(r.value),a.length!==e);c=!0);}catch(d){u=!0,o=d}finally{try{if(!c&&n.return!=null&&(i=n.return(),Object(i)!==i))return}finally{if(u)throw o}}return a}}function $f(t){if(Array.isArray(t))return t}function fs(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
|
|
70
|
+
For more information see: https://www.keycloak.org/docs/latest/securing_apps/#_modern_browsers`),s.enable=!1,e.silentCheckSsoFallback&&(e.silentCheckSsoRedirectUri=!1)),document.body.removeChild(h),window.removeEventListener("message",S),f.setSuccess()))};window.addEventListener("message",S,!1)}else f.setSuccess();return Ee(f.promise,e.messageReceiveTimeout,"Timeout when waiting for 3rd party check iframe message.")}function Xe(f){if(!f||f=="default")return{login:function(E){return window.location.assign(e.createLoginUrl(E)),U().promise},logout:async function(E){if(((E==null?void 0:E.logoutMethod)??e.logoutMethod)==="GET"){window.location.replace(e.createLogoutUrl(E));return}const D=e.createLogoutUrl(E),O=await fetch(D,{method:"POST",headers:{"Content-Type":"application/x-www-form-urlencoded"},body:new URLSearchParams({id_token_hint:e.idToken,client_id:e.clientId,post_logout_redirect_uri:n.redirectUri(E,!1)})});if(O.redirected){window.location.href=O.url;return}if(O.ok){window.location.reload();return}throw new Error("Logout failed, request returned an error code.")},register:function(E){return window.location.assign(e.createRegisterUrl(E)),U().promise},accountManagement:function(){var E=e.createAccountUrl();if(typeof E<"u")window.location.href=E;else throw"Not supported by the OIDC server";return U().promise},redirectUri:function(E,I){return E&&E.redirectUri?E.redirectUri:e.redirectUri?e.redirectUri:location.href}};if(f=="cordova"){s.enable=!1;var h=function(E,I,D){return window.cordova&&window.cordova.InAppBrowser?window.cordova.InAppBrowser.open(E,I,D):window.open(E,I,D)},S=function(E){return E&&E.cordovaOptions?Object.keys(E.cordovaOptions).reduce(function(I,D){return I[D]=E.cordovaOptions[D],I},{}):{}},P=function(E){return Object.keys(E).reduce(function(I,D){return I.push(D+"="+E[D]),I},[]).join(",")},k=function(E){var I=S(E);return I.location="no",E&&E.prompt=="none"&&(I.hidden="yes"),P(I)},L=function(){return e.redirectUri||"http://localhost"};return{login:function(E){var I=U(),D=k(E),O=e.createLoginUrl(E),$=h(O,"_blank",D),Z=!1,oe=!1,he=function(){oe=!0,$.close()};return $.addEventListener("loadstart",function(ae){if(ae.url.indexOf(L())==0){var Re=J(ae.url);C(Re,I),he(),Z=!0}}),$.addEventListener("loaderror",function(ae){if(!Z)if(ae.url.indexOf(L())==0){var Re=J(ae.url);C(Re,I),he(),Z=!0}else I.setError(),he()}),$.addEventListener("exit",function(ae){oe||I.setError({reason:"closed_by_user"})}),I.promise},logout:function(E){var I=U(),D=e.createLogoutUrl(E),O=h(D,"_blank","location=no,hidden=yes,clearcache=yes"),$;return O.addEventListener("loadstart",function(Z){Z.url.indexOf(L())==0&&O.close()}),O.addEventListener("loaderror",function(Z){Z.url.indexOf(L())==0||($=!0),O.close()}),O.addEventListener("exit",function(Z){$?I.setError():(e.clearToken(),I.setSuccess())}),I.promise},register:function(E){var I=U(),D=e.createRegisterUrl(),O=k(E),$=h(D,"_blank",O);return $.addEventListener("loadstart",function(Z){if(Z.url.indexOf(L())==0){$.close();var oe=J(Z.url);C(oe,I)}}),I.promise},accountManagement:function(){var E=e.createAccountUrl();if(typeof E<"u"){var I=h(E,"_blank","location=no");I.addEventListener("loadstart",function(D){D.url.indexOf(L())==0&&I.close()})}else throw"Not supported by the OIDC server"},redirectUri:function(E){return L()}}}if(f=="cordova-native")return s.enable=!1,{login:function(E){var I=U(),D=e.createLoginUrl(E);return universalLinks.subscribe("keycloak",function(O){universalLinks.unsubscribe("keycloak"),window.cordova.plugins.browsertab.close();var $=J(O.url);C($,I)}),window.cordova.plugins.browsertab.openUrl(D),I.promise},logout:function(E){var I=U(),D=e.createLogoutUrl(E);return universalLinks.subscribe("keycloak",function(O){universalLinks.unsubscribe("keycloak"),window.cordova.plugins.browsertab.close(),e.clearToken(),I.setSuccess()}),window.cordova.plugins.browsertab.openUrl(D),I.promise},register:function(E){var I=U(),D=e.createRegisterUrl(E);return universalLinks.subscribe("keycloak",function(O){universalLinks.unsubscribe("keycloak"),window.cordova.plugins.browsertab.close();var $=J(O.url);C($,I)}),window.cordova.plugins.browsertab.openUrl(D),I.promise},accountManagement:function(){var E=e.createAccountUrl();if(typeof E<"u")window.cordova.plugins.browsertab.openUrl(E);else throw"Not supported by the OIDC server"},redirectUri:function(E){return E&&E.redirectUri?E.redirectUri:e.redirectUri?e.redirectUri:"http://localhost"}};throw"invalid adapter type: "+f}var Ue=function(){if(!(this instanceof Ue))return new Ue;localStorage.setItem("kc-test","test"),localStorage.removeItem("kc-test");var f=this;function h(){for(var S=new Date().getTime(),P=0;P<localStorage.length;P++){var k=localStorage.key(P);if(k&&k.indexOf("kc-callback-")==0){var L=localStorage.getItem(k);if(L)try{var E=JSON.parse(L).expires;(!E||E<S)&&localStorage.removeItem(k)}catch{localStorage.removeItem(k)}}}}f.get=function(S){if(S){var P="kc-callback-"+S,k=localStorage.getItem(P);return k&&(localStorage.removeItem(P),k=JSON.parse(k)),h(),k}},f.add=function(S){h();var P="kc-callback-"+S.state;S.expires=new Date().getTime()+60*60*1e3,localStorage.setItem(P,JSON.stringify(S))}},Ge=function(){if(!(this instanceof Ge))return new Ge;var f=this;f.get=function(k){if(k){var L=S("kc-callback-"+k);if(P("kc-callback-"+k,"",h(-100)),L)return JSON.parse(L)}},f.add=function(k){P("kc-callback-"+k.state,JSON.stringify(k),h(60))},f.removeItem=function(k){P(k,"",h(-100))};var h=function(k){var L=new Date;return L.setTime(L.getTime()+k*60*1e3),L},S=function(k){for(var L=k+"=",E=document.cookie.split(";"),I=0;I<E.length;I++){for(var D=E[I];D.charAt(0)==" ";)D=D.substring(1);if(D.indexOf(L)==0)return D.substring(L.length,D.length)}return""},P=function(k,L,E){var I=k+"="+L+"; expires="+E.toUTCString()+"; ";document.cookie=I}};function te(){try{return new Ue}catch{}return new Ge}function $e(f){return function(){e.enableLogging&&f.apply(console,Array.prototype.slice.call(arguments))}}}function yd(t){const e=String.fromCodePoint(...t);return btoa(e)}class vd extends no{constructor(e){super(e)}GetAccessTokenAsync(){return this.getAccessTokenAsync()}}async function bd(){const t="silent-check-sso.html",e=await fetch(location.origin+"/"+t,{cache:"no-store"}).then(async n=>n.status===200).catch(()=>!1);return e||console.error(`O arquivo ${t} não foi localizado na raiz do projeto.`),e}let Pi;function wd(t){const e=new vd(t),n={Instance:e,isAuthenticated:!1,userinfo:null,InitAsync:async(r={})=>await bd()?await e.init(r).then(async s=>(n.isAuthenticated=s,s)).catch(s=>(console.info("Ocorreu um erro na inicialização. Verifique o console para mais detalhes."),console.error(s),!1)):!1};return Pi=n,n}const Nn=()=>l.reactive(Pi),Sd=t=>wd(t),_d=["data-cor"],kd={class:"sf-p-4"},Cd=l.defineComponent({__name:"HeaderAvatar",emits:["logout"],setup(t,{emit:e}){const n=Ei(),r=Nn(),o=l.ref("?"),s=e;async function i(){await n.CreateConfirmAsync({text:"Você deseja sair da conta?",confirmLabel:"sair"})&&s("logout")}function a(){var v;const d=(v=r.userinfo)==null?void 0:v.name;let m="?";if(!d)return m;const g=d.split(" ").filter(T=>T.length>0).map(T=>T[0].toUpperCase()),_=Math.min(2,g.length);return m=g.slice(0,_).join(""),m.length>0?m:"?"}const c=l.computed(()=>{const d=o.value[0],m=d==="?"?0:(d.charCodeAt(0)-64)%19;return Math.max(m,0)}),u=l.ref(!1);return l.onMounted(()=>{o.value=a()}),(d,m)=>(l.openBlock(),l.createElementBlock(l.Fragment,null,[l.createElementVNode("div",{id:"sf-header-avatar","data-cor":c.value,onClick:m[0]||(m[0]=g=>u.value=!0)},l.toDisplayString(o.value),9,_d),l.createVNode(Hs,{visible:u.value,"onUpdate:visible":m[1]||(m[1]=g=>u.value=g),position:"right"},{title:l.withCtx(()=>[l.createTextVNode("Minha conta")]),default:l.withCtx(()=>{var g;return[l.createElementVNode("div",kd,[l.createTextVNode(l.toDisplayString((g=l.unref(r).userinfo)==null?void 0:g.name)+" ",1),l.createVNode(Vs,{color:"error",onClick:i},{default:l.withCtx(()=>[l.createTextVNode("Sair")]),_:1})])]}),_:1},8,["visible"])],64))}}),Ed={},Td={xmlns:"http://www.w3.org/2000/svg",height:"48",viewBox:"0 -960 960 960",width:"48",class:"sf-svg-icon"},Ad=l.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),Pd=[Ad];function Id(t,e){return l.openBlock(),l.createElementBlock("svg",Td,Pd)}const xd=jn(Ed,[["render",Id]]);class Od{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()}ClearStoredTheme(){localStorage.removeItem("color-scheme")}}const St=new Od,Ld=l.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),$d=[Ld],Rd=l.defineComponent({__name:"ThemeToggle",setup(t){return(e,n)=>(l.openBlock(),l.createElementBlock("button",{id:"sf-theme-toggle",onClick:n[0]||(n[0]=(...r)=>l.unref(St).Toggle&&l.unref(St).Toggle(...r))},$d))}}),Nd={id:"sf-layout"},Bd=l.createElementVNode("div",{class:"sf-layout-menu-toggler-logo"},null,-1),Dd={class:"title"},Md={class:"sf-layout-nav-content"},Ud=l.createElementVNode("div",{class:"sf-layout-nav-footer"},[l.createElementVNode("div",{class:"sf-layout-nav-footer-logo"})],-1),Hd=l.createElementVNode("section",{id:"sf-layout-page-title"},null,-1),Vd={id:"sf-layout-content"},jd=l.defineComponent({__name:"Layout",emits:["mounted","logout"],setup(t,{emit:e}){const n=jr(),r=e;return l.onMounted(()=>{r("mounted")}),(o,s)=>(l.openBlock(),l.createElementBlock("div",Nd,[l.createElementVNode("header",null,[l.createElementVNode("div",{class:l.normalizeClass(["sf-layout-menu-toggler",{invert:l.unref(n).IsVisible}]),onClick:s[0]||(s[0]=i=>l.unref(n).Toggle())},[Bd,l.createVNode(xd)],2),l.createElementVNode("div",Dd,[l.renderSlot(o.$slots,"title")]),l.renderSlot(o.$slots,"action"),l.createVNode(Fr,{text:"Tema"},{default:l.withCtx(()=>[l.createVNode(Rd)]),_:1}),l.createVNode(Cd,{onLogout:s[1]||(s[1]=i=>r("logout"))})]),l.createElementVNode("nav",{class:l.normalizeClass({visible:l.unref(n).IsVisible})},[l.createElementVNode("div",Md,[l.renderSlot(o.$slots,"menu")]),Ud],2),l.createElementVNode("main",{class:l.normalizeClass({"menu-visible":l.unref(n).IsVisible})},[Hd,l.createElementVNode("section",Vd,[l.renderSlot(o.$slots,"content")])],2)]))}}),Fd=l.defineComponent({__name:"ScrollToTop",setup(t){const e=l.ref(!1),n=`--${+new Date}`;let r=null;function o(){r==null||r.scrollTo(0,0)}return l.onMounted(()=>{var s;r=((s=document.getElementById(n))==null?void 0:s.parentElement)??null,r&&r.addEventListener("scroll",function(){e.value=this.scrollTop-this.clientHeight>0})}),(s,i)=>(l.openBlock(),l.createElementBlock("button",{id:n,class:l.normalizeClass(["sf-scrollToTop",{"sf-scrollToTop-visible":e.value}]),onClick:o},null,2))}}),zd=l.defineComponent({__name:"Content",props:{class:{},style:{},disableBodyPadding:{type:Boolean},disableHeaderPadding:{type:Boolean},disableFooterPadding:{type:Boolean}},setup(t){const e=t;function n(){return new tt("sf-content").AddClass(e.class,!!e.class).Build()}function r(){return new tt("sf-content-body").AddClass("sf-content-no-padding",e.disableBodyPadding).Build()}function o(){return new tt("sf-content-header").AddClass("sf-content-no-padding",e.disableHeaderPadding).Build()}function s(){return new tt("sf-content-footer").AddClass("sf-content-no-padding",e.disableFooterPadding).Build()}return(i,a)=>(l.openBlock(),l.createElementBlock("div",{class:l.normalizeClass(n()),style:l.normalizeStyle(e.style)},[l.createElementVNode("div",{class:l.normalizeClass(o())},[l.renderSlot(i.$slots,"header")],2),l.createElementVNode("div",{class:l.normalizeClass(r())},[l.renderSlot(i.$slots,"default"),l.createVNode(Fd)],2),l.createElementVNode("div",{class:l.normalizeClass(s())},[l.renderSlot(i.$slots,"footer")],2)],6))}}),Kd={class:"sf-tab-navigation"},Wd=l.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"},[l.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M15.75 19.5L8.25 12l7.5-7.5"})],-1),qd=[Wd],Gd=["data-active"],Yd=["href","onClick"],Jd=l.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"},[l.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M8.25 4.5l7.5 7.5-7.5 7.5"})],-1),Xd=[Jd],Zd=l.defineComponent({__name:"TabNavigation",props:{tabs:{}},setup(t){const e=t,n=l.ref(null),r=new ResizeObserver(c=>{a()}),o=l.ref(!1),s=l.ref(!1);function i(c=!1){const u=n.value.clientWidth;n.value.scrollLeft+=c?-u:u}function a(){const c=n.value.scrollWidth-n.value.clientWidth;o.value=n.value.scrollLeft>10,s.value=n.value.scrollLeft<c-10}return l.onMounted(()=>{n.value.addEventListener("scroll",a),r.observe(n.value)}),l.onBeforeUnmount(()=>{var c;try{(c=n.value)==null||c.removeEventListener("scroll",a),r.unobserve(n.value),r.disconnect()}catch{}}),(c,u)=>{const d=l.resolveComponent("RouterLink");return l.openBlock(),l.createElementBlock("div",Kd,[l.createElementVNode("div",{class:l.normalizeClass(["left-arrow",{active:o.value}]),onClick:u[0]||(u[0]=m=>i(!0))},qd,2),l.createElementVNode("ul",{ref_key:"trackerContainer",ref:n},[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(e.tabs,m=>(l.openBlock(),l.createBlock(d,{to:m.route,custom:!0},{default:l.withCtx(({navigate:g,isActive:_})=>[l.createElementVNode("li",{"data-active":_},[l.renderSlot(c.$slots,"item",{item:m,navigate:g,isActive:_},()=>[l.createElementVNode("a",{href:m.route,class:l.normalizeClass({active:_}),onClick:g},l.toDisplayString(m.text),11,Yd)])],8,Gd)]),_:2},1032,["to"]))),256))],512),l.createElementVNode("div",{class:l.normalizeClass(["right-arrow",{active:s.value}]),onClick:u[1]||(u[1]=m=>i())},Xd,2)])}}}),Qd=["data-icon"],ef=l.defineComponent({__name:"Message",props:{color:{default:"info"},class:{},style:{},icon:{}},setup(t){const e=t,n=l.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=l.computed(()=>new tt("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,s)=>(l.openBlock(),l.createElementBlock("div",{class:l.normalizeClass(r.value),"data-icon":n.value},[l.renderSlot(o.$slots,"default")],10,Qd))}});function tf(t,e){return t?t.classList?t.classList.contains(e):new RegExp("(^| )"+e+"( |$)","gi").test(t.className):!1}function nf(t,e){if(t&&e){const n=r=>{tf(t,r)||(t.classList?t.classList.add(r):t.className+=" "+r)};[e].flat().filter(Boolean).forEach(r=>r.split(" ").forEach(n))}}function gr(t,e){if(t&&e){const n=r=>{t.classList?t.classList.remove(r):t.className=t.className.replace(new RegExp("(^|\\b)"+r.split(" ").join("|")+"(\\b|$)","gi")," ")};[e].flat().filter(Boolean).forEach(r=>r.split(" ").forEach(n))}}function rf(t,e){return t instanceof HTMLElement?t.offsetWidth:0}function Gn(t){return typeof HTMLElement=="object"?t instanceof HTMLElement:t&&typeof t=="object"&&t!==null&&t.nodeType===1&&typeof t.nodeName=="string"}function Bn(t,e={}){if(Gn(t)){const n=(r,o)=>{var s,i;const a=(s=t==null?void 0:t.$attrs)!=null&&s[r]?[(i=t==null?void 0:t.$attrs)==null?void 0:i[r]]:[];return[o].flat().reduce((c,u)=>{if(u!=null){const d=typeof u;if(d==="string"||d==="number")c.push(u);else if(d==="object"){const m=Array.isArray(u)?n(r,u):Object.entries(u).map(([g,_])=>r==="style"&&(_||_===0)?`${g.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()}:${_}`:_?g:void 0);c=m.length?c.concat(m.filter(g=>!!g)):c}}return c},a)};Object.entries(e).forEach(([r,o])=>{if(o!=null){const s=r.match(/^on(.+)/);s?t.addEventListener(s[1].toLowerCase(),o):r==="p-bind"?Bn(t,o):(o=r==="class"?[...new Set(n("class",o))].join(" ").trim():r==="style"?n("style",o).join(";").trim():o,(t.$attrs=t.$attrs||{})&&(t.$attrs[r]=o),t.setAttribute(r,o))}})}}function of(t,e={},...n){{const r=document.createElement(t);return Bn(r,e),r.append(...n),r}}function je(t,e){return Gn(t)?t.matches(e)?t:t.querySelector(e):null}function Gt(t,e){t&&document.activeElement!==t&&t.focus(e)}function Yt(t,e){if(Gn(t)){const n=t.getAttribute(e);return isNaN(n)?n==="true"||n==="false"?n==="true":n:+n}}function ts(t){if(t){let e=t.offsetHeight,n=getComputedStyle(t);return e-=parseFloat(n.paddingTop)+parseFloat(n.paddingBottom)+parseFloat(n.borderTopWidth)+parseFloat(n.borderBottomWidth),e}return 0}function sf(t){if(t){let e=t.parentNode;return e&&e instanceof ShadowRoot&&e.host&&(e=e.host),e}return null}function af(t){if(t){let e=t.getBoundingClientRect();return{top:e.top+(window.pageYOffset||document.documentElement.scrollTop||document.body.scrollTop||0),left:e.left+(window.pageXOffset||document.documentElement.scrollLeft||document.body.scrollLeft||0)}}return{top:"auto",left:"auto"}}function lf(t,e){return t?t.offsetHeight:0}function cf(t){return!!(t!==null&&typeof t<"u"&&t.nodeName&&sf(t))}function ns(t){if(t){let e=t.offsetWidth,n=getComputedStyle(t);return e-=parseFloat(n.paddingLeft)+parseFloat(n.paddingRight)+parseFloat(n.borderLeftWidth)+parseFloat(n.borderRightWidth),e}return 0}function uf(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}function df(t,e="",n){Gn(t)&&n!==null&&n!==void 0&&t.setAttribute(e,n)}function Ii(){const t=new Map;return{on(e,n){let r=t.get(e);return r?r.push(n):r=[n],t.set(e,r),this},off(e,n){let r=t.get(e);return r&&r.splice(r.indexOf(n)>>>0,1),this},emit(e,n){let r=t.get(e);r&&r.slice().map(o=>{o(n)})},clear(){t.clear()}}}function yt(t){return t==null||t===""||Array.isArray(t)&&t.length===0||!(t instanceof Date)&&typeof t=="object"&&Object.keys(t).length===0}function Or(t,e){if(t===e)return!0;if(t&&e&&typeof t=="object"&&typeof e=="object"){var n=Array.isArray(t),r=Array.isArray(e),o,s,i;if(n&&r){if(s=t.length,s!=e.length)return!1;for(o=s;o--!==0;)if(!Or(t[o],e[o]))return!1;return!0}if(n!=r)return!1;var a=t instanceof Date,c=e instanceof Date;if(a!=c)return!1;if(a&&c)return t.getTime()==e.getTime();var u=t instanceof RegExp,d=e instanceof RegExp;if(u!=d)return!1;if(u&&d)return t.toString()==e.toString();var m=Object.keys(t);if(s=m.length,s!==Object.keys(e).length)return!1;for(o=s;o--!==0;)if(!Object.prototype.hasOwnProperty.call(e,m[o]))return!1;for(o=s;o--!==0;)if(i=m[o],!Or(t[i],e[i]))return!1;return!0}return t!==t&&e!==e}function ro(t){return!!(t&&t.constructor&&t.call&&t.apply)}function G(t){return!yt(t)}function Pt(t,e,n){return Or(t,e)}function rs(t,e){let n;if(G(t))try{n=t.findLast(e)}catch{n=[...t].reverse().find(e)}return n}function dt(t,e=!0){return t instanceof Object&&t.constructor===Object&&(e||Object.keys(t).length!==0)}function Ie(t,...e){return ro(t)?t(...e):t}function _e(t,e=!0){return typeof t=="string"&&(e||t!=="")}function Fe(t){return _e(t)?t.replace(/(-|_)/g,"").toLowerCase():t}function oo(t,e="",n={}){const r=Fe(e).split("."),o=r.shift();return o?dt(t)?oo(Ie(t[Object.keys(t).find(s=>Fe(s)===o)||""],n),r.join("."),n):void 0:Ie(t,n)}function so(t,e=!0){return Array.isArray(t)&&(e||t.length!==0)}function xi(t){return G(t)&&!isNaN(t)}function ff(t=""){return G(t)&&t.length===1&&!!t.match(/\S| /)}function nt(t,e){if(e){const n=e.test(t);return e.lastIndex=0,n}return!1}function Qt(t){return t&&t.replace(/\/\*(?:(?!\*\/)[\s\S])*\*\/|[\r\n\t]+/g,"").replace(/ {2,}/g," ").replace(/ ([{:}]) /g,"$1").replace(/([;,]) /g,"$1").replace(/ !/g,"!").replace(/: /g,":")}function mf(t){return _e(t,!1)?t[0].toUpperCase()+t.slice(1):t}function Oi(t){return _e(t)?t.replace(/(_)/g,"-").replace(/[A-Z]/g,(e,n)=>n===0?e:"-"+e.toLowerCase()).toLowerCase():t}function os(t){return _e(t)?t.replace(/[A-Z]/g,(e,n)=>n===0?e:"."+e.toLowerCase()).toLowerCase():t}var Tn={};function pf(t="pui_id_"){return Tn.hasOwnProperty(t)||(Tn[t]=0),Tn[t]++,`${t}${Tn[t]}`}function Dn(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"pv_id_";return pf(t)}var hf=Object.defineProperty,gf=Object.defineProperties,yf=Object.getOwnPropertyDescriptors,Mn=Object.getOwnPropertySymbols,Li=Object.prototype.hasOwnProperty,$i=Object.prototype.propertyIsEnumerable,ss=(t,e,n)=>e in t?hf(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,zt=(t,e)=>{for(var n in e||(e={}))Li.call(e,n)&&ss(t,n,e[n]);if(Mn)for(var n of Mn(e))$i.call(e,n)&&ss(t,n,e[n]);return t},yr=(t,e)=>gf(t,yf(e)),Kt=(t,e)=>{var n={};for(var r in t)Li.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&Mn)for(var r of Mn(t))e.indexOf(r)<0&&$i.call(t,r)&&(n[r]=t[r]);return n},vf=Ii(),et=vf;function is(t,e){so(t)?t.push(...e||[]):dt(t)&&Object.assign(t,e)}function bf(t){return dt(t)&&t.hasOwnProperty("value")&&t.hasOwnProperty("type")?t.value:t}function as(t,e=""){return["opacity","z-index","line-height","font-weight","flex","flex-grow","flex-shrink","order"].some(r=>e.endsWith(r))?t:`${t}`.trim().split(" ").map(s=>xi(s)?`${s}px`:s).join(" ")}function wf(t){return t.replaceAll(/ /g,"").replace(/[^\w]/g,"-")}function Lr(t="",e=""){return wf(`${_e(t,!1)&&_e(e,!1)?`${t}-`:t}${e}`)}function Ri(t="",e=""){return`--${Lr(t,e)}`}function Ni(t,e="",n="",r=[],o){if(_e(t)){const s=/{([^}]*)}/g,i=t.trim();if(nt(i,s)){const a=i.replaceAll(s,d=>{const g=d.replace(/{|}/g,"").split(".").filter(_=>!r.some(v=>nt(_,v)));return`var(${Ri(n,Oi(g.join("-")))}${G(o)?`, ${o}`:""})`}),c=/(\d+\s+[\+\-\*\/]\s+\d+)/g,u=/var\([^)]+\)/g;return nt(a.replace(u,"0"),c)?`calc(${a})`:a}return as(i,e)}else if(xi(t))return as(t,e)}function Sf(t,e,n){_e(e,!1)&&t.push(`${e}:${n};`)}function Jt(t,e){return t?`${t}{${e}}`:""}var vr=(...t)=>_f(ee.getTheme(),...t),_f=(t={},e,n,r="variable")=>{if(e){const{variable:o,options:s}=ee.defaults||{},{prefix:i,transform:a}=(t==null?void 0:t.options)||s||{},u=nt(e,/{([^}]*)}/g)?e:`{${e}}`;return r==="value"||a==="strict"?ee.getTokenValue(e):Ni(u,void 0,i,[o.excludedKeyRegex],n)}return""};function kf(t,e={}){const n=ee.defaults.variable,{prefix:r=n.prefix,selector:o=n.selector,excludedKeyRegex:s=n.excludedKeyRegex}=e,i=(u,d="")=>Object.entries(u).reduce((m,[g,_])=>{const v=nt(g,s)?Lr(d):Lr(d,Oi(g)),T=bf(_);if(dt(T)){const{variables:w,tokens:B}=i(T,v);is(m.tokens,B),is(m.variables,w)}else m.tokens.push((r?v.replace(`${r}-`,""):v).replaceAll("-",".")),Sf(m.variables,Ri(v),Ni(T,v,r,[s]));return m},{variables:[],tokens:[]}),{variables:a,tokens:c}=i(t,r);return{value:a,tokens:c,declarations:a.join(""),css:Jt(o,a.join(""))}}var He={regex:{rules:{class:{pattern:/^\.([a-zA-Z][\w-]*)$/,resolve(t){return{type:"class",selector:t,matched:this.pattern.test(t.trim())}}},attr:{pattern:/^\[(.*)\]$/,resolve(t){return{type:"attr",selector:`:root${t}`,matched:this.pattern.test(t.trim())}}},media:{pattern:/^@media (.*)$/,resolve(t){return{type:"media",selector:`${t}{:root{[CSS]}}`,matched:this.pattern.test(t.trim())}}},system:{pattern:/^system$/,resolve(t){return{type:"system",selector:"@media (prefers-color-scheme: dark){:root{[CSS]}}",matched:this.pattern.test(t.trim())}}},custom:{resolve(t){return{type:"custom",selector:t,matched:!0}}}},resolve(t){const e=Object.keys(this.rules).filter(n=>n!=="custom").map(n=>this.rules[n]);return[t].flat().map(n=>{var r;return(r=e.map(o=>o.resolve(n)).find(o=>o.matched))!=null?r:this.rules.custom.resolve(n)})}},_toVariables(t,e){return kf(t,{prefix:e==null?void 0:e.prefix})},getCommon({name:t="",theme:e={},params:n,set:r,defaults:o}){var s,i,a,c;const{preset:u,options:d}=e;let m,g,_,v;if(G(u)){const{primitive:T,semantic:w}=u,B=w||{},{colorScheme:C}=B,A=Kt(B,["colorScheme"]),j=C||{},{dark:X}=j,ne=Kt(j,["dark"]),J=G(T)?this._toVariables({primitive:T},d):{},pe=G(A)?this._toVariables({semantic:A},d):{},se=G(ne)?this._toVariables({light:ne},d):{},U=G(X)?this._toVariables({dark:X},d):{},[Ee,ve]=[(s=J.declarations)!=null?s:"",J.tokens],[De,Me]=[(i=pe.declarations)!=null?i:"",pe.tokens||[]],[ot,Xe]=[(a=se.declarations)!=null?a:"",se.tokens||[]],[Ue,Ge]=[(c=U.declarations)!=null?c:"",U.tokens||[]];m=this.transformCSS(t,Ee,"light","variable",d,r,o),g=ve;const te=this.transformCSS(t,`${De}${ot}color-scheme:light`,"light","variable",d,r,o),$e=this.transformCSS(t,`${Ue}color-scheme:dark`,"dark","variable",d,r,o);_=`${te}${$e}`,v=[...new Set([...Me,...Xe,...Ge])]}return{primitive:{css:m,tokens:g},semantic:{css:_,tokens:v}}},getPreset({name:t="",preset:e={},options:n,params:r,set:o,defaults:s,selector:i}){var a,c,u;const d=t.replace("-directive",""),m=e,{colorScheme:g}=m,_=Kt(m,["colorScheme"]),v=g||{},{dark:T}=v,w=Kt(v,["dark"]),B=G(_)?this._toVariables({[d]:_},n):{},C=G(w)?this._toVariables({[d]:w},n):{},A=G(T)?this._toVariables({[d]:T},n):{},[j,X]=[(a=B.declarations)!=null?a:"",B.tokens||[]],[ne,J]=[(c=C.declarations)!=null?c:"",C.tokens||[]],[pe,se]=[(u=A.declarations)!=null?u:"",A.tokens||[]],U=[...new Set([...X,...J,...se])],Ee=this.transformCSS(d,`${j}${ne}`,"light","variable",n,o,s,i),ve=this.transformCSS(d,pe,"dark","variable",n,o,s,i);return{css:`${Ee}${ve}`,tokens:U}},getPresetC({name:t="",theme:e={},params:n,set:r,defaults:o}){var s;const{preset:i,options:a}=e,c=(s=i==null?void 0:i.components)==null?void 0:s[t];return this.getPreset({name:t,preset:c,options:a,params:n,set:r,defaults:o})},getPresetD({name:t="",theme:e={},params:n,set:r,defaults:o}){var s;const i=t.replace("-directive",""),{preset:a,options:c}=e,u=(s=a==null?void 0:a.directives)==null?void 0:s[i];return this.getPreset({name:i,preset:u,options:c,params:n,set:r,defaults:o})},getColorSchemeOption(t,e){var n;return this.regex.resolve((n=t.darkModeSelector)!=null?n:e.options.darkModeSelector)},getLayerOrder(t,e={},n,r){const{cssLayer:o}=e;return o?`@layer ${Ie(o.order||"primeui",n)}`:""},getCommonStyleSheet({name:t="",theme:e={},params:n,props:r={},set:o,defaults:s}){const i=this.getCommon({name:t,theme:e,params:n,set:o,defaults:s}),a=Object.entries(r).reduce((c,[u,d])=>c.push(`${u}="${d}"`)&&c,[]).join(" ");return Object.entries(i||{}).reduce((c,[u,d])=>{if(d!=null&&d.css){const m=Qt(d==null?void 0:d.css),g=`${u}-variables`;c.push(`<style type="text/css" data-primevue-style-id="${g}" ${a}>${m}</style>`)}return c},[]).join("")},getStyleSheet({name:t="",theme:e={},params:n,props:r={},set:o,defaults:s}){var i;const a={name:t,theme:e,params:n,set:o,defaults:s},c=(i=t.includes("-directive")?this.getPresetD(a):this.getPresetC(a))==null?void 0:i.css,u=Object.entries(r).reduce((d,[m,g])=>d.push(`${m}="${g}"`)&&d,[]).join(" ");return c?`<style type="text/css" data-primevue-style-id="${t}-variables" ${u}>${Qt(c)}</style>`:""},createTokens(t={},e,n="",r="",o={}){return Object.entries(t).forEach(([s,i])=>{const a=nt(s,e.variable.excludedKeyRegex)?n:n?`${n}.${os(s)}`:os(s),c=r?`${r}.${s}`:s;dt(i)?this.createTokens(i,e,a,c,o):(o[a]||(o[a]={paths:[],computed(u,d={}){if(u){const m=this.paths.find(g=>g.scheme===u)||this.paths.find(g=>g.scheme==="none");return m==null?void 0:m.computed(u,d.binding)}return this.paths.map(m=>m.computed(m.scheme,d[m.scheme]))}}),o[a].paths.push({path:c,value:i,scheme:c.includes("colorScheme.light")?"light":c.includes("colorScheme.dark")?"dark":"none",computed(u,d={}){const m=/{([^}]*)}/g;let g=i;if(d.name=this.path,d.binding||(d.binding={}),nt(i,m)){const v=i.trim().replaceAll(m,B=>{var C,A;const j=B.replace(/{|}/g,"");return(A=(C=o[j])==null?void 0:C.computed(u,d))==null?void 0:A.value}),T=/(\d+\w*\s+[\+\-\*\/]\s+\d+\w*)/g,w=/var\([^)]+\)/g;g=nt(v.replace(w,"0"),T)?`calc(${v})`:v}return yt(d.binding)&&delete d.binding,{colorScheme:u,path:this.path,paths:d,value:g.includes("undefined")?void 0:g}}}))}),o},getTokenValue(t,e,n){var r;const s=(c=>c.split(".").filter(d=>!nt(d.toLowerCase(),n.variable.excludedKeyRegex)).join("."))(e),i=e.includes("colorScheme.light")?"light":e.includes("colorScheme.dark")?"dark":void 0,a=[(r=t[s])==null?void 0:r.computed(i)].flat().filter(c=>c);return a.length===1?a[0].value:a.reduce((c={},u)=>{const d=u,{colorScheme:m}=d,g=Kt(d,["colorScheme"]);return c[m]=g,c},void 0)},transformCSS(t,e,n,r,o={},s,i,a){if(G(e)){const{cssLayer:c}=o;if(r!=="style"){const u=this.getColorSchemeOption(o,i),d=a?Jt(a,e):e;e=n==="dark"?u.reduce((m,{selector:g})=>(G(g)&&(m+=g.includes("[CSS]")?g.replace("[CSS]",d):Jt(g,d)),m),""):Jt(a??":root",e)}if(c){const u={name:"primeui",order:"primeui"};dt(c)&&(u.name=Ie(c.name,{name:t,type:r})),G(u.name)&&(e=Jt(`@layer ${u.name}`,e),s==null||s.layerNames(u.name))}return e}return""}},ee={defaults:{variable:{prefix:"p",selector:":root",excludedKeyRegex:/^(primitive|semantic|components|directives|variables|colorscheme|light|dark|common|root|states)$/gi},options:{prefix:"p",darkModeSelector:"system",cssLayer:!1}},_theme:void 0,_layerNames:new Set,_loadedStyleNames:new Set,_loadingStyles:new Set,_tokens:{},update(t={}){const{theme:e}=t;e&&(this._theme=yr(zt({},e),{options:zt(zt({},this.defaults.options),e.options)}),this._tokens=He.createTokens(this.preset,this.defaults),this.clearLoadedStyleNames())},get theme(){return this._theme},get preset(){var t;return((t=this.theme)==null?void 0:t.preset)||{}},get options(){var t;return((t=this.theme)==null?void 0:t.options)||{}},get tokens(){return this._tokens},getTheme(){return this.theme},setTheme(t){this.update({theme:t}),et.emit("theme:change",t)},getPreset(){return this.preset},setPreset(t){this._theme=yr(zt({},this.theme),{preset:t}),this._tokens=He.createTokens(t,this.defaults),this.clearLoadedStyleNames(),et.emit("preset:change",t),et.emit("theme:change",this.theme)},getOptions(){return this.options},setOptions(t){this._theme=yr(zt({},this.theme),{options:t}),this.clearLoadedStyleNames(),et.emit("options:change",t),et.emit("theme:change",this.theme)},getLayerNames(){return[...this._layerNames]},setLayerNames(t){this._layerNames.add(t)},getLoadedStyleNames(){return this._loadedStyleNames},isStyleNameLoaded(t){return this._loadedStyleNames.has(t)},setLoadedStyleName(t){this._loadedStyleNames.add(t)},deleteLoadedStyleName(t){this._loadedStyleNames.delete(t)},clearLoadedStyleNames(){this._loadedStyleNames.clear()},getTokenValue(t){return He.getTokenValue(this.tokens,t,this.defaults)},getCommon(t="",e){return He.getCommon({name:t,theme:this.theme,params:e,defaults:this.defaults,set:{layerNames:this.setLayerNames.bind(this)}})},getComponent(t="",e){const n={name:t,theme:this.theme,params:e,defaults:this.defaults,set:{layerNames:this.setLayerNames.bind(this)}};return He.getPresetC(n)},getDirective(t="",e){const n={name:t,theme:this.theme,params:e,defaults:this.defaults,set:{layerNames:this.setLayerNames.bind(this)}};return He.getPresetD(n)},getCustomPreset(t="",e,n,r){const o={name:t,preset:e,options:this.options,selector:n,params:r,defaults:this.defaults,set:{layerNames:this.setLayerNames.bind(this)}};return He.getPreset(o)},getLayerOrderCSS(t=""){return He.getLayerOrder(t,this.options,{names:this.getLayerNames()},this.defaults)},transformCSS(t="",e,n="style",r){return He.transformCSS(t,e,r,n,this.options,{layerNames:this.setLayerNames.bind(this)},this.defaults)},getCommonStyleSheet(t="",e,n={}){return He.getCommonStyleSheet({name:t,theme:this.theme,params:e,props:n,defaults:this.defaults,set:{layerNames:this.setLayerNames.bind(this)}})},getStyleSheet(t,e,n={}){return He.getStyleSheet({name:t,theme:this.theme,params:e,props:n,defaults:this.defaults,set:{layerNames:this.setLayerNames.bind(this)}})},onStyleMounted(t){this._loadingStyles.add(t)},onStyleUpdated(t){this._loadingStyles.add(t)},onStyleLoaded(t,{name:e}){this._loadingStyles.size&&(this._loadingStyles.delete(e),et.emit(`theme:${e}:load`,t),!this._loadingStyles.size&&et.emit("theme:load"))}},lt={_loadedStyleNames:new Set,getLoadedStyleNames:function(){return this._loadedStyleNames},isStyleNameLoaded:function(e){return this._loadedStyleNames.has(e)},setLoadedStyleName:function(e){this._loadedStyleNames.add(e)},deleteLoadedStyleName:function(e){this._loadedStyleNames.delete(e)},clearLoadedStyleNames:function(){this._loadedStyleNames.clear()}};function nn(t){"@babel/helpers - typeof";return nn=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},nn(t)}function ls(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 cs(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?ls(Object(n),!0).forEach(function(r){Cf(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):ls(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function Cf(t,e,n){return(e=Ef(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function Ef(t){var e=Tf(t,"string");return nn(e)=="symbol"?e:e+""}function Tf(t,e){if(nn(t)!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e||"default");if(nn(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function Af(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;l.getCurrentInstance()?l.onMounted(t):e?t():l.nextTick(t)}var Pf=0;function If(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=l.ref(!1),r=l.ref(t),o=l.ref(null),s=uf()?window.document:void 0,i=e.document,a=i===void 0?s:i,c=e.immediate,u=c===void 0?!0:c,d=e.manual,m=d===void 0?!1:d,g=e.name,_=g===void 0?"style_".concat(++Pf):g,v=e.id,T=v===void 0?void 0:v,w=e.media,B=w===void 0?void 0:w,C=e.nonce,A=C===void 0?void 0:C,j=e.first,X=j===void 0?!1:j,ne=e.onMounted,J=ne===void 0?void 0:ne,pe=e.onUpdated,se=pe===void 0?void 0:pe,U=e.onLoad,Ee=U===void 0?void 0:U,ve=e.props,De=ve===void 0?{}:ve,Me=function(){},ot=function(Ge){var te=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(a){var $e=cs(cs({},De),te),f=$e.name||_,h=$e.id||T,S=$e.nonce||A;o.value=a.querySelector('style[data-primevue-style-id="'.concat(f,'"]'))||a.getElementById(h)||a.createElement("style"),o.value.isConnected||(r.value=Ge||t,Bn(o.value,{type:"text/css",id:h,media:B,nonce:S}),X?a.head.prepend(o.value):a.head.appendChild(o.value),df(o.value,"data-primevue-style-id",f),Bn(o.value,$e),o.value.onload=function(P){return Ee==null?void 0:Ee(P,{name:f})},J==null||J(f)),!n.value&&(Me=l.watch(r,function(P){o.value.textContent=P,se==null||se(f)},{immediate:!0}),n.value=!0)}},Xe=function(){!a||!n.value||(Me(),cf(o.value)&&a.head.removeChild(o.value),n.value=!1)};return u&&!m&&Af(ot),{id:T,name:_,el:o,css:r,unload:Xe,load:ot,isLoaded:l.readonly(n)}}function rn(t){"@babel/helpers - typeof";return rn=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},rn(t)}function us(t,e){return $f(t)||Lf(t,e)||Of(t,e)||xf()}function xf(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
71
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Of(t,e){if(t){if(typeof t=="string")return ds(t,e);var n={}.toString.call(t).slice(8,-1);return n==="Object"&&t.constructor&&(n=t.constructor.name),n==="Map"||n==="Set"?Array.from(t):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?ds(t,e):void 0}}function ds(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n<e;n++)r[n]=t[n];return r}function Lf(t,e){var n=t==null?null:typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(n!=null){var r,o,s,i,a=[],c=!0,u=!1;try{if(s=(n=n.call(t)).next,e!==0)for(;!(c=(r=s.call(n)).done)&&(a.push(r.value),a.length!==e);c=!0);}catch(d){u=!0,o=d}finally{try{if(!c&&n.return!=null&&(i=n.return(),Object(i)!==i))return}finally{if(u)throw o}}return a}}function $f(t){if(Array.isArray(t))return t}function fs(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 br(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?fs(Object(n),!0).forEach(function(r){Rf(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):fs(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function Rf(t,e,n){return(e=Nf(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function Nf(t){var e=Bf(t,"string");return rn(e)=="symbol"?e:e+""}function Bf(t,e){if(rn(t)!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e||"default");if(rn(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}var Df=function(e){var n=e.dt;return`
|
|
72
72
|
* {
|
|
73
73
|
box-sizing: border-box;
|
|
74
74
|
}
|
|
@@ -208,8 +208,8 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
208
208
|
overflow: hidden;
|
|
209
209
|
padding-right: `.concat(n("scrollbar.width"),`;
|
|
210
210
|
}
|
|
211
|
-
`)},Uf={},Hf={},ge={name:"base",css:Mf,theme:Df,classes:Uf,inlineStyles:Hf,load:function(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:function(s){return s},o=r(Ie(e,{dt:
|
|
212
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Di(t,e){if(t){if(typeof t=="string")return ps(t,e);var n={}.toString.call(t).slice(8,-1);return n==="Object"&&t.constructor&&(n=t.constructor.name),n==="Map"||n==="Set"?Array.from(t):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?ps(t,e):void 0}}function ps(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n<e;n++)r[n]=t[n];return r}function Ff(t,e){var n=t==null?null:typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(n!=null){var r,o,s,i,a=[],c=!0,u=!1;try{if(s=(n=n.call(t)).next,e===0){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=s.call(n)).done)&&(a.push(r.value),a.length!==e);c=!0);}catch(d){u=!0,o=d}finally{try{if(!c&&n.return!=null&&(i=n.return(),Object(i)!==i))return}finally{if(u)throw o}}return a}}function Mi(t){if(Array.isArray(t))return t}function hs(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 K(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?hs(Object(n),!0).forEach(function(r){In(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):hs(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function In(t,e,n){return(e=zf(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function zf(t){var e=Kf(t,"string");return on(e)=="symbol"?e:e+""}function Kf(t,e){if(on(t)!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e||"default");if(on(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}var Gn={name:"BaseComponent",props:{pt:{type:Object,default:void 0},ptOptions:{type:Object,default:void 0},unstyled:{type:Boolean,default:void 0},dt:{type:Object,default:void 0}},inject:{$parentInstance:{default:void 0}},watch:{isUnstyled:{immediate:!0,handler:function(e){e||(this._loadCoreStyles(),this._themeChangeListener(this._loadCoreStyles))}},dt:{immediate:!0,handler:function(e){var n=this;e?(this._loadScopedThemeStyles(e),this._themeChangeListener(function(){return n._loadScopedThemeStyles(e)})):this._unloadScopedThemeStyles()}}},scopedStyleEl:void 0,rootEl:void 0,beforeCreate:function(){var e,n,r,o,s,i,a,c,u,d,m,g=(e=this.pt)===null||e===void 0?void 0:e._usept,_=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||_)===null||o===void 0||(o=o.hooks)===null||o===void 0||(s=o.onBeforeCreate)===null||s===void 0||s.call(o);var T=(i=this.$primevueConfig)===null||i===void 0||(i=i.pt)===null||i===void 0?void 0:i._usept,w=T?(a=this.$primevue)===null||a===void 0||(a=a.config)===null||a===void 0||(a=a.pt)===null||a===void 0?void 0:a.originalValue:void 0,B=T?(c=this.$primevue)===null||c===void 0||(c=c.config)===null||c===void 0||(c=c.pt)===null||c===void 0?void 0:c.value:(u=this.$primevue)===null||u===void 0||(u=u.config)===null||u===void 0?void 0:u.pt;(d=B||w)===null||d===void 0||(d=d[this.$.type.name])===null||d===void 0||(d=d.hooks)===null||d===void 0||(m=d.onBeforeCreate)===null||m===void 0||m.call(d)},created:function(){this._hook("onCreated")},beforeMount:function(){this._loadStyles(),this._hook("onBeforeMount")},mounted:function(){this.rootEl=je(this.$el,'[data-pc-name="'.concat(Fe(this.$.type.name),'"]')),this.rootEl&&(this.rootEl.setAttribute(this.$attrSelector,""),this.rootEl.$pc=K({name:this.$.type.name},this.$params)),this._hook("onMounted")},beforeUpdate:function(){this._hook("onBeforeUpdate")},updated:function(){this._hook("onUpdated")},beforeUnmount:function(){this._hook("onBeforeUnmount")},unmounted:function(){this._unloadScopedThemeStyles(),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 ro(e)?e.apply(void 0,r):l.mergeProps.apply(void 0,r)},_loadStyles:function(){var e=this,n=function(){lt.isStyleNameLoaded("base")||(ge.loadCSS(e.$styleOptions),e._loadGlobalStyles(),lt.setLoadedStyleName("base")),e._loadThemeStyles()};n(),this._themeChangeListener(n)},_loadCoreStyles:function(){var e,n;!lt.isStyleNameLoaded((e=this.$style)===null||e===void 0?void 0:e.name)&&(n=this.$style)!==null&&n!==void 0&&n.name&&(ms.loadCSS(this.$styleOptions),this.$options.style&&this.$style.loadCSS(this.$styleOptions),lt.setLoadedStyleName(this.$style.name))},_loadGlobalStyles:function(){var e=this._useGlobalPT(this._getOptionValue,"global.css",this.$params);G(e)&&ge.load(e,K({name:"global"},this.$styleOptions))},_loadThemeStyles:function(){var e,n;if(!this.isUnstyled){if(!ee.isStyleNameLoaded("common")){var r,o,s=((r=this.$style)===null||r===void 0||(o=r.getCommonTheme)===null||o===void 0?void 0:o.call(r))||{},i=s.primitive,a=s.semantic;ge.load(i==null?void 0:i.css,K({name:"primitive-variables"},this.$styleOptions)),ge.load(a==null?void 0:a.css,K({name:"semantic-variables"},this.$styleOptions)),ge.loadTheme(K({name:"global-style"},this.$styleOptions)),ee.setLoadedStyleName("common")}if(!ee.isStyleNameLoaded((e=this.$style)===null||e===void 0?void 0:e.name)&&(n=this.$style)!==null&&n!==void 0&&n.name){var c,u,d,m,g=((c=this.$style)===null||c===void 0||(u=c.getComponentTheme)===null||u===void 0?void 0:u.call(c))||{},_=g.css;(d=this.$style)===null||d===void 0||d.load(_,K({name:"".concat(this.$style.name,"-variables")},this.$styleOptions)),(m=this.$style)===null||m===void 0||m.loadTheme(K({name:"".concat(this.$style.name,"-style")},this.$styleOptions)),ee.setLoadedStyleName(this.$style.name)}if(!ee.isStyleNameLoaded("layer-order")){var v,T,w=(v=this.$style)===null||v===void 0||(T=v.getLayerOrderThemeCSS)===null||T===void 0?void 0:T.call(v);ge.load(w,K({name:"layer-order",first:!0},this.$styleOptions)),ee.setLoadedStyleName("layer-order")}}},_loadScopedThemeStyles:function(e){var n,r,o,s=((n=this.$style)===null||n===void 0||(r=n.getPresetTheme)===null||r===void 0?void 0:r.call(n,e,"[".concat(this.$attrSelector,"]")))||{},i=s.css,a=(o=this.$style)===null||o===void 0?void 0:o.load(i,K({name:"".concat(this.$attrSelector,"-").concat(this.$style.name)},this.$styleOptions));this.scopedStyleEl=a.el},_unloadScopedThemeStyles:function(){var e;(e=this.scopedStyleEl)===null||e===void 0||(e=e.value)===null||e===void 0||e.remove()},_themeChangeListener:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:function(){};lt.clearLoadedStyleNames(),et.on("theme:change",e)},_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]:{};return oo(e,n,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]:{},s=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!0,i=/./g.test(r)&&!!o[r.split(".")[0]],a=this._getPropValue("ptOptions")||((e=this.$primevueConfig)===null||e===void 0?void 0:e.ptOptions)||{},c=a.mergeSections,u=c===void 0?!0:c,d=a.mergeProps,m=d===void 0?!1:d,g=s?i?this._useGlobalPT(this._getPTClassValue,r,o):this._useDefaultPT(this._getPTClassValue,r,o):void 0,_=i?void 0:this._getPTSelf(n,this._getPTClassValue,r,K(K({},o),{},{global:g||{}})),v=this._getPTDatasets(r);return u||!u&&_?m?this._mergeProps(m,g,_,v):K(K(K({},g),_),v):K(K({},_),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 l.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-",s=r==="root"&&G((e=this.pt)===null||e===void 0?void 0:e["data-pc-section"]);return r!=="transition"&&K(K({},r==="root"&&K(In({},"".concat(o,"name"),Fe(s?(n=this.pt)===null||n===void 0?void 0:n["data-pc-section"]:this.$.type.name)),s&&In({},"".concat(o,"extend"),Fe(this.$.type.name)))),{},In({},"".concat(o,"section"),Fe(r)))},_getPTClassValue:function(){var e=this._getOptionValue.apply(this,arguments);return _e(e)||so(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,s=function(a){var c,u=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,d=o?o(a):a,m=Fe(r),g=Fe(n.$name);return(c=u?m!==g?d==null?void 0:d[m]:void 0:d==null?void 0:d[m])!==null&&c!==void 0?c:d};return e!=null&&e.hasOwnProperty("_usept")?{_usept:e._usept,originalValue:s(e.originalValue),value:s(e.value)}:s(e,!0)},_usePT:function(e,n,r,o){var s=function(T){return n(T,r,o)};if(e!=null&&e.hasOwnProperty("_usept")){var i,a=e._usept||((i=this.$primevueConfig)===null||i===void 0?void 0:i.ptOptions)||{},c=a.mergeSections,u=c===void 0?!0:c,d=a.mergeProps,m=d===void 0?!1:d,g=s(e.originalValue),_=s(e.value);return g===void 0&&_===void 0?void 0:_e(_)?_:_e(g)?g:u||!u&&_?m?this._mergeProps(m,g,_):K(K({},g),_):_}return s(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,K(K({},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 l.mergeProps(this.$_attrsWithoutPT,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,K({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,K(K({},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,K(K({},this.$params),r)),s=this._getOptionValue(ms.inlineStyles,e,K(K({},this.$params),r));return[s,o]}}},computed:{globalPT:function(){var e,n=this;return this._getPT((e=this.$primevueConfig)===null||e===void 0?void 0:e.pt,void 0,function(r){return Ie(r,{instance:n})})},defaultPT:function(){var e,n=this;return this._getPT((e=this.$primevueConfig)===null||e===void 0?void 0:e.pt,void 0,function(r){return n._getOptionValue(r,n.$name,K({},n.$params))||Ie(r,K({},n.$params))})},isUnstyled:function(){var e;return this.unstyled!==void 0?this.unstyled:(e=this.$primevueConfig)===null||e===void 0?void 0:e.unstyled},$theme:function(){var e;return(e=this.$primevueConfig)===null||e===void 0?void 0:e.theme},$style:function(){return K(K({classes:void 0,inlineStyles:void 0,load:function(){},loadCSS:function(){},loadTheme:function(){}},(this._getHostInstance(this)||{}).$style),this.$options.style)},$styleOptions:function(){var e;return{nonce:(e=this.$primevueConfig)===null||e===void 0||(e=e.csp)===null||e===void 0?void 0:e.nonce}},$primevueConfig:function(){var e;return(e=this.$primevue)===null||e===void 0?void 0:e.config},$name:function(){return this.$options.hostName||this.$.type.name},$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}}},$_attrsPT:function(){return Object.entries(this.$attrs||{}).filter(function(e){var n=An(e,1),r=n[0];return r==null?void 0:r.startsWith("pt:")}).reduce(function(e,n){var r=An(n,2),o=r[0],s=r[1],i=o.split(":"),a=Vf(i),c=a.slice(1);return c==null||c.reduce(function(u,d,m,g){return!u[d]&&(u[d]=m===g.length-1?s:{}),u[d]},e),e},{})},$_attrsWithoutPT:function(){return Object.entries(this.$attrs||{}).filter(function(e){var n=An(e,1),r=n[0];return!(r!=null&&r.startsWith("pt:"))}).reduce(function(e,n){var r=An(n,2),o=r[0],s=r[1];return e[o]=s,e},{})},$attrSelector:function(){return Bn("pc")}}},Wf=`
|
|
211
|
+
`)},Uf={},Hf={},ge={name:"base",css:Mf,theme:Df,classes:Uf,inlineStyles:Hf,load:function(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:function(s){return s},o=r(Ie(e,{dt:vr}));return o?If(Qt(o),br({name:this.name},n)):{}},loadCSS:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return this.load(this.css,e)},loadTheme:function(){var e=this,n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return this.load(this.theme,n,function(r){return ee.transformCSS(n.name||e.name,r)})},getCommonTheme:function(e){return ee.getCommon(this.name,e)},getComponentTheme:function(e){return ee.getComponent(this.name,e)},getDirectiveTheme:function(e){return ee.getDirective(this.name,e)},getPresetTheme:function(e,n,r){return ee.getCustomPreset(this.name,e,n,r)},getLayerOrderThemeCSS:function(){return ee.getLayerOrderCSS(this.name)},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=Ie(this.css,{dt:vr}),o=Qt("".concat(r).concat(e)),s=Object.entries(n).reduce(function(i,a){var c=us(a,2),u=c[0],d=c[1];return i.push("".concat(u,'="').concat(d,'"'))&&i},[]).join(" ");return'<style type="text/css" data-primevue-style-id="'.concat(this.name,'" ').concat(s,">").concat(o,"</style>")}return""},getCommonThemeStyleSheet:function(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return ee.getCommonStyleSheet(this.name,e,n)},getThemeStyleSheet:function(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=[ee.getStyleSheet(this.name,e,n)];if(this.theme){var o=this.name==="base"?"global-style":"".concat(this.name,"-style"),s=Ie(this.theme,{dt:vr}),i=Qt(ee.transformCSS(o,s)),a=Object.entries(n).reduce(function(c,u){var d=us(u,2),m=d[0],g=d[1];return c.push("".concat(m,'="').concat(g,'"'))&&c},[]).join(" ");r.push('<style type="text/css" data-primevue-style-id="'.concat(o,'" ').concat(a,">").concat(i,"</style>"))}return r.join("")},extend:function(e){return br(br({},this),{},{css:void 0,theme:void 0},e)}},ms=ge.extend({name:"common"});function on(t){"@babel/helpers - typeof";return on=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},on(t)}function Vf(t){return Mi(t)||jf(t)||Di(t)||Bi()}function jf(t){if(typeof Symbol<"u"&&t[Symbol.iterator]!=null||t["@@iterator"]!=null)return Array.from(t)}function An(t,e){return Mi(t)||Ff(t,e)||Di(t,e)||Bi()}function Bi(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
212
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Di(t,e){if(t){if(typeof t=="string")return ps(t,e);var n={}.toString.call(t).slice(8,-1);return n==="Object"&&t.constructor&&(n=t.constructor.name),n==="Map"||n==="Set"?Array.from(t):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?ps(t,e):void 0}}function ps(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n<e;n++)r[n]=t[n];return r}function Ff(t,e){var n=t==null?null:typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(n!=null){var r,o,s,i,a=[],c=!0,u=!1;try{if(s=(n=n.call(t)).next,e===0){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=s.call(n)).done)&&(a.push(r.value),a.length!==e);c=!0);}catch(d){u=!0,o=d}finally{try{if(!c&&n.return!=null&&(i=n.return(),Object(i)!==i))return}finally{if(u)throw o}}return a}}function Mi(t){if(Array.isArray(t))return t}function hs(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 K(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?hs(Object(n),!0).forEach(function(r){In(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):hs(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function In(t,e,n){return(e=zf(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function zf(t){var e=Kf(t,"string");return on(e)=="symbol"?e:e+""}function Kf(t,e){if(on(t)!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e||"default");if(on(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},dt:{type:Object,default:void 0}},inject:{$parentInstance:{default:void 0}},watch:{isUnstyled:{immediate:!0,handler:function(e){e||(this._loadCoreStyles(),this._themeChangeListener(this._loadCoreStyles))}},dt:{immediate:!0,handler:function(e){var n=this;e?(this._loadScopedThemeStyles(e),this._themeChangeListener(function(){return n._loadScopedThemeStyles(e)})):this._unloadScopedThemeStyles()}}},scopedStyleEl:void 0,rootEl:void 0,beforeCreate:function(){var e,n,r,o,s,i,a,c,u,d,m,g=(e=this.pt)===null||e===void 0?void 0:e._usept,_=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||_)===null||o===void 0||(o=o.hooks)===null||o===void 0||(s=o.onBeforeCreate)===null||s===void 0||s.call(o);var T=(i=this.$primevueConfig)===null||i===void 0||(i=i.pt)===null||i===void 0?void 0:i._usept,w=T?(a=this.$primevue)===null||a===void 0||(a=a.config)===null||a===void 0||(a=a.pt)===null||a===void 0?void 0:a.originalValue:void 0,B=T?(c=this.$primevue)===null||c===void 0||(c=c.config)===null||c===void 0||(c=c.pt)===null||c===void 0?void 0:c.value:(u=this.$primevue)===null||u===void 0||(u=u.config)===null||u===void 0?void 0:u.pt;(d=B||w)===null||d===void 0||(d=d[this.$.type.name])===null||d===void 0||(d=d.hooks)===null||d===void 0||(m=d.onBeforeCreate)===null||m===void 0||m.call(d)},created:function(){this._hook("onCreated")},beforeMount:function(){this._loadStyles(),this._hook("onBeforeMount")},mounted:function(){this.rootEl=je(this.$el,'[data-pc-name="'.concat(Fe(this.$.type.name),'"]')),this.rootEl&&(this.rootEl.setAttribute(this.$attrSelector,""),this.rootEl.$pc=K({name:this.$.type.name},this.$params)),this._hook("onMounted")},beforeUpdate:function(){this._hook("onBeforeUpdate")},updated:function(){this._hook("onUpdated")},beforeUnmount:function(){this._hook("onBeforeUnmount")},unmounted:function(){this._unloadScopedThemeStyles(),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 ro(e)?e.apply(void 0,r):l.mergeProps.apply(void 0,r)},_loadStyles:function(){var e=this,n=function(){lt.isStyleNameLoaded("base")||(ge.loadCSS(e.$styleOptions),e._loadGlobalStyles(),lt.setLoadedStyleName("base")),e._loadThemeStyles()};n(),this._themeChangeListener(n)},_loadCoreStyles:function(){var e,n;!lt.isStyleNameLoaded((e=this.$style)===null||e===void 0?void 0:e.name)&&(n=this.$style)!==null&&n!==void 0&&n.name&&(ms.loadCSS(this.$styleOptions),this.$options.style&&this.$style.loadCSS(this.$styleOptions),lt.setLoadedStyleName(this.$style.name))},_loadGlobalStyles:function(){var e=this._useGlobalPT(this._getOptionValue,"global.css",this.$params);G(e)&&ge.load(e,K({name:"global"},this.$styleOptions))},_loadThemeStyles:function(){var e,n;if(!this.isUnstyled){if(!ee.isStyleNameLoaded("common")){var r,o,s=((r=this.$style)===null||r===void 0||(o=r.getCommonTheme)===null||o===void 0?void 0:o.call(r))||{},i=s.primitive,a=s.semantic;ge.load(i==null?void 0:i.css,K({name:"primitive-variables"},this.$styleOptions)),ge.load(a==null?void 0:a.css,K({name:"semantic-variables"},this.$styleOptions)),ge.loadTheme(K({name:"global-style"},this.$styleOptions)),ee.setLoadedStyleName("common")}if(!ee.isStyleNameLoaded((e=this.$style)===null||e===void 0?void 0:e.name)&&(n=this.$style)!==null&&n!==void 0&&n.name){var c,u,d,m,g=((c=this.$style)===null||c===void 0||(u=c.getComponentTheme)===null||u===void 0?void 0:u.call(c))||{},_=g.css;(d=this.$style)===null||d===void 0||d.load(_,K({name:"".concat(this.$style.name,"-variables")},this.$styleOptions)),(m=this.$style)===null||m===void 0||m.loadTheme(K({name:"".concat(this.$style.name,"-style")},this.$styleOptions)),ee.setLoadedStyleName(this.$style.name)}if(!ee.isStyleNameLoaded("layer-order")){var v,T,w=(v=this.$style)===null||v===void 0||(T=v.getLayerOrderThemeCSS)===null||T===void 0?void 0:T.call(v);ge.load(w,K({name:"layer-order",first:!0},this.$styleOptions)),ee.setLoadedStyleName("layer-order")}}},_loadScopedThemeStyles:function(e){var n,r,o,s=((n=this.$style)===null||n===void 0||(r=n.getPresetTheme)===null||r===void 0?void 0:r.call(n,e,"[".concat(this.$attrSelector,"]")))||{},i=s.css,a=(o=this.$style)===null||o===void 0?void 0:o.load(i,K({name:"".concat(this.$attrSelector,"-").concat(this.$style.name)},this.$styleOptions));this.scopedStyleEl=a.el},_unloadScopedThemeStyles:function(){var e;(e=this.scopedStyleEl)===null||e===void 0||(e=e.value)===null||e===void 0||e.remove()},_themeChangeListener:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:function(){};lt.clearLoadedStyleNames(),et.on("theme:change",e)},_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]:{};return oo(e,n,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]:{},s=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!0,i=/./g.test(r)&&!!o[r.split(".")[0]],a=this._getPropValue("ptOptions")||((e=this.$primevueConfig)===null||e===void 0?void 0:e.ptOptions)||{},c=a.mergeSections,u=c===void 0?!0:c,d=a.mergeProps,m=d===void 0?!1:d,g=s?i?this._useGlobalPT(this._getPTClassValue,r,o):this._useDefaultPT(this._getPTClassValue,r,o):void 0,_=i?void 0:this._getPTSelf(n,this._getPTClassValue,r,K(K({},o),{},{global:g||{}})),v=this._getPTDatasets(r);return u||!u&&_?m?this._mergeProps(m,g,_,v):K(K(K({},g),_),v):K(K({},_),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 l.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-",s=r==="root"&&G((e=this.pt)===null||e===void 0?void 0:e["data-pc-section"]);return r!=="transition"&&K(K({},r==="root"&&K(In({},"".concat(o,"name"),Fe(s?(n=this.pt)===null||n===void 0?void 0:n["data-pc-section"]:this.$.type.name)),s&&In({},"".concat(o,"extend"),Fe(this.$.type.name)))),{},In({},"".concat(o,"section"),Fe(r)))},_getPTClassValue:function(){var e=this._getOptionValue.apply(this,arguments);return _e(e)||so(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,s=function(a){var c,u=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,d=o?o(a):a,m=Fe(r),g=Fe(n.$name);return(c=u?m!==g?d==null?void 0:d[m]:void 0:d==null?void 0:d[m])!==null&&c!==void 0?c:d};return e!=null&&e.hasOwnProperty("_usept")?{_usept:e._usept,originalValue:s(e.originalValue),value:s(e.value)}:s(e,!0)},_usePT:function(e,n,r,o){var s=function(T){return n(T,r,o)};if(e!=null&&e.hasOwnProperty("_usept")){var i,a=e._usept||((i=this.$primevueConfig)===null||i===void 0?void 0:i.ptOptions)||{},c=a.mergeSections,u=c===void 0?!0:c,d=a.mergeProps,m=d===void 0?!1:d,g=s(e.originalValue),_=s(e.value);return g===void 0&&_===void 0?void 0:_e(_)?_:_e(g)?g:u||!u&&_?m?this._mergeProps(m,g,_):K(K({},g),_):_}return s(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,K(K({},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 l.mergeProps(this.$_attrsWithoutPT,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,K({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,K(K({},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,K(K({},this.$params),r)),s=this._getOptionValue(ms.inlineStyles,e,K(K({},this.$params),r));return[s,o]}}},computed:{globalPT:function(){var e,n=this;return this._getPT((e=this.$primevueConfig)===null||e===void 0?void 0:e.pt,void 0,function(r){return Ie(r,{instance:n})})},defaultPT:function(){var e,n=this;return this._getPT((e=this.$primevueConfig)===null||e===void 0?void 0:e.pt,void 0,function(r){return n._getOptionValue(r,n.$name,K({},n.$params))||Ie(r,K({},n.$params))})},isUnstyled:function(){var e;return this.unstyled!==void 0?this.unstyled:(e=this.$primevueConfig)===null||e===void 0?void 0:e.unstyled},$theme:function(){var e;return(e=this.$primevueConfig)===null||e===void 0?void 0:e.theme},$style:function(){return K(K({classes:void 0,inlineStyles:void 0,load:function(){},loadCSS:function(){},loadTheme:function(){}},(this._getHostInstance(this)||{}).$style),this.$options.style)},$styleOptions:function(){var e;return{nonce:(e=this.$primevueConfig)===null||e===void 0||(e=e.csp)===null||e===void 0?void 0:e.nonce}},$primevueConfig:function(){var e;return(e=this.$primevue)===null||e===void 0?void 0:e.config},$name:function(){return this.$options.hostName||this.$.type.name},$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}}},$_attrsPT:function(){return Object.entries(this.$attrs||{}).filter(function(e){var n=An(e,1),r=n[0];return r==null?void 0:r.startsWith("pt:")}).reduce(function(e,n){var r=An(n,2),o=r[0],s=r[1],i=o.split(":"),a=Vf(i),c=a.slice(1);return c==null||c.reduce(function(u,d,m,g){return!u[d]&&(u[d]=m===g.length-1?s:{}),u[d]},e),e},{})},$_attrsWithoutPT:function(){return Object.entries(this.$attrs||{}).filter(function(e){var n=An(e,1),r=n[0];return!(r!=null&&r.startsWith("pt:"))}).reduce(function(e,n){var r=An(n,2),o=r[0],s=r[1];return e[o]=s,e},{})},$attrSelector:function(){return Dn("pc")}}},Wf=`
|
|
213
213
|
.p-icon {
|
|
214
214
|
display: inline-block;
|
|
215
215
|
vertical-align: baseline;
|
|
@@ -241,7 +241,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
241
241
|
transform: rotate(359deg);
|
|
242
242
|
}
|
|
243
243
|
}
|
|
244
|
-
`,qf=ge.extend({name:"baseicon",css:Wf});function sn(t){"@babel/helpers - typeof";return sn=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},sn(t)}function gs(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 ys(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?gs(Object(n),!0).forEach(function(r){Gf(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):gs(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function Gf(t,e,n){return(e=Yf(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function Yf(t){var e=Jf(t,"string");return sn(e)=="symbol"?e:e+""}function Jf(t,e){if(sn(t)!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e||"default");if(sn(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}var Ui={name:"BaseIcon",extends:
|
|
244
|
+
`,qf=ge.extend({name:"baseicon",css:Wf});function sn(t){"@babel/helpers - typeof";return sn=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},sn(t)}function gs(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 ys(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?gs(Object(n),!0).forEach(function(r){Gf(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):gs(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function Gf(t,e,n){return(e=Yf(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function Yf(t){var e=Jf(t,"string");return sn(e)=="symbol"?e:e+""}function Jf(t,e){if(sn(t)!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e||"default");if(sn(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}var Ui={name:"BaseIcon",extends:Yn,props:{label:{type:String,default:void 0},spin:{type:Boolean,default:!1}},style:qf,provide:function(){return{$pcIcon:this,$parentInstance:this}},methods:{pti:function(){var e=yt(this.label);return ys(ys({},!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})}}},io={name:"ChevronDownIcon",extends:Ui},Xf=l.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),Zf=[Xf];function Qf(t,e,n,r,o,s){return l.openBlock(),l.createElementBlock("svg",l.mergeProps({width:"14",height:"14",viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg"},t.pti()),Zf,16)}io.render=Qf;var ao={name:"ChevronRightIcon",extends:Ui},em=l.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),tm=[em];function nm(t,e,n,r,o,s){return l.openBlock(),l.createElementBlock("svg",l.mergeProps({width:"14",height:"14",viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg"},t.pti()),tm,16)}ao.render=nm;var rm=function(e){var n=e.dt;return`
|
|
245
245
|
.p-panelmenu {
|
|
246
246
|
display: flex;
|
|
247
247
|
flex-direction: column;
|
|
@@ -385,7 +385,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
385
385
|
color: `).concat(n("panelmenu.submenu.icon.focus.color"),`;
|
|
386
386
|
}
|
|
387
387
|
`)},om={root:"p-panelmenu p-component",panel:"p-panelmenu-panel",header:function(e){var n=e.instance,r=e.item;return["p-panelmenu-header",{"p-panelmenu-header-active":n.isItemActive(r)&&!!r.items,"p-disabled":n.isItemDisabled(r)}]},headerContent:"p-panelmenu-header-content",headerLink:"p-panelmenu-header-link",headerIcon:"p-panelmenu-header-icon",headerLabel:"p-panelmenu-header-label",contentContainer:"p-panelmenu-content-container",content:"p-panelmenu-content",rootList:"p-panelmenu-root-list",item:function(e){var n=e.instance,r=e.processedItem;return["p-panelmenu-item",{"p-focus":n.isItemFocused(r),"p-disabled":n.isItemDisabled(r)}]},itemContent:"p-panelmenu-item-content",itemLink:"p-panelmenu-item-link",itemIcon:"p-panelmenu-item-icon",itemLabel:"p-panelmenu-item-label",submenuIcon:"p-panelmenu-submenu-icon",submenu:"p-panelmenu-submenu",separator:"p-menuitem-separator"},sm=ge.extend({name:"panelmenu",theme:rm,classes:om}),vs=Ii();function an(t){"@babel/helpers - typeof";return an=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},an(t)}function bs(t,e){return cm(t)||lm(t,e)||am(t,e)||im()}function im(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
388
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function am(t,e){if(t){if(typeof t=="string")return ws(t,e);var n={}.toString.call(t).slice(8,-1);return n==="Object"&&t.constructor&&(n=t.constructor.name),n==="Map"||n==="Set"?Array.from(t):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?ws(t,e):void 0}}function ws(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n<e;n++)r[n]=t[n];return r}function lm(t,e){var n=t==null?null:typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(n!=null){var r,o,s,i,a=[],c=!0,u=!1;try{if(s=(n=n.call(t)).next,e!==0)for(;!(c=(r=s.call(n)).done)&&(a.push(r.value),a.length!==e);c=!0);}catch(d){u=!0,o=d}finally{try{if(!c&&n.return!=null&&(i=n.return(),Object(i)!==i))return}finally{if(u)throw o}}return a}}function cm(t){if(Array.isArray(t))return t}function Ss(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 q(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?Ss(Object(n),!0).forEach(function(r){Lr(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Ss(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function Lr(t,e,n){return(e=um(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function um(t){var e=dm(t,"string");return an(e)=="symbol"?e:e+""}function dm(t,e){if(an(t)!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e||"default");if(an(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}var F={_getMeta:function(){return[dt(arguments.length<=0?void 0:arguments[0])||arguments.length<=0?void 0:arguments[0],Ie(dt(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,s;return(r=(e==null||(o=e.instance)===null||o===void 0?void 0:o.$primevue)||(n==null||(s=n.ctx)===null||s===void 0||(s=s.appContext)===null||s===void 0||(s=s.config)===null||s===void 0||(s=s.globalProperties)===null||s===void 0?void 0:s.$primevue))===null||r===void 0?void 0:r.config},_getOptionValue:oo,_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]:{},s=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"",i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},a=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!0,c=function(){var C=F._getOptionValue.apply(F,arguments);return _e(C)||so(C)?{class:C}:C},u=((e=r.binding)===null||e===void 0||(e=e.value)===null||e===void 0?void 0:e.ptOptions)||((n=r.$primevueConfig)===null||n===void 0?void 0:n.ptOptions)||{},d=u.mergeSections,m=d===void 0?!0:d,g=u.mergeProps,_=g===void 0?!1:g,v=a?F._useDefaultPT(r,r.defaultPT(),c,s,i):void 0,T=F._usePT(r,F._getPT(o,r.$name),c,s,q(q({},i),{},{global:v||{}})),w=F._getPTDatasets(r,s);return m||!m&&T?_?F._mergeProps(r,_,v,T,w):q(q(q({},v),T),w):q(q({},T),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 q(q({},n==="root"&&Lr({},"".concat(r,"name"),Fe(e.$name))),{},Lr({},"".concat(r,"section"),Fe(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(i){var a,c=r?r(i):i,u=Fe(n);return(a=c==null?void 0:c[u])!==null&&a!==void 0?a:c};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,s=arguments.length>4?arguments[4]:void 0,i=function(w){return r(w,o,s)};if(n!=null&&n.hasOwnProperty("_usept")){var a,c=n._usept||((a=e.$primevueConfig)===null||a===void 0?void 0:a.ptOptions)||{},u=c.mergeSections,d=u===void 0?!0:u,m=c.mergeProps,g=m===void 0?!1:m,_=i(n.originalValue),v=i(n.value);return _===void 0&&v===void 0?void 0:_e(v)?v:_e(_)?_:d||!d&&v?g?F._mergeProps(e,g,_,v):q(q({},_),v):v}return i(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,s=arguments.length>4?arguments[4]:void 0;return F._usePT(e,n,r,o,s)},_loadStyles:function(e,n,r){var o,s=F._getConfig(n,r),i={nonce:s==null||(o=s.csp)===null||o===void 0?void 0:o.nonce};F._loadCoreStyles(e.$instance,i),F._loadThemeStyles(e.$instance,i),F._loadScopedThemeStyles(e.$instance,i),F._themeChangeListener(function(){return F._loadThemeStyles(e.$instance,i)})},_loadCoreStyles:function(){var e,n,r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},o=arguments.length>1?arguments[1]:void 0;if(!lt.isStyleNameLoaded((e=r.$style)===null||e===void 0?void 0:e.name)&&(n=r.$style)!==null&&n!==void 0&&n.name){var s;ge.loadCSS(o),r.isUnstyled()&&((s=r.$style)===null||s===void 0||s.loadCSS(o)),lt.setLoadedStyleName(r.$style.name)}},_loadThemeStyles:function(){var e,n,r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},o=arguments.length>1?arguments[1]:void 0;if(!(r!=null&&r.isUnstyled())){if(!ee.isStyleNameLoaded("common")){var s,i,a=((s=r.$style)===null||s===void 0||(i=s.getCommonTheme)===null||i===void 0?void 0:i.call(s))||{},c=a.primitive,u=a.semantic;ge.load(c==null?void 0:c.css,q({name:"primitive-variables"},o)),ge.load(u==null?void 0:u.css,q({name:"semantic-variables"},o)),ge.loadTheme(q({name:"global-style"},o)),ee.setLoadedStyleName("common")}if(!ee.isStyleNameLoaded((e=r.$style)===null||e===void 0?void 0:e.name)&&(n=r.$style)!==null&&n!==void 0&&n.name){var d,m,g,_,v=((d=r.$style)===null||d===void 0||(m=d.getDirectiveTheme)===null||m===void 0?void 0:m.call(d))||{},T=v.css;(g=r.$style)===null||g===void 0||g.load(T,q({name:"".concat(r.$style.name,"-variables")},o)),(_=r.$style)===null||_===void 0||_.loadTheme(q({name:"".concat(r.$style.name,"-style")},o)),ee.setLoadedStyleName(r.$style.name)}if(!ee.isStyleNameLoaded("layer-order")){var w,B,C=(w=r.$style)===null||w===void 0||(B=w.getLayerOrderThemeCSS)===null||B===void 0?void 0:B.call(w);ge.load(C,q({name:"layer-order",first:!0},o)),ee.setLoadedStyleName("layer-order")}}},_loadScopedThemeStyles:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0,r=e.preset();if(r&&e.$attrSelector){var o,s,i,a=((o=e.$style)===null||o===void 0||(s=o.getPresetTheme)===null||s===void 0?void 0:s.call(o,r,"[".concat(e.$attrSelector,"]")))||{},c=a.css,u=(i=e.$style)===null||i===void 0?void 0:i.load(c,q({name:"".concat(e.$attrSelector,"-").concat(e.$style.name)},n));e.scopedStyleEl=u.el}},_themeChangeListener:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:function(){};lt.clearLoadedStyleNames(),et.on("theme:change",e)},_hook:function(e,n,r,o,s,i){var a,c,u="on".concat(mf(n)),d=F._getConfig(o,s),m=r==null?void 0:r.$instance,g=F._usePT(m,F._getPT(o==null||(a=o.value)===null||a===void 0?void 0:a.pt,e),F._getOptionValue,"hooks.".concat(u)),_=F._useDefaultPT(m,d==null||(c=d.pt)===null||c===void 0||(c=c.directives)===null||c===void 0?void 0:c[e],F._getOptionValue,"hooks.".concat(u)),v={el:r,binding:o,vnode:s,prevVnode:i};g==null||g(m,v),_==null||_(m,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 ro(e)?e.apply(void 0,r):l.mergeProps.apply(void 0,r)},_extend:function(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=function(i,a,c,u,d){var m,g,_;a._$instances=a._$instances||{};var v=F._getConfig(c,u),T=a._$instances[e]||{},w=yt(T)?q(q({},n),n==null?void 0:n.methods):{};a._$instances[e]=q(q({},T),{},{$name:e,$host:a,$binding:c,$modifiers:c==null?void 0:c.modifiers,$value:c==null?void 0:c.value,$el:T.$el||a||void 0,$style:q({classes:void 0,inlineStyles:void 0,load:function(){},loadCSS:function(){},loadTheme:function(){}},n==null?void 0:n.style),$primevueConfig:v,$attrSelector:a.$attrSelector,defaultPT:function(){return F._getPT(v==null?void 0:v.pt,void 0,function(C){var A;return C==null||(A=C.directives)===null||A===void 0?void 0:A[e]})},isUnstyled:function(){var C,A;return((C=a.$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?(A=a.$instance)===null||A===void 0||(A=A.$binding)===null||A===void 0||(A=A.value)===null||A===void 0?void 0:A.unstyled:v==null?void 0:v.unstyled},theme:function(){var C;return(C=a.$instance)===null||C===void 0||(C=C.$primevueConfig)===null||C===void 0?void 0:C.theme},preset:function(){var C;return(C=a.$instance)===null||C===void 0||(C=C.$binding)===null||C===void 0||(C=C.value)===null||C===void 0?void 0:C.dt},ptm:function(){var C,A=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",j=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return F._getPTValue(a.$instance,(C=a.$instance)===null||C===void 0||(C=C.$binding)===null||C===void 0||(C=C.value)===null||C===void 0?void 0:C.pt,A,q({},j))},ptmo:function(){var C=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},A=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"",j=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return F._getPTValue(a.$instance,C,A,j,!1)},cx:function(){var C,A,j=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",X=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return(C=a.$instance)!==null&&C!==void 0&&C.isUnstyled()?void 0:F._getOptionValue((A=a.$instance)===null||A===void 0||(A=A.$style)===null||A===void 0?void 0:A.classes,j,q({},X))},sx:function(){var C,A=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",j=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0,X=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return j?F._getOptionValue((C=a.$instance)===null||C===void 0||(C=C.$style)===null||C===void 0?void 0:C.inlineStyles,A,q({},X)):void 0}},w),a.$instance=a._$instances[e],(m=(g=a.$instance)[i])===null||m===void 0||m.call(g,a,c,u,d),a["$".concat(e)]=a.$instance,F._hook(e,i,a,c,u,d),a.$pd||(a.$pd={}),a.$pd[e]=q(q({},(_=a.$pd)===null||_===void 0?void 0:_[e]),{},{name:e,instance:a.$instance})},o=function(i){var a,c,u,d,m,g=(a=i.$instance)===null||a===void 0?void 0:a.watch;g==null||(c=g.config)===null||c===void 0||c.call(i.$instance,(u=i.$instance)===null||u===void 0?void 0:u.$primevueConfig),vs.on("config:change",function(_){var v,T=_.newValue,w=_.oldValue;return g==null||(v=g.config)===null||v===void 0?void 0:v.call(i.$instance,T,w)}),g==null||(d=g["config.ripple"])===null||d===void 0||d.call(i.$instance,(m=i.$instance)===null||m===void 0||(m=m.$primevueConfig)===null||m===void 0?void 0:m.ripple),vs.on("config:ripple:change",function(_){var v,T=_.newValue,w=_.oldValue;return g==null||(v=g["config.ripple"])===null||v===void 0?void 0:v.call(i.$instance,T,w)})};return{created:function(i,a,c,u){r("created",i,a,c,u)},beforeMount:function(i,a,c,u){i.$attrSelector=Bn("pd"),F._loadStyles(i,a,c),r("beforeMount",i,a,c,u),o(i)},mounted:function(i,a,c,u){F._loadStyles(i,a,c),r("mounted",i,a,c,u)},beforeUpdate:function(i,a,c,u){r("beforeUpdate",i,a,c,u)},updated:function(i,a,c,u){F._loadStyles(i,a,c),r("updated",i,a,c,u)},beforeUnmount:function(i,a,c,u){r("beforeUnmount",i,a,c,u)},unmounted:function(i,a,c,u){var d;(d=i.$instance)===null||d===void 0||(d=d.scopedStyleEl)===null||d===void 0||(d=d.value)===null||d===void 0||d.remove(),r("unmounted",i,a,c,u)}}},extend:function(){var e=F._getMeta.apply(F,arguments),n=bs(e,2),r=n[0],o=n[1];return q({extend:function(){var i=F._getMeta.apply(F,arguments),a=bs(i,2),c=a[0],u=a[1];return F.extend(c,q(q(q({},o),o==null?void 0:o.methods),u))}},F._extend(r,o))}},fm=function(e){var n=e.dt;return`
|
|
388
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function am(t,e){if(t){if(typeof t=="string")return ws(t,e);var n={}.toString.call(t).slice(8,-1);return n==="Object"&&t.constructor&&(n=t.constructor.name),n==="Map"||n==="Set"?Array.from(t):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?ws(t,e):void 0}}function ws(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n<e;n++)r[n]=t[n];return r}function lm(t,e){var n=t==null?null:typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(n!=null){var r,o,s,i,a=[],c=!0,u=!1;try{if(s=(n=n.call(t)).next,e!==0)for(;!(c=(r=s.call(n)).done)&&(a.push(r.value),a.length!==e);c=!0);}catch(d){u=!0,o=d}finally{try{if(!c&&n.return!=null&&(i=n.return(),Object(i)!==i))return}finally{if(u)throw o}}return a}}function cm(t){if(Array.isArray(t))return t}function Ss(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 q(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?Ss(Object(n),!0).forEach(function(r){$r(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Ss(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function $r(t,e,n){return(e=um(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function um(t){var e=dm(t,"string");return an(e)=="symbol"?e:e+""}function dm(t,e){if(an(t)!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e||"default");if(an(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}var F={_getMeta:function(){return[dt(arguments.length<=0?void 0:arguments[0])||arguments.length<=0?void 0:arguments[0],Ie(dt(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,s;return(r=(e==null||(o=e.instance)===null||o===void 0?void 0:o.$primevue)||(n==null||(s=n.ctx)===null||s===void 0||(s=s.appContext)===null||s===void 0||(s=s.config)===null||s===void 0||(s=s.globalProperties)===null||s===void 0?void 0:s.$primevue))===null||r===void 0?void 0:r.config},_getOptionValue:oo,_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]:{},s=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"",i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},a=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!0,c=function(){var C=F._getOptionValue.apply(F,arguments);return _e(C)||so(C)?{class:C}:C},u=((e=r.binding)===null||e===void 0||(e=e.value)===null||e===void 0?void 0:e.ptOptions)||((n=r.$primevueConfig)===null||n===void 0?void 0:n.ptOptions)||{},d=u.mergeSections,m=d===void 0?!0:d,g=u.mergeProps,_=g===void 0?!1:g,v=a?F._useDefaultPT(r,r.defaultPT(),c,s,i):void 0,T=F._usePT(r,F._getPT(o,r.$name),c,s,q(q({},i),{},{global:v||{}})),w=F._getPTDatasets(r,s);return m||!m&&T?_?F._mergeProps(r,_,v,T,w):q(q(q({},v),T),w):q(q({},T),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 q(q({},n==="root"&&$r({},"".concat(r,"name"),Fe(e.$name))),{},$r({},"".concat(r,"section"),Fe(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(i){var a,c=r?r(i):i,u=Fe(n);return(a=c==null?void 0:c[u])!==null&&a!==void 0?a:c};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,s=arguments.length>4?arguments[4]:void 0,i=function(w){return r(w,o,s)};if(n!=null&&n.hasOwnProperty("_usept")){var a,c=n._usept||((a=e.$primevueConfig)===null||a===void 0?void 0:a.ptOptions)||{},u=c.mergeSections,d=u===void 0?!0:u,m=c.mergeProps,g=m===void 0?!1:m,_=i(n.originalValue),v=i(n.value);return _===void 0&&v===void 0?void 0:_e(v)?v:_e(_)?_:d||!d&&v?g?F._mergeProps(e,g,_,v):q(q({},_),v):v}return i(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,s=arguments.length>4?arguments[4]:void 0;return F._usePT(e,n,r,o,s)},_loadStyles:function(e,n,r){var o,s=F._getConfig(n,r),i={nonce:s==null||(o=s.csp)===null||o===void 0?void 0:o.nonce};F._loadCoreStyles(e.$instance,i),F._loadThemeStyles(e.$instance,i),F._loadScopedThemeStyles(e.$instance,i),F._themeChangeListener(function(){return F._loadThemeStyles(e.$instance,i)})},_loadCoreStyles:function(){var e,n,r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},o=arguments.length>1?arguments[1]:void 0;if(!lt.isStyleNameLoaded((e=r.$style)===null||e===void 0?void 0:e.name)&&(n=r.$style)!==null&&n!==void 0&&n.name){var s;ge.loadCSS(o),r.isUnstyled()&&((s=r.$style)===null||s===void 0||s.loadCSS(o)),lt.setLoadedStyleName(r.$style.name)}},_loadThemeStyles:function(){var e,n,r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},o=arguments.length>1?arguments[1]:void 0;if(!(r!=null&&r.isUnstyled())){if(!ee.isStyleNameLoaded("common")){var s,i,a=((s=r.$style)===null||s===void 0||(i=s.getCommonTheme)===null||i===void 0?void 0:i.call(s))||{},c=a.primitive,u=a.semantic;ge.load(c==null?void 0:c.css,q({name:"primitive-variables"},o)),ge.load(u==null?void 0:u.css,q({name:"semantic-variables"},o)),ge.loadTheme(q({name:"global-style"},o)),ee.setLoadedStyleName("common")}if(!ee.isStyleNameLoaded((e=r.$style)===null||e===void 0?void 0:e.name)&&(n=r.$style)!==null&&n!==void 0&&n.name){var d,m,g,_,v=((d=r.$style)===null||d===void 0||(m=d.getDirectiveTheme)===null||m===void 0?void 0:m.call(d))||{},T=v.css;(g=r.$style)===null||g===void 0||g.load(T,q({name:"".concat(r.$style.name,"-variables")},o)),(_=r.$style)===null||_===void 0||_.loadTheme(q({name:"".concat(r.$style.name,"-style")},o)),ee.setLoadedStyleName(r.$style.name)}if(!ee.isStyleNameLoaded("layer-order")){var w,B,C=(w=r.$style)===null||w===void 0||(B=w.getLayerOrderThemeCSS)===null||B===void 0?void 0:B.call(w);ge.load(C,q({name:"layer-order",first:!0},o)),ee.setLoadedStyleName("layer-order")}}},_loadScopedThemeStyles:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0,r=e.preset();if(r&&e.$attrSelector){var o,s,i,a=((o=e.$style)===null||o===void 0||(s=o.getPresetTheme)===null||s===void 0?void 0:s.call(o,r,"[".concat(e.$attrSelector,"]")))||{},c=a.css,u=(i=e.$style)===null||i===void 0?void 0:i.load(c,q({name:"".concat(e.$attrSelector,"-").concat(e.$style.name)},n));e.scopedStyleEl=u.el}},_themeChangeListener:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:function(){};lt.clearLoadedStyleNames(),et.on("theme:change",e)},_hook:function(e,n,r,o,s,i){var a,c,u="on".concat(mf(n)),d=F._getConfig(o,s),m=r==null?void 0:r.$instance,g=F._usePT(m,F._getPT(o==null||(a=o.value)===null||a===void 0?void 0:a.pt,e),F._getOptionValue,"hooks.".concat(u)),_=F._useDefaultPT(m,d==null||(c=d.pt)===null||c===void 0||(c=c.directives)===null||c===void 0?void 0:c[e],F._getOptionValue,"hooks.".concat(u)),v={el:r,binding:o,vnode:s,prevVnode:i};g==null||g(m,v),_==null||_(m,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 ro(e)?e.apply(void 0,r):l.mergeProps.apply(void 0,r)},_extend:function(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=function(i,a,c,u,d){var m,g,_;a._$instances=a._$instances||{};var v=F._getConfig(c,u),T=a._$instances[e]||{},w=yt(T)?q(q({},n),n==null?void 0:n.methods):{};a._$instances[e]=q(q({},T),{},{$name:e,$host:a,$binding:c,$modifiers:c==null?void 0:c.modifiers,$value:c==null?void 0:c.value,$el:T.$el||a||void 0,$style:q({classes:void 0,inlineStyles:void 0,load:function(){},loadCSS:function(){},loadTheme:function(){}},n==null?void 0:n.style),$primevueConfig:v,$attrSelector:a.$attrSelector,defaultPT:function(){return F._getPT(v==null?void 0:v.pt,void 0,function(C){var A;return C==null||(A=C.directives)===null||A===void 0?void 0:A[e]})},isUnstyled:function(){var C,A;return((C=a.$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?(A=a.$instance)===null||A===void 0||(A=A.$binding)===null||A===void 0||(A=A.value)===null||A===void 0?void 0:A.unstyled:v==null?void 0:v.unstyled},theme:function(){var C;return(C=a.$instance)===null||C===void 0||(C=C.$primevueConfig)===null||C===void 0?void 0:C.theme},preset:function(){var C;return(C=a.$instance)===null||C===void 0||(C=C.$binding)===null||C===void 0||(C=C.value)===null||C===void 0?void 0:C.dt},ptm:function(){var C,A=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",j=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return F._getPTValue(a.$instance,(C=a.$instance)===null||C===void 0||(C=C.$binding)===null||C===void 0||(C=C.value)===null||C===void 0?void 0:C.pt,A,q({},j))},ptmo:function(){var C=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},A=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"",j=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return F._getPTValue(a.$instance,C,A,j,!1)},cx:function(){var C,A,j=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",X=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return(C=a.$instance)!==null&&C!==void 0&&C.isUnstyled()?void 0:F._getOptionValue((A=a.$instance)===null||A===void 0||(A=A.$style)===null||A===void 0?void 0:A.classes,j,q({},X))},sx:function(){var C,A=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",j=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0,X=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return j?F._getOptionValue((C=a.$instance)===null||C===void 0||(C=C.$style)===null||C===void 0?void 0:C.inlineStyles,A,q({},X)):void 0}},w),a.$instance=a._$instances[e],(m=(g=a.$instance)[i])===null||m===void 0||m.call(g,a,c,u,d),a["$".concat(e)]=a.$instance,F._hook(e,i,a,c,u,d),a.$pd||(a.$pd={}),a.$pd[e]=q(q({},(_=a.$pd)===null||_===void 0?void 0:_[e]),{},{name:e,instance:a.$instance})},o=function(i){var a,c,u,d,m,g=(a=i.$instance)===null||a===void 0?void 0:a.watch;g==null||(c=g.config)===null||c===void 0||c.call(i.$instance,(u=i.$instance)===null||u===void 0?void 0:u.$primevueConfig),vs.on("config:change",function(_){var v,T=_.newValue,w=_.oldValue;return g==null||(v=g.config)===null||v===void 0?void 0:v.call(i.$instance,T,w)}),g==null||(d=g["config.ripple"])===null||d===void 0||d.call(i.$instance,(m=i.$instance)===null||m===void 0||(m=m.$primevueConfig)===null||m===void 0?void 0:m.ripple),vs.on("config:ripple:change",function(_){var v,T=_.newValue,w=_.oldValue;return g==null||(v=g["config.ripple"])===null||v===void 0?void 0:v.call(i.$instance,T,w)})};return{created:function(i,a,c,u){r("created",i,a,c,u)},beforeMount:function(i,a,c,u){i.$attrSelector=Dn("pd"),F._loadStyles(i,a,c),r("beforeMount",i,a,c,u),o(i)},mounted:function(i,a,c,u){F._loadStyles(i,a,c),r("mounted",i,a,c,u)},beforeUpdate:function(i,a,c,u){r("beforeUpdate",i,a,c,u)},updated:function(i,a,c,u){F._loadStyles(i,a,c),r("updated",i,a,c,u)},beforeUnmount:function(i,a,c,u){r("beforeUnmount",i,a,c,u)},unmounted:function(i,a,c,u){var d;(d=i.$instance)===null||d===void 0||(d=d.scopedStyleEl)===null||d===void 0||(d=d.value)===null||d===void 0||d.remove(),r("unmounted",i,a,c,u)}}},extend:function(){var e=F._getMeta.apply(F,arguments),n=bs(e,2),r=n[0],o=n[1];return q({extend:function(){var i=F._getMeta.apply(F,arguments),a=bs(i,2),c=a[0],u=a[1];return F.extend(c,q(q(q({},o),o==null?void 0:o.methods),u))}},F._extend(r,o))}},fm=function(e){var n=e.dt;return`
|
|
389
389
|
.p-ink {
|
|
390
390
|
display: block;
|
|
391
391
|
position: absolute;
|
|
@@ -406,11 +406,11 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
406
406
|
}
|
|
407
407
|
}
|
|
408
408
|
`)},mm={root:"p-ink"},pm=ge.extend({name:"ripple-directive",theme:fm,classes:mm}),hm=F.extend({style:pm});function ln(t){"@babel/helpers - typeof";return ln=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},ln(t)}function gm(t){return wm(t)||bm(t)||vm(t)||ym()}function ym(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
409
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function vm(t,e){if(t){if(typeof t=="string")return
|
|
410
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Lm(t,e){if(t){if(typeof t=="string")return ks(t,e);var n={}.toString.call(t).slice(8,-1);return n==="Object"&&t.constructor&&(n=t.constructor.name),n==="Map"||n==="Set"?Array.from(t):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?ks(t,e):void 0}}function ks(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n<e;n++)r[n]=t[n];return r}function $m(t,e){var n=t==null?null:typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(n!=null){var r,o,s,i,a=[],c=!0,u=!1;try{if(s=(n=n.call(t)).next,e!==0)for(;!(c=(r=s.call(n)).done)&&(a.push(r.value),a.length!==e);c=!0);}catch(d){u=!0,o=d}finally{try{if(!c&&n.return!=null&&(i=n.return(),Object(i)!==i))return}finally{if(u)throw o}}return a}}function Rm(t){if(Array.isArray(t))return t}var Vi={name:"PanelMenuList",hostName:"PanelMenu",extends:Gn,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?Ie(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 G(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&&ff(e.key)&&this.searchItems(e,e.key);break}},onArrowDownKey:function(e){var n=G(this.focusedItem)?this.findNextItem(this.focusedItem):this.findFirstItem();this.changeFocusedItem({originalEvent:e,processedItem:n,focusOnNext:!0}),e.preventDefault()},onArrowUpKey:function(e){var n=G(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(G(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=G(this.focusedItem.parent)?this.focusedItem.parent:this.focusedItem,e.preventDefault()}},onArrowRightKey:function(e){var n=this;if(G(this.focusedItem)){var r=this.isItemGroup(this.focusedItem);if(r){var o=this.activeItemPath.some(function(s){return s.key===n.focusedItem.key});o?this.onArrowDownKey(e):(this.activeItemPath=this.activeItemPath.filter(function(s){return s.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(G(this.focusedItem)){var n=je(this.$el,'li[id="'.concat("".concat(this.focusedItemId),'"]')),r=n&&(je(n,'[data-pc-section="itemlink"]')||je(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,Gt(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 rs(this.visibleItems,function(n){return e.isValidItem(n)})},findNextItem:function(e){var n=this,r=this.visibleItems.findIndex(function(s){return s.key===e.key}),o=r<this.visibleItems.length-1?this.visibleItems.slice(r+1).find(function(s){return n.isValidItem(s)}):void 0;return o||e},findPrevItem:function(e){var n=this,r=this.visibleItems.findIndex(function(s){return s.key===e.key}),o=r>0?rs(this.visibleItems.slice(0,r),function(s){return n.isValidItem(s)}):void 0;return o||e},searchItems:function(e,n){var r=this;this.searchValue=(this.searchValue||"")+n;var o=null,s=!1;if(G(this.focusedItem)){var i=this.visibleItems.findIndex(function(a){return a.key===r.focusedItem.key});o=this.visibleItems.slice(i).find(function(a){return r.isItemMatched(a)}),o=yt(o)?this.visibleItems.slice(0,i).find(function(a){return r.isItemMatched(a)}):o}else o=this.visibleItems.find(function(a){return r.isItemMatched(a)});return G(o)&&(s=!0),yt(o)&&yt(this.focusedItem)&&(o=this.findFirstItem()),G(o)&&this.changeFocusedItem({originalEvent:e,processedItem:o,allowHeaderFocus:!1}),this.searchTimeout&&clearTimeout(this.searchTimeout),this.searchTimeout=setTimeout(function(){r.searchValue="",r.searchTimeout=null},500),s},changeFocusedItem:function(e){var n=e.originalEvent,r=e.processedItem,o=e.focusOnNext,s=e.selfCheck,i=e.allowHeaderFocus,a=i===void 0?!0:i;G(this.focusedItem)&&this.focusedItem.key!==r.key?(this.focusedItem=r,this.scrollInView()):a&&this.$emit("header-focus",{originalEvent:n,focusOnNext:o,selfCheck:s})},scrollInView:function(){var e=je(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 s=xm(o,2),i=s[0],a=s[1];if(a){var c=n.findProcessedItemByItemKey(i);c&&r.push(c)}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 s=n[o];if(this.getItemProp(s,"key")===e)return s;var i=this.findProcessedItemByItemKey(e,s.items,r+1);if(i)return i}},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]:{},s=arguments.length>3&&arguments[3]!==void 0?arguments[3]:"",i=[];return e&&e.forEach(function(a,c){var u=(s!==""?s+"_":"")+c,d={item:a,index:c,level:r,key:u,parent:o,parentKey:s};d.items=n.createProcessedItems(a.items,r+1,d,u),i.push(d)}),i},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 G(this.focusedItem)?"".concat(this.panelId,"_").concat(this.focusedItem.key):null}},components:{PanelMenuSub:Hi}};function Nm(t,e,n,r,o,s){var i=l.resolveComponent("PanelMenuSub");return l.openBlock(),l.createBlock(i,l.mergeProps({id:n.panelId+"_list",class:t.cx("rootList"),role:"tree",tabindex:-1,"aria-activedescendant":o.focused?s.focusedItemId:void 0,panelId:n.panelId,focusedItemId:o.focused?s.focusedItemId:void 0,items:s.processedItems,templates:n.templates,activeItemPath:o.activeItemPath,onFocus:s.onFocus,onBlur:s.onBlur,onKeydown:s.onKeyDown,onItemToggle:s.onItemToggle,onItemMousemove:s.onItemMouseMove,pt:t.pt,unstyled:t.unstyled},t.ptm("rootList")),null,16,["id","class","aria-activedescendant","panelId","focusedItemId","items","templates","activeItemPath","onFocus","onBlur","onKeydown","onItemToggle","onItemMousemove","pt","unstyled"])}Vi.render=Nm;function cn(t){"@babel/helpers - typeof";return cn=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},cn(t)}function Cs(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 Bm(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?Cs(Object(n),!0).forEach(function(r){Dm(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Cs(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function Dm(t,e,n){return(e=Mm(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function Mm(t){var e=Um(t,"string");return cn(e)=="symbol"?e:e+""}function Um(t,e){if(cn(t)!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e||"default");if(cn(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}var ji={name:"PanelMenu",extends:Cm,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||Bn()}},mounted:function(){this.id=this.id||Bn()},methods:{getItemProp:function(e,n){return e?Ie(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 Pt(e,n)}):Pt(e,this.activeItem)},isItemVisible:function(e){return this.getItemProp(e,"visible")!==!1},isItemDisabled:function(e){return this.getItemProp(e,"disabled")},isItemFocused:function(e){return Pt(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),Gt(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=Yt(e.currentTarget,"data-p-active")===!0?je(e.currentTarget.nextElementSibling,'[data-pc-section="rootlist"]'):null;n?Gt(n):this.updateFocusedHeader({originalEvent:e,focusOnNext:!0}),e.preventDefault()},onHeaderArrowUpKey:function(e){var n=this.findPrevHeader(e.currentTarget.parentElement)||this.findLastHeader(),r=Yt(n,"data-p-active")===!0?je(n.nextElementSibling,'[data-pc-section="rootlist"]'):null;r?Gt(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=je(e.currentTarget,'[data-pc-section="headerlink"]');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=je(r,'[data-pc-section="header"]');return o?Yt(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=je(r,'[data-pc-section="header"]');return o?Yt(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,s=n.currentTarget.closest('[data-pc-section="panel"]'),i=o?je(s,'[data-pc-section="header"]'):r?this.findNextHeader(s):this.findPrevHeader(s);i?this.changeFocusedHeader(n,i):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),s=o?"panel-close":"panel-open";this.activeItem=r?n:this.activeItem&&Pt(n,this.activeItem)?null:n,this.multiple&&(this.activeItems.some(function(i){return Pt(n,i)})?this.activeItems=this.activeItems.filter(function(i){return!Pt(n,i)}):this.activeItems.push(n)),this.changeExpandedKeys({item:n,expanded:!o}),this.$emit(s,{originalEvent:e,item:n})}},changeExpandedKeys:function(e){var n=e.item,r=e.expanded,o=r===void 0?!1:r;if(this.expandedKeys){var s=Bm({},this.expandedKeys);o?s[n.key]=!0:delete s[n.key],this.$emit("update:expandedKeys",s)}},changeFocusedHeader:function(e,n){n&&Gt(n)},getMenuItemProps:function(e,n){return{icon:l.mergeProps({class:[this.cx("headerIcon"),this.getItemProp(e,"icon")]},this.getPTOptions("headerIcon",e,n)),label:l.mergeProps({class:this.cx("headerLabel")},this.getPTOptions("headerLabel",e,n))}}},components:{PanelMenuList:Vi,ChevronRightIcon:ao,ChevronDownIcon:io}},Hm=["id"],Vm=["id","tabindex","aria-label","aria-expanded","aria-controls","aria-disabled","onClick","onKeydown","data-p-active","data-p-disabled"],jm=["href"],Fm=["id","aria-labelledby"];function zm(t,e,n,r,o,s){var i=l.resolveComponent("PanelMenuList");return l.openBlock(),l.createElementBlock("div",l.mergeProps({id:o.id,class:t.cx("root")},t.ptmi("root")),[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(t.model,function(a,c){return l.openBlock(),l.createElementBlock(l.Fragment,{key:s.getPanelKey(c)},[s.isItemVisible(a)?(l.openBlock(),l.createElementBlock("div",l.mergeProps({key:0,style:s.getItemProp(a,"style"),class:[t.cx("panel"),s.getItemProp(a,"class")],ref_for:!0},t.ptm("panel")),[l.createElementVNode("div",l.mergeProps({id:s.getHeaderId(c),class:[t.cx("header",{item:a}),s.getItemProp(a,"headerClass")],tabindex:s.isItemDisabled(a)?-1:t.tabindex,role:"button","aria-label":s.getItemLabel(a),"aria-expanded":s.isItemActive(a),"aria-controls":s.getContentId(c),"aria-disabled":s.isItemDisabled(a),onClick:function(d){return s.onHeaderClick(d,a)},onKeydown:function(d){return s.onHeaderKeyDown(d,a)},ref_for:!0},s.getPTOptions("header",a,c),{"data-p-active":s.isItemActive(a),"data-p-disabled":s.isItemDisabled(a)}),[l.createElementVNode("div",l.mergeProps({class:t.cx("headerContent"),ref_for:!0},s.getPTOptions("headerContent",a,c)),[t.$slots.item?(l.openBlock(),l.createBlock(l.resolveDynamicComponent(t.$slots.item),{key:1,item:a,root:!0,active:s.isItemActive(a),hasSubmenu:s.getItemProp(a,"items"),label:s.getItemLabel(a),props:s.getMenuItemProps(a,c)},null,8,["item","active","hasSubmenu","label","props"])):(l.openBlock(),l.createElementBlock("a",l.mergeProps({key:0,href:s.getItemProp(a,"url"),class:t.cx("headerLink"),tabindex:-1,ref_for:!0},s.getPTOptions("headerLink",a,c)),[s.getItemProp(a,"items")?l.renderSlot(t.$slots,"submenuicon",{key:0,active:s.isItemActive(a)},function(){return[(l.openBlock(),l.createBlock(l.resolveDynamicComponent(s.isItemActive(a)?"ChevronDownIcon":"ChevronRightIcon"),l.mergeProps({class:t.cx("submenuIcon"),ref_for:!0},s.getPTOptions("submenuIcon",a,c)),null,16,["class"]))]}):l.createCommentVNode("",!0),t.$slots.headericon?(l.openBlock(),l.createBlock(l.resolveDynamicComponent(t.$slots.headericon),{key:1,item:a,class:l.normalizeClass([t.cx("headerIcon"),s.getItemProp(a,"icon")])},null,8,["item","class"])):s.getItemProp(a,"icon")?(l.openBlock(),l.createElementBlock("span",l.mergeProps({key:2,class:[t.cx("headerIcon"),s.getItemProp(a,"icon")],ref_for:!0},s.getPTOptions("headerIcon",a,c)),null,16)):l.createCommentVNode("",!0),l.createElementVNode("span",l.mergeProps({class:t.cx("headerLabel"),ref_for:!0},s.getPTOptions("headerLabel",a,c)),l.toDisplayString(s.getItemLabel(a)),17)],16,jm))],16)],16,Vm),l.createVNode(l.Transition,l.mergeProps({name:"p-toggleable-content",ref_for:!0},t.ptm("transition")),{default:l.withCtx(function(){return[l.withDirectives(l.createElementVNode("div",l.mergeProps({id:s.getContentId(c),class:t.cx("contentContainer"),role:"region","aria-labelledby":s.getHeaderId(c),ref_for:!0},t.ptm("contentContainer")),[s.getItemProp(a,"items")?(l.openBlock(),l.createElementBlock("div",l.mergeProps({key:0,class:t.cx("content"),ref_for:!0},t.ptm("content")),[l.createVNode(i,{panelId:s.getPanelId(c),items:s.getItemProp(a,"items"),templates:t.$slots,expandedKeys:t.expandedKeys,onItemToggle:s.changeExpandedKeys,onHeaderFocus:s.updateFocusedHeader,pt:t.pt,unstyled:t.unstyled},null,8,["panelId","items","templates","expandedKeys","onItemToggle","onHeaderFocus","pt","unstyled"])],16)):l.createCommentVNode("",!0)],16,Fm),[[l.vShow,s.isItemActive(a)]])]}),_:2},1040)],16)):l.createCommentVNode("",!0)],64)}),128))],16,Hm)}ji.render=zm;const Km=t=>(l.pushScopeId("data-v-74bc83ee"),t=t(),l.popScopeId(),t),Wm={class:"panel-menu-wrapper"},qm=["data-active","href","onClick"],Gm={class:"material-symbols-outlined item-menu-icon-left"},Ym={key:1,class:"item-menu sf-ripple"},Jm={key:0,class:"material-symbols-outlined item-menu-icon-left"},Xm=Km(()=>l.createElementVNode("div",{class:"sf-flex-grow-1"},null,-1)),Zm=l.defineComponent({__name:"NavMenu",props:{items:{}},setup(t){const e=t,n=Vr();function r(o,s){o.preventDefault();const a=o.target.closest(".panel-menu-wrapper");a&&a.clientWidth+10>document.body.clientWidth&&n.Close(),s()}return(o,s)=>{const i=l.resolveComponent("router-link");return l.openBlock(),l.createElementBlock("div",Wm,[l.createVNode(l.unref(ji),{model:e.items,unstyled:!0},{item:l.withCtx(({item:a,active:c})=>[a.href?(l.openBlock(),l.createBlock(i,{key:0,to:{path:a.href,params:a.params??{},query:a.query??{}},custom:""},{default:l.withCtx(({navigate:u,isActive:d})=>[l.createElementVNode("a",{class:"item-menu sf-ripple","data-active":d,href:a.href,onClick:m=>r(m,u)},[l.createElementVNode("span",Gm,l.toDisplayString(a.icon??"chevron_right"),1),l.createElementVNode("span",null,l.toDisplayString(a.text),1)],8,qm)]),_:2},1032,["to"])):(l.openBlock(),l.createElementBlock("a",Ym,[a.icon?(l.openBlock(),l.createElementBlock("span",Jm,l.toDisplayString(a.icon),1)):l.createCommentVNode("",!0),l.createElementVNode("span",null,l.toDisplayString(a.text),1),Xm,l.createElementVNode("span",{class:l.normalizeClass(["material-symbols-outlined arrow",{"--expand":c}])}," chevron_right ",2)]))]),_:1},8,["model"])])}}}),Qm=Vn(Zm,[["__scopeId","data-v-74bc83ee"]]);class un{constructor(e=null){Te(this,"errors",[]);Te(this,"_value",null);Te(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 Fi(t,e){return function(){return t.apply(e,arguments)}}const{toString:ep}=Object.prototype,{getPrototypeOf:lo}=Object,Yn=(t=>e=>{const n=ep.call(e);return t[n]||(t[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),qe=t=>(t=t.toLowerCase(),e=>Yn(e)===t),Jn=t=>e=>typeof e===t,{isArray:Bt}=Array,dn=Jn("undefined");function tp(t){return t!==null&&!dn(t)&&t.constructor!==null&&!dn(t.constructor)&&xe(t.constructor.isBuffer)&&t.constructor.isBuffer(t)}const zi=qe("ArrayBuffer");function np(t){let e;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?e=ArrayBuffer.isView(t):e=t&&t.buffer&&zi(t.buffer),e}const rp=Jn("string"),xe=Jn("function"),Ki=Jn("number"),Xn=t=>t!==null&&typeof t=="object",op=t=>t===!0||t===!1,xn=t=>{if(Yn(t)!=="object")return!1;const e=lo(t);return(e===null||e===Object.prototype||Object.getPrototypeOf(e)===null)&&!(Symbol.toStringTag in t)&&!(Symbol.iterator in t)},sp=qe("Date"),ip=qe("File"),ap=qe("Blob"),lp=qe("FileList"),cp=t=>Xn(t)&&xe(t.pipe),up=t=>{let e;return t&&(typeof FormData=="function"&&t instanceof FormData||xe(t.append)&&((e=Yn(t))==="formdata"||e==="object"&&xe(t.toString)&&t.toString()==="[object FormData]"))},dp=qe("URLSearchParams"),[fp,mp,pp,hp]=["ReadableStream","Request","Response","Headers"].map(qe),gp=t=>t.trim?t.trim():t.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function vn(t,e,{allOwnKeys:n=!1}={}){if(t===null||typeof t>"u")return;let r,o;if(typeof t!="object"&&(t=[t]),Bt(t))for(r=0,o=t.length;r<o;r++)e.call(null,t[r],r,t);else{const s=n?Object.getOwnPropertyNames(t):Object.keys(t),i=s.length;let a;for(r=0;r<i;r++)a=s[r],e.call(null,t[a],a,t)}}function Wi(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 gt=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,qi=t=>!dn(t)&&t!==gt;function Rr(){const{caseless:t}=qi(this)&&this||{},e={},n=(r,o)=>{const s=t&&Wi(e,o)||o;xn(e[s])&&xn(r)?e[s]=Rr(e[s],r):xn(r)?e[s]=Rr({},r):Bt(r)?e[s]=r.slice():e[s]=r};for(let r=0,o=arguments.length;r<o;r++)arguments[r]&&vn(arguments[r],n);return e}const yp=(t,e,n,{allOwnKeys:r}={})=>(vn(e,(o,s)=>{n&&xe(o)?t[s]=Fi(o,n):t[s]=o},{allOwnKeys:r}),t),vp=t=>(t.charCodeAt(0)===65279&&(t=t.slice(1)),t),bp=(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)},wp=(t,e,n,r)=>{let o,s,i;const a={};if(e=e||{},t==null)return e;do{for(o=Object.getOwnPropertyNames(t),s=o.length;s-- >0;)i=o[s],(!r||r(i,t,e))&&!a[i]&&(e[i]=t[i],a[i]=!0);t=n!==!1&&lo(t)}while(t&&(!n||n(t,e))&&t!==Object.prototype);return e},Sp=(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},_p=t=>{if(!t)return null;if(Bt(t))return t;let e=t.length;if(!Ki(e))return null;const n=new Array(e);for(;e-- >0;)n[e]=t[e];return n},kp=(t=>e=>t&&e instanceof t)(typeof Uint8Array<"u"&&lo(Uint8Array)),Cp=(t,e)=>{const r=(t&&t[Symbol.iterator]).call(t);let o;for(;(o=r.next())&&!o.done;){const s=o.value;e.call(t,s[0],s[1])}},Ep=(t,e)=>{let n;const r=[];for(;(n=t.exec(e))!==null;)r.push(n);return r},Tp=qe("HTMLFormElement"),Ap=t=>t.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,r,o){return r.toUpperCase()+o}),Es=(({hasOwnProperty:t})=>(e,n)=>t.call(e,n))(Object.prototype),Pp=qe("RegExp"),Gi=(t,e)=>{const n=Object.getOwnPropertyDescriptors(t),r={};vn(n,(o,s)=>{let i;(i=e(o,s,t))!==!1&&(r[s]=i||o)}),Object.defineProperties(t,r)},Ip=t=>{Gi(t,(e,n)=>{if(xe(t)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const r=t[n];if(xe(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+"'")})}})},xp=(t,e)=>{const n={},r=o=>{o.forEach(s=>{n[s]=!0})};return Bt(t)?r(t):r(String(t).split(e)),n},Op=()=>{},Lp=(t,e)=>t!=null&&Number.isFinite(t=+t)?t:e,br="abcdefghijklmnopqrstuvwxyz",Ts="0123456789",Yi={DIGIT:Ts,ALPHA:br,ALPHA_DIGIT:br+br.toUpperCase()+Ts},$p=(t=16,e=Yi.ALPHA_DIGIT)=>{let n="";const{length:r}=e;for(;t--;)n+=e[Math.random()*r|0];return n};function Rp(t){return!!(t&&xe(t.append)&&t[Symbol.toStringTag]==="FormData"&&t[Symbol.iterator])}const Np=t=>{const e=new Array(10),n=(r,o)=>{if(Xn(r)){if(e.indexOf(r)>=0)return;if(!("toJSON"in r)){e[o]=r;const s=Bt(r)?[]:{};return vn(r,(i,a)=>{const c=n(i,o+1);!dn(c)&&(s[a]=c)}),e[o]=void 0,s}}return r};return n(t,0)},Bp=qe("AsyncFunction"),Dp=t=>t&&(Xn(t)||xe(t))&&xe(t.then)&&xe(t.catch),Ji=((t,e)=>t?setImmediate:e?((n,r)=>(gt.addEventListener("message",({source:o,data:s})=>{o===gt&&s===n&&r.length&&r.shift()()},!1),o=>{r.push(o),gt.postMessage(n,"*")}))(`axios@${Math.random()}`,[]):n=>setTimeout(n))(typeof setImmediate=="function",xe(gt.postMessage)),Mp=typeof queueMicrotask<"u"?queueMicrotask.bind(gt):typeof process<"u"&&process.nextTick||Ji,y={isArray:Bt,isArrayBuffer:zi,isBuffer:tp,isFormData:up,isArrayBufferView:np,isString:rp,isNumber:Ki,isBoolean:op,isObject:Xn,isPlainObject:xn,isReadableStream:fp,isRequest:mp,isResponse:pp,isHeaders:hp,isUndefined:dn,isDate:sp,isFile:ip,isBlob:ap,isRegExp:Pp,isFunction:xe,isStream:cp,isURLSearchParams:dp,isTypedArray:kp,isFileList:lp,forEach:vn,merge:Rr,extend:yp,trim:gp,stripBOM:vp,inherits:bp,toFlatObject:wp,kindOf:Yn,kindOfTest:qe,endsWith:Sp,toArray:_p,forEachEntry:Cp,matchAll:Ep,isHTMLForm:Tp,hasOwnProperty:Es,hasOwnProp:Es,reduceDescriptors:Gi,freezeMethods:Ip,toObjectSet:xp,toCamelCase:Ap,noop:Op,toFiniteNumber:Lp,findKey:Wi,global:gt,isContextDefined:qi,ALPHABET:Yi,generateString:$p,isSpecCompliantForm:Rp,toJSONObject:Np,isAsyncFn:Bp,isThenable:Dp,setImmediate:Ji,asap:Mp};function M(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)}y.inherits(M,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:y.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const Xi=M.prototype,Zi={};["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=>{Zi[t]={value:t}});Object.defineProperties(M,Zi);Object.defineProperty(Xi,"isAxiosError",{value:!0});M.from=(t,e,n,r,o,s)=>{const i=Object.create(Xi);return y.toFlatObject(t,i,function(c){return c!==Error.prototype},a=>a!=="isAxiosError"),M.call(i,t.message,e,n,r,o),i.cause=t,i.name=t.name,s&&Object.assign(i,s),i};const Up=null;function Nr(t){return y.isPlainObject(t)||y.isArray(t)}function Qi(t){return y.endsWith(t,"[]")?t.slice(0,-2):t}function As(t,e,n){return t?t.concat(e).map(function(o,s){return o=Qi(o),!n&&s?"["+o+"]":o}).join(n?".":""):e}function Hp(t){return y.isArray(t)&&!t.some(Nr)}const Vp=y.toFlatObject(y,{},null,function(e){return/^is[A-Z]/.test(e)});function Zn(t,e,n){if(!y.isObject(t))throw new TypeError("target must be an object");e=e||new FormData,n=y.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(T,w){return!y.isUndefined(w[T])});const r=n.metaTokens,o=n.visitor||d,s=n.dots,i=n.indexes,c=(n.Blob||typeof Blob<"u"&&Blob)&&y.isSpecCompliantForm(e);if(!y.isFunction(o))throw new TypeError("visitor must be a function");function u(v){if(v===null)return"";if(y.isDate(v))return v.toISOString();if(!c&&y.isBlob(v))throw new M("Blob is not supported. Use a Buffer instead.");return y.isArrayBuffer(v)||y.isTypedArray(v)?c&&typeof Blob=="function"?new Blob([v]):Buffer.from(v):v}function d(v,T,w){let B=v;if(v&&!w&&typeof v=="object"){if(y.endsWith(T,"{}"))T=r?T:T.slice(0,-2),v=JSON.stringify(v);else if(y.isArray(v)&&Hp(v)||(y.isFileList(v)||y.endsWith(T,"[]"))&&(B=y.toArray(v)))return T=Qi(T),B.forEach(function(A,j){!(y.isUndefined(A)||A===null)&&e.append(i===!0?As([T],j,s):i===null?T:T+"[]",u(A))}),!1}return Nr(v)?!0:(e.append(As(w,T,s),u(v)),!1)}const m=[],g=Object.assign(Vp,{defaultVisitor:d,convertValue:u,isVisitable:Nr});function _(v,T){if(!y.isUndefined(v)){if(m.indexOf(v)!==-1)throw Error("Circular reference detected in "+T.join("."));m.push(v),y.forEach(v,function(B,C){(!(y.isUndefined(B)||B===null)&&o.call(e,B,y.isString(C)?C.trim():C,T,g))===!0&&_(B,T?T.concat(C):[C])}),m.pop()}}if(!y.isObject(t))throw new TypeError("data must be an object");return _(t),e}function Ps(t){const e={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(t).replace(/[!'()~]|%20|%00/g,function(r){return e[r]})}function co(t,e){this._pairs=[],t&&Zn(t,this,e)}const ea=co.prototype;ea.append=function(e,n){this._pairs.push([e,n])};ea.toString=function(e){const n=e?function(r){return e.call(this,r,Ps)}:Ps;return this._pairs.map(function(o){return n(o[0])+"="+n(o[1])},"").join("&")};function jp(t){return encodeURIComponent(t).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function ta(t,e,n){if(!e)return t;const r=n&&n.encode||jp,o=n&&n.serialize;let s;if(o?s=o(e,n):s=y.isURLSearchParams(e)?e.toString():new co(e,n).toString(r),s){const i=t.indexOf("#");i!==-1&&(t=t.slice(0,i)),t+=(t.indexOf("?")===-1?"?":"&")+s}return t}class Is{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){y.forEach(this.handlers,function(r){r!==null&&e(r)})}}const na={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},Fp=typeof URLSearchParams<"u"?URLSearchParams:co,zp=typeof FormData<"u"?FormData:null,Kp=typeof Blob<"u"?Blob:null,Wp={isBrowser:!0,classes:{URLSearchParams:Fp,FormData:zp,Blob:Kp},protocols:["http","https","file","blob","url","data"]},uo=typeof window<"u"&&typeof document<"u",qp=(t=>uo&&["ReactNative","NativeScript","NS"].indexOf(t)<0)(typeof navigator<"u"&&navigator.product),Gp=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",Yp=uo&&window.location.href||"http://localhost",Jp=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:uo,hasStandardBrowserEnv:qp,hasStandardBrowserWebWorkerEnv:Gp,origin:Yp},Symbol.toStringTag,{value:"Module"})),ze={...Jp,...Wp};function Xp(t,e){return Zn(t,new ze.classes.URLSearchParams,Object.assign({visitor:function(n,r,o,s){return ze.isNode&&y.isBuffer(n)?(this.append(r,n.toString("base64")),!1):s.defaultVisitor.apply(this,arguments)}},e))}function Zp(t){return y.matchAll(/\w+|\[(\w*)]/g,t).map(e=>e[0]==="[]"?"":e[1]||e[0])}function Qp(t){const e={},n=Object.keys(t);let r;const o=n.length;let s;for(r=0;r<o;r++)s=n[r],e[s]=t[s];return e}function ra(t){function e(n,r,o,s){let i=n[s++];if(i==="__proto__")return!0;const a=Number.isFinite(+i),c=s>=n.length;return i=!i&&y.isArray(o)?o.length:i,c?(y.hasOwnProp(o,i)?o[i]=[o[i],r]:o[i]=r,!a):((!o[i]||!y.isObject(o[i]))&&(o[i]=[]),e(n,r,o[i],s)&&y.isArray(o[i])&&(o[i]=Qp(o[i])),!a)}if(y.isFormData(t)&&y.isFunction(t.entries)){const n={};return y.forEachEntry(t,(r,o)=>{e(Zp(r),o,n,0)}),n}return null}function eh(t,e,n){if(y.isString(t))try{return(e||JSON.parse)(t),y.trim(t)}catch(r){if(r.name!=="SyntaxError")throw r}return(n||JSON.stringify)(t)}const bn={transitional:na,adapter:["xhr","http","fetch"],transformRequest:[function(e,n){const r=n.getContentType()||"",o=r.indexOf("application/json")>-1,s=y.isObject(e);if(s&&y.isHTMLForm(e)&&(e=new FormData(e)),y.isFormData(e))return o?JSON.stringify(ra(e)):e;if(y.isArrayBuffer(e)||y.isBuffer(e)||y.isStream(e)||y.isFile(e)||y.isBlob(e)||y.isReadableStream(e))return e;if(y.isArrayBufferView(e))return e.buffer;if(y.isURLSearchParams(e))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let a;if(s){if(r.indexOf("application/x-www-form-urlencoded")>-1)return Xp(e,this.formSerializer).toString();if((a=y.isFileList(e))||r.indexOf("multipart/form-data")>-1){const c=this.env&&this.env.FormData;return Zn(a?{"files[]":e}:e,c&&new c,this.formSerializer)}}return s||o?(n.setContentType("application/json",!1),eh(e)):e}],transformResponse:[function(e){const n=this.transitional||bn.transitional,r=n&&n.forcedJSONParsing,o=this.responseType==="json";if(y.isResponse(e)||y.isReadableStream(e))return e;if(e&&y.isString(e)&&(r&&!this.responseType||o)){const i=!(n&&n.silentJSONParsing)&&o;try{return JSON.parse(e)}catch(a){if(i)throw a.name==="SyntaxError"?M.from(a,M.ERR_BAD_RESPONSE,this,null,this.response):a}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:ze.classes.FormData,Blob:ze.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};y.forEach(["delete","get","head","post","put","patch"],t=>{bn.headers[t]={}});const th=y.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"]),nh=t=>{const e={};let n,r,o;return t&&t.split(`
|
|
411
|
-
`).forEach(function(i){o=i.indexOf(":"),n=i.substring(0,o).trim().toLowerCase(),r=i.substring(o+1).trim(),!(!n||e[n]&&th[n])&&(n==="set-cookie"?e[n]?e[n].push(r):e[n]=[r]:e[n]=e[n]?e[n]+", "+r:r)}),e},xs=Symbol("internals");function Wt(t){return t&&String(t).trim().toLowerCase()}function On(t){return t===!1||t==null?t:y.isArray(t)?t.map(On):String(t)}function rh(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 oh=t=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(t.trim());function
|
|
412
|
-
`)}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[xs]=this[xs]={accessors:{}}).accessors,o=this.prototype;function s(i){const a=Wt(i);r[a]||(ih(o,i),r[a]=!0)}return y.isArray(e)?e.forEach(s):s(e),this}}ke.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);y.reduceDescriptors(ke.prototype,({value:t},e)=>{let n=e[0].toUpperCase()+e.slice(1);return{get:()=>t,set(r){this[n]=r}}});y.freezeMethods(ke);function Sr(t,e){const n=this||bn,r=e||n,o=ke.from(r.headers);let s=r.data;return y.forEach(t,function(a){s=a.call(n,s,o.normalize(),e?e.status:void 0)}),o.normalize(),s}function oa(t){return!!(t&&t.__CANCEL__)}function Dt(t,e,n){M.call(this,t??"canceled",M.ERR_CANCELED,e,n),this.name="CanceledError"}y.inherits(Dt,M,{__CANCEL__:!0});function sa(t,e,n){const r=n.config.validateStatus;!n.status||!r||r(n.status)?t(n):e(new M("Request failed with status code "+n.status,[M.ERR_BAD_REQUEST,M.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}function ah(t){const e=/^([-+\w]{1,25})(:?\/\/|:)/.exec(t);return e&&e[1]||""}function lh(t,e){t=t||10;const n=new Array(t),r=new Array(t);let o=0,s=0,i;return e=e!==void 0?e:1e3,function(c){const u=Date.now(),d=r[s];i||(i=u),n[o]=c,r[o]=u;let m=s,g=0;for(;m!==o;)g+=n[m++],m=m%t;if(o=(o+1)%t,o===s&&(s=(s+1)%t),u-i<e)return;const _=d&&u-d;return _?Math.round(g*1e3/_):void 0}}function ch(t,e){let n=0,r=1e3/e,o,s;const i=(u,d=Date.now())=>{n=d,o=null,s&&(clearTimeout(s),s=null),t.apply(null,u)};return[(...u)=>{const d=Date.now(),m=d-n;m>=r?i(u,d):(o=u,s||(s=setTimeout(()=>{s=null,i(o)},r-m)))},()=>o&&i(o)]}const Mn=(t,e,n=3)=>{let r=0;const o=lh(50,250);return ch(s=>{const i=s.loaded,a=s.lengthComputable?s.total:void 0,c=i-r,u=o(c),d=i<=a;r=i;const m={loaded:i,total:a,progress:a?i/a:void 0,bytes:c,rate:u||void 0,estimated:u&&a&&d?(a-i)/u:void 0,event:s,lengthComputable:a!=null,[e?"download":"upload"]:!0};t(m)},n)},Os=(t,e)=>{const n=t!=null;return[r=>e[0]({lengthComputable:n,total:t,loaded:r}),e[1]]},Ls=t=>(...e)=>y.asap(()=>t(...e)),uh=ze.hasStandardBrowserEnv?function(){const e=/(msie|trident)/i.test(navigator.userAgent),n=document.createElement("a");let r;function o(s){let i=s;return e&&(n.setAttribute("href",i),i=n.href),n.setAttribute("href",i),{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(i){const a=y.isString(i)?o(i):i;return a.protocol===r.protocol&&a.host===r.host}}():function(){return function(){return!0}}(),dh=ze.hasStandardBrowserEnv?{write(t,e,n,r,o,s){const i=[t+"="+encodeURIComponent(e)];y.isNumber(n)&&i.push("expires="+new Date(n).toGMTString()),y.isString(r)&&i.push("path="+r),y.isString(o)&&i.push("domain="+o),s===!0&&i.push("secure"),document.cookie=i.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 fh(t){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(t)}function mh(t,e){return e?t.replace(/\/?\/$/,"")+"/"+e.replace(/^\/+/,""):t}function ia(t,e){return t&&!fh(e)?mh(t,e):e}const $s=t=>t instanceof ke?{...t}:t;function _t(t,e){e=e||{};const n={};function r(u,d,m){return y.isPlainObject(u)&&y.isPlainObject(d)?y.merge.call({caseless:m},u,d):y.isPlainObject(d)?y.merge({},d):y.isArray(d)?d.slice():d}function o(u,d,m){if(y.isUndefined(d)){if(!y.isUndefined(u))return r(void 0,u,m)}else return r(u,d,m)}function s(u,d){if(!y.isUndefined(d))return r(void 0,d)}function i(u,d){if(y.isUndefined(d)){if(!y.isUndefined(u))return r(void 0,u)}else return r(void 0,d)}function a(u,d,m){if(m in e)return r(u,d);if(m in t)return r(void 0,u)}const c={url:s,method:s,data:s,baseURL:i,transformRequest:i,transformResponse:i,paramsSerializer:i,timeout:i,timeoutMessage:i,withCredentials:i,withXSRFToken:i,adapter:i,responseType:i,xsrfCookieName:i,xsrfHeaderName:i,onUploadProgress:i,onDownloadProgress:i,decompress:i,maxContentLength:i,maxBodyLength:i,beforeRedirect:i,transport:i,httpAgent:i,httpsAgent:i,cancelToken:i,socketPath:i,responseEncoding:i,validateStatus:a,headers:(u,d)=>o($s(u),$s(d),!0)};return y.forEach(Object.keys(Object.assign({},t,e)),function(d){const m=c[d]||o,g=m(t[d],e[d],d);y.isUndefined(g)&&m!==a||(n[d]=g)}),n}const aa=t=>{const e=_t({},t);let{data:n,withXSRFToken:r,xsrfHeaderName:o,xsrfCookieName:s,headers:i,auth:a}=e;e.headers=i=ke.from(i),e.url=ta(ia(e.baseURL,e.url),t.params,t.paramsSerializer),a&&i.set("Authorization","Basic "+btoa((a.username||"")+":"+(a.password?unescape(encodeURIComponent(a.password)):"")));let c;if(y.isFormData(n)){if(ze.hasStandardBrowserEnv||ze.hasStandardBrowserWebWorkerEnv)i.setContentType(void 0);else if((c=i.getContentType())!==!1){const[u,...d]=c?c.split(";").map(m=>m.trim()).filter(Boolean):[];i.setContentType([u||"multipart/form-data",...d].join("; "))}}if(ze.hasStandardBrowserEnv&&(r&&y.isFunction(r)&&(r=r(e)),r||r!==!1&&uh(e.url))){const u=o&&s&&dh.read(s);u&&i.set(o,u)}return e},ph=typeof XMLHttpRequest<"u",hh=ph&&function(t){return new Promise(function(n,r){const o=aa(t);let s=o.data;const i=ke.from(o.headers).normalize();let{responseType:a,onUploadProgress:c,onDownloadProgress:u}=o,d,m,g,_,v;function T(){_&&_(),v&&v(),o.cancelToken&&o.cancelToken.unsubscribe(d),o.signal&&o.signal.removeEventListener("abort",d)}let w=new XMLHttpRequest;w.open(o.method.toUpperCase(),o.url,!0),w.timeout=o.timeout;function B(){if(!w)return;const A=ke.from("getAllResponseHeaders"in w&&w.getAllResponseHeaders()),X={data:!a||a==="text"||a==="json"?w.responseText:w.response,status:w.status,statusText:w.statusText,headers:A,config:t,request:w};sa(function(J){n(J),T()},function(J){r(J),T()},X),w=null}"onloadend"in w?w.onloadend=B:w.onreadystatechange=function(){!w||w.readyState!==4||w.status===0&&!(w.responseURL&&w.responseURL.indexOf("file:")===0)||setTimeout(B)},w.onabort=function(){w&&(r(new M("Request aborted",M.ECONNABORTED,t,w)),w=null)},w.onerror=function(){r(new M("Network Error",M.ERR_NETWORK,t,w)),w=null},w.ontimeout=function(){let j=o.timeout?"timeout of "+o.timeout+"ms exceeded":"timeout exceeded";const X=o.transitional||na;o.timeoutErrorMessage&&(j=o.timeoutErrorMessage),r(new M(j,X.clarifyTimeoutError?M.ETIMEDOUT:M.ECONNABORTED,t,w)),w=null},s===void 0&&i.setContentType(null),"setRequestHeader"in w&&y.forEach(i.toJSON(),function(j,X){w.setRequestHeader(X,j)}),y.isUndefined(o.withCredentials)||(w.withCredentials=!!o.withCredentials),a&&a!=="json"&&(w.responseType=o.responseType),u&&([g,v]=Mn(u,!0),w.addEventListener("progress",g)),c&&w.upload&&([m,_]=Mn(c),w.upload.addEventListener("progress",m),w.upload.addEventListener("loadend",_)),(o.cancelToken||o.signal)&&(d=A=>{w&&(r(!A||A.type?new Dt(null,t,w):A),w.abort(),w=null)},o.cancelToken&&o.cancelToken.subscribe(d),o.signal&&(o.signal.aborted?d():o.signal.addEventListener("abort",d)));const C=ah(o.url);if(C&&ze.protocols.indexOf(C)===-1){r(new M("Unsupported protocol "+C+":",M.ERR_BAD_REQUEST,t));return}w.send(s||null)})},gh=(t,e)=>{let n=new AbortController,r;const o=function(c){if(!r){r=!0,i();const u=c instanceof Error?c:this.reason;n.abort(u instanceof M?u:new Dt(u instanceof Error?u.message:u))}};let s=e&&setTimeout(()=>{o(new M(`timeout ${e} of ms exceeded`,M.ETIMEDOUT))},e);const i=()=>{t&&(s&&clearTimeout(s),s=null,t.forEach(c=>{c&&(c.removeEventListener?c.removeEventListener("abort",o):c.unsubscribe(o))}),t=null)};t.forEach(c=>c&&c.addEventListener&&c.addEventListener("abort",o));const{signal:a}=n;return a.unsubscribe=i,[a,()=>{s&&clearTimeout(s),s=null}]},yh=function*(t,e){let n=t.byteLength;if(!e||n<e){yield t;return}let r=0,o;for(;r<n;)o=r+e,yield t.slice(r,o),r=o},vh=async function*(t,e,n){for await(const r of t)yield*yh(ArrayBuffer.isView(r)?r:await n(String(r)),e)},Rs=(t,e,n,r,o)=>{const s=vh(t,e,o);let i=0,a,c=u=>{a||(a=!0,r&&r(u))};return new ReadableStream({async pull(u){try{const{done:d,value:m}=await s.next();if(d){c(),u.close();return}let g=m.byteLength;if(n){let _=i+=g;n(_)}u.enqueue(new Uint8Array(m))}catch(d){throw c(d),d}},cancel(u){return c(u),s.return()}},{highWaterMark:2})},Qn=typeof fetch=="function"&&typeof Request=="function"&&typeof Response=="function",la=Qn&&typeof ReadableStream=="function",Br=Qn&&(typeof TextEncoder=="function"?(t=>e=>t.encode(e))(new TextEncoder):async t=>new Uint8Array(await new Response(t).arrayBuffer())),ca=(t,...e)=>{try{return!!t(...e)}catch{return!1}},bh=la&&ca(()=>{let t=!1;const e=new Request(ze.origin,{body:new ReadableStream,method:"POST",get duplex(){return t=!0,"half"}}).headers.has("Content-Type");return t&&!e}),Ns=64*1024,Dr=la&&ca(()=>y.isReadableStream(new Response("").body)),Un={stream:Dr&&(t=>t.body)};Qn&&(t=>{["text","arrayBuffer","blob","formData","stream"].forEach(e=>{!Un[e]&&(Un[e]=y.isFunction(t[e])?n=>n[e]():(n,r)=>{throw new M(`Response type '${e}' is not supported`,M.ERR_NOT_SUPPORT,r)})})})(new Response);const wh=async t=>{if(t==null)return 0;if(y.isBlob(t))return t.size;if(y.isSpecCompliantForm(t))return(await new Request(t).arrayBuffer()).byteLength;if(y.isArrayBufferView(t)||y.isArrayBuffer(t))return t.byteLength;if(y.isURLSearchParams(t)&&(t=t+""),y.isString(t))return(await Br(t)).byteLength},Sh=async(t,e)=>{const n=y.toFiniteNumber(t.getContentLength());return n??wh(e)},_h=Qn&&(async t=>{let{url:e,method:n,data:r,signal:o,cancelToken:s,timeout:i,onDownloadProgress:a,onUploadProgress:c,responseType:u,headers:d,withCredentials:m="same-origin",fetchOptions:g}=aa(t);u=u?(u+"").toLowerCase():"text";let[_,v]=o||s||i?gh([o,s],i):[],T,w;const B=()=>{!T&&setTimeout(()=>{_&&_.unsubscribe()}),T=!0};let C;try{if(c&&bh&&n!=="get"&&n!=="head"&&(C=await Sh(d,r))!==0){let ne=new Request(e,{method:"POST",body:r,duplex:"half"}),J;if(y.isFormData(r)&&(J=ne.headers.get("content-type"))&&d.setContentType(J),ne.body){const[pe,se]=Os(C,Mn(Ls(c)));r=Rs(ne.body,Ns,pe,se,Br)}}y.isString(m)||(m=m?"include":"omit"),w=new Request(e,{...g,signal:_,method:n.toUpperCase(),headers:d.normalize().toJSON(),body:r,duplex:"half",credentials:m});let A=await fetch(w);const j=Dr&&(u==="stream"||u==="response");if(Dr&&(a||j)){const ne={};["status","statusText","headers"].forEach(U=>{ne[U]=A[U]});const J=y.toFiniteNumber(A.headers.get("content-length")),[pe,se]=a&&Os(J,Mn(Ls(a),!0))||[];A=new Response(Rs(A.body,Ns,pe,()=>{se&&se(),j&&B()},Br),ne)}u=u||"text";let X=await Un[y.findKey(Un,u)||"text"](A,t);return!j&&B(),v&&v(),await new Promise((ne,J)=>{sa(ne,J,{data:X,headers:ke.from(A.headers),status:A.status,statusText:A.statusText,config:t,request:w})})}catch(A){throw B(),A&&A.name==="TypeError"&&/fetch/i.test(A.message)?Object.assign(new M("Network Error",M.ERR_NETWORK,t,w),{cause:A.cause||A}):M.from(A,A&&A.code,t,w)}}),Mr={http:Up,xhr:hh,fetch:_h};y.forEach(Mr,(t,e)=>{if(t){try{Object.defineProperty(t,"name",{value:e})}catch{}Object.defineProperty(t,"adapterName",{value:e})}});const Bs=t=>`- ${t}`,kh=t=>y.isFunction(t)||t===null||t===!1,ua={getAdapter:t=>{t=y.isArray(t)?t:[t];const{length:e}=t;let n,r;const o={};for(let s=0;s<e;s++){n=t[s];let i;if(r=n,!kh(n)&&(r=Mr[(i=String(n)).toLowerCase()],r===void 0))throw new M(`Unknown adapter '${i}'`);if(r)break;o[i||"#"+s]=r}if(!r){const s=Object.entries(o).map(([a,c])=>`adapter ${a} `+(c===!1?"is not supported by the environment":"is not available in the build"));let i=e?s.length>1?`since :
|
|
409
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function vm(t,e){if(t){if(typeof t=="string")return Rr(t,e);var n={}.toString.call(t).slice(8,-1);return n==="Object"&&t.constructor&&(n=t.constructor.name),n==="Map"||n==="Set"?Array.from(t):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Rr(t,e):void 0}}function bm(t){if(typeof Symbol<"u"&&t[Symbol.iterator]!=null||t["@@iterator"]!=null)return Array.from(t)}function wm(t){if(Array.isArray(t))return Rr(t)}function Rr(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n<e;n++)r[n]=t[n];return r}function _s(t,e,n){return(e=Sm(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function Sm(t){var e=_m(t,"string");return ln(e)=="symbol"?e:e+""}function _m(t,e){if(ln(t)!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e||"default");if(ln(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}var km=hm.extend("ripple",{watch:{"config.ripple":function(e){e?(this.createRipple(this.$host),this.bindEvents(this.$host),this.$host.setAttribute("data-pd-ripple",!0),this.$host.style.overflow="hidden",this.$host.style.position="relative"):(this.remove(this.$host),this.$host.removeAttribute("data-pd-ripple"))}},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))},createRipple:function(e){var n=of("span",_s(_s({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)},this.$attrSelector,""),"p-bind",this.ptm("root")));e.appendChild(n),this.$el=n},remove:function(e){var n=this.getInk(e);n&&(this.$host.style.overflow="",this.$host.style.position="",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()&&gr(o,"p-ink-active"),o.setAttribute("data-p-ink-active","false"),!ts(o)&&!ns(o)){var s=Math.max(rf(r),lf(r));o.style.height=s+"px",o.style.width=s+"px"}var i=af(r),a=e.pageX-i.left+document.body.scrollTop-ns(o)/2,c=e.pageY-i.top+document.body.scrollLeft-ts(o)/2;o.style.top=c+"px",o.style.left=a+"px",!this.isUnstyled()&&nf(o,"p-ink-active"),o.setAttribute("data-p-ink-active","true"),this.timeout=setTimeout(function(){o&&(!n.isUnstyled()&&gr(o,"p-ink-active"),o.setAttribute("data-p-ink-active","false"))},401)}},onAnimationEnd:function(e){this.timeout&&clearTimeout(this.timeout),!this.isUnstyled()&&gr(e.currentTarget,"p-ink-active"),e.currentTarget.setAttribute("data-p-ink-active","false")},getInk:function(e){return e&&e.children?gm(e.children).find(function(n){return Yt(n,"data-pc-name")==="ripple"}):void 0}}}),Cm={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:sm,provide:function(){return{$pcPanelMenu:this,$parentInstance:this}}},Hi={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?Ie(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 G(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:l.mergeProps({class:this.cx("itemLink"),tabindex:-1,"aria-hidden":!0},this.getPTOptions("itemLink",e,n)),icon:l.mergeProps({class:[this.cx("itemIcon"),this.getItemProp(e,"icon")]},this.getPTOptions("itemIcon",e,n)),label:l.mergeProps({class:this.cx("itemLabel")},this.getPTOptions("itemLabel",e,n)),submenuicon:l.mergeProps({class:this.cx("submenuIcon")},this.getPTOptions("submenuicon",e,n))}}},components:{ChevronRightIcon:ao,ChevronDownIcon:io},directives:{ripple:km}},Em=["tabindex"],Tm=["id","aria-label","aria-expanded","aria-level","aria-setsize","aria-posinset","data-p-focused","data-p-disabled"],Am=["onClick","onMousemove"],Pm=["href","target"];function Im(t,e,n,r,o,s){var i=l.resolveComponent("PanelMenuSub",!0),a=l.resolveDirective("ripple");return l.openBlock(),l.createElementBlock("ul",{class:l.normalizeClass(t.cx("submenu")),tabindex:n.tabindex},[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(n.items,function(c,u){return l.openBlock(),l.createElementBlock(l.Fragment,{key:s.getItemKey(c)},[s.isItemVisible(c)&&!s.getItemProp(c,"separator")?(l.openBlock(),l.createElementBlock("li",l.mergeProps({key:0,id:s.getItemId(c),class:[t.cx("item",{processedItem:c}),s.getItemProp(c,"class")],style:s.getItemProp(c,"style"),role:"treeitem","aria-label":s.getItemLabel(c),"aria-expanded":s.isItemGroup(c)?s.isItemActive(c):void 0,"aria-level":n.level+1,"aria-setsize":s.getAriaSetSize(),"aria-posinset":s.getAriaPosInset(u),ref_for:!0},s.getPTOptions("item",c,u),{"data-p-focused":s.isItemFocused(c),"data-p-disabled":s.isItemDisabled(c)}),[l.createElementVNode("div",l.mergeProps({class:t.cx("itemContent"),onClick:function(m){return s.onItemClick(m,c)},onMousemove:function(m){return s.onItemMouseMove(m,c)},ref_for:!0},s.getPTOptions("itemContent",c,u)),[n.templates.item?(l.openBlock(),l.createBlock(l.resolveDynamicComponent(n.templates.item),{key:1,item:c.item,root:!1,active:s.isItemActive(c),hasSubmenu:s.isItemGroup(c),label:s.getItemLabel(c),props:s.getMenuItemProps(c,u)},null,8,["item","active","hasSubmenu","label","props"])):l.withDirectives((l.openBlock(),l.createElementBlock("a",l.mergeProps({key:0,href:s.getItemProp(c,"url"),class:t.cx("itemLink"),target:s.getItemProp(c,"target"),tabindex:"-1","aria-hidden":"true",ref_for:!0},s.getPTOptions("itemLink",c,u)),[s.isItemGroup(c)?(l.openBlock(),l.createElementBlock(l.Fragment,{key:0},[n.templates.submenuicon?(l.openBlock(),l.createBlock(l.resolveDynamicComponent(n.templates.submenuicon),l.mergeProps({key:0,class:t.cx("submenuIcon"),active:s.isItemActive(c),ref_for:!0},s.getPTOptions("submenuIcon",c,u)),null,16,["class","active"])):(l.openBlock(),l.createBlock(l.resolveDynamicComponent(s.isItemActive(c)?"ChevronDownIcon":"ChevronRightIcon"),l.mergeProps({key:1,class:t.cx("submenuIcon"),ref_for:!0},s.getPTOptions("submenuIcon",c,u)),null,16,["class"]))],64)):l.createCommentVNode("",!0),n.templates.itemicon?(l.openBlock(),l.createBlock(l.resolveDynamicComponent(n.templates.itemicon),{key:1,item:c.item,class:l.normalizeClass(t.cx("itemIcon"))},null,8,["item","class"])):s.getItemProp(c,"icon")?(l.openBlock(),l.createElementBlock("span",l.mergeProps({key:2,class:[t.cx("itemIcon"),s.getItemProp(c,"icon")],ref_for:!0},s.getPTOptions("itemIcon",c,u)),null,16)):l.createCommentVNode("",!0),l.createElementVNode("span",l.mergeProps({class:t.cx("itemLabel"),ref_for:!0},s.getPTOptions("itemLabel",c,u)),l.toDisplayString(s.getItemLabel(c)),17)],16,Pm)),[[a]])],16,Am),l.createVNode(l.Transition,l.mergeProps({name:"p-toggleable-content",ref_for:!0},t.ptm("transition")),{default:l.withCtx(function(){return[l.withDirectives(l.createElementVNode("div",l.mergeProps({class:t.cx("contentContainer"),ref_for:!0},t.ptm("contentContainer")),[s.isItemVisible(c)&&s.isItemGroup(c)?(l.openBlock(),l.createBlock(i,l.mergeProps({key:0,id:s.getItemId(c)+"_list",role:"group",panelId:n.panelId,focusedItemId:n.focusedItemId,items:c.items,level:n.level+1,templates:n.templates,activeItemPath:n.activeItemPath,onItemToggle:s.onItemToggle,onItemMousemove:e[0]||(e[0]=function(d){return t.$emit("item-mousemove",d)}),pt:t.pt,unstyled:t.unstyled,ref_for:!0},t.ptm("submenu")),null,16,["id","panelId","focusedItemId","items","level","templates","activeItemPath","onItemToggle","pt","unstyled"])):l.createCommentVNode("",!0)],16),[[l.vShow,s.isItemActive(c)]])]}),_:2},1040)],16,Tm)):l.createCommentVNode("",!0),s.isItemVisible(c)&&s.getItemProp(c,"separator")?(l.openBlock(),l.createElementBlock("li",l.mergeProps({key:1,style:s.getItemProp(c,"style"),class:[t.cx("separator"),s.getItemProp(c,"class")],role:"separator",ref_for:!0},t.ptm("separator")),null,16)):l.createCommentVNode("",!0)],64)}),128))],10,Em)}Hi.render=Im;function xm(t,e){return Rm(t)||$m(t,e)||Lm(t,e)||Om()}function Om(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
410
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Lm(t,e){if(t){if(typeof t=="string")return ks(t,e);var n={}.toString.call(t).slice(8,-1);return n==="Object"&&t.constructor&&(n=t.constructor.name),n==="Map"||n==="Set"?Array.from(t):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?ks(t,e):void 0}}function ks(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n<e;n++)r[n]=t[n];return r}function $m(t,e){var n=t==null?null:typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(n!=null){var r,o,s,i,a=[],c=!0,u=!1;try{if(s=(n=n.call(t)).next,e!==0)for(;!(c=(r=s.call(n)).done)&&(a.push(r.value),a.length!==e);c=!0);}catch(d){u=!0,o=d}finally{try{if(!c&&n.return!=null&&(i=n.return(),Object(i)!==i))return}finally{if(u)throw o}}return a}}function Rm(t){if(Array.isArray(t))return t}var Vi={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?Ie(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 G(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&&ff(e.key)&&this.searchItems(e,e.key);break}},onArrowDownKey:function(e){var n=G(this.focusedItem)?this.findNextItem(this.focusedItem):this.findFirstItem();this.changeFocusedItem({originalEvent:e,processedItem:n,focusOnNext:!0}),e.preventDefault()},onArrowUpKey:function(e){var n=G(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(G(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=G(this.focusedItem.parent)?this.focusedItem.parent:this.focusedItem,e.preventDefault()}},onArrowRightKey:function(e){var n=this;if(G(this.focusedItem)){var r=this.isItemGroup(this.focusedItem);if(r){var o=this.activeItemPath.some(function(s){return s.key===n.focusedItem.key});o?this.onArrowDownKey(e):(this.activeItemPath=this.activeItemPath.filter(function(s){return s.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(G(this.focusedItem)){var n=je(this.$el,'li[id="'.concat("".concat(this.focusedItemId),'"]')),r=n&&(je(n,'[data-pc-section="itemlink"]')||je(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,Gt(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 rs(this.visibleItems,function(n){return e.isValidItem(n)})},findNextItem:function(e){var n=this,r=this.visibleItems.findIndex(function(s){return s.key===e.key}),o=r<this.visibleItems.length-1?this.visibleItems.slice(r+1).find(function(s){return n.isValidItem(s)}):void 0;return o||e},findPrevItem:function(e){var n=this,r=this.visibleItems.findIndex(function(s){return s.key===e.key}),o=r>0?rs(this.visibleItems.slice(0,r),function(s){return n.isValidItem(s)}):void 0;return o||e},searchItems:function(e,n){var r=this;this.searchValue=(this.searchValue||"")+n;var o=null,s=!1;if(G(this.focusedItem)){var i=this.visibleItems.findIndex(function(a){return a.key===r.focusedItem.key});o=this.visibleItems.slice(i).find(function(a){return r.isItemMatched(a)}),o=yt(o)?this.visibleItems.slice(0,i).find(function(a){return r.isItemMatched(a)}):o}else o=this.visibleItems.find(function(a){return r.isItemMatched(a)});return G(o)&&(s=!0),yt(o)&&yt(this.focusedItem)&&(o=this.findFirstItem()),G(o)&&this.changeFocusedItem({originalEvent:e,processedItem:o,allowHeaderFocus:!1}),this.searchTimeout&&clearTimeout(this.searchTimeout),this.searchTimeout=setTimeout(function(){r.searchValue="",r.searchTimeout=null},500),s},changeFocusedItem:function(e){var n=e.originalEvent,r=e.processedItem,o=e.focusOnNext,s=e.selfCheck,i=e.allowHeaderFocus,a=i===void 0?!0:i;G(this.focusedItem)&&this.focusedItem.key!==r.key?(this.focusedItem=r,this.scrollInView()):a&&this.$emit("header-focus",{originalEvent:n,focusOnNext:o,selfCheck:s})},scrollInView:function(){var e=je(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 s=xm(o,2),i=s[0],a=s[1];if(a){var c=n.findProcessedItemByItemKey(i);c&&r.push(c)}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 s=n[o];if(this.getItemProp(s,"key")===e)return s;var i=this.findProcessedItemByItemKey(e,s.items,r+1);if(i)return i}},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]:{},s=arguments.length>3&&arguments[3]!==void 0?arguments[3]:"",i=[];return e&&e.forEach(function(a,c){var u=(s!==""?s+"_":"")+c,d={item:a,index:c,level:r,key:u,parent:o,parentKey:s};d.items=n.createProcessedItems(a.items,r+1,d,u),i.push(d)}),i},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 G(this.focusedItem)?"".concat(this.panelId,"_").concat(this.focusedItem.key):null}},components:{PanelMenuSub:Hi}};function Nm(t,e,n,r,o,s){var i=l.resolveComponent("PanelMenuSub");return l.openBlock(),l.createBlock(i,l.mergeProps({id:n.panelId+"_list",class:t.cx("rootList"),role:"tree",tabindex:-1,"aria-activedescendant":o.focused?s.focusedItemId:void 0,panelId:n.panelId,focusedItemId:o.focused?s.focusedItemId:void 0,items:s.processedItems,templates:n.templates,activeItemPath:o.activeItemPath,onFocus:s.onFocus,onBlur:s.onBlur,onKeydown:s.onKeyDown,onItemToggle:s.onItemToggle,onItemMousemove:s.onItemMouseMove,pt:t.pt,unstyled:t.unstyled},t.ptm("rootList")),null,16,["id","class","aria-activedescendant","panelId","focusedItemId","items","templates","activeItemPath","onFocus","onBlur","onKeydown","onItemToggle","onItemMousemove","pt","unstyled"])}Vi.render=Nm;function cn(t){"@babel/helpers - typeof";return cn=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},cn(t)}function Cs(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 Bm(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?Cs(Object(n),!0).forEach(function(r){Dm(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Cs(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function Dm(t,e,n){return(e=Mm(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function Mm(t){var e=Um(t,"string");return cn(e)=="symbol"?e:e+""}function Um(t,e){if(cn(t)!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e||"default");if(cn(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}var ji={name:"PanelMenu",extends:Cm,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||Dn()}},mounted:function(){this.id=this.id||Dn()},methods:{getItemProp:function(e,n){return e?Ie(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 Pt(e,n)}):Pt(e,this.activeItem)},isItemVisible:function(e){return this.getItemProp(e,"visible")!==!1},isItemDisabled:function(e){return this.getItemProp(e,"disabled")},isItemFocused:function(e){return Pt(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),Gt(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=Yt(e.currentTarget,"data-p-active")===!0?je(e.currentTarget.nextElementSibling,'[data-pc-section="rootlist"]'):null;n?Gt(n):this.updateFocusedHeader({originalEvent:e,focusOnNext:!0}),e.preventDefault()},onHeaderArrowUpKey:function(e){var n=this.findPrevHeader(e.currentTarget.parentElement)||this.findLastHeader(),r=Yt(n,"data-p-active")===!0?je(n.nextElementSibling,'[data-pc-section="rootlist"]'):null;r?Gt(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=je(e.currentTarget,'[data-pc-section="headerlink"]');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=je(r,'[data-pc-section="header"]');return o?Yt(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=je(r,'[data-pc-section="header"]');return o?Yt(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,s=n.currentTarget.closest('[data-pc-section="panel"]'),i=o?je(s,'[data-pc-section="header"]'):r?this.findNextHeader(s):this.findPrevHeader(s);i?this.changeFocusedHeader(n,i):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),s=o?"panel-close":"panel-open";this.activeItem=r?n:this.activeItem&&Pt(n,this.activeItem)?null:n,this.multiple&&(this.activeItems.some(function(i){return Pt(n,i)})?this.activeItems=this.activeItems.filter(function(i){return!Pt(n,i)}):this.activeItems.push(n)),this.changeExpandedKeys({item:n,expanded:!o}),this.$emit(s,{originalEvent:e,item:n})}},changeExpandedKeys:function(e){var n=e.item,r=e.expanded,o=r===void 0?!1:r;if(this.expandedKeys){var s=Bm({},this.expandedKeys);o?s[n.key]=!0:delete s[n.key],this.$emit("update:expandedKeys",s)}},changeFocusedHeader:function(e,n){n&&Gt(n)},getMenuItemProps:function(e,n){return{icon:l.mergeProps({class:[this.cx("headerIcon"),this.getItemProp(e,"icon")]},this.getPTOptions("headerIcon",e,n)),label:l.mergeProps({class:this.cx("headerLabel")},this.getPTOptions("headerLabel",e,n))}}},components:{PanelMenuList:Vi,ChevronRightIcon:ao,ChevronDownIcon:io}},Hm=["id"],Vm=["id","tabindex","aria-label","aria-expanded","aria-controls","aria-disabled","onClick","onKeydown","data-p-active","data-p-disabled"],jm=["href"],Fm=["id","aria-labelledby"];function zm(t,e,n,r,o,s){var i=l.resolveComponent("PanelMenuList");return l.openBlock(),l.createElementBlock("div",l.mergeProps({id:o.id,class:t.cx("root")},t.ptmi("root")),[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(t.model,function(a,c){return l.openBlock(),l.createElementBlock(l.Fragment,{key:s.getPanelKey(c)},[s.isItemVisible(a)?(l.openBlock(),l.createElementBlock("div",l.mergeProps({key:0,style:s.getItemProp(a,"style"),class:[t.cx("panel"),s.getItemProp(a,"class")],ref_for:!0},t.ptm("panel")),[l.createElementVNode("div",l.mergeProps({id:s.getHeaderId(c),class:[t.cx("header",{item:a}),s.getItemProp(a,"headerClass")],tabindex:s.isItemDisabled(a)?-1:t.tabindex,role:"button","aria-label":s.getItemLabel(a),"aria-expanded":s.isItemActive(a),"aria-controls":s.getContentId(c),"aria-disabled":s.isItemDisabled(a),onClick:function(d){return s.onHeaderClick(d,a)},onKeydown:function(d){return s.onHeaderKeyDown(d,a)},ref_for:!0},s.getPTOptions("header",a,c),{"data-p-active":s.isItemActive(a),"data-p-disabled":s.isItemDisabled(a)}),[l.createElementVNode("div",l.mergeProps({class:t.cx("headerContent"),ref_for:!0},s.getPTOptions("headerContent",a,c)),[t.$slots.item?(l.openBlock(),l.createBlock(l.resolveDynamicComponent(t.$slots.item),{key:1,item:a,root:!0,active:s.isItemActive(a),hasSubmenu:s.getItemProp(a,"items"),label:s.getItemLabel(a),props:s.getMenuItemProps(a,c)},null,8,["item","active","hasSubmenu","label","props"])):(l.openBlock(),l.createElementBlock("a",l.mergeProps({key:0,href:s.getItemProp(a,"url"),class:t.cx("headerLink"),tabindex:-1,ref_for:!0},s.getPTOptions("headerLink",a,c)),[s.getItemProp(a,"items")?l.renderSlot(t.$slots,"submenuicon",{key:0,active:s.isItemActive(a)},function(){return[(l.openBlock(),l.createBlock(l.resolveDynamicComponent(s.isItemActive(a)?"ChevronDownIcon":"ChevronRightIcon"),l.mergeProps({class:t.cx("submenuIcon"),ref_for:!0},s.getPTOptions("submenuIcon",a,c)),null,16,["class"]))]}):l.createCommentVNode("",!0),t.$slots.headericon?(l.openBlock(),l.createBlock(l.resolveDynamicComponent(t.$slots.headericon),{key:1,item:a,class:l.normalizeClass([t.cx("headerIcon"),s.getItemProp(a,"icon")])},null,8,["item","class"])):s.getItemProp(a,"icon")?(l.openBlock(),l.createElementBlock("span",l.mergeProps({key:2,class:[t.cx("headerIcon"),s.getItemProp(a,"icon")],ref_for:!0},s.getPTOptions("headerIcon",a,c)),null,16)):l.createCommentVNode("",!0),l.createElementVNode("span",l.mergeProps({class:t.cx("headerLabel"),ref_for:!0},s.getPTOptions("headerLabel",a,c)),l.toDisplayString(s.getItemLabel(a)),17)],16,jm))],16)],16,Vm),l.createVNode(l.Transition,l.mergeProps({name:"p-toggleable-content",ref_for:!0},t.ptm("transition")),{default:l.withCtx(function(){return[l.withDirectives(l.createElementVNode("div",l.mergeProps({id:s.getContentId(c),class:t.cx("contentContainer"),role:"region","aria-labelledby":s.getHeaderId(c),ref_for:!0},t.ptm("contentContainer")),[s.getItemProp(a,"items")?(l.openBlock(),l.createElementBlock("div",l.mergeProps({key:0,class:t.cx("content"),ref_for:!0},t.ptm("content")),[l.createVNode(i,{panelId:s.getPanelId(c),items:s.getItemProp(a,"items"),templates:t.$slots,expandedKeys:t.expandedKeys,onItemToggle:s.changeExpandedKeys,onHeaderFocus:s.updateFocusedHeader,pt:t.pt,unstyled:t.unstyled},null,8,["panelId","items","templates","expandedKeys","onItemToggle","onHeaderFocus","pt","unstyled"])],16)):l.createCommentVNode("",!0)],16,Fm),[[l.vShow,s.isItemActive(a)]])]}),_:2},1040)],16)):l.createCommentVNode("",!0)],64)}),128))],16,Hm)}ji.render=zm;const Km=t=>(l.pushScopeId("data-v-74bc83ee"),t=t(),l.popScopeId(),t),Wm={class:"panel-menu-wrapper"},qm=["data-active","href","onClick"],Gm={class:"material-symbols-outlined item-menu-icon-left"},Ym={key:1,class:"item-menu sf-ripple"},Jm={key:0,class:"material-symbols-outlined item-menu-icon-left"},Xm=Km(()=>l.createElementVNode("div",{class:"sf-flex-grow-1"},null,-1)),Zm=l.defineComponent({__name:"NavMenu",props:{items:{}},setup(t){const e=t,n=jr();function r(o,s){o.preventDefault();const a=o.target.closest(".panel-menu-wrapper");a&&a.clientWidth+10>document.body.clientWidth&&n.Close(),s()}return(o,s)=>{const i=l.resolveComponent("router-link");return l.openBlock(),l.createElementBlock("div",Wm,[l.createVNode(l.unref(ji),{model:e.items,unstyled:!0},{item:l.withCtx(({item:a,active:c})=>[a.href?(l.openBlock(),l.createBlock(i,{key:0,to:{path:a.href,params:a.params??{},query:a.query??{}},custom:""},{default:l.withCtx(({navigate:u,isActive:d})=>[l.createElementVNode("a",{class:"item-menu sf-ripple","data-active":d,href:a.href,onClick:m=>r(m,u)},[l.createElementVNode("span",Gm,l.toDisplayString(a.icon??"chevron_right"),1),l.createElementVNode("span",null,l.toDisplayString(a.text),1)],8,qm)]),_:2},1032,["to"])):(l.openBlock(),l.createElementBlock("a",Ym,[a.icon?(l.openBlock(),l.createElementBlock("span",Jm,l.toDisplayString(a.icon),1)):l.createCommentVNode("",!0),l.createElementVNode("span",null,l.toDisplayString(a.text),1),Xm,l.createElementVNode("span",{class:l.normalizeClass(["material-symbols-outlined arrow",{"--expand":c}])}," chevron_right ",2)]))]),_:1},8,["model"])])}}}),Qm=jn(Zm,[["__scopeId","data-v-74bc83ee"]]);class un{constructor(e=null){Te(this,"errors",[]);Te(this,"_value",null);Te(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 Fi(t,e){return function(){return t.apply(e,arguments)}}const{toString:ep}=Object.prototype,{getPrototypeOf:lo}=Object,Jn=(t=>e=>{const n=ep.call(e);return t[n]||(t[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),qe=t=>(t=t.toLowerCase(),e=>Jn(e)===t),Xn=t=>e=>typeof e===t,{isArray:Bt}=Array,dn=Xn("undefined");function tp(t){return t!==null&&!dn(t)&&t.constructor!==null&&!dn(t.constructor)&&xe(t.constructor.isBuffer)&&t.constructor.isBuffer(t)}const zi=qe("ArrayBuffer");function np(t){let e;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?e=ArrayBuffer.isView(t):e=t&&t.buffer&&zi(t.buffer),e}const rp=Xn("string"),xe=Xn("function"),Ki=Xn("number"),Zn=t=>t!==null&&typeof t=="object",op=t=>t===!0||t===!1,xn=t=>{if(Jn(t)!=="object")return!1;const e=lo(t);return(e===null||e===Object.prototype||Object.getPrototypeOf(e)===null)&&!(Symbol.toStringTag in t)&&!(Symbol.iterator in t)},sp=qe("Date"),ip=qe("File"),ap=qe("Blob"),lp=qe("FileList"),cp=t=>Zn(t)&&xe(t.pipe),up=t=>{let e;return t&&(typeof FormData=="function"&&t instanceof FormData||xe(t.append)&&((e=Jn(t))==="formdata"||e==="object"&&xe(t.toString)&&t.toString()==="[object FormData]"))},dp=qe("URLSearchParams"),[fp,mp,pp,hp]=["ReadableStream","Request","Response","Headers"].map(qe),gp=t=>t.trim?t.trim():t.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function vn(t,e,{allOwnKeys:n=!1}={}){if(t===null||typeof t>"u")return;let r,o;if(typeof t!="object"&&(t=[t]),Bt(t))for(r=0,o=t.length;r<o;r++)e.call(null,t[r],r,t);else{const s=n?Object.getOwnPropertyNames(t):Object.keys(t),i=s.length;let a;for(r=0;r<i;r++)a=s[r],e.call(null,t[a],a,t)}}function Wi(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 gt=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,qi=t=>!dn(t)&&t!==gt;function Nr(){const{caseless:t}=qi(this)&&this||{},e={},n=(r,o)=>{const s=t&&Wi(e,o)||o;xn(e[s])&&xn(r)?e[s]=Nr(e[s],r):xn(r)?e[s]=Nr({},r):Bt(r)?e[s]=r.slice():e[s]=r};for(let r=0,o=arguments.length;r<o;r++)arguments[r]&&vn(arguments[r],n);return e}const yp=(t,e,n,{allOwnKeys:r}={})=>(vn(e,(o,s)=>{n&&xe(o)?t[s]=Fi(o,n):t[s]=o},{allOwnKeys:r}),t),vp=t=>(t.charCodeAt(0)===65279&&(t=t.slice(1)),t),bp=(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)},wp=(t,e,n,r)=>{let o,s,i;const a={};if(e=e||{},t==null)return e;do{for(o=Object.getOwnPropertyNames(t),s=o.length;s-- >0;)i=o[s],(!r||r(i,t,e))&&!a[i]&&(e[i]=t[i],a[i]=!0);t=n!==!1&&lo(t)}while(t&&(!n||n(t,e))&&t!==Object.prototype);return e},Sp=(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},_p=t=>{if(!t)return null;if(Bt(t))return t;let e=t.length;if(!Ki(e))return null;const n=new Array(e);for(;e-- >0;)n[e]=t[e];return n},kp=(t=>e=>t&&e instanceof t)(typeof Uint8Array<"u"&&lo(Uint8Array)),Cp=(t,e)=>{const r=(t&&t[Symbol.iterator]).call(t);let o;for(;(o=r.next())&&!o.done;){const s=o.value;e.call(t,s[0],s[1])}},Ep=(t,e)=>{let n;const r=[];for(;(n=t.exec(e))!==null;)r.push(n);return r},Tp=qe("HTMLFormElement"),Ap=t=>t.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,r,o){return r.toUpperCase()+o}),Es=(({hasOwnProperty:t})=>(e,n)=>t.call(e,n))(Object.prototype),Pp=qe("RegExp"),Gi=(t,e)=>{const n=Object.getOwnPropertyDescriptors(t),r={};vn(n,(o,s)=>{let i;(i=e(o,s,t))!==!1&&(r[s]=i||o)}),Object.defineProperties(t,r)},Ip=t=>{Gi(t,(e,n)=>{if(xe(t)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const r=t[n];if(xe(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+"'")})}})},xp=(t,e)=>{const n={},r=o=>{o.forEach(s=>{n[s]=!0})};return Bt(t)?r(t):r(String(t).split(e)),n},Op=()=>{},Lp=(t,e)=>t!=null&&Number.isFinite(t=+t)?t:e,wr="abcdefghijklmnopqrstuvwxyz",Ts="0123456789",Yi={DIGIT:Ts,ALPHA:wr,ALPHA_DIGIT:wr+wr.toUpperCase()+Ts},$p=(t=16,e=Yi.ALPHA_DIGIT)=>{let n="";const{length:r}=e;for(;t--;)n+=e[Math.random()*r|0];return n};function Rp(t){return!!(t&&xe(t.append)&&t[Symbol.toStringTag]==="FormData"&&t[Symbol.iterator])}const Np=t=>{const e=new Array(10),n=(r,o)=>{if(Zn(r)){if(e.indexOf(r)>=0)return;if(!("toJSON"in r)){e[o]=r;const s=Bt(r)?[]:{};return vn(r,(i,a)=>{const c=n(i,o+1);!dn(c)&&(s[a]=c)}),e[o]=void 0,s}}return r};return n(t,0)},Bp=qe("AsyncFunction"),Dp=t=>t&&(Zn(t)||xe(t))&&xe(t.then)&&xe(t.catch),Ji=((t,e)=>t?setImmediate:e?((n,r)=>(gt.addEventListener("message",({source:o,data:s})=>{o===gt&&s===n&&r.length&&r.shift()()},!1),o=>{r.push(o),gt.postMessage(n,"*")}))(`axios@${Math.random()}`,[]):n=>setTimeout(n))(typeof setImmediate=="function",xe(gt.postMessage)),Mp=typeof queueMicrotask<"u"?queueMicrotask.bind(gt):typeof process<"u"&&process.nextTick||Ji,y={isArray:Bt,isArrayBuffer:zi,isBuffer:tp,isFormData:up,isArrayBufferView:np,isString:rp,isNumber:Ki,isBoolean:op,isObject:Zn,isPlainObject:xn,isReadableStream:fp,isRequest:mp,isResponse:pp,isHeaders:hp,isUndefined:dn,isDate:sp,isFile:ip,isBlob:ap,isRegExp:Pp,isFunction:xe,isStream:cp,isURLSearchParams:dp,isTypedArray:kp,isFileList:lp,forEach:vn,merge:Nr,extend:yp,trim:gp,stripBOM:vp,inherits:bp,toFlatObject:wp,kindOf:Jn,kindOfTest:qe,endsWith:Sp,toArray:_p,forEachEntry:Cp,matchAll:Ep,isHTMLForm:Tp,hasOwnProperty:Es,hasOwnProp:Es,reduceDescriptors:Gi,freezeMethods:Ip,toObjectSet:xp,toCamelCase:Ap,noop:Op,toFiniteNumber:Lp,findKey:Wi,global:gt,isContextDefined:qi,ALPHABET:Yi,generateString:$p,isSpecCompliantForm:Rp,toJSONObject:Np,isAsyncFn:Bp,isThenable:Dp,setImmediate:Ji,asap:Mp};function M(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)}y.inherits(M,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:y.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const Xi=M.prototype,Zi={};["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=>{Zi[t]={value:t}});Object.defineProperties(M,Zi);Object.defineProperty(Xi,"isAxiosError",{value:!0});M.from=(t,e,n,r,o,s)=>{const i=Object.create(Xi);return y.toFlatObject(t,i,function(c){return c!==Error.prototype},a=>a!=="isAxiosError"),M.call(i,t.message,e,n,r,o),i.cause=t,i.name=t.name,s&&Object.assign(i,s),i};const Up=null;function Br(t){return y.isPlainObject(t)||y.isArray(t)}function Qi(t){return y.endsWith(t,"[]")?t.slice(0,-2):t}function As(t,e,n){return t?t.concat(e).map(function(o,s){return o=Qi(o),!n&&s?"["+o+"]":o}).join(n?".":""):e}function Hp(t){return y.isArray(t)&&!t.some(Br)}const Vp=y.toFlatObject(y,{},null,function(e){return/^is[A-Z]/.test(e)});function Qn(t,e,n){if(!y.isObject(t))throw new TypeError("target must be an object");e=e||new FormData,n=y.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(T,w){return!y.isUndefined(w[T])});const r=n.metaTokens,o=n.visitor||d,s=n.dots,i=n.indexes,c=(n.Blob||typeof Blob<"u"&&Blob)&&y.isSpecCompliantForm(e);if(!y.isFunction(o))throw new TypeError("visitor must be a function");function u(v){if(v===null)return"";if(y.isDate(v))return v.toISOString();if(!c&&y.isBlob(v))throw new M("Blob is not supported. Use a Buffer instead.");return y.isArrayBuffer(v)||y.isTypedArray(v)?c&&typeof Blob=="function"?new Blob([v]):Buffer.from(v):v}function d(v,T,w){let B=v;if(v&&!w&&typeof v=="object"){if(y.endsWith(T,"{}"))T=r?T:T.slice(0,-2),v=JSON.stringify(v);else if(y.isArray(v)&&Hp(v)||(y.isFileList(v)||y.endsWith(T,"[]"))&&(B=y.toArray(v)))return T=Qi(T),B.forEach(function(A,j){!(y.isUndefined(A)||A===null)&&e.append(i===!0?As([T],j,s):i===null?T:T+"[]",u(A))}),!1}return Br(v)?!0:(e.append(As(w,T,s),u(v)),!1)}const m=[],g=Object.assign(Vp,{defaultVisitor:d,convertValue:u,isVisitable:Br});function _(v,T){if(!y.isUndefined(v)){if(m.indexOf(v)!==-1)throw Error("Circular reference detected in "+T.join("."));m.push(v),y.forEach(v,function(B,C){(!(y.isUndefined(B)||B===null)&&o.call(e,B,y.isString(C)?C.trim():C,T,g))===!0&&_(B,T?T.concat(C):[C])}),m.pop()}}if(!y.isObject(t))throw new TypeError("data must be an object");return _(t),e}function Ps(t){const e={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(t).replace(/[!'()~]|%20|%00/g,function(r){return e[r]})}function co(t,e){this._pairs=[],t&&Qn(t,this,e)}const ea=co.prototype;ea.append=function(e,n){this._pairs.push([e,n])};ea.toString=function(e){const n=e?function(r){return e.call(this,r,Ps)}:Ps;return this._pairs.map(function(o){return n(o[0])+"="+n(o[1])},"").join("&")};function jp(t){return encodeURIComponent(t).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function ta(t,e,n){if(!e)return t;const r=n&&n.encode||jp,o=n&&n.serialize;let s;if(o?s=o(e,n):s=y.isURLSearchParams(e)?e.toString():new co(e,n).toString(r),s){const i=t.indexOf("#");i!==-1&&(t=t.slice(0,i)),t+=(t.indexOf("?")===-1?"?":"&")+s}return t}class Is{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){y.forEach(this.handlers,function(r){r!==null&&e(r)})}}const na={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},Fp=typeof URLSearchParams<"u"?URLSearchParams:co,zp=typeof FormData<"u"?FormData:null,Kp=typeof Blob<"u"?Blob:null,Wp={isBrowser:!0,classes:{URLSearchParams:Fp,FormData:zp,Blob:Kp},protocols:["http","https","file","blob","url","data"]},uo=typeof window<"u"&&typeof document<"u",qp=(t=>uo&&["ReactNative","NativeScript","NS"].indexOf(t)<0)(typeof navigator<"u"&&navigator.product),Gp=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",Yp=uo&&window.location.href||"http://localhost",Jp=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:uo,hasStandardBrowserEnv:qp,hasStandardBrowserWebWorkerEnv:Gp,origin:Yp},Symbol.toStringTag,{value:"Module"})),ze={...Jp,...Wp};function Xp(t,e){return Qn(t,new ze.classes.URLSearchParams,Object.assign({visitor:function(n,r,o,s){return ze.isNode&&y.isBuffer(n)?(this.append(r,n.toString("base64")),!1):s.defaultVisitor.apply(this,arguments)}},e))}function Zp(t){return y.matchAll(/\w+|\[(\w*)]/g,t).map(e=>e[0]==="[]"?"":e[1]||e[0])}function Qp(t){const e={},n=Object.keys(t);let r;const o=n.length;let s;for(r=0;r<o;r++)s=n[r],e[s]=t[s];return e}function ra(t){function e(n,r,o,s){let i=n[s++];if(i==="__proto__")return!0;const a=Number.isFinite(+i),c=s>=n.length;return i=!i&&y.isArray(o)?o.length:i,c?(y.hasOwnProp(o,i)?o[i]=[o[i],r]:o[i]=r,!a):((!o[i]||!y.isObject(o[i]))&&(o[i]=[]),e(n,r,o[i],s)&&y.isArray(o[i])&&(o[i]=Qp(o[i])),!a)}if(y.isFormData(t)&&y.isFunction(t.entries)){const n={};return y.forEachEntry(t,(r,o)=>{e(Zp(r),o,n,0)}),n}return null}function eh(t,e,n){if(y.isString(t))try{return(e||JSON.parse)(t),y.trim(t)}catch(r){if(r.name!=="SyntaxError")throw r}return(n||JSON.stringify)(t)}const bn={transitional:na,adapter:["xhr","http","fetch"],transformRequest:[function(e,n){const r=n.getContentType()||"",o=r.indexOf("application/json")>-1,s=y.isObject(e);if(s&&y.isHTMLForm(e)&&(e=new FormData(e)),y.isFormData(e))return o?JSON.stringify(ra(e)):e;if(y.isArrayBuffer(e)||y.isBuffer(e)||y.isStream(e)||y.isFile(e)||y.isBlob(e)||y.isReadableStream(e))return e;if(y.isArrayBufferView(e))return e.buffer;if(y.isURLSearchParams(e))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let a;if(s){if(r.indexOf("application/x-www-form-urlencoded")>-1)return Xp(e,this.formSerializer).toString();if((a=y.isFileList(e))||r.indexOf("multipart/form-data")>-1){const c=this.env&&this.env.FormData;return Qn(a?{"files[]":e}:e,c&&new c,this.formSerializer)}}return s||o?(n.setContentType("application/json",!1),eh(e)):e}],transformResponse:[function(e){const n=this.transitional||bn.transitional,r=n&&n.forcedJSONParsing,o=this.responseType==="json";if(y.isResponse(e)||y.isReadableStream(e))return e;if(e&&y.isString(e)&&(r&&!this.responseType||o)){const i=!(n&&n.silentJSONParsing)&&o;try{return JSON.parse(e)}catch(a){if(i)throw a.name==="SyntaxError"?M.from(a,M.ERR_BAD_RESPONSE,this,null,this.response):a}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:ze.classes.FormData,Blob:ze.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};y.forEach(["delete","get","head","post","put","patch"],t=>{bn.headers[t]={}});const th=y.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"]),nh=t=>{const e={};let n,r,o;return t&&t.split(`
|
|
411
|
+
`).forEach(function(i){o=i.indexOf(":"),n=i.substring(0,o).trim().toLowerCase(),r=i.substring(o+1).trim(),!(!n||e[n]&&th[n])&&(n==="set-cookie"?e[n]?e[n].push(r):e[n]=[r]:e[n]=e[n]?e[n]+", "+r:r)}),e},xs=Symbol("internals");function Wt(t){return t&&String(t).trim().toLowerCase()}function On(t){return t===!1||t==null?t:y.isArray(t)?t.map(On):String(t)}function rh(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 oh=t=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(t.trim());function Sr(t,e,n,r,o){if(y.isFunction(r))return r.call(this,e,n);if(o&&(e=n),!!y.isString(e)){if(y.isString(r))return e.indexOf(r)!==-1;if(y.isRegExp(r))return r.test(e)}}function sh(t){return t.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(e,n,r)=>n.toUpperCase()+r)}function ih(t,e){const n=y.toCamelCase(" "+e);["get","set","has"].forEach(r=>{Object.defineProperty(t,r+n,{value:function(o,s,i){return this[r].call(this,e,o,s,i)},configurable:!0})})}class ke{constructor(e){e&&this.set(e)}set(e,n,r){const o=this;function s(a,c,u){const d=Wt(c);if(!d)throw new Error("header name must be a non-empty string");const m=y.findKey(o,d);(!m||o[m]===void 0||u===!0||u===void 0&&o[m]!==!1)&&(o[m||c]=On(a))}const i=(a,c)=>y.forEach(a,(u,d)=>s(u,d,c));if(y.isPlainObject(e)||e instanceof this.constructor)i(e,n);else if(y.isString(e)&&(e=e.trim())&&!oh(e))i(nh(e),n);else if(y.isHeaders(e))for(const[a,c]of e.entries())s(c,a,r);else e!=null&&s(n,e,r);return this}get(e,n){if(e=Wt(e),e){const r=y.findKey(this,e);if(r){const o=this[r];if(!n)return o;if(n===!0)return rh(o);if(y.isFunction(n))return n.call(this,o,r);if(y.isRegExp(n))return n.exec(o);throw new TypeError("parser must be boolean|regexp|function")}}}has(e,n){if(e=Wt(e),e){const r=y.findKey(this,e);return!!(r&&this[r]!==void 0&&(!n||Sr(this,this[r],r,n)))}return!1}delete(e,n){const r=this;let o=!1;function s(i){if(i=Wt(i),i){const a=y.findKey(r,i);a&&(!n||Sr(r,r[a],a,n))&&(delete r[a],o=!0)}}return y.isArray(e)?e.forEach(s):s(e),o}clear(e){const n=Object.keys(this);let r=n.length,o=!1;for(;r--;){const s=n[r];(!e||Sr(this,this[s],s,e,!0))&&(delete this[s],o=!0)}return o}normalize(e){const n=this,r={};return y.forEach(this,(o,s)=>{const i=y.findKey(r,s);if(i){n[i]=On(o),delete n[s];return}const a=e?sh(s):String(s).trim();a!==s&&delete n[s],n[a]=On(o),r[a]=!0}),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){const n=Object.create(null);return y.forEach(this,(r,o)=>{r!=null&&r!==!1&&(n[o]=e&&y.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(`
|
|
412
|
+
`)}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[xs]=this[xs]={accessors:{}}).accessors,o=this.prototype;function s(i){const a=Wt(i);r[a]||(ih(o,i),r[a]=!0)}return y.isArray(e)?e.forEach(s):s(e),this}}ke.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);y.reduceDescriptors(ke.prototype,({value:t},e)=>{let n=e[0].toUpperCase()+e.slice(1);return{get:()=>t,set(r){this[n]=r}}});y.freezeMethods(ke);function _r(t,e){const n=this||bn,r=e||n,o=ke.from(r.headers);let s=r.data;return y.forEach(t,function(a){s=a.call(n,s,o.normalize(),e?e.status:void 0)}),o.normalize(),s}function oa(t){return!!(t&&t.__CANCEL__)}function Dt(t,e,n){M.call(this,t??"canceled",M.ERR_CANCELED,e,n),this.name="CanceledError"}y.inherits(Dt,M,{__CANCEL__:!0});function sa(t,e,n){const r=n.config.validateStatus;!n.status||!r||r(n.status)?t(n):e(new M("Request failed with status code "+n.status,[M.ERR_BAD_REQUEST,M.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}function ah(t){const e=/^([-+\w]{1,25})(:?\/\/|:)/.exec(t);return e&&e[1]||""}function lh(t,e){t=t||10;const n=new Array(t),r=new Array(t);let o=0,s=0,i;return e=e!==void 0?e:1e3,function(c){const u=Date.now(),d=r[s];i||(i=u),n[o]=c,r[o]=u;let m=s,g=0;for(;m!==o;)g+=n[m++],m=m%t;if(o=(o+1)%t,o===s&&(s=(s+1)%t),u-i<e)return;const _=d&&u-d;return _?Math.round(g*1e3/_):void 0}}function ch(t,e){let n=0,r=1e3/e,o,s;const i=(u,d=Date.now())=>{n=d,o=null,s&&(clearTimeout(s),s=null),t.apply(null,u)};return[(...u)=>{const d=Date.now(),m=d-n;m>=r?i(u,d):(o=u,s||(s=setTimeout(()=>{s=null,i(o)},r-m)))},()=>o&&i(o)]}const Un=(t,e,n=3)=>{let r=0;const o=lh(50,250);return ch(s=>{const i=s.loaded,a=s.lengthComputable?s.total:void 0,c=i-r,u=o(c),d=i<=a;r=i;const m={loaded:i,total:a,progress:a?i/a:void 0,bytes:c,rate:u||void 0,estimated:u&&a&&d?(a-i)/u:void 0,event:s,lengthComputable:a!=null,[e?"download":"upload"]:!0};t(m)},n)},Os=(t,e)=>{const n=t!=null;return[r=>e[0]({lengthComputable:n,total:t,loaded:r}),e[1]]},Ls=t=>(...e)=>y.asap(()=>t(...e)),uh=ze.hasStandardBrowserEnv?function(){const e=/(msie|trident)/i.test(navigator.userAgent),n=document.createElement("a");let r;function o(s){let i=s;return e&&(n.setAttribute("href",i),i=n.href),n.setAttribute("href",i),{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(i){const a=y.isString(i)?o(i):i;return a.protocol===r.protocol&&a.host===r.host}}():function(){return function(){return!0}}(),dh=ze.hasStandardBrowserEnv?{write(t,e,n,r,o,s){const i=[t+"="+encodeURIComponent(e)];y.isNumber(n)&&i.push("expires="+new Date(n).toGMTString()),y.isString(r)&&i.push("path="+r),y.isString(o)&&i.push("domain="+o),s===!0&&i.push("secure"),document.cookie=i.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 fh(t){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(t)}function mh(t,e){return e?t.replace(/\/?\/$/,"")+"/"+e.replace(/^\/+/,""):t}function ia(t,e){return t&&!fh(e)?mh(t,e):e}const $s=t=>t instanceof ke?{...t}:t;function _t(t,e){e=e||{};const n={};function r(u,d,m){return y.isPlainObject(u)&&y.isPlainObject(d)?y.merge.call({caseless:m},u,d):y.isPlainObject(d)?y.merge({},d):y.isArray(d)?d.slice():d}function o(u,d,m){if(y.isUndefined(d)){if(!y.isUndefined(u))return r(void 0,u,m)}else return r(u,d,m)}function s(u,d){if(!y.isUndefined(d))return r(void 0,d)}function i(u,d){if(y.isUndefined(d)){if(!y.isUndefined(u))return r(void 0,u)}else return r(void 0,d)}function a(u,d,m){if(m in e)return r(u,d);if(m in t)return r(void 0,u)}const c={url:s,method:s,data:s,baseURL:i,transformRequest:i,transformResponse:i,paramsSerializer:i,timeout:i,timeoutMessage:i,withCredentials:i,withXSRFToken:i,adapter:i,responseType:i,xsrfCookieName:i,xsrfHeaderName:i,onUploadProgress:i,onDownloadProgress:i,decompress:i,maxContentLength:i,maxBodyLength:i,beforeRedirect:i,transport:i,httpAgent:i,httpsAgent:i,cancelToken:i,socketPath:i,responseEncoding:i,validateStatus:a,headers:(u,d)=>o($s(u),$s(d),!0)};return y.forEach(Object.keys(Object.assign({},t,e)),function(d){const m=c[d]||o,g=m(t[d],e[d],d);y.isUndefined(g)&&m!==a||(n[d]=g)}),n}const aa=t=>{const e=_t({},t);let{data:n,withXSRFToken:r,xsrfHeaderName:o,xsrfCookieName:s,headers:i,auth:a}=e;e.headers=i=ke.from(i),e.url=ta(ia(e.baseURL,e.url),t.params,t.paramsSerializer),a&&i.set("Authorization","Basic "+btoa((a.username||"")+":"+(a.password?unescape(encodeURIComponent(a.password)):"")));let c;if(y.isFormData(n)){if(ze.hasStandardBrowserEnv||ze.hasStandardBrowserWebWorkerEnv)i.setContentType(void 0);else if((c=i.getContentType())!==!1){const[u,...d]=c?c.split(";").map(m=>m.trim()).filter(Boolean):[];i.setContentType([u||"multipart/form-data",...d].join("; "))}}if(ze.hasStandardBrowserEnv&&(r&&y.isFunction(r)&&(r=r(e)),r||r!==!1&&uh(e.url))){const u=o&&s&&dh.read(s);u&&i.set(o,u)}return e},ph=typeof XMLHttpRequest<"u",hh=ph&&function(t){return new Promise(function(n,r){const o=aa(t);let s=o.data;const i=ke.from(o.headers).normalize();let{responseType:a,onUploadProgress:c,onDownloadProgress:u}=o,d,m,g,_,v;function T(){_&&_(),v&&v(),o.cancelToken&&o.cancelToken.unsubscribe(d),o.signal&&o.signal.removeEventListener("abort",d)}let w=new XMLHttpRequest;w.open(o.method.toUpperCase(),o.url,!0),w.timeout=o.timeout;function B(){if(!w)return;const A=ke.from("getAllResponseHeaders"in w&&w.getAllResponseHeaders()),X={data:!a||a==="text"||a==="json"?w.responseText:w.response,status:w.status,statusText:w.statusText,headers:A,config:t,request:w};sa(function(J){n(J),T()},function(J){r(J),T()},X),w=null}"onloadend"in w?w.onloadend=B:w.onreadystatechange=function(){!w||w.readyState!==4||w.status===0&&!(w.responseURL&&w.responseURL.indexOf("file:")===0)||setTimeout(B)},w.onabort=function(){w&&(r(new M("Request aborted",M.ECONNABORTED,t,w)),w=null)},w.onerror=function(){r(new M("Network Error",M.ERR_NETWORK,t,w)),w=null},w.ontimeout=function(){let j=o.timeout?"timeout of "+o.timeout+"ms exceeded":"timeout exceeded";const X=o.transitional||na;o.timeoutErrorMessage&&(j=o.timeoutErrorMessage),r(new M(j,X.clarifyTimeoutError?M.ETIMEDOUT:M.ECONNABORTED,t,w)),w=null},s===void 0&&i.setContentType(null),"setRequestHeader"in w&&y.forEach(i.toJSON(),function(j,X){w.setRequestHeader(X,j)}),y.isUndefined(o.withCredentials)||(w.withCredentials=!!o.withCredentials),a&&a!=="json"&&(w.responseType=o.responseType),u&&([g,v]=Un(u,!0),w.addEventListener("progress",g)),c&&w.upload&&([m,_]=Un(c),w.upload.addEventListener("progress",m),w.upload.addEventListener("loadend",_)),(o.cancelToken||o.signal)&&(d=A=>{w&&(r(!A||A.type?new Dt(null,t,w):A),w.abort(),w=null)},o.cancelToken&&o.cancelToken.subscribe(d),o.signal&&(o.signal.aborted?d():o.signal.addEventListener("abort",d)));const C=ah(o.url);if(C&&ze.protocols.indexOf(C)===-1){r(new M("Unsupported protocol "+C+":",M.ERR_BAD_REQUEST,t));return}w.send(s||null)})},gh=(t,e)=>{let n=new AbortController,r;const o=function(c){if(!r){r=!0,i();const u=c instanceof Error?c:this.reason;n.abort(u instanceof M?u:new Dt(u instanceof Error?u.message:u))}};let s=e&&setTimeout(()=>{o(new M(`timeout ${e} of ms exceeded`,M.ETIMEDOUT))},e);const i=()=>{t&&(s&&clearTimeout(s),s=null,t.forEach(c=>{c&&(c.removeEventListener?c.removeEventListener("abort",o):c.unsubscribe(o))}),t=null)};t.forEach(c=>c&&c.addEventListener&&c.addEventListener("abort",o));const{signal:a}=n;return a.unsubscribe=i,[a,()=>{s&&clearTimeout(s),s=null}]},yh=function*(t,e){let n=t.byteLength;if(!e||n<e){yield t;return}let r=0,o;for(;r<n;)o=r+e,yield t.slice(r,o),r=o},vh=async function*(t,e,n){for await(const r of t)yield*yh(ArrayBuffer.isView(r)?r:await n(String(r)),e)},Rs=(t,e,n,r,o)=>{const s=vh(t,e,o);let i=0,a,c=u=>{a||(a=!0,r&&r(u))};return new ReadableStream({async pull(u){try{const{done:d,value:m}=await s.next();if(d){c(),u.close();return}let g=m.byteLength;if(n){let _=i+=g;n(_)}u.enqueue(new Uint8Array(m))}catch(d){throw c(d),d}},cancel(u){return c(u),s.return()}},{highWaterMark:2})},er=typeof fetch=="function"&&typeof Request=="function"&&typeof Response=="function",la=er&&typeof ReadableStream=="function",Dr=er&&(typeof TextEncoder=="function"?(t=>e=>t.encode(e))(new TextEncoder):async t=>new Uint8Array(await new Response(t).arrayBuffer())),ca=(t,...e)=>{try{return!!t(...e)}catch{return!1}},bh=la&&ca(()=>{let t=!1;const e=new Request(ze.origin,{body:new ReadableStream,method:"POST",get duplex(){return t=!0,"half"}}).headers.has("Content-Type");return t&&!e}),Ns=64*1024,Mr=la&&ca(()=>y.isReadableStream(new Response("").body)),Hn={stream:Mr&&(t=>t.body)};er&&(t=>{["text","arrayBuffer","blob","formData","stream"].forEach(e=>{!Hn[e]&&(Hn[e]=y.isFunction(t[e])?n=>n[e]():(n,r)=>{throw new M(`Response type '${e}' is not supported`,M.ERR_NOT_SUPPORT,r)})})})(new Response);const wh=async t=>{if(t==null)return 0;if(y.isBlob(t))return t.size;if(y.isSpecCompliantForm(t))return(await new Request(t).arrayBuffer()).byteLength;if(y.isArrayBufferView(t)||y.isArrayBuffer(t))return t.byteLength;if(y.isURLSearchParams(t)&&(t=t+""),y.isString(t))return(await Dr(t)).byteLength},Sh=async(t,e)=>{const n=y.toFiniteNumber(t.getContentLength());return n??wh(e)},_h=er&&(async t=>{let{url:e,method:n,data:r,signal:o,cancelToken:s,timeout:i,onDownloadProgress:a,onUploadProgress:c,responseType:u,headers:d,withCredentials:m="same-origin",fetchOptions:g}=aa(t);u=u?(u+"").toLowerCase():"text";let[_,v]=o||s||i?gh([o,s],i):[],T,w;const B=()=>{!T&&setTimeout(()=>{_&&_.unsubscribe()}),T=!0};let C;try{if(c&&bh&&n!=="get"&&n!=="head"&&(C=await Sh(d,r))!==0){let ne=new Request(e,{method:"POST",body:r,duplex:"half"}),J;if(y.isFormData(r)&&(J=ne.headers.get("content-type"))&&d.setContentType(J),ne.body){const[pe,se]=Os(C,Un(Ls(c)));r=Rs(ne.body,Ns,pe,se,Dr)}}y.isString(m)||(m=m?"include":"omit"),w=new Request(e,{...g,signal:_,method:n.toUpperCase(),headers:d.normalize().toJSON(),body:r,duplex:"half",credentials:m});let A=await fetch(w);const j=Mr&&(u==="stream"||u==="response");if(Mr&&(a||j)){const ne={};["status","statusText","headers"].forEach(U=>{ne[U]=A[U]});const J=y.toFiniteNumber(A.headers.get("content-length")),[pe,se]=a&&Os(J,Un(Ls(a),!0))||[];A=new Response(Rs(A.body,Ns,pe,()=>{se&&se(),j&&B()},Dr),ne)}u=u||"text";let X=await Hn[y.findKey(Hn,u)||"text"](A,t);return!j&&B(),v&&v(),await new Promise((ne,J)=>{sa(ne,J,{data:X,headers:ke.from(A.headers),status:A.status,statusText:A.statusText,config:t,request:w})})}catch(A){throw B(),A&&A.name==="TypeError"&&/fetch/i.test(A.message)?Object.assign(new M("Network Error",M.ERR_NETWORK,t,w),{cause:A.cause||A}):M.from(A,A&&A.code,t,w)}}),Ur={http:Up,xhr:hh,fetch:_h};y.forEach(Ur,(t,e)=>{if(t){try{Object.defineProperty(t,"name",{value:e})}catch{}Object.defineProperty(t,"adapterName",{value:e})}});const Bs=t=>`- ${t}`,kh=t=>y.isFunction(t)||t===null||t===!1,ua={getAdapter:t=>{t=y.isArray(t)?t:[t];const{length:e}=t;let n,r;const o={};for(let s=0;s<e;s++){n=t[s];let i;if(r=n,!kh(n)&&(r=Ur[(i=String(n)).toLowerCase()],r===void 0))throw new M(`Unknown adapter '${i}'`);if(r)break;o[i||"#"+s]=r}if(!r){const s=Object.entries(o).map(([a,c])=>`adapter ${a} `+(c===!1?"is not supported by the environment":"is not available in the build"));let i=e?s.length>1?`since :
|
|
413
413
|
`+s.map(Bs).join(`
|
|
414
|
-
`):" "+Bs(s[0]):"as no adapter specified";throw new M("There is no suitable adapter to dispatch the request "+i,"ERR_NOT_SUPPORT")}return r},adapters:
|
|
415
|
-
`+s):r.stack=s}catch{}}throw r}}_request(e,n){typeof e=="string"?(n=n||{},n.url=e):n=e||{},n=_t(this.defaults,n);const{transitional:r,paramsSerializer:o,headers:s}=n;r!==void 0&&Ur.assertOptions(r,{silentJSONParsing:at.transitional(at.boolean),forcedJSONParsing:at.transitional(at.boolean),clarifyTimeoutError:at.transitional(at.boolean)},!1),o!=null&&(y.isFunction(o)?n.paramsSerializer={serialize:o}:Ur.assertOptions(o,{encode:at.function,serialize:at.function},!0)),n.method=(n.method||this.defaults.method||"get").toLowerCase();let i=s&&y.merge(s.common,s[n.method]);s&&y.forEach(["delete","get","head","post","put","patch","common"],v=>{delete s[v]}),n.headers=ke.concat(i,s);const a=[];let c=!0;this.interceptors.request.forEach(function(T){typeof T.runWhen=="function"&&T.runWhen(n)===!1||(c=c&&T.synchronous,a.unshift(T.fulfilled,T.rejected))});const u=[];this.interceptors.response.forEach(function(T){u.push(T.fulfilled,T.rejected)});let d,m=0,g;if(!c){const v=[Ds.bind(this),void 0];for(v.unshift.apply(v,a),v.push.apply(v,u),g=v.length,d=Promise.resolve(n);m<g;)d=d.then(v[m++],v[m++]);return d}g=a.length;let _=n;for(m=0;m<g;){const v=a[m++],T=a[m++];try{_=v(_)}catch(w){T.call(this,w);break}}try{d=Ds.call(this,_)}catch(v){return Promise.reject(v)}for(m=0,g=u.length;m<g;)d=d.then(u[m++],u[m++]);return d}getUri(e){e=_t(this.defaults,e);const n=ia(e.baseURL,e.url);return ta(n,e.params,e.paramsSerializer)}}y.forEach(["delete","get","head","options"],function(e){vt.prototype[e]=function(n,r){return this.request(_t(r||{},{method:e,url:n,data:(r||{}).data}))}});y.forEach(["post","put","patch"],function(e){function n(r){return function(s,i,a){return this.request(_t(a||{},{method:e,headers:r?{"Content-Type":"multipart/form-data"}:{},url:s,data:i}))}}vt.prototype[e]=n(),vt.prototype[e+"Form"]=n(!0)});class mo{constructor(e){if(typeof e!="function")throw new TypeError("executor must be a function.");let n;this.promise=new Promise(function(s){n=s});const r=this;this.promise.then(o=>{if(!r._listeners)return;let s=r._listeners.length;for(;s-- >0;)r._listeners[s](o);r._listeners=null}),this.promise.then=o=>{let s;const i=new Promise(a=>{r.subscribe(a),s=a}).then(o);return i.cancel=function(){r.unsubscribe(s)},i},e(function(s,i,a){r.reason||(r.reason=new Dt(s,i,a),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 mo(function(o){e=o}),cancel:e}}}function Eh(t){return function(n){return t.apply(null,n)}}function Th(t){return y.isObject(t)&&t.isAxiosError===!0}const Hr={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(Hr).forEach(([t,e])=>{Hr[e]=t});function fa(t){const e=new vt(t),n=Fi(vt.prototype.request,e);return y.extend(n,vt.prototype,e,{allOwnKeys:!0}),y.extend(n,e,null,{allOwnKeys:!0}),n.create=function(o){return fa(_t(t,o))},n}const re=fa(bn);re.Axios=vt;re.CanceledError=Dt;re.CancelToken=mo;re.isCancel=oa;re.VERSION=da;re.toFormData=Zn;re.AxiosError=M;re.Cancel=re.CanceledError;re.all=function(e){return Promise.all(e)};re.spread=Eh;re.isAxiosError=Th;re.mergeConfig=_t;re.AxiosHeaders=ke;re.formToJSON=t=>ra(y.isHTMLForm(t)?new FormData(t):t);re.getAdapter=ua.getAdapter;re.HttpStatusCode=Hr;re.default=re;class ma{constructor(e,n){Te(this,"keycloak");Te(this,"axios");Te(this,"fileName","silent-login.html");this.keycloak=e,this.axios=re.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",s=Array.isArray(e.errors);return n&&r&&o&&s?e:null}catch{return null}}HandleThen(e){const n=new un,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 un,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 s=o.data.action,i=o.data.code,a=o.data.state,c=o.data.error;if(s!=="silent-login-iframe-result"||c==="login_required"||!i){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(i,a))};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 Ah=(t,e)=>new ma(t,e);function Ph(t){const e=window.location.origin,n=new URL(t).origin;return e===n}class pa{constructor(e){Te(this,"axios");this.axios=re.create(e==null?void 0:e.config);const n=window.location.origin+"/api";this.axios.defaults.baseURL||(this.axios.defaults.baseURL=n),e!=null&&e.anonymous||this.axios.interceptors.request.use(async r=>{if(!Ph(r.baseURL+r.url))return r;const o=await this.GetAccessTokenAsync();return o&&(r.headers.Authorization=`Bearer ${o}`),r})}async GetAccessTokenAsync(){return await no().Instance.GetAccessTokenAsync()}async GetAsync(e){return this.axios.get(e).then(n=>this.HandleThen(n)).catch(n=>this.HandleCatch(n))}async PostAsync(e,n){return this.axios.post(e,n).then(r=>this.HandleThen(r)).catch(r=>this.HandleCatch(r))}async PutAsync(e,n){return this.axios.put(e,n).then(r=>this.HandleThen(r)).catch(r=>this.HandleCatch(r))}async DeleteAsync(e){return this.axios.delete(e).then(n=>this.HandleThen(n)).catch(n=>this.HandleCatch(n))}HandleThen(e){const n=new un,r=this.ParsedResponse(e.data);return r===null?(n.httpStatusCode=e.status,n.value=e.data,n):(n.httpStatusCode=r.httpStatusCode,r.hasError?(n.WithErrors(r.errors),n):(n.value=r.value,n))}HandleCatch(e){var o;const n=new un,r=this.ParsedResponse((o=e.response)==null?void 0:o.data);return r===null?(n.WithError(e.message),n):(n.httpStatusCode=r.httpStatusCode,n.WithErrors(r.errors),n)}ParsedResponse(e){try{const n=typeof e.hasSuccess=="boolean",r=typeof e.hasError=="boolean",o=typeof e.httpStatusCode=="number",s=Array.isArray(e.errors);return n&&r&&o&&s?e:null}catch{return null}}}const Ih=t=>new pa(t);class Hn{static get IsTouch(){return window.matchMedia("(pointer: coarse)").matches}static GetMaxZindex(e=[]){let n="body > *:not(script):not(style)";for(const o of e)n+=`, ${o}`;const r=Math.max(...Array.from(document.querySelectorAll(n)).map(o=>{const s=getComputedStyle(o).zIndex;return+s==+s?+s:0}));return r>=100?r:100}static AjustarFuso(e){const n=e.getTimezoneOffset()/60;e.setHours(e.getHours()-n)}static Mask(e,n){let r=0,o=e.toString();return n.replace(/#/g,()=>o[r++]||"")}static MaskCpf(e){return Hn.Mask(e.padStart(11,"0"),"###.###.###-##")}static MaskCnpj(e){return Hn.Mask(e.padStart(14,"0"),"##.###.###/####-##")}static async DelayAsync(e){return new Promise(n=>setTimeout(n,e))}}function xh(){document.documentElement.classList.add("app-mounted")}function ha(){St.SetInitialTheme()}function Oh(){St.Toggle()}function Lh(){St.EnableDarkMode()}function $h(){St.EnableLightMode()}function Rh(){St.ClearStoredTheme()}ha();exports.ApiClient=pa;exports.AppResult=un;exports.AxiosClient=ma;exports.ClearStoredTheme=Rh;exports.EnableDarkMode=Lh;exports.EnableLightMode=$h;exports.Keycloak=to;exports.RemovePreloader=xh;exports.SetInitialTheme=ha;exports.SfButton=Vs;exports.SfContent=zd;exports.SfDrawer=Hs;exports.SfIcon=Ln;exports.SfLayout=jd;exports.SfMessage=ef;exports.SfNavMenu=Qm;exports.SfTabNavigation=Zd;exports.SfTooltip=jr;exports.StartAuthService=Sd;exports.ToggleTheme=Oh;exports.UseAlertService=nd;exports.UseApiClient=Ih;exports.UseAuthService=no;exports.UseAxiosClient=Ah;exports.UseConfirmService=Ei;exports.UseNavMenuService=Vr;exports.Utilities=Hn;
|
|
414
|
+
`):" "+Bs(s[0]):"as no adapter specified";throw new M("There is no suitable adapter to dispatch the request "+i,"ERR_NOT_SUPPORT")}return r},adapters:Ur};function kr(t){if(t.cancelToken&&t.cancelToken.throwIfRequested(),t.signal&&t.signal.aborted)throw new Dt(null,t)}function Ds(t){return kr(t),t.headers=ke.from(t.headers),t.data=_r.call(t,t.transformRequest),["post","put","patch"].indexOf(t.method)!==-1&&t.headers.setContentType("application/x-www-form-urlencoded",!1),ua.getAdapter(t.adapter||bn.adapter)(t).then(function(r){return kr(t),r.data=_r.call(t,t.transformResponse,r),r.headers=ke.from(r.headers),r},function(r){return oa(r)||(kr(t),r&&r.response&&(r.response.data=_r.call(t,t.transformResponse,r.response),r.response.headers=ke.from(r.response.headers))),Promise.reject(r)})}const da="1.7.4",fo={};["object","boolean","number","function","string","symbol"].forEach((t,e)=>{fo[t]=function(r){return typeof r===t||"a"+(e<1?"n ":" ")+t}});const Ms={};fo.transitional=function(e,n,r){function o(s,i){return"[Axios v"+da+"] Transitional option '"+s+"'"+i+(r?". "+r:"")}return(s,i,a)=>{if(e===!1)throw new M(o(i," has been removed"+(n?" in "+n:"")),M.ERR_DEPRECATED);return n&&!Ms[i]&&(Ms[i]=!0,console.warn(o(i," has been deprecated since v"+n+" and will be removed in the near future"))),e?e(s,i,a):!0}};function Ch(t,e,n){if(typeof t!="object")throw new M("options must be an object",M.ERR_BAD_OPTION_VALUE);const r=Object.keys(t);let o=r.length;for(;o-- >0;){const s=r[o],i=e[s];if(i){const a=t[s],c=a===void 0||i(a,s,t);if(c!==!0)throw new M("option "+s+" must be "+c,M.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new M("Unknown option "+s,M.ERR_BAD_OPTION)}}const Hr={assertOptions:Ch,validators:fo},at=Hr.validators;class vt{constructor(e){this.defaults=e,this.interceptors={request:new Is,response:new Is}}async request(e,n){try{return await this._request(e,n)}catch(r){if(r instanceof Error){let o;Error.captureStackTrace?Error.captureStackTrace(o={}):o=new Error;const s=o.stack?o.stack.replace(/^.+\n/,""):"";try{r.stack?s&&!String(r.stack).endsWith(s.replace(/^.+\n.+\n/,""))&&(r.stack+=`
|
|
415
|
+
`+s):r.stack=s}catch{}}throw r}}_request(e,n){typeof e=="string"?(n=n||{},n.url=e):n=e||{},n=_t(this.defaults,n);const{transitional:r,paramsSerializer:o,headers:s}=n;r!==void 0&&Hr.assertOptions(r,{silentJSONParsing:at.transitional(at.boolean),forcedJSONParsing:at.transitional(at.boolean),clarifyTimeoutError:at.transitional(at.boolean)},!1),o!=null&&(y.isFunction(o)?n.paramsSerializer={serialize:o}:Hr.assertOptions(o,{encode:at.function,serialize:at.function},!0)),n.method=(n.method||this.defaults.method||"get").toLowerCase();let i=s&&y.merge(s.common,s[n.method]);s&&y.forEach(["delete","get","head","post","put","patch","common"],v=>{delete s[v]}),n.headers=ke.concat(i,s);const a=[];let c=!0;this.interceptors.request.forEach(function(T){typeof T.runWhen=="function"&&T.runWhen(n)===!1||(c=c&&T.synchronous,a.unshift(T.fulfilled,T.rejected))});const u=[];this.interceptors.response.forEach(function(T){u.push(T.fulfilled,T.rejected)});let d,m=0,g;if(!c){const v=[Ds.bind(this),void 0];for(v.unshift.apply(v,a),v.push.apply(v,u),g=v.length,d=Promise.resolve(n);m<g;)d=d.then(v[m++],v[m++]);return d}g=a.length;let _=n;for(m=0;m<g;){const v=a[m++],T=a[m++];try{_=v(_)}catch(w){T.call(this,w);break}}try{d=Ds.call(this,_)}catch(v){return Promise.reject(v)}for(m=0,g=u.length;m<g;)d=d.then(u[m++],u[m++]);return d}getUri(e){e=_t(this.defaults,e);const n=ia(e.baseURL,e.url);return ta(n,e.params,e.paramsSerializer)}}y.forEach(["delete","get","head","options"],function(e){vt.prototype[e]=function(n,r){return this.request(_t(r||{},{method:e,url:n,data:(r||{}).data}))}});y.forEach(["post","put","patch"],function(e){function n(r){return function(s,i,a){return this.request(_t(a||{},{method:e,headers:r?{"Content-Type":"multipart/form-data"}:{},url:s,data:i}))}}vt.prototype[e]=n(),vt.prototype[e+"Form"]=n(!0)});class mo{constructor(e){if(typeof e!="function")throw new TypeError("executor must be a function.");let n;this.promise=new Promise(function(s){n=s});const r=this;this.promise.then(o=>{if(!r._listeners)return;let s=r._listeners.length;for(;s-- >0;)r._listeners[s](o);r._listeners=null}),this.promise.then=o=>{let s;const i=new Promise(a=>{r.subscribe(a),s=a}).then(o);return i.cancel=function(){r.unsubscribe(s)},i},e(function(s,i,a){r.reason||(r.reason=new Dt(s,i,a),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 mo(function(o){e=o}),cancel:e}}}function Eh(t){return function(n){return t.apply(null,n)}}function Th(t){return y.isObject(t)&&t.isAxiosError===!0}const Vr={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(Vr).forEach(([t,e])=>{Vr[e]=t});function fa(t){const e=new vt(t),n=Fi(vt.prototype.request,e);return y.extend(n,vt.prototype,e,{allOwnKeys:!0}),y.extend(n,e,null,{allOwnKeys:!0}),n.create=function(o){return fa(_t(t,o))},n}const re=fa(bn);re.Axios=vt;re.CanceledError=Dt;re.CancelToken=mo;re.isCancel=oa;re.VERSION=da;re.toFormData=Qn;re.AxiosError=M;re.Cancel=re.CanceledError;re.all=function(e){return Promise.all(e)};re.spread=Eh;re.isAxiosError=Th;re.mergeConfig=_t;re.AxiosHeaders=ke;re.formToJSON=t=>ra(y.isHTMLForm(t)?new FormData(t):t);re.getAdapter=ua.getAdapter;re.HttpStatusCode=Vr;re.default=re;class ma{constructor(e,n){Te(this,"keycloak");Te(this,"axios");Te(this,"fileName","silent-login.html");this.keycloak=e,this.axios=re.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",s=Array.isArray(e.errors);return n&&r&&o&&s?e:null}catch{return null}}HandleThen(e){const n=new un,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 un,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 s=o.data.action,i=o.data.code,a=o.data.state,c=o.data.error;if(s!=="silent-login-iframe-result"||c==="login_required"||!i){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(i,a))};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 Ah=(t,e)=>new ma(t,e);function Ph(t){const e=window.location.origin,n=new URL(t).origin;return e===n}class pa{constructor(e){Te(this,"axios");this.axios=re.create(e==null?void 0:e.config);const n=window.location.origin+"/api";this.axios.defaults.baseURL||(this.axios.defaults.baseURL=n),e!=null&&e.anonymous||this.axios.interceptors.request.use(async r=>{if(!Ph(r.baseURL+r.url))return r;const o=await this.GetAccessTokenAsync();return o?r.headers.Authorization=`Bearer ${o}`:Nn().Instance.login(),r})}async GetAccessTokenAsync(){return await Nn().Instance.GetAccessTokenAsync()}async GetAsync(e){return this.axios.get(e).then(n=>this.HandleThen(n)).catch(n=>this.HandleCatch(n))}async PostAsync(e,n){return this.axios.post(e,n).then(r=>this.HandleThen(r)).catch(r=>this.HandleCatch(r))}async PutAsync(e,n){return this.axios.put(e,n).then(r=>this.HandleThen(r)).catch(r=>this.HandleCatch(r))}async DeleteAsync(e){return this.axios.delete(e).then(n=>this.HandleThen(n)).catch(n=>this.HandleCatch(n))}HandleThen(e){const n=new un,r=this.ParsedResponse(e.data);return r===null?(n.httpStatusCode=e.status,n.value=e.data,n):(n.httpStatusCode=r.httpStatusCode,r.hasError?(n.WithErrors(r.errors),n):(n.value=r.value,n))}HandleCatch(e){var o;const n=new un,r=this.ParsedResponse((o=e.response)==null?void 0:o.data);return r===null?(n.WithError(e.message),n):(n.httpStatusCode=r.httpStatusCode,n.WithErrors(r.errors),n)}ParsedResponse(e){try{const n=typeof e.hasSuccess=="boolean",r=typeof e.hasError=="boolean",o=typeof e.httpStatusCode=="number",s=Array.isArray(e.errors);return n&&r&&o&&s?e:null}catch{return null}}}const Ih=t=>new pa(t);class Vn{static get IsTouch(){return window.matchMedia("(pointer: coarse)").matches}static GetMaxZindex(e=[]){let n="body > *:not(script):not(style)";for(const o of e)n+=`, ${o}`;const r=Math.max(...Array.from(document.querySelectorAll(n)).map(o=>{const s=getComputedStyle(o).zIndex;return+s==+s?+s:0}));return r>=100?r:100}static AjustarFuso(e){const n=e.getTimezoneOffset()/60;e.setHours(e.getHours()-n)}static Mask(e,n){let r=0,o=e.toString();return n.replace(/#/g,()=>o[r++]||"")}static MaskCpf(e){return Vn.Mask(e.padStart(11,"0"),"###.###.###-##")}static MaskCnpj(e){return Vn.Mask(e.padStart(14,"0"),"##.###.###/####-##")}static async DelayAsync(e){return new Promise(n=>setTimeout(n,e))}}function xh(){document.documentElement.classList.add("app-mounted")}function ha(){St.SetInitialTheme()}function Oh(){St.Toggle()}function Lh(){St.EnableDarkMode()}function $h(){St.EnableLightMode()}function Rh(){St.ClearStoredTheme()}ha();exports.ApiClient=pa;exports.AppResult=un;exports.AxiosClient=ma;exports.ClearStoredTheme=Rh;exports.EnableDarkMode=Lh;exports.EnableLightMode=$h;exports.Keycloak=no;exports.RemovePreloader=xh;exports.SetInitialTheme=ha;exports.SfButton=Vs;exports.SfContent=zd;exports.SfDrawer=Hs;exports.SfIcon=Ln;exports.SfLayout=jd;exports.SfMessage=ef;exports.SfNavMenu=Qm;exports.SfTabNavigation=Zd;exports.SfTooltip=Fr;exports.StartAuthService=Sd;exports.ToggleTheme=Oh;exports.UseAlertService=nd;exports.UseApiClient=Ih;exports.UseAuthService=Nn;exports.UseAxiosClient=Ah;exports.UseConfirmService=Ei;exports.UseNavMenuService=jr;exports.Utilities=Vn;
|
|
416
416
|
//# sourceMappingURL=sf.prefeiturasp.vuecomponents.cjs.map
|