@luizleon/sf.prefeiturasp.vuecomponents 4.1.2 → 4.1.4
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/index.d.ts +2 -1
- package/dist/sf.prefeiturasp.vuecomponents.cjs +22 -22
- package/dist/sf.prefeiturasp.vuecomponents.cjs.map +1 -1
- package/dist/sf.prefeiturasp.vuecomponents.js +454 -450
- package/dist/sf.prefeiturasp.vuecomponents.js.map +1 -1
- package/dist/sf.prefeiturasp.vuecomponents.umd.cjs +22 -22
- package/dist/sf.prefeiturasp.vuecomponents.umd.cjs.map +1 -1
- package/package.json +1 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
(function(U,l){typeof exports=="object"&&typeof module<"u"?l(exports,require("vue")):typeof define=="function"&&define.amd?define(["exports","vue"],l):(U=typeof globalThis<"u"?globalThis:U||self,l((U.sf=U.sf||{},U.sf.prefeiturasp=U.sf.prefeiturasp||{},U.sf.prefeiturasp.vuecomponents={}),U.Vue))})(this,function(U,l){"use strict";var bh=Object.defineProperty;var vh=(U,l,Ct)=>l in U?bh(U,l,{enumerable:!0,configurable:!0,writable:!0,value:Ct}):U[l]=Ct;var Te=(U,l,Ct)=>vh(U,typeof l!="symbol"?l+"":l,Ct);class Ct{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 ya=new Ct,nr=()=>ya;class ot{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 go(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 ba=(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 _n=(t,e)=>{const n=t.__vccOpts||t;for(const[r,o]of e)n[r]=o;return n},va={},wa={class:"sf-loading-circle"},Sa=[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)];function _a(t,e){return l.openBlock(),l.createElementBlock("div",wa,Sa)}const ka=_n(va,[["render",_a]]),rr=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=go()+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;const i=s.target;document.body.appendChild(this.wrapper),this.Position(i.getBoundingClientRect()),this.wrapper.classList.add("visible")}Hide(){this.wrapper.classList.remove("visible"),this.wrapper.remove()}Position(s){this.FixWidth();const i=10,a=s.top,c=s.bottom,u=s.left,d=s.right,m=this.wrapper;m.style.top=`${c+i}px`,m.style.left=`${u}px`,this.OutOfBottom()&&(m.style.top=`${a-m.clientHeight-i}px`,m.classList.add("top")),this.OutOfRight()&&(m.style.left=`${d-m.clientWidth}px`,m.classList.add("left"))}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))}}),Ca=["disabled","tabindex"],Ea=["data-color"],kn=_n(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?rr:"div"),r=l.computed(()=>e.tooltip?"":"display-content"),o=l.computed(()=>new ot(`${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(ka,{key:0})):(l.openBlock(),l.createElementBlock(l.Fragment,{key:1},[l.createTextVNode(l.toDisplayString(e.icon),1)],64))],16,Ca),e.dot?(l.openBlock(),l.createElementBlock("span",{key:0,"data-color":e.dotColor},null,8,Ea)):l.createCommentVNode("",!0)],6)):l.createCommentVNode("",!0)]),_:1},8,["text","class"]))}}),[["__scopeId","data-v-acf8f09c"]]),Ta=["id","onClick"],Aa={class:"sf-drawer-header"},Pa={class:"sf-drawer-title"},Ia={class:"sf-drawer-content"},xa={key:0,class:"sf-drawer-footer"},yo=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=ba();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=go(),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 ot("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",Aa,[l.createElementVNode("span",Pa,[l.renderSlot(w.$slots,"title")]),l.createVNode(kn,{button:!0,icon:"close",onClick:l.withModifiers(u,["stop"])},null,8,["onClick"])]),l.createElementVNode("div",Ia,[l.renderSlot(w.$slots,"default")]),l.unref(o).footer?(l.openBlock(),l.createElementBlock("div",xa,[l.renderSlot(w.$slots,"footer")])):l.createCommentVNode("",!0)],6)):l.createCommentVNode("",!0)]),_:3})],14,Ta)):l.createCommentVNode("",!0)]))}}),Oa=["id","name","disabled","data-color","form","type"],La={class:"sf-button-label"},bo=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 ot(`${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(kn,{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(kn,{key:1,loading:!0,size:e.size,"button-props":{tabindex:-1}},null,8,["size"])):l.createCommentVNode("",!0),l.createElementVNode("span",La,[l.renderSlot(r.$slots,"default")])],14,Oa)):l.createCommentVNode("",!0)}}),vo="SweetAlert2:",$a=t=>{const e=[];for(let n=0;n<t.length;n++)e.indexOf(t[n])===-1&&e.push(t[n]);return e},or=t=>t.charAt(0).toUpperCase()+t.slice(1),Ae=t=>Array.prototype.slice.call(t),ve=t=>{console.warn(`${vo} ${typeof t=="object"?t.join(" "):t}`)},mt=t=>{console.error(`${vo} ${t}`)},wo=[],Ra=t=>{wo.includes(t)||(wo.push(t),ve(t))},Na=(t,e)=>{Ra(`"${t}" is deprecated and will be removed in the next major release. Please use "${e}" instead.`)},Cn=t=>typeof t=="function"?t():t,sr=t=>t&&typeof t.toPromise=="function",Ht=t=>sr(t)?t.toPromise():Promise.resolve(t),ir=t=>t&&Promise.resolve(t)===t,Et={title:"",titleText:"",text:"",html:"",footer:"",icon:void 0,iconColor:void 0,iconHtml:void 0,template:void 0,toast:!1,showClass:{popup:"swal2-show",backdrop:"swal2-backdrop-show",icon:"swal2-icon-show"},hideClass:{popup:"swal2-hide",backdrop:"swal2-backdrop-hide",icon:"swal2-icon-hide"},customClass:{},target:"body",color:void 0,backdrop:!0,heightAuto:!0,allowOutsideClick:!0,allowEscapeKey:!0,allowEnterKey:!0,stopKeydownPropagation:!0,keydownListenerCapture:!1,showConfirmButton:!0,showDenyButton:!1,showCancelButton:!1,preConfirm:void 0,preDeny:void 0,confirmButtonText:"OK",confirmButtonAriaLabel:"",confirmButtonColor:void 0,denyButtonText:"No",denyButtonAriaLabel:"",denyButtonColor:void 0,cancelButtonText:"Cancel",cancelButtonAriaLabel:"",cancelButtonColor:void 0,buttonsStyling:!0,reverseButtons:!1,focusConfirm:!0,focusDeny:!1,focusCancel:!1,returnFocus:!0,showCloseButton:!1,closeButtonHtml:"×",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},Ba=["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"],Da={},Ma=["allowOutsideClick","allowEnterKey","backdrop","focusConfirm","focusDeny","focusCancel","returnFocus","heightAuto","keydownListenerCapture"],So=t=>Object.prototype.hasOwnProperty.call(Et,t),_o=t=>Ba.indexOf(t)!==-1,ar=t=>Da[t],Ua=t=>{So(t)||ve(`Unknown parameter "${t}"`)},Ha=t=>{Ma.includes(t)&&ve(`The parameter "${t}" is incompatible with toasts`)},Va=t=>{ar(t)&&Na(t,ar(t))},ja=t=>{!t.backdrop&&t.allowOutsideClick&&ve('"allowOutsideClick" parameter requires `backdrop` parameter to be set to `true`');for(const e in t)Ua(e),t.toast&&Ha(e),Va(e)},Fa="swal2-",ko=t=>{const e={};for(const n in t)e[t[n]]=Fa+t[n];return e},b=ko(["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"]),Vt=ko(["success","warning","info","question","error"]),ue=()=>document.body.querySelector(`.${b.container}`),jt=t=>{const e=ue();return e?e.querySelector(t):null},Re=t=>jt(`.${t}`),Y=()=>Re(b.popup),Ft=()=>Re(b.icon),Co=()=>Re(b.title),En=()=>Re(b["html-container"]),Eo=()=>Re(b.image),To=()=>Re(b["progress-steps"]),Tn=()=>Re(b["validation-message"]),Me=()=>jt(`.${b.actions} .${b.confirm}`),st=()=>jt(`.${b.actions} .${b.deny}`),za=()=>Re(b["input-label"]),Tt=()=>jt(`.${b.loader}`),pt=()=>jt(`.${b.actions} .${b.cancel}`),zt=()=>Re(b.actions),Ao=()=>Re(b.footer),An=()=>Re(b["timer-progress-bar"]),lr=()=>Re(b.close),Ka=`
|
|
1
|
+
(function(M,l){typeof exports=="object"&&typeof module<"u"?l(exports,require("vue")):typeof define=="function"&&define.amd?define(["exports","vue"],l):(M=typeof globalThis<"u"?globalThis:M||self,l((M.sf=M.sf||{},M.sf.prefeiturasp=M.sf.prefeiturasp||{},M.sf.prefeiturasp.vuecomponents={}),M.Vue))})(this,function(M,l){"use strict";var bh=Object.defineProperty;var vh=(M,l,Et)=>l in M?bh(M,l,{enumerable:!0,configurable:!0,writable:!0,value:Et}):M[l]=Et;var Te=(M,l,Et)=>vh(M,typeof l!="symbol"?l+"":l,Et);class Et{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 ya=new Et,nr=()=>ya;class ot{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 go(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 ba=(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 _n=(t,e)=>{const n=t.__vccOpts||t;for(const[r,o]of e)n[r]=o;return n},va={},wa={class:"sf-loading-circle"},Sa=[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)];function _a(t,e){return l.openBlock(),l.createElementBlock("div",wa,Sa)}const ka=_n(va,[["render",_a]]),rr=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=go()+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;const i=s.target;document.body.appendChild(this.wrapper),this.Position(i.getBoundingClientRect()),this.wrapper.classList.add("visible")}Hide(){this.wrapper.classList.remove("visible"),this.wrapper.remove()}Position(s){this.FixWidth();const i=10,a=s.top,c=s.bottom,u=s.left,d=s.right,m=this.wrapper;m.style.top=`${c+i}px`,m.style.left=`${u}px`,this.OutOfBottom()&&(m.style.top=`${a-m.clientHeight-i}px`,m.classList.add("top")),this.OutOfRight()&&(m.style.left=`${d-m.clientWidth}px`,m.classList.add("left"))}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))}}),Ca=["disabled","tabindex"],Ea=["data-color"],kn=_n(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?rr:"div"),r=l.computed(()=>e.tooltip?"":"display-content"),o=l.computed(()=>new ot(`${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(ka,{key:0})):(l.openBlock(),l.createElementBlock(l.Fragment,{key:1},[l.createTextVNode(l.toDisplayString(e.icon),1)],64))],16,Ca),e.dot?(l.openBlock(),l.createElementBlock("span",{key:0,"data-color":e.dotColor},null,8,Ea)):l.createCommentVNode("",!0)],6)):l.createCommentVNode("",!0)]),_:1},8,["text","class"]))}}),[["__scopeId","data-v-acf8f09c"]]),Ta=["id","onClick"],Aa={class:"sf-drawer-header"},Pa={class:"sf-drawer-title"},Ia={class:"sf-drawer-content"},xa={key:0,class:"sf-drawer-footer"},yo=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=ba();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=go(),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 ot("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",Aa,[l.createElementVNode("span",Pa,[l.renderSlot(w.$slots,"title")]),l.createVNode(kn,{button:!0,icon:"close",onClick:l.withModifiers(u,["stop"])},null,8,["onClick"])]),l.createElementVNode("div",Ia,[l.renderSlot(w.$slots,"default")]),l.unref(o).footer?(l.openBlock(),l.createElementBlock("div",xa,[l.renderSlot(w.$slots,"footer")])):l.createCommentVNode("",!0)],6)):l.createCommentVNode("",!0)]),_:3})],14,Ta)):l.createCommentVNode("",!0)]))}}),Oa=["id","name","disabled","data-color","form","type"],La={class:"sf-button-label"},bo=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 ot(`${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(kn,{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(kn,{key:1,loading:!0,size:e.size,"button-props":{tabindex:-1}},null,8,["size"])):l.createCommentVNode("",!0),l.createElementVNode("span",La,[l.renderSlot(r.$slots,"default")])],14,Oa)):l.createCommentVNode("",!0)}}),vo="SweetAlert2:",$a=t=>{const e=[];for(let n=0;n<t.length;n++)e.indexOf(t[n])===-1&&e.push(t[n]);return e},or=t=>t.charAt(0).toUpperCase()+t.slice(1),Ae=t=>Array.prototype.slice.call(t),ve=t=>{console.warn(`${vo} ${typeof t=="object"?t.join(" "):t}`)},mt=t=>{console.error(`${vo} ${t}`)},wo=[],Ra=t=>{wo.includes(t)||(wo.push(t),ve(t))},Na=(t,e)=>{Ra(`"${t}" is deprecated and will be removed in the next major release. Please use "${e}" instead.`)},Cn=t=>typeof t=="function"?t():t,sr=t=>t&&typeof t.toPromise=="function",Ht=t=>sr(t)?t.toPromise():Promise.resolve(t),ir=t=>t&&Promise.resolve(t)===t,Tt={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},Ba=["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"],Da={},Ma=["allowOutsideClick","allowEnterKey","backdrop","focusConfirm","focusDeny","focusCancel","returnFocus","heightAuto","keydownListenerCapture"],So=t=>Object.prototype.hasOwnProperty.call(Tt,t),_o=t=>Ba.indexOf(t)!==-1,ar=t=>Da[t],Ua=t=>{So(t)||ve(`Unknown parameter "${t}"`)},Ha=t=>{Ma.includes(t)&&ve(`The parameter "${t}" is incompatible with toasts`)},Va=t=>{ar(t)&&Na(t,ar(t))},ja=t=>{!t.backdrop&&t.allowOutsideClick&&ve('"allowOutsideClick" parameter requires `backdrop` parameter to be set to `true`');for(const e in t)Ua(e),t.toast&&Ha(e),Va(e)},Fa="swal2-",ko=t=>{const e={};for(const n in t)e[t[n]]=Fa+t[n];return e},b=ko(["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"]),Vt=ko(["success","warning","info","question","error"]),ue=()=>document.body.querySelector(`.${b.container}`),jt=t=>{const e=ue();return e?e.querySelector(t):null},Re=t=>jt(`.${t}`),Y=()=>Re(b.popup),Ft=()=>Re(b.icon),Co=()=>Re(b.title),En=()=>Re(b["html-container"]),Eo=()=>Re(b.image),To=()=>Re(b["progress-steps"]),Tn=()=>Re(b["validation-message"]),Me=()=>jt(`.${b.actions} .${b.confirm}`),st=()=>jt(`.${b.actions} .${b.deny}`),za=()=>Re(b["input-label"]),At=()=>jt(`.${b.loader}`),pt=()=>jt(`.${b.actions} .${b.cancel}`),zt=()=>Re(b.actions),Ao=()=>Re(b.footer),An=()=>Re(b["timer-progress-bar"]),lr=()=>Re(b.close),Ka=`
|
|
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
|
-
`,cr=()=>{const t=Ae(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=Ae(Y().querySelectorAll(Ka)).filter(n=>n.getAttribute("tabindex")!=="-1");return $a(t.concat(e)).filter(n=>Pe(n))},ur=()=>Ze(document.body,b.shown)&&!Ze(document.body,b["toast-shown"])&&!Ze(document.body,b["no-backdrop"]),Pn=()=>Y()&&Ze(Y(),b.toast),Wa=()=>Y().hasAttribute("data-loading"),
|
|
16
|
+
`,cr=()=>{const t=Ae(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=Ae(Y().querySelectorAll(Ka)).filter(n=>n.getAttribute("tabindex")!=="-1");return $a(t.concat(e)).filter(n=>Pe(n))},ur=()=>Ze(document.body,b.shown)&&!Ze(document.body,b["toast-shown"])&&!Ze(document.body,b["no-backdrop"]),Pn=()=>Y()&&Ze(Y(),b.toast),Wa=()=>Y().hasAttribute("data-loading"),Pt={previousBodyPadding:null},de=(t,e)=>{if(t.textContent="",e){const r=new DOMParser().parseFromString(e,"text/html");Ae(r.querySelector("head").childNodes).forEach(o=>{t.appendChild(o)}),Ae(r.querySelector("body").childNodes).forEach(o=>{t.appendChild(o)})}},Ze=(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},qa=(t,e)=>{Ae(t.classList).forEach(n=>{!Object.values(b).includes(n)&&!Object.values(Vt).includes(n)&&!Object.values(e.showClass).includes(n)&&t.classList.remove(n)})},Ne=(t,e,n)=>{if(qa(t,e),e.customClass&&e.customClass[n]){if(typeof e.customClass[n]!="string"&&!e.customClass[n].forEach)return ve(`Invalid type of customClass.${n}! Expected string or iterable object, got "${typeof e.customClass[n]}"`);W(t,e.customClass[n])}},dr=(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}`)}},Po=t=>{if(t.focus(),t.type!=="file"){const e=t.value;t.value="",t.value=e}},Io=(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)=>{Io(t,e,!0)},Ye=(t,e)=>{Io(t,e,!1)},it=(t,e)=>{const n=Ae(t.childNodes);for(let r=0;r<n.length;r++)if(Ze(n[r],e))return n[r]},Kt=(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},fe=t=>{t.style.display="none"},xo=(t,e,n,r)=>{const o=t.querySelector(e);o&&(o.style[n]=r)},In=(t,e,n)=>{e?le(t,n):fe(t)},Pe=t=>!!(t&&(t.offsetWidth||t.offsetHeight||t.getClientRects().length)),Ga=()=>!Pe(Me())&&!Pe(st())&&!Pe(pt()),Oo=t=>t.scrollHeight>t.clientHeight,Lo=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},fr=(t,e=!1)=>{const n=An();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))},Ya=()=>{const t=An(),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}%`},$o=()=>typeof window>"u"||typeof document>"u",Ja=100,H={},Xa=()=>{H.previousActiveElement&&H.previousActiveElement.focus?(H.previousActiveElement.focus(),H.previousActiveElement=null):document.body&&document.body.focus()},Za=t=>new Promise(e=>{if(!t)return e();const n=window.scrollX,r=window.scrollY;H.restoreFocusTimeout=setTimeout(()=>{Xa(),e()},Ja),window.scrollTo(n,r)}),Qa=`
|
|
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,""),el=()=>{const t=ue();return t?(t.remove(),Ye([document.documentElement,document.body],[b["no-backdrop"],b["toast-shown"],b["has-column"]]),!0):!1},ht=()=>{H.currentInstance.resetValidationMessage()},tl=()=>{const t=Y(),e=it(t,b.input),n=it(t,b.file),r=t.querySelector(`.${b.range} input`),o=t.querySelector(`.${b.range} output`),s=it(t,b.select),i=t.querySelector(`.${b.checkbox} input`),a=it(t,b.textarea);e.oninput=ht,n.onchange=ht,s.onchange=ht,i.onchange=ht,a.oninput=ht,r.oninput=()=>{ht(),o.value=r.value},r.onchange=()=>{ht(),r.nextSibling.value=r.value}},nl=t=>typeof t=="string"?document.querySelector(t):t,rl=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")},ol=t=>{window.getComputedStyle(t).direction==="rtl"&&W(ue(),b.rtl)},sl=t=>{const e=el();if($o()){mt("SweetAlert2 requires document to initialize");return}const n=document.createElement("div");n.className=b.container,e&&W(n,b["no-transition"]),de(n,Qa);const r=nl(t.target);r.appendChild(n),rl(t),ol(r),tl()},mr=(t,e)=>{t instanceof HTMLElement?e.appendChild(t):typeof t=="object"?il(t,e):t&&de(e,t)},il=(t,e)=>{t.jquery?al(e,t):de(e,t.toString())},al=(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))},Wt=(()=>{if($o())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})(),ll=()=>{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},cl=(t,e)=>{const n=zt(),r=
|
|
49
|
+
`.replace(/(^|\n)\s*/g,""),el=()=>{const t=ue();return t?(t.remove(),Ye([document.documentElement,document.body],[b["no-backdrop"],b["toast-shown"],b["has-column"]]),!0):!1},ht=()=>{H.currentInstance.resetValidationMessage()},tl=()=>{const t=Y(),e=it(t,b.input),n=it(t,b.file),r=t.querySelector(`.${b.range} input`),o=t.querySelector(`.${b.range} output`),s=it(t,b.select),i=t.querySelector(`.${b.checkbox} input`),a=it(t,b.textarea);e.oninput=ht,n.onchange=ht,s.onchange=ht,i.onchange=ht,a.oninput=ht,r.oninput=()=>{ht(),o.value=r.value},r.onchange=()=>{ht(),r.nextSibling.value=r.value}},nl=t=>typeof t=="string"?document.querySelector(t):t,rl=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")},ol=t=>{window.getComputedStyle(t).direction==="rtl"&&W(ue(),b.rtl)},sl=t=>{const e=el();if($o()){mt("SweetAlert2 requires document to initialize");return}const n=document.createElement("div");n.className=b.container,e&&W(n,b["no-transition"]),de(n,Qa);const r=nl(t.target);r.appendChild(n),rl(t),ol(r),tl()},mr=(t,e)=>{t instanceof HTMLElement?e.appendChild(t):typeof t=="object"?il(t,e):t&&de(e,t)},il=(t,e)=>{t.jquery?al(e,t):de(e,t.toString())},al=(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))},Wt=(()=>{if($o())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})(),ll=()=>{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},cl=(t,e)=>{const n=zt(),r=At();!e.showConfirmButton&&!e.showDenyButton&&!e.showCancelButton?fe(n):le(n),Ne(n,e,"actions"),ul(n,r,e),de(r,e.loaderHtml),Ne(r,e,"loader")};function ul(t,e,n){const r=Me(),o=st(),s=pt();pr(r,"confirm",n),pr(o,"deny",n),pr(s,"cancel",n),dl(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 dl(t,e,n,r){if(!r.buttonsStyling)return Ye([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 pr(t,e,n){In(t,n[`show${or(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 fl(t,e){typeof e=="string"?t.style.background=e:e||W([document.documentElement,document.body],b["no-backdrop"])}function ml(t,e){e in b?W(t,b[e]):(ve('The "position" parameter is not valid, defaulting to "center"'),W(t,b.center))}function pl(t,e){if(e&&typeof e=="string"){const n=`grow-${e}`;n in b&&W(t,b[n])}}const hl=(t,e)=>{const n=ue();n&&(fl(n,e.backdrop),ml(n,e.position),pl(n,e.grow),Ne(n,e,"container"))},j={awaitingPromise:new WeakMap,promise:new WeakMap,innerParams:new WeakMap,domCache:new WeakMap},gl=["input","file","range","select","radio","checkbox","textarea"],yl=(t,e)=>{const n=Y(),r=j.innerParams.get(t),o=!r||e.input!==r.input;gl.forEach(s=>{const i=b[s],a=it(n,i);wl(s,e.inputAttributes),a.className=i,o&&fe(a)}),e.input&&(o&&bl(e),Sl(e))},bl=t=>{if(!we[t.input])return mt(`Unexpected type of input! Expected "text", "email", "password", "number", "tel", "select", "radio", "checkbox", "textarea", "file" or "url", got "${t.input}"`);const e=Ro(t.input),n=we[t.input](e,t);le(n),setTimeout(()=>{Po(n)})},vl=t=>{for(let e=0;e<t.attributes.length;e++){const n=t.attributes[e].name;["type","value","style"].includes(n)||t.removeAttribute(n)}},wl=(t,e)=>{const n=dr(Y(),t);if(n){vl(n);for(const r in e)n.setAttribute(r,e[r])}},Sl=t=>{const e=Ro(t.input);t.customClass&&W(e,t.customClass.input)},hr=(t,e)=>{(!t.placeholder||e.inputPlaceholder)&&(t.placeholder=e.inputPlaceholder)},qt=(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)}},Ro=t=>{const e=b[t]?b[t]:b.input;return it(Y(),e)},we={};we.text=we.email=we.password=we.number=we.tel=we.url=(t,e)=>(typeof e.inputValue=="string"||typeof e.inputValue=="number"?t.value=e.inputValue:ir(e.inputValue)||ve(`Unexpected type of inputValue! Expected "string", "number" or "Promise", got "${typeof e.inputValue}"`),qt(t,t,e),hr(t,e),t.type=e.input,t),we.file=(t,e)=>(qt(t,t,e),hr(t,e),t),we.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,qt(n,t,e),t},we.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 qt(t,t,e),t},we.radio=t=>(t.textContent="",t),we.checkbox=(t,e)=>{const n=dr(Y(),"checkbox");n.value="1",n.id=b.checkbox,n.checked=!!e.inputValue;const r=t.querySelector("span");return de(r,e.inputPlaceholder),t},we.textarea=(t,e)=>{t.value=e.inputValue,hr(t,e),qt(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 _l=(t,e)=>{const n=En();Ne(n,e,"htmlContainer"),e.html?(mr(e.html,n),le(n,"block")):e.text?(n.textContent=e.text,le(n,"block")):fe(n),yl(t,e)},kl=(t,e)=>{const n=Ao();In(n,e.footer),e.footer&&mr(e.footer,n),Ne(n,e,"footer")},Cl=(t,e)=>{const n=lr();de(n,e.closeButtonHtml),Ne(n,e,"closeButton"),In(n,e.showCloseButton),n.setAttribute("aria-label",e.closeButtonAriaLabel)},El=(t,e)=>{const n=j.innerParams.get(t),r=Ft();if(n&&e.icon===n.icon){Bo(r,e),No(r,e);return}if(!e.icon&&!e.iconHtml)return fe(r);if(e.icon&&Object.keys(Vt).indexOf(e.icon)===-1)return mt(`Unknown icon! Expected "success", "error", "warning", "info" or "question", got "${e.icon}"`),fe(r);le(r),Bo(r,e),No(r,e),W(r,e.showClass.icon)},No=(t,e)=>{for(const n in Vt)e.icon!==n&&Ye(t,Vt[n]);W(t,Vt[e.icon]),Il(t,e),Tl(),Ne(t,e,"icon")},Tl=()=>{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},Al=`
|
|
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
|
-
`,Bo=(t,e)=>{t.textContent="",e.iconHtml?de(t,Do(e.iconHtml)):e.icon==="success"?de(t,Al):e.icon==="error"?de(t,Pl):de(t,Do({question:"?",warning:"!",info:"i"}[e.icon]))},Il=(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"])xo(t,n,"backgroundColor",e.iconColor);xo(t,".swal2-success-ring","borderColor",e.iconColor)}},Do=t=>`<div class="${b["icon-content"]}">${t}</div>`,xl=(t,e)=>{const n=Eo();if(!e.imageUrl)return fe(n);le(n,""),n.setAttribute("src",e.imageUrl),n.setAttribute("alt",e.imageAlt),Kt(n,"width",e.imageWidth),Kt(n,"height",e.imageHeight),n.className=b.image,Ne(n,e,"image")},Ol=t=>{const e=document.createElement("li");return W(e,b["progress-step"]),de(e,t),e},Ll=t=>{const e=document.createElement("li");return W(e,b["progress-step-line"]),t.progressStepsDistance&&(e.style.width=t.progressStepsDistance),e},$l=(t,e)=>{const n=To();if(!e.progressSteps||e.progressSteps.length===0)return fe(n);le(n),n.textContent="",e.currentProgressStep>=e.progressSteps.length&&ve("Invalid currentProgressStep parameter, it should be less than progressSteps.length (currentProgressStep like JS arrays starts from 0)"),e.progressSteps.forEach((r,o)=>{const s=Ol(r);if(n.appendChild(s),o===e.currentProgressStep&&W(s,b["active-progress-step"]),o!==e.progressSteps.length-1){const i=Ll(e);n.appendChild(i)}})},Rl=(t,e)=>{const n=Co();In(n,e.title||e.titleText,"block"),e.title&&mr(e.title,n),e.titleText&&(n.innerText=e.titleText),Ne(n,e,"title")},Nl=(t,e)=>{const n=ue(),r=Y();e.toast?(Kt(n,"width",e.width),r.style.width="100%",r.insertBefore(
|
|
59
|
+
`,Bo=(t,e)=>{t.textContent="",e.iconHtml?de(t,Do(e.iconHtml)):e.icon==="success"?de(t,Al):e.icon==="error"?de(t,Pl):de(t,Do({question:"?",warning:"!",info:"i"}[e.icon]))},Il=(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"])xo(t,n,"backgroundColor",e.iconColor);xo(t,".swal2-success-ring","borderColor",e.iconColor)}},Do=t=>`<div class="${b["icon-content"]}">${t}</div>`,xl=(t,e)=>{const n=Eo();if(!e.imageUrl)return fe(n);le(n,""),n.setAttribute("src",e.imageUrl),n.setAttribute("alt",e.imageAlt),Kt(n,"width",e.imageWidth),Kt(n,"height",e.imageHeight),n.className=b.image,Ne(n,e,"image")},Ol=t=>{const e=document.createElement("li");return W(e,b["progress-step"]),de(e,t),e},Ll=t=>{const e=document.createElement("li");return W(e,b["progress-step-line"]),t.progressStepsDistance&&(e.style.width=t.progressStepsDistance),e},$l=(t,e)=>{const n=To();if(!e.progressSteps||e.progressSteps.length===0)return fe(n);le(n),n.textContent="",e.currentProgressStep>=e.progressSteps.length&&ve("Invalid currentProgressStep parameter, it should be less than progressSteps.length (currentProgressStep like JS arrays starts from 0)"),e.progressSteps.forEach((r,o)=>{const s=Ol(r);if(n.appendChild(s),o===e.currentProgressStep&&W(s,b["active-progress-step"]),o!==e.progressSteps.length-1){const i=Ll(e);n.appendChild(i)}})},Rl=(t,e)=>{const n=Co();In(n,e.title||e.titleText,"block"),e.title&&mr(e.title,n),e.titleText&&(n.innerText=e.titleText),Ne(n,e,"title")},Nl=(t,e)=>{const n=ue(),r=Y();e.toast?(Kt(n,"width",e.width),r.style.width="100%",r.insertBefore(At(),Ft())):Kt(r,"width",e.width),Kt(r,"padding",e.padding),e.color&&(r.style.color=e.color),e.background&&(r.style.background=e.background),fe(Tn()),Bl(r,e)},Bl=(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}`])},Mo=(t,e)=>{Nl(t,e),hl(t,e),$l(t,e),El(t,e),xl(t,e),Rl(t,e),Cl(t,e),_l(t,e),cl(t,e),kl(t,e),typeof e.didRender=="function"&&e.didRender(Y())},It=Object.freeze({cancel:"cancel",backdrop:"backdrop",close:"close",esc:"esc",timer:"timer"}),Dl=()=>{Ae(document.body.children).forEach(e=>{e===ue()||e.contains(ue())||(e.hasAttribute("aria-hidden")&&e.setAttribute("data-previous-aria-hidden",e.getAttribute("aria-hidden")),e.setAttribute("aria-hidden","true"))})},Uo=()=>{Ae(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")})},Ho=["swal-title","swal-html","swal-footer"],Ml=t=>{const e=typeof t.template=="string"?document.querySelector(t.template):t.template;if(!e)return{};const n=e.content;return Kl(n),Object.assign(Ul(n),Hl(n),Vl(n),jl(n),Fl(n),zl(n,Ho))},Ul=t=>{const e={};return Ae(t.querySelectorAll("swal-param")).forEach(n=>{gt(n,["name","value"]);const r=n.getAttribute("name"),o=n.getAttribute("value");typeof Tt[r]=="boolean"&&o==="false"&&(e[r]=!1),typeof Tt[r]=="object"&&(e[r]=JSON.parse(o))}),e},Hl=t=>{const e={};return Ae(t.querySelectorAll("swal-button")).forEach(n=>{gt(n,["type","color","aria-label"]);const r=n.getAttribute("type");e[`${r}ButtonText`]=n.innerHTML,e[`show${or(r)}Button`]=!0,n.hasAttribute("color")&&(e[`${r}ButtonColor`]=n.getAttribute("color")),n.hasAttribute("aria-label")&&(e[`${r}ButtonAriaLabel`]=n.getAttribute("aria-label"))}),e},Vl=t=>{const e={},n=t.querySelector("swal-image");return n&&(gt(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},jl=t=>{const e={},n=t.querySelector("swal-icon");return n&&(gt(n,["type","color"]),n.hasAttribute("type")&&(e.icon=n.getAttribute("type")),n.hasAttribute("color")&&(e.iconColor=n.getAttribute("color")),e.iconHtml=n.innerHTML),e},Fl=t=>{const e={},n=t.querySelector("swal-input");n&&(gt(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={},Ae(r).forEach(o=>{gt(o,["value"]);const s=o.getAttribute("value"),i=o.innerHTML;e.inputOptions[s]=i})),e},zl=(t,e)=>{const n={};for(const r in e){const o=e[r],s=t.querySelector(o);s&&(gt(s,[]),n[o.replace(/^swal-/,"")]=s.innerHTML.trim())}return n},Kl=t=>{const e=Ho.concat(["swal-param","swal-button","swal-image","swal-icon","swal-input","swal-input-option"]);Ae(t.children).forEach(n=>{const r=n.tagName.toLowerCase();e.indexOf(r)===-1&&ve(`Unrecognized element <${r}>`)})},gt=(t,e)=>{Ae(t.attributes).forEach(n=>{e.indexOf(n.name)===-1&&ve([`Unrecognized attribute "${n.name}" on <${t.tagName.toLowerCase()}>.`,`${e.length?`Allowed attributes are: ${e.join(", ")}`:"To set the value, use HTML within the element."}`])})},Vo={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 Wl(t){t.inputValidator||Object.keys(Vo).forEach(e=>{t.input===e&&(t.inputValidator=Vo[e])})}function ql(t){(!t.target||typeof t.target=="string"&&!document.querySelector(t.target)||typeof t.target!="string"&&!t.target.appendChild)&&(ve('Target parameter is not valid, defaulting to "body"'),t.target="body")}function Gl(t){Wl(t),t.showLoaderOnConfirm&&!t.preConfirm&&ve(`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`),ql(t),typeof t.title=="string"&&(t.title=t.title.split(`
|
|
62
|
-
`).join("<br />")),sl(t)}class Yl{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 Jl=()=>{At.previousBodyPadding===null&&document.body.scrollHeight>window.innerHeight&&(At.previousBodyPadding=parseInt(window.getComputedStyle(document.body).getPropertyValue("padding-right")),document.body.style.paddingRight=`${At.previousBodyPadding+ll()}px`)},Xl=()=>{At.previousBodyPadding!==null&&(document.body.style.paddingRight=`${At.previousBodyPadding}px`,At.previousBodyPadding=null)},Zl=()=>{if((/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream||navigator.platform==="MacIntel"&&navigator.maxTouchPoints>1)&&!Ze(document.body,b.iosfix)){const e=document.body.scrollTop;document.body.style.top=`${e*-1}px`,W(document.body,b.iosfix),ec(),Ql()}},Ql=()=>{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&&(ue().style.paddingBottom="44px")},ec=()=>{const t=ue();let e;t.ontouchstart=n=>{e=tc(n)},t.ontouchmove=n=>{e&&(n.preventDefault(),n.stopPropagation())}},tc=t=>{const e=t.target,n=ue();return nc(t)||rc(t)?!1:e===n||!Oo(n)&&e.tagName!=="INPUT"&&e.tagName!=="TEXTAREA"&&!(Oo(En())&&En().contains(e))},nc=t=>t.touches&&t.touches.length&&t.touches[0].touchType==="stylus",rc=t=>t.touches&&t.touches.length>1,oc=()=>{if(Ze(document.body,b.iosfix)){const t=parseInt(document.body.style.top,10);Ye(document.body,b.iosfix),document.body.style.top="",document.body.scrollTop=t*-1}},jo=10,sc=t=>{const e=ue(),n=Y();typeof t.willOpen=="function"&&t.willOpen(n);const o=window.getComputedStyle(document.body).overflowY;lc(e,n,t),setTimeout(()=>{ic(e,n)},jo),ur()&&(ac(e,t.scrollbarPadding,o),Dl()),!Pn()&&!H.previousActiveElement&&(H.previousActiveElement=document.activeElement),typeof t.didOpen=="function"&&setTimeout(()=>t.didOpen(n)),Ye(e,b["no-transition"])},Fo=t=>{const e=Y();if(t.target!==e)return;const n=ue();e.removeEventListener(Wt,Fo),n.style.overflowY="auto"},ic=(t,e)=>{Wt&&Lo(e)?(t.style.overflowY="hidden",e.addEventListener(Wt,Fo)):t.style.overflowY="auto"},ac=(t,e,n)=>{Zl(),e&&n!=="hidden"&&Jl(),setTimeout(()=>{t.scrollTop=0})},lc=(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")},jo),W([document.documentElement,document.body],b.shown),n.heightAuto&&n.backdrop&&!n.toast&&W([document.documentElement,document.body],b["height-auto"])},It=t=>{let e=Y();e||new Ot,e=Y();const n=Tt();Pn()?fe(Ft()):cc(e,t),le(n),e.setAttribute("data-loading",!0),e.setAttribute("aria-busy",!0),e.focus()},cc=(t,e)=>{const n=zt(),r=Tt();!e&&Pe(Me())&&(e=Me()),le(n),e&&(fe(e),r.setAttribute("data-button-to-replace",e.className)),r.parentNode.insertBefore(r,e),W([t,n],b.loading)},uc=(t,e)=>{e.input==="select"||e.input==="radio"?hc(t,e):["text","email","number","tel","textarea"].includes(e.input)&&(sr(e.inputValue)||ir(e.inputValue))&&(It(Me()),gc(t,e))},dc=(t,e)=>{const n=t.getInput();if(!n)return null;switch(e.input){case"checkbox":return fc(n);case"radio":return mc(n);case"file":return pc(n);default:return e.inputAutoTrim?n.value.trim():n.value}},fc=t=>t.checked?1:0,mc=t=>t.checked?t.value:null,pc=t=>t.files.length?t.getAttribute("multiple")!==null?t.files:t.files[0]:null,hc=(t,e)=>{const n=Y(),r=o=>yc[e.input](n,gr(o),e);sr(e.inputOptions)||ir(e.inputOptions)?(It(Me()),Ht(e.inputOptions).then(o=>{t.hideLoading(),r(o)})):typeof e.inputOptions=="object"?r(e.inputOptions):mt(`Unexpected type of inputOptions! Expected object, Map or Promise, got ${typeof e.inputOptions}`)},gc=(t,e)=>{const n=t.getInput();fe(n),Ht(e.inputValue).then(r=>{n.value=e.input==="number"?parseFloat(r)||0:`${r}`,le(n),n.focus(),t.hideLoading()}).catch(r=>{mt(`Error in inputValue promise: ${r}`),n.value="",le(n),n.focus(),t.hideLoading()})},yc={select:(t,e,n)=>{const r=it(t,b.select),o=(s,i,a)=>{const c=document.createElement("option");c.value=a,de(c,i),c.selected=zo(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=it(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,zo(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()}},gr=t=>{const e=[];return typeof Map<"u"&&t instanceof Map?t.forEach((n,r)=>{let o=n;typeof o=="object"&&(o=gr(o)),e.push([r,o])}):Object.keys(t).forEach(n=>{let r=t[n];typeof r=="object"&&(r=gr(r)),e.push([n,r])}),e},zo=(t,e)=>e&&e.toString()===t.toString();function Ko(){const t=j.innerParams.get(this);if(!t)return;const e=j.domCache.get(this);fe(e.loader),Pn()?t.icon&&le(Ft()):bc(e),Ye([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 bc=t=>{const e=t.popup.getElementsByClassName(t.loader.getAttribute("data-button-to-replace"));e.length?le(e[0],"inline-block"):Ga()&&fe(t.actions)};function vc(t){const e=j.innerParams.get(t||this),n=j.domCache.get(t||this);return n?dr(n.popup,e.input):null}const Gt={swalPromiseResolve:new WeakMap,swalPromiseReject:new WeakMap},wc=()=>Pe(Y()),Wo=()=>Me()&&Me().click(),Sc=()=>st()&&st().click(),_c=()=>pt()&&pt().click(),qo=t=>{t.keydownTarget&&t.keydownHandlerAdded&&(t.keydownTarget.removeEventListener("keydown",t.keydownHandler,{capture:t.keydownListenerCapture}),t.keydownHandlerAdded=!1)},kc=(t,e,n,r)=>{qo(e),n.toast||(e.keydownHandler=o=>Ec(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)},yr=(t,e,n)=>{const r=cr();if(r.length)return e=e+n,e===r.length?e=0:e===-1&&(e=r.length-1),r[e].focus();Y().focus()},Go=["ArrowRight","ArrowDown"],Cc=["ArrowLeft","ArrowUp"],Ec=(t,e,n)=>{const r=j.innerParams.get(t);r&&(e.isComposing||e.keyCode===229||(r.stopKeydownPropagation&&e.stopPropagation(),e.key==="Enter"?Tc(t,e,r):e.key==="Tab"?Ac(e,r):[...Go,...Cc].includes(e.key)?Pc(e.key):e.key==="Escape"&&Ic(e,r,n)))},Tc=(t,e,n)=>{if(Cn(n.allowEnterKey)&&e.target&&t.getInput()&&e.target.outerHTML===t.getInput().outerHTML){if(["textarea","file"].includes(n.input))return;Wo(),e.preventDefault()}},Ac=(t,e)=>{const n=t.target,r=cr();let o=-1;for(let s=0;s<r.length;s++)if(n===r[s]){o=s;break}t.shiftKey?yr(e,o,-1):yr(e,o,1),t.stopPropagation(),t.preventDefault()},Pc=t=>{const e=Me(),n=st(),r=pt();if(![e,n,r].includes(document.activeElement))return;const o=Go.includes(t)?"nextElementSibling":"previousElementSibling";let s=document.activeElement;for(let i=0;i<zt().children.length;i++){if(s=s[o],!s)return;if(Pe(s)&&s instanceof HTMLButtonElement)break}s instanceof HTMLButtonElement&&s.focus()},Ic=(t,e,n)=>{Cn(e.allowEscapeKey)&&(t.preventDefault(),n(Pt.esc))};function Yo(t,e,n,r){Pn()?Jo(t,r):(Za(n).then(()=>Jo(t,r)),qo(H)),/^((?!chrome|android).)*safari/i.test(navigator.userAgent)?(e.setAttribute("style","display:none !important"),e.removeAttribute("class"),e.innerHTML=""):e.remove(),ur()&&(Xl(),oc(),Uo()),xc()}function xc(){Ye([document.documentElement,document.body],[b.shown,b["height-auto"],b["no-backdrop"],b["toast-shown"]])}function xn(t){t=Rc(t);const e=Gt.swalPromiseResolve.get(this),n=Lc(this);this.isAwaitingPromise()?t.isDismissed||(Yt(this),e(t)):n&&e(t)}function Oc(){return!!j.awaitingPromise.get(this)}const Lc=t=>{const e=Y();if(!e)return!1;const n=j.innerParams.get(t);if(!n||Ze(e,n.hideClass.popup))return!1;Ye(e,n.showClass.popup),W(e,n.hideClass.popup);const r=ue();return Ye(r,n.showClass.backdrop),W(r,n.hideClass.backdrop),Nc(t,e,n),!0};function $c(t){const e=Gt.swalPromiseReject.get(this);Yt(this),e&&e(t)}const Yt=t=>{t.isAwaitingPromise()&&(j.awaitingPromise.delete(t),j.innerParams.get(t)||t._destroy())},Rc=t=>typeof t>"u"?{isConfirmed:!1,isDenied:!1,isDismissed:!0}:Object.assign({isConfirmed:!1,isDenied:!1,isDismissed:!1},t),Nc=(t,e,n)=>{const r=ue(),o=Wt&&Lo(e);typeof n.willClose=="function"&&n.willClose(e),o?Bc(t,e,r,n.returnFocus,n.didClose):Yo(t,r,n.returnFocus,n.didClose)},Bc=(t,e,n,r,o)=>{H.swalCloseEventFinishedCallback=Yo.bind(null,t,n,r,o),e.addEventListener(Wt,function(s){s.target===e&&(H.swalCloseEventFinishedCallback(),delete H.swalCloseEventFinishedCallback)})},Jo=(t,e)=>{setTimeout(()=>{typeof e=="function"&&e.bind(t.params)(),t._destroy()})};function Xo(t,e,n){const r=j.domCache.get(t);e.forEach(o=>{r[o].disabled=n})}function Zo(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 Dc(){Xo(this,["confirmButton","denyButton","cancelButton"],!1)}function Mc(){Xo(this,["confirmButton","denyButton","cancelButton"],!0)}function Uc(){return Zo(this.getInput(),!1)}function Hc(){return Zo(this.getInput(),!0)}function Vc(t){const e=j.domCache.get(this),n=j.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"]),Po(r),W(r,b.inputerror))}function jc(){const t=j.domCache.get(this);t.validationMessage&&fe(t.validationMessage);const e=this.getInput();e&&(e.removeAttribute("aria-invalid"),e.removeAttribute("aria-describedby"),Ye(e,b.inputerror))}function Fc(){return j.domCache.get(this).progressSteps}function zc(t){const e=Y(),n=j.innerParams.get(this);if(!e||Ze(e,n.hideClass.popup))return ve("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=Kc(t),o=Object.assign({},n,r);Mo(this,o),j.innerParams.set(this,o),Object.defineProperties(this,{params:{value:Object.assign({},this.params,t),writable:!1,enumerable:!0}})}const Kc=t=>{const e={};return Object.keys(t).forEach(n=>{_o(n)?e[n]=t[n]:ve(`Invalid parameter to update: "${n}". Updatable params are listed here: https://github.com/sweetalert2/sweetalert2/blob/master/src/utils/params.js
|
|
62
|
+
`).join("<br />")),sl(t)}class Yl{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 Jl=()=>{Pt.previousBodyPadding===null&&document.body.scrollHeight>window.innerHeight&&(Pt.previousBodyPadding=parseInt(window.getComputedStyle(document.body).getPropertyValue("padding-right")),document.body.style.paddingRight=`${Pt.previousBodyPadding+ll()}px`)},Xl=()=>{Pt.previousBodyPadding!==null&&(document.body.style.paddingRight=`${Pt.previousBodyPadding}px`,Pt.previousBodyPadding=null)},Zl=()=>{if((/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream||navigator.platform==="MacIntel"&&navigator.maxTouchPoints>1)&&!Ze(document.body,b.iosfix)){const e=document.body.scrollTop;document.body.style.top=`${e*-1}px`,W(document.body,b.iosfix),ec(),Ql()}},Ql=()=>{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&&(ue().style.paddingBottom="44px")},ec=()=>{const t=ue();let e;t.ontouchstart=n=>{e=tc(n)},t.ontouchmove=n=>{e&&(n.preventDefault(),n.stopPropagation())}},tc=t=>{const e=t.target,n=ue();return nc(t)||rc(t)?!1:e===n||!Oo(n)&&e.tagName!=="INPUT"&&e.tagName!=="TEXTAREA"&&!(Oo(En())&&En().contains(e))},nc=t=>t.touches&&t.touches.length&&t.touches[0].touchType==="stylus",rc=t=>t.touches&&t.touches.length>1,oc=()=>{if(Ze(document.body,b.iosfix)){const t=parseInt(document.body.style.top,10);Ye(document.body,b.iosfix),document.body.style.top="",document.body.scrollTop=t*-1}},jo=10,sc=t=>{const e=ue(),n=Y();typeof t.willOpen=="function"&&t.willOpen(n);const o=window.getComputedStyle(document.body).overflowY;lc(e,n,t),setTimeout(()=>{ic(e,n)},jo),ur()&&(ac(e,t.scrollbarPadding,o),Dl()),!Pn()&&!H.previousActiveElement&&(H.previousActiveElement=document.activeElement),typeof t.didOpen=="function"&&setTimeout(()=>t.didOpen(n)),Ye(e,b["no-transition"])},Fo=t=>{const e=Y();if(t.target!==e)return;const n=ue();e.removeEventListener(Wt,Fo),n.style.overflowY="auto"},ic=(t,e)=>{Wt&&Lo(e)?(t.style.overflowY="hidden",e.addEventListener(Wt,Fo)):t.style.overflowY="auto"},ac=(t,e,n)=>{Zl(),e&&n!=="hidden"&&Jl(),setTimeout(()=>{t.scrollTop=0})},lc=(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")},jo),W([document.documentElement,document.body],b.shown),n.heightAuto&&n.backdrop&&!n.toast&&W([document.documentElement,document.body],b["height-auto"])},xt=t=>{let e=Y();e||new Lt,e=Y();const n=At();Pn()?fe(Ft()):cc(e,t),le(n),e.setAttribute("data-loading",!0),e.setAttribute("aria-busy",!0),e.focus()},cc=(t,e)=>{const n=zt(),r=At();!e&&Pe(Me())&&(e=Me()),le(n),e&&(fe(e),r.setAttribute("data-button-to-replace",e.className)),r.parentNode.insertBefore(r,e),W([t,n],b.loading)},uc=(t,e)=>{e.input==="select"||e.input==="radio"?hc(t,e):["text","email","number","tel","textarea"].includes(e.input)&&(sr(e.inputValue)||ir(e.inputValue))&&(xt(Me()),gc(t,e))},dc=(t,e)=>{const n=t.getInput();if(!n)return null;switch(e.input){case"checkbox":return fc(n);case"radio":return mc(n);case"file":return pc(n);default:return e.inputAutoTrim?n.value.trim():n.value}},fc=t=>t.checked?1:0,mc=t=>t.checked?t.value:null,pc=t=>t.files.length?t.getAttribute("multiple")!==null?t.files:t.files[0]:null,hc=(t,e)=>{const n=Y(),r=o=>yc[e.input](n,gr(o),e);sr(e.inputOptions)||ir(e.inputOptions)?(xt(Me()),Ht(e.inputOptions).then(o=>{t.hideLoading(),r(o)})):typeof e.inputOptions=="object"?r(e.inputOptions):mt(`Unexpected type of inputOptions! Expected object, Map or Promise, got ${typeof e.inputOptions}`)},gc=(t,e)=>{const n=t.getInput();fe(n),Ht(e.inputValue).then(r=>{n.value=e.input==="number"?parseFloat(r)||0:`${r}`,le(n),n.focus(),t.hideLoading()}).catch(r=>{mt(`Error in inputValue promise: ${r}`),n.value="",le(n),n.focus(),t.hideLoading()})},yc={select:(t,e,n)=>{const r=it(t,b.select),o=(s,i,a)=>{const c=document.createElement("option");c.value=a,de(c,i),c.selected=zo(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=it(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,zo(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()}},gr=t=>{const e=[];return typeof Map<"u"&&t instanceof Map?t.forEach((n,r)=>{let o=n;typeof o=="object"&&(o=gr(o)),e.push([r,o])}):Object.keys(t).forEach(n=>{let r=t[n];typeof r=="object"&&(r=gr(r)),e.push([n,r])}),e},zo=(t,e)=>e&&e.toString()===t.toString();function Ko(){const t=j.innerParams.get(this);if(!t)return;const e=j.domCache.get(this);fe(e.loader),Pn()?t.icon&&le(Ft()):bc(e),Ye([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 bc=t=>{const e=t.popup.getElementsByClassName(t.loader.getAttribute("data-button-to-replace"));e.length?le(e[0],"inline-block"):Ga()&&fe(t.actions)};function vc(t){const e=j.innerParams.get(t||this),n=j.domCache.get(t||this);return n?dr(n.popup,e.input):null}const Gt={swalPromiseResolve:new WeakMap,swalPromiseReject:new WeakMap},wc=()=>Pe(Y()),Wo=()=>Me()&&Me().click(),Sc=()=>st()&&st().click(),_c=()=>pt()&&pt().click(),qo=t=>{t.keydownTarget&&t.keydownHandlerAdded&&(t.keydownTarget.removeEventListener("keydown",t.keydownHandler,{capture:t.keydownListenerCapture}),t.keydownHandlerAdded=!1)},kc=(t,e,n,r)=>{qo(e),n.toast||(e.keydownHandler=o=>Ec(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)},yr=(t,e,n)=>{const r=cr();if(r.length)return e=e+n,e===r.length?e=0:e===-1&&(e=r.length-1),r[e].focus();Y().focus()},Go=["ArrowRight","ArrowDown"],Cc=["ArrowLeft","ArrowUp"],Ec=(t,e,n)=>{const r=j.innerParams.get(t);r&&(e.isComposing||e.keyCode===229||(r.stopKeydownPropagation&&e.stopPropagation(),e.key==="Enter"?Tc(t,e,r):e.key==="Tab"?Ac(e,r):[...Go,...Cc].includes(e.key)?Pc(e.key):e.key==="Escape"&&Ic(e,r,n)))},Tc=(t,e,n)=>{if(Cn(n.allowEnterKey)&&e.target&&t.getInput()&&e.target.outerHTML===t.getInput().outerHTML){if(["textarea","file"].includes(n.input))return;Wo(),e.preventDefault()}},Ac=(t,e)=>{const n=t.target,r=cr();let o=-1;for(let s=0;s<r.length;s++)if(n===r[s]){o=s;break}t.shiftKey?yr(e,o,-1):yr(e,o,1),t.stopPropagation(),t.preventDefault()},Pc=t=>{const e=Me(),n=st(),r=pt();if(![e,n,r].includes(document.activeElement))return;const o=Go.includes(t)?"nextElementSibling":"previousElementSibling";let s=document.activeElement;for(let i=0;i<zt().children.length;i++){if(s=s[o],!s)return;if(Pe(s)&&s instanceof HTMLButtonElement)break}s instanceof HTMLButtonElement&&s.focus()},Ic=(t,e,n)=>{Cn(e.allowEscapeKey)&&(t.preventDefault(),n(It.esc))};function Yo(t,e,n,r){Pn()?Jo(t,r):(Za(n).then(()=>Jo(t,r)),qo(H)),/^((?!chrome|android).)*safari/i.test(navigator.userAgent)?(e.setAttribute("style","display:none !important"),e.removeAttribute("class"),e.innerHTML=""):e.remove(),ur()&&(Xl(),oc(),Uo()),xc()}function xc(){Ye([document.documentElement,document.body],[b.shown,b["height-auto"],b["no-backdrop"],b["toast-shown"]])}function xn(t){t=Rc(t);const e=Gt.swalPromiseResolve.get(this),n=Lc(this);this.isAwaitingPromise()?t.isDismissed||(Yt(this),e(t)):n&&e(t)}function Oc(){return!!j.awaitingPromise.get(this)}const Lc=t=>{const e=Y();if(!e)return!1;const n=j.innerParams.get(t);if(!n||Ze(e,n.hideClass.popup))return!1;Ye(e,n.showClass.popup),W(e,n.hideClass.popup);const r=ue();return Ye(r,n.showClass.backdrop),W(r,n.hideClass.backdrop),Nc(t,e,n),!0};function $c(t){const e=Gt.swalPromiseReject.get(this);Yt(this),e&&e(t)}const Yt=t=>{t.isAwaitingPromise()&&(j.awaitingPromise.delete(t),j.innerParams.get(t)||t._destroy())},Rc=t=>typeof t>"u"?{isConfirmed:!1,isDenied:!1,isDismissed:!0}:Object.assign({isConfirmed:!1,isDenied:!1,isDismissed:!1},t),Nc=(t,e,n)=>{const r=ue(),o=Wt&&Lo(e);typeof n.willClose=="function"&&n.willClose(e),o?Bc(t,e,r,n.returnFocus,n.didClose):Yo(t,r,n.returnFocus,n.didClose)},Bc=(t,e,n,r,o)=>{H.swalCloseEventFinishedCallback=Yo.bind(null,t,n,r,o),e.addEventListener(Wt,function(s){s.target===e&&(H.swalCloseEventFinishedCallback(),delete H.swalCloseEventFinishedCallback)})},Jo=(t,e)=>{setTimeout(()=>{typeof e=="function"&&e.bind(t.params)(),t._destroy()})};function Xo(t,e,n){const r=j.domCache.get(t);e.forEach(o=>{r[o].disabled=n})}function Zo(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 Dc(){Xo(this,["confirmButton","denyButton","cancelButton"],!1)}function Mc(){Xo(this,["confirmButton","denyButton","cancelButton"],!0)}function Uc(){return Zo(this.getInput(),!1)}function Hc(){return Zo(this.getInput(),!0)}function Vc(t){const e=j.domCache.get(this),n=j.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"]),Po(r),W(r,b.inputerror))}function jc(){const t=j.domCache.get(this);t.validationMessage&&fe(t.validationMessage);const e=this.getInput();e&&(e.removeAttribute("aria-invalid"),e.removeAttribute("aria-describedby"),Ye(e,b.inputerror))}function Fc(){return j.domCache.get(this).progressSteps}function zc(t){const e=Y(),n=j.innerParams.get(this);if(!e||Ze(e,n.hideClass.popup))return ve("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=Kc(t),o=Object.assign({},n,r);Mo(this,o),j.innerParams.set(this,o),Object.defineProperties(this,{params:{value:Object.assign({},this.params,t),writable:!1,enumerable:!0}})}const Kc=t=>{const e={};return Object.keys(t).forEach(n=>{_o(n)?e[n]=t[n]:ve(`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 Wc(){const t=j.domCache.get(this),e=j.innerParams.get(this);if(!e){Qo(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(),qc(this)}const qc=t=>{Qo(t),delete t.params,delete H.keydownHandler,delete H.keydownTarget,delete H.currentInstance},Qo=t=>{t.isAwaitingPromise()?(br(j,t),j.awaitingPromise.set(t,!0)):(br(Gt,t),br(j,t))},br=(t,e)=>{for(const n in t)t[n].delete(e)},es=Object.freeze(Object.defineProperty({__proto__:null,_destroy:Wc,close:xn,closeModal:xn,closePopup:xn,closeToast:xn,disableButtons:Mc,disableInput:Hc,disableLoading:Ko,enableButtons:Dc,enableInput:Uc,getInput:vc,getProgressSteps:Fc,handleAwaitingPromise:Yt,hideLoading:Ko,isAwaitingPromise:Oc,rejectPromise:$c,resetValidationMessage:jc,showValidationMessage:Vc,update:zc},Symbol.toStringTag,{value:"Module"})),Gc=t=>{const e=j.innerParams.get(t);t.disableButtons(),e.input?ts(t,"confirm"):wr(t,!0)},Yc=t=>{const e=j.innerParams.get(t);t.disableButtons(),e.returnInputValueOnDeny?ts(t,"deny"):vr(t,!1)},Jc=(t,e)=>{t.disableButtons(),e(Pt.cancel)},ts=(t,e)=>{const n=j.innerParams.get(t);if(!n.input)return mt(`The "input" parameter is needed to be set when using returnInputValueOn${or(e)}`);const r=dc(t,n);n.inputValidator?Xc(t,r,e):t.getInput().checkValidity()?e==="deny"?vr(t,r):wr(t,r):(t.enableButtons(),t.showValidationMessage(n.validationMessage))},Xc=(t,e,n)=>{const r=j.innerParams.get(t);t.disableInput(),Promise.resolve().then(()=>Ht(r.inputValidator(e,r.validationMessage))).then(s=>{t.enableButtons(),t.enableInput(),s?t.showValidationMessage(s):n==="deny"?vr(t,e):wr(t,e)})},vr=(t,e)=>{const n=j.innerParams.get(t||void 0);n.showLoaderOnDeny&&It(st()),n.preDeny?(j.awaitingPromise.set(t||void 0,!0),Promise.resolve().then(()=>Ht(n.preDeny(e,n.validationMessage))).then(o=>{o===!1?(t.hideLoading(),Yt(t)):t.closePopup({isDenied:!0,value:typeof o>"u"?e:o})}).catch(o=>rs(t||void 0,o))):t.closePopup({isDenied:!0,value:e})},ns=(t,e)=>{t.closePopup({isConfirmed:!0,value:e})},rs=(t,e)=>{t.rejectPromise(e)},wr=(t,e)=>{const n=j.innerParams.get(t||void 0);n.showLoaderOnConfirm&&It(),n.preConfirm?(t.resetValidationMessage(),j.awaitingPromise.set(t||void 0,!0),Promise.resolve().then(()=>Ht(n.preConfirm(e,n.validationMessage))).then(o=>{Pe(Tn())||o===!1?(t.hideLoading(),Yt(t)):ns(t,typeof o>"u"?e:o)}).catch(o=>rs(t||void 0,o))):ns(t,e)},Zc=(t,e,n)=>{j.innerParams.get(t).toast?Qc(t,e,n):(tu(e),nu(e),ru(t,e,n))},Qc=(t,e,n)=>{e.popup.onclick=()=>{const r=j.innerParams.get(t);r&&(eu(r)||r.timer||r.input)||n(Pt.close)}},eu=t=>t.showConfirmButton||t.showDenyButton||t.showCancelButton||t.showCloseButton;let On=!1;const tu=t=>{t.popup.onmousedown=()=>{t.container.onmouseup=function(e){t.container.onmouseup=void 0,e.target===t.container&&(On=!0)}}},nu=t=>{t.container.onmousedown=()=>{t.popup.onmouseup=function(e){t.popup.onmouseup=void 0,(e.target===t.popup||t.popup.contains(e.target))&&(On=!0)}}},ru=(t,e,n)=>{e.container.onclick=r=>{const o=j.innerParams.get(t);if(On){On=!1;return}r.target===e.container&&Cn(o.allowOutsideClick)&&n(Pt.backdrop)}},ou=t=>typeof t=="object"&&t.jquery,os=t=>t instanceof Element||ou(t),su=t=>{const e={};return typeof t[0]=="object"&&!os(t[0])?Object.assign(e,t[0]):["title","html","icon"].forEach((n,r)=>{const o=t[r];typeof o=="string"||os(o)?e[n]=o:o!==void 0&&mt(`Unexpected type of ${n}! Expected "string" or "Element", got ${typeof o}`)}),e};function iu(...t){const e=this;return new e(...t)}function au(t){class e extends this{_main(r,o){return super._main(r,Object.assign({},t,o))}}return e}const lu=()=>H.timeout&&H.timeout.getTimerLeft(),ss=()=>{if(H.timeout)return Ya(),H.timeout.stop()},is=()=>{if(H.timeout){const t=H.timeout.start();return fr(t),t}},cu=()=>{const t=H.timeout;return t&&(t.running?ss():is())},uu=t=>{if(H.timeout){const e=H.timeout.increase(t);return fr(e,!0),e}},du=()=>H.timeout&&H.timeout.isRunning();let as=!1;const Sr={};function fu(t="data-swal-template"){Sr[t]=this,as||(document.body.addEventListener("click",mu),as=!0)}const mu=t=>{for(let e=t.target;e&&e!==document;e=e.parentNode)for(const n in Sr){const r=e.getAttribute(n);if(r){Sr[n].fire({template:r});return}}},pu=Object.freeze(Object.defineProperty({__proto__:null,argsToParams:su,bindClickHandler:fu,clickCancel:_c,clickConfirm:Wo,clickDeny:Sc,enableLoading:It,fire:iu,getActions:zt,getCancelButton:pt,getCloseButton:lr,getConfirmButton:Me,getContainer:ue,getDenyButton:st,getFocusableElements:cr,getFooter:Ao,getHtmlContainer:En,getIcon:Ft,getImage:Eo,getInputLabel:za,getLoader:Tt,getPopup:Y,getTimerLeft:lu,getTimerProgressBar:An,getTitle:Co,getValidationMessage:Tn,increaseTimer:uu,isDeprecatedParameter:ar,isLoading:Wa,isTimerRunning:du,isUpdatableParameter:_o,isValidParameter:So,isVisible:wc,mixin:au,resumeTimer:is,showLoading:It,stopTimer:ss,toggleTimer:cu},Symbol.toStringTag,{value:"Module"}));let _r;class xt{constructor(...e){if(typeof window>"u")return;_r=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);j.promise.set(this,r)}_main(e,n={}){ja(Object.assign({},n,e)),H.currentInstance&&(H.currentInstance._destroy(),ur()&&Uo()),H.currentInstance=this;const r=gu(e,n);Gl(r),Object.freeze(r),H.timeout&&(H.timeout.stop(),delete H.timeout),clearTimeout(H.restoreFocusTimeout);const o=yu(this);return Mo(this,r),j.innerParams.set(this,r),hu(this,o,r)}then(e){return j.promise.get(this).then(e)}finally(e){return j.promise.get(this).finally(e)}}const hu=(t,e,n)=>new Promise((r,o)=>{const s=i=>{t.closePopup({isDismissed:!0,dismiss:i})};Gt.swalPromiseResolve.set(t,r),Gt.swalPromiseReject.set(t,o),e.confirmButton.onclick=()=>Gc(t),e.denyButton.onclick=()=>Yc(t),e.cancelButton.onclick=()=>Jc(t,s),e.closeButton.onclick=()=>s(Pt.close),Zc(t,e,s),kc(t,H,n,s),uc(t,n),sc(n),bu(H,n,s),vu(e,n),setTimeout(()=>{e.container.scrollTop=0})}),gu=(t,e)=>{const n=Ml(t),r=Object.assign({},Et,e,n,t);return r.showClass=Object.assign({},Et.showClass,r.showClass),r.hideClass=Object.assign({},Et.hideClass,r.hideClass),r},yu=t=>{const e={popup:Y(),container:ue(),actions:zt(),confirmButton:Me(),denyButton:st(),cancelButton:pt(),loader:Tt(),closeButton:lr(),validationMessage:Tn(),progressSteps:To()};return j.domCache.set(t,e),e},bu=(t,e,n)=>{const r=An();fe(r),e.timer&&(t.timeout=new Yl(()=>{n("timer"),delete t.timeout},e.timer),e.timerProgressBar&&(le(r),Ne(r,e,"timerProgressBar"),setTimeout(()=>{t.timeout&&t.timeout.running&&fr(e.timer)})))},vu=(t,e)=>{if(!e.toast){if(!Cn(e.allowEnterKey))return Su();wu(t,e)||yr(e,-1,1)}},wu=(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,Su=()=>{document.activeElement instanceof HTMLElement&&typeof document.activeElement.blur=="function"&&document.activeElement.blur()};Object.assign(xt.prototype,es),Object.assign(xt,pu),Object.keys(es).forEach(t=>{xt[t]=function(...e){if(_r)return _r[t](...e)}}),xt.DismissReason=Pt,xt.version="11.4.8";const Ot=xt;Ot.default=Ot;/*! @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:ls,setPrototypeOf:cs,isFrozen:_u,getPrototypeOf:ku,getOwnPropertyDescriptor:Cu}=Object;let{freeze:he,seal:Ue,create:us}=Object,{apply:kr,construct:Cr}=typeof Reflect<"u"&&Reflect;he||(he=function(e){return e}),Ue||(Ue=function(e){return e}),kr||(kr=function(e,n,r){return e.apply(n,r)}),Cr||(Cr=function(e,n){return new e(...n)});const Ln=xe(Array.prototype.forEach),ds=xe(Array.prototype.pop),Jt=xe(Array.prototype.push),$n=xe(String.prototype.toLowerCase),Er=xe(String.prototype.toString),Eu=xe(String.prototype.match),Xt=xe(String.prototype.replace),Tu=xe(String.prototype.indexOf),Au=xe(String.prototype.trim),He=xe(Object.prototype.hasOwnProperty),Ie=xe(RegExp.prototype.test),Zt=Pu(TypeError);function xe(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 kr(t,e,r)}}function Pu(t){return function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return Cr(t,n)}}function K(t,e){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:$n;cs&&cs(t,null);let r=e.length;for(;r--;){let o=e[r];if(typeof o=="string"){const s=n(o);s!==o&&(_u(e)||(e[r]=s),o=s)}t[o]=!0}return t}function Iu(t){for(let e=0;e<t.length;e++)He(t,e)||(t[e]=null);return t}function yt(t){const e=us(null);for(const[n,r]of ls(t))He(t,n)&&(Array.isArray(r)?e[n]=Iu(r):r&&typeof r=="object"&&r.constructor===Object?e[n]=yt(r):e[n]=r);return e}function Rn(t,e){for(;t!==null;){const r=Cu(t,e);if(r){if(r.get)return xe(r.get);if(typeof r.value=="function")return xe(r.value)}t=ku(t)}function n(){return null}return n}const fs=he(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","section","select","shadow","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),Tr=he(["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"]),Ar=he(["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"]),xu=he(["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"]),Pr=he(["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"]),Ou=he(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),ms=he(["#text"]),ps=he(["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"]),Ir=he(["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"]),hs=he(["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"]),Nn=he(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),Lu=Ue(/\{\{[\w\W]*|[\w\W]*\}\}/gm),$u=Ue(/<%[\w\W]*|[\w\W]*%>/gm),Ru=Ue(/\${[\w\W]*}/gm),Nu=Ue(/^data-[\-\w.\u00B7-\uFFFF]/),Bu=Ue(/^aria-[\-\w]+$/),gs=Ue(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),Du=Ue(/^(?:\w+script|data):/i),Mu=Ue(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),ys=Ue(/^html$/i);var bs=Object.freeze({__proto__:null,MUSTACHE_EXPR:Lu,ERB_EXPR:$u,TMPLIT_EXPR:Ru,DATA_ATTR:Nu,ARIA_ATTR:Bu,IS_ALLOWED_URI:gs,IS_SCRIPT_OR_DATA:Du,ATTR_WHITESPACE:Mu,DOCTYPE_NAME:ys});const Uu=function(){return typeof window>"u"?null:window},Hu=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 vs(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Uu();const e=N=>vs(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=Rn(v,"cloneNode"),w=Rn(v,"nextSibling"),B=Rn(v,"childNodes"),C=Rn(v,"parentNode");if(typeof i=="function"){const N=n.createElement("template");N.content&&N.content.ownerDocument&&(n=N.content.ownerDocument)}let A,z="";const{implementation:Z,createNodeIterator:re,createDocumentFragment:X,getElementsByTagName:ye}=n,{importNode:ie}=r;let V={};e.isSupported=typeof ls=="function"&&typeof C=="function"&&Z&&Z.createHTMLDocument!==void 0;const{MUSTACHE_EXPR:$e,ERB_EXPR:ke,TMPLIT_EXPR:We,DATA_ATTR:qe,ARIA_ATTR:ft,IS_SCRIPT_OR_DATA:tt,ATTR_WHITESPACE:Ge}=bs;let{IS_ALLOWED_URI:Xe}=bs,ne=null;const Be=K({},[...fs,...Tr,...Ar,...Pr,...ms]);let f=null;const h=K({},[...ps,...Ir,...hs,...Nn]);let S=Object.seal(us(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,Q=!1,se=!1,be=!1,ce=!1,De=!1,Xi=!0,Zi=!1;const ch="user-content-";let co=!0,vn=!1,Bt={},Dt=null;const Qi=K({},["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 ea=null;const ta=K({},["audio","video","img","source","image","track"]);let uo=null;const na=K({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),er="http://www.w3.org/1998/Math/MathML",tr="http://www.w3.org/2000/svg",nt="http://www.w3.org/1999/xhtml";let Mt=nt,fo=!1,mo=null;const uh=K({},[er,tr,nt],Er);let wn=null;const dh=["application/xhtml+xml","text/html"],fh="text/html";let ae=null,Ut=null;const mh=n.createElement("form"),ra=function(p){return p instanceof RegExp||p instanceof Function},po=function(){let p=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(!(Ut&&Ut===p)){if((!p||typeof p!="object")&&(p={}),p=yt(p),wn=dh.indexOf(p.PARSER_MEDIA_TYPE)===-1?fh:p.PARSER_MEDIA_TYPE,ae=wn==="application/xhtml+xml"?Er:$n,ne=He(p,"ALLOWED_TAGS")?K({},p.ALLOWED_TAGS,ae):Be,f=He(p,"ALLOWED_ATTR")?K({},p.ALLOWED_ATTR,ae):h,mo=He(p,"ALLOWED_NAMESPACES")?K({},p.ALLOWED_NAMESPACES,Er):uh,uo=He(p,"ADD_URI_SAFE_ATTR")?K(yt(na),p.ADD_URI_SAFE_ATTR,ae):na,ea=He(p,"ADD_DATA_URI_TAGS")?K(yt(ta),p.ADD_DATA_URI_TAGS,ae):ta,Dt=He(p,"FORBID_CONTENTS")?K({},p.FORBID_CONTENTS,ae):Qi,P=He(p,"FORBID_TAGS")?K({},p.FORBID_TAGS,ae):{},k=He(p,"FORBID_ATTR")?K({},p.FORBID_ATTR,ae):{},Bt=He(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,be=p.RETURN_DOM||!1,ce=p.RETURN_DOM_FRAGMENT||!1,De=p.RETURN_TRUSTED_TYPE||!1,se=p.FORCE_BODY||!1,Xi=p.SANITIZE_DOM!==!1,Zi=p.SANITIZE_NAMED_PROPS||!1,co=p.KEEP_CONTENT!==!1,vn=p.IN_PLACE||!1,Xe=p.ALLOWED_URI_REGEXP||gs,Mt=p.NAMESPACE||nt,S=p.CUSTOM_ELEMENT_HANDLING||{},p.CUSTOM_ELEMENT_HANDLING&&ra(p.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(S.tagNameCheck=p.CUSTOM_ELEMENT_HANDLING.tagNameCheck),p.CUSTOM_ELEMENT_HANDLING&&ra(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),ce&&(be=!0),Bt&&(ne=K({},ms),f=[],Bt.html===!0&&(K(ne,fs),K(f,ps)),Bt.svg===!0&&(K(ne,Tr),K(f,Ir),K(f,Nn)),Bt.svgFilters===!0&&(K(ne,Ar),K(f,Ir),K(f,Nn)),Bt.mathMl===!0&&(K(ne,Pr),K(f,hs),K(f,Nn))),p.ADD_TAGS&&(ne===Be&&(ne=yt(ne)),K(ne,p.ADD_TAGS,ae)),p.ADD_ATTR&&(f===h&&(f=yt(f)),K(f,p.ADD_ATTR,ae)),p.ADD_URI_SAFE_ATTR&&K(uo,p.ADD_URI_SAFE_ATTR,ae),p.FORBID_CONTENTS&&(Dt===Qi&&(Dt=yt(Dt)),K(Dt,p.FORBID_CONTENTS,ae)),co&&(ne["#text"]=!0),$&&K(ne,["html","head","body"]),ne.table&&(K(ne,["tbody"]),delete P.tbody),p.TRUSTED_TYPES_POLICY){if(typeof p.TRUSTED_TYPES_POLICY.createHTML!="function")throw Zt('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof p.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw Zt('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');A=p.TRUSTED_TYPES_POLICY,z=A.createHTML("")}else A===void 0&&(A=Hu(_,o)),A!==null&&typeof z=="string"&&(z=A.createHTML(""));he&&he(p),Ut=p}},oa=K({},["mi","mo","mn","ms","mtext"]),sa=K({},["foreignobject","desc","title","annotation-xml"]),ph=K({},["title","style","font","a","script"]),ia=K({},[...Tr,...Ar,...xu]),aa=K({},[...Pr,...Ou]),hh=function(p){let x=C(p);(!x||!x.tagName)&&(x={namespaceURI:Mt,tagName:"template"});const R=$n(p.tagName),ee=$n(x.tagName);return mo[p.namespaceURI]?p.namespaceURI===tr?x.namespaceURI===nt?R==="svg":x.namespaceURI===er?R==="svg"&&(ee==="annotation-xml"||oa[ee]):!!ia[R]:p.namespaceURI===er?x.namespaceURI===nt?R==="math":x.namespaceURI===tr?R==="math"&&sa[ee]:!!aa[R]:p.namespaceURI===nt?x.namespaceURI===tr&&!sa[ee]||x.namespaceURI===er&&!oa[ee]?!1:!aa[R]&&(ph[R]||!ia[R]):!!(wn==="application/xhtml+xml"&&mo[p.namespaceURI]):!1},_t=function(p){Jt(e.removed,{element:p});try{p.parentNode.removeChild(p)}catch{p.remove()}},ho=function(p,x){try{Jt(e.removed,{attribute:x.getAttributeNode(p),from:x})}catch{Jt(e.removed,{attribute:null,from:x})}if(x.removeAttribute(p),p==="is"&&!f[p])if(be||ce)try{_t(x)}catch{}else try{x.setAttribute(p,"")}catch{}},la=function(p){let x=null,R=null;if(se)p="<remove></remove>"+p;else{const pe=Eu(p,/^[\r\n\t ]+/);R=pe&&pe[0]}wn==="application/xhtml+xml"&&Mt===nt&&(p='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+p+"</body></html>");const ee=A?A.createHTML(p):p;if(Mt===nt)try{x=new g().parseFromString(ee,wn)}catch{}if(!x||!x.documentElement){x=Z.createDocument(Mt,"template",null);try{x.documentElement.innerHTML=fo?z:ee}catch{}}const me=x.body||x.documentElement;return p&&R&&me.insertBefore(n.createTextNode(R),me.childNodes[0]||null),Mt===nt?ye.call(x,$?"html":"body")[0]:$?x.documentElement:me},ca=function(p){return re.call(p.ownerDocument||p,p,u.SHOW_ELEMENT|u.SHOW_COMMENT|u.SHOW_TEXT,null)},gh=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")},ua=function(p){return typeof a=="function"&&p instanceof a},rt=function(p,x,R){V[p]&&Ln(V[p],ee=>{ee.call(e,x,R,Ut)})},da=function(p){let x=null;if(rt("beforeSanitizeElements",p,null),gh(p))return _t(p),!0;const R=ae(p.nodeName);if(rt("uponSanitizeElement",p,{tagName:R,allowedTags:ne}),p.hasChildNodes()&&!ua(p.firstElementChild)&&Ie(/<[/\w]/g,p.innerHTML)&&Ie(/<[/\w]/g,p.textContent))return _t(p),!0;if(!ne[R]||P[R]){if(!P[R]&&ma(R)&&(S.tagNameCheck instanceof RegExp&&Ie(S.tagNameCheck,R)||S.tagNameCheck instanceof Function&&S.tagNameCheck(R)))return!1;if(co&&!Dt[R]){const ee=C(p)||p.parentNode,me=B(p)||p.childNodes;if(me&&ee){const pe=me.length;for(let Ce=pe-1;Ce>=0;--Ce)ee.insertBefore(T(me[Ce],!0),w(p))}}return _t(p),!0}return p instanceof c&&!hh(p)||(R==="noscript"||R==="noembed"||R==="noframes")&&Ie(/<\/no(script|embed|frames)/i,p.innerHTML)?(_t(p),!0):(O&&p.nodeType===3&&(x=p.textContent,Ln([$e,ke,We],ee=>{x=Xt(x,ee," ")}),p.textContent!==x&&(Jt(e.removed,{element:p.cloneNode()}),p.textContent=x)),rt("afterSanitizeElements",p,null),!1)},fa=function(p,x,R){if(Xi&&(x==="id"||x==="name")&&(R in n||R in mh))return!1;if(!(E&&!k[x]&&Ie(qe,x))){if(!(L&&Ie(ft,x))){if(!f[x]||k[x]){if(!(ma(p)&&(S.tagNameCheck instanceof RegExp&&Ie(S.tagNameCheck,p)||S.tagNameCheck instanceof Function&&S.tagNameCheck(p))&&(S.attributeNameCheck instanceof RegExp&&Ie(S.attributeNameCheck,x)||S.attributeNameCheck instanceof Function&&S.attributeNameCheck(x))||x==="is"&&S.allowCustomizedBuiltInElements&&(S.tagNameCheck instanceof RegExp&&Ie(S.tagNameCheck,R)||S.tagNameCheck instanceof Function&&S.tagNameCheck(R))))return!1}else if(!uo[x]){if(!Ie(Xe,Xt(R,Ge,""))){if(!((x==="src"||x==="xlink:href"||x==="href")&&p!=="script"&&Tu(R,"data:")===0&&ea[p])){if(!(I&&!Ie(tt,Xt(R,Ge,"")))){if(R)return!1}}}}}}return!0},ma=function(p){return p!=="annotation-xml"&&p.indexOf("-")>0},pa=function(p){rt("beforeSanitizeAttributes",p,null);const{attributes:x}=p;if(!x)return;const R={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:f};let ee=x.length;for(;ee--;){const me=x[ee],{name:pe,namespaceURI:Ce,value:kt}=me,Sn=ae(pe);let Ee=pe==="value"?kt:Au(kt);if(R.attrName=Sn,R.attrValue=Ee,R.keepAttr=!0,R.forceKeepAttr=void 0,rt("uponSanitizeAttribute",p,R),Ee=R.attrValue,R.forceKeepAttr||(ho(pe,p),!R.keepAttr))continue;if(!D&&Ie(/\/>/i,Ee)){ho(pe,p);continue}O&&Ln([$e,ke,We],ga=>{Ee=Xt(Ee,ga," ")});const ha=ae(p.nodeName);if(fa(ha,Sn,Ee)){if(Zi&&(Sn==="id"||Sn==="name")&&(ho(pe,p),Ee=ch+Ee),A&&typeof _=="object"&&typeof _.getAttributeType=="function"&&!Ce)switch(_.getAttributeType(ha,Sn)){case"TrustedHTML":{Ee=A.createHTML(Ee);break}case"TrustedScriptURL":{Ee=A.createScriptURL(Ee);break}}try{Ce?p.setAttributeNS(Ce,pe,Ee):p.setAttribute(pe,Ee),ds(e.removed)}catch{}}}rt("afterSanitizeAttributes",p,null)},yh=function N(p){let x=null;const R=ca(p);for(rt("beforeSanitizeShadowDOM",p,null);x=R.nextNode();)rt("uponSanitizeShadowNode",x,null),!da(x)&&(x.content instanceof s&&N(x.content),pa(x));rt("afterSanitizeShadowDOM",p,null)};return e.sanitize=function(N){let p=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},x=null,R=null,ee=null,me=null;if(fo=!N,fo&&(N="<!-->"),typeof N!="string"&&!ua(N))if(typeof N.toString=="function"){if(N=N.toString(),typeof N!="string")throw Zt("dirty is not a string, aborting")}else throw Zt("toString is not a function");if(!e.isSupported)return N;if(Q||po(p),e.removed=[],typeof N=="string"&&(vn=!1),vn){if(N.nodeName){const kt=ae(N.nodeName);if(!ne[kt]||P[kt])throw Zt("root node is forbidden and cannot be sanitized in-place")}}else if(N instanceof a)x=la("<!---->"),R=x.ownerDocument.importNode(N,!0),R.nodeType===1&&R.nodeName==="BODY"||R.nodeName==="HTML"?x=R:x.appendChild(R);else{if(!be&&!O&&!$&&N.indexOf("<")===-1)return A&&De?A.createHTML(N):N;if(x=la(N),!x)return be?null:De?z:""}x&&se&&_t(x.firstChild);const pe=ca(vn?N:x);for(;ee=pe.nextNode();)da(ee)||(ee.content instanceof s&&yh(ee.content),pa(ee));if(vn)return N;if(be){if(ce)for(me=X.call(x.ownerDocument);x.firstChild;)me.appendChild(x.firstChild);else me=x;return(f.shadowroot||f.shadowrootmode)&&(me=ie.call(r,me,!0)),me}let Ce=$?x.outerHTML:x.innerHTML;return $&&ne["!doctype"]&&x.ownerDocument&&x.ownerDocument.doctype&&x.ownerDocument.doctype.name&&Ie(ys,x.ownerDocument.doctype.name)&&(Ce="<!DOCTYPE "+x.ownerDocument.doctype.name+`>
|
|
65
|
-
`+Ce),O&&Ln([$e,ke,We],kt=>{Ce=Xt(Ce,kt," ")}),A&&De?A.createHTML(Ce):Ce},e.setConfig=function(){let N=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};po(N),Q=!0},e.clearConfig=function(){Ut=null,Q=!1},e.isValidAttribute=function(N,p,x){Ut||po({});const R=ae(N),ee=ae(p);return fa(R,ee,x)},e.addHook=function(N,p){typeof p=="function"&&(V[N]=V[N]||[],Jt(V[N],p))},e.removeHook=function(N){if(V[N])return ds(V[N])},e.removeHooks=function(N){V[N]&&(V[N]=[])},e.removeAllHooks=function(){V={}},e}var ws=vs();let Ss=class{get IsVisible(){return Ot.isVisible()}};class Vu extends Ss{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=>{Ot.fire({allowEscapeKey:!1,allowOutsideClick:!1,icon:n,title:o,html:`<div style="max-height: 50vh; overflow: auto">${ws.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 ju extends Ss{async CreateConfirmAsync(e){return new Promise(n=>{Ot.fire({showCancelButton:!0,allowEscapeKey:!1,allowOutsideClick:!1,icon:"question",title:e.title,html:ws.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 Fu=()=>new Vu,_s=()=>new ju;function zu(t){return t instanceof Uint8Array||t!=null&&typeof t=="object"&&t.constructor.name==="Uint8Array"}function ks(t,...e){if(!zu(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 Cs(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 Ku(t,e){ks(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 xr=t=>new DataView(t.buffer,t.byteOffset,t.byteLength),Je=(t,e)=>t<<32-e|t>>>e;new Uint8Array(new Uint32Array([287454020]).buffer)[0];function Wu(t){if(typeof t!="string")throw new Error(`utf8ToBytes expected string, got ${typeof t}`);return new Uint8Array(new TextEncoder().encode(t))}function Es(t){return typeof t=="string"&&(t=Wu(t)),ks(t),t}class qu{clone(){return this._cloneInto()}}function Gu(t){const e=r=>t().update(Es(r)).digest(),n=t();return e.outputLen=n.outputLen,e.blockLen=n.blockLen,e.create=()=>t(),e}function Yu(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 Ju=(t,e,n)=>t&e^~t&n,Xu=(t,e,n)=>t&e^t&n^e&n;class Zu extends qu{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=xr(this.buffer)}update(e){Cs(this);const{view:n,buffer:r,blockLen:o}=this;e=Es(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=xr(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){Cs(this),Ku(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;Yu(r,o-8,BigInt(this.length*8),s),this.process(r,0);const a=xr(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 Qu=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]),at=new Uint32Array([1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225]),lt=new Uint32Array(64);class ed extends Zu{constructor(){super(64,32,8,!1),this.A=at[0]|0,this.B=at[1]|0,this.C=at[2]|0,this.D=at[3]|0,this.E=at[4]|0,this.F=at[5]|0,this.G=at[6]|0,this.H=at[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)lt[m]=e.getUint32(n,!1);for(let m=16;m<64;m++){const g=lt[m-15],_=lt[m-2],v=Je(g,7)^Je(g,18)^g>>>3,T=Je(_,17)^Je(_,19)^_>>>10;lt[m]=T+lt[m-7]+v+lt[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=Je(a,6)^Je(a,11)^Je(a,25),_=d+g+Ju(a,c,u)+Qu[m]+lt[m]|0,T=(Je(r,2)^Je(r,13)^Je(r,22))+Xu(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(){lt.fill(0)}destroy(){this.set(0,0,0,0,0,0,0,0),this.buffer.fill(0)}}const td=Gu(()=>new ed);class Qt extends Error{}Qt.prototype.name="InvalidTokenError";function nd(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 rd(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 nd(e)}catch{return atob(e)}}function Or(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=rd(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 Lr(t){if(!(this instanceof Lr))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=Be(console.info),d=Be(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=ne();var h=["default","cordova","cordova-native"];if(f&&h.indexOf(f.adapter)>-1?n=tt(f.adapter):f&&typeof f.adapter=="object"?n=f.adapter:window.Cordova||window.cordova?n=tt("cordova"):n=tt(),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=V(),P=V();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(se){var be=function(ce){if(!(ce.origin!==window.location.origin||O.contentWindow!==ce.source)){var De=X(ce.data);C(De,P,se),document.body.removeChild(O),window.removeEventListener("message",be)}};window.addEventListener("message",be)})};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(Q){Q||($.prompt="none"),f&&f.locale&&($.locale=f.locale),e.login($).then(function(){P.setSuccess()}).catch(function(se){P.setError(se)})},$={};switch(f.onLoad){case"check-sso":s.enable?ke().then(function(){qe().then(function(Q){Q?P.setSuccess():e.silentCheckSsoRedirectUri?L():O(!1)}).catch(function(Q){P.setError(Q)})}):e.silentCheckSsoRedirectUri?L():O(!1);break;case"login-required":O(!0);break;default:throw"Invalid value for onLoad"}}function I(){var O=X(window.location.href);if(O&&window.history.replaceState(window.history.state,null,O.newUrl),O&&O.valid)return ke().then(function(){C(O,P)}).catch(function($){P.setError($)});f?f.token&&f.refreshToken?(Z(f.token,f.refreshToken,f.idToken),s.enable?ke().then(function(){qe().then(function($){$?(e.onAuthSuccess&&e.onAuthSuccess(),P.setSuccess(),We()):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=V(),$=function(){(document.readyState==="interactive"||document.readyState==="complete")&&(document.removeEventListener("readystatechange",$),O.setSuccess())};return document.addEventListener("readystatechange",$),$(),O.promise}return k.then(function(){D().then(ft).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=td(h);return od(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=re(),S=re(),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=V();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=V();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=V();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);Z(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=qe();P.then(function(){S()}).catch(function(k){h.setError(k)})}else S();return h.promise},e.clearToken=function(){e.token&&(Z(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)&&Q(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 se=JSON.parse($.responseText);Q(se.access_token,se.refresh_token,se.id_token,e.flow==="standard"),We()}else e.onAuthError&&e.onAuthError(),h&&h.setError()},$.send(D)}function Q(se,be,ce,De){if(E=(E+new Date().getTime())/2,Z(se,be,ce,E),c&&e.idTokenParsed&&e.idTokenParsed.nonce!=f.storedNonce)u("[KEYCLOAK] Invalid nonce, clearing token"),e.clearToken(),h&&h.setError();else if(De){e.onAuthSuccess&&e.onAuthSuccess(),h&&h.setSuccess(),S&&S(se);return}}}function A(f){var h=V(),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||z(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||z(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 z(f){return f.status==0&&f.responseText&&f.responseURL.startsWith("file:")}function Z(f,h,S,P){if(e.tokenTimeoutHandle&&(clearTimeout(e.tokenTimeoutHandle),e.tokenTimeoutHandle=null),h?(e.refreshToken=h,e.refreshTokenParsed=Or(h)):(delete e.refreshToken,delete e.refreshTokenParsed),S?(e.idToken=S,e.idTokenParsed=Or(S)):(delete e.idToken,delete e.idTokenParsed),f){if(e.token=f,e.tokenParsed=Or(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 re(){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 X(f){var h=ye(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 ye(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=ie(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=ie(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 ie(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 V(){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 $e(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 ke(){var f=V();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 We(){s.enable&&e.token&&setTimeout(function(){qe().then(function(f){f&&We()})},s.interval*1e3)}function qe(){var f=V();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 ft(){var f=V();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 Wc(){const t=j.domCache.get(this),e=j.innerParams.get(this);if(!e){Qo(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(),qc(this)}const qc=t=>{Qo(t),delete t.params,delete H.keydownHandler,delete H.keydownTarget,delete H.currentInstance},Qo=t=>{t.isAwaitingPromise()?(br(j,t),j.awaitingPromise.set(t,!0)):(br(Gt,t),br(j,t))},br=(t,e)=>{for(const n in t)t[n].delete(e)},es=Object.freeze(Object.defineProperty({__proto__:null,_destroy:Wc,close:xn,closeModal:xn,closePopup:xn,closeToast:xn,disableButtons:Mc,disableInput:Hc,disableLoading:Ko,enableButtons:Dc,enableInput:Uc,getInput:vc,getProgressSteps:Fc,handleAwaitingPromise:Yt,hideLoading:Ko,isAwaitingPromise:Oc,rejectPromise:$c,resetValidationMessage:jc,showValidationMessage:Vc,update:zc},Symbol.toStringTag,{value:"Module"})),Gc=t=>{const e=j.innerParams.get(t);t.disableButtons(),e.input?ts(t,"confirm"):wr(t,!0)},Yc=t=>{const e=j.innerParams.get(t);t.disableButtons(),e.returnInputValueOnDeny?ts(t,"deny"):vr(t,!1)},Jc=(t,e)=>{t.disableButtons(),e(It.cancel)},ts=(t,e)=>{const n=j.innerParams.get(t);if(!n.input)return mt(`The "input" parameter is needed to be set when using returnInputValueOn${or(e)}`);const r=dc(t,n);n.inputValidator?Xc(t,r,e):t.getInput().checkValidity()?e==="deny"?vr(t,r):wr(t,r):(t.enableButtons(),t.showValidationMessage(n.validationMessage))},Xc=(t,e,n)=>{const r=j.innerParams.get(t);t.disableInput(),Promise.resolve().then(()=>Ht(r.inputValidator(e,r.validationMessage))).then(s=>{t.enableButtons(),t.enableInput(),s?t.showValidationMessage(s):n==="deny"?vr(t,e):wr(t,e)})},vr=(t,e)=>{const n=j.innerParams.get(t||void 0);n.showLoaderOnDeny&&xt(st()),n.preDeny?(j.awaitingPromise.set(t||void 0,!0),Promise.resolve().then(()=>Ht(n.preDeny(e,n.validationMessage))).then(o=>{o===!1?(t.hideLoading(),Yt(t)):t.closePopup({isDenied:!0,value:typeof o>"u"?e:o})}).catch(o=>rs(t||void 0,o))):t.closePopup({isDenied:!0,value:e})},ns=(t,e)=>{t.closePopup({isConfirmed:!0,value:e})},rs=(t,e)=>{t.rejectPromise(e)},wr=(t,e)=>{const n=j.innerParams.get(t||void 0);n.showLoaderOnConfirm&&xt(),n.preConfirm?(t.resetValidationMessage(),j.awaitingPromise.set(t||void 0,!0),Promise.resolve().then(()=>Ht(n.preConfirm(e,n.validationMessage))).then(o=>{Pe(Tn())||o===!1?(t.hideLoading(),Yt(t)):ns(t,typeof o>"u"?e:o)}).catch(o=>rs(t||void 0,o))):ns(t,e)},Zc=(t,e,n)=>{j.innerParams.get(t).toast?Qc(t,e,n):(tu(e),nu(e),ru(t,e,n))},Qc=(t,e,n)=>{e.popup.onclick=()=>{const r=j.innerParams.get(t);r&&(eu(r)||r.timer||r.input)||n(It.close)}},eu=t=>t.showConfirmButton||t.showDenyButton||t.showCancelButton||t.showCloseButton;let On=!1;const tu=t=>{t.popup.onmousedown=()=>{t.container.onmouseup=function(e){t.container.onmouseup=void 0,e.target===t.container&&(On=!0)}}},nu=t=>{t.container.onmousedown=()=>{t.popup.onmouseup=function(e){t.popup.onmouseup=void 0,(e.target===t.popup||t.popup.contains(e.target))&&(On=!0)}}},ru=(t,e,n)=>{e.container.onclick=r=>{const o=j.innerParams.get(t);if(On){On=!1;return}r.target===e.container&&Cn(o.allowOutsideClick)&&n(It.backdrop)}},ou=t=>typeof t=="object"&&t.jquery,os=t=>t instanceof Element||ou(t),su=t=>{const e={};return typeof t[0]=="object"&&!os(t[0])?Object.assign(e,t[0]):["title","html","icon"].forEach((n,r)=>{const o=t[r];typeof o=="string"||os(o)?e[n]=o:o!==void 0&&mt(`Unexpected type of ${n}! Expected "string" or "Element", got ${typeof o}`)}),e};function iu(...t){const e=this;return new e(...t)}function au(t){class e extends this{_main(r,o){return super._main(r,Object.assign({},t,o))}}return e}const lu=()=>H.timeout&&H.timeout.getTimerLeft(),ss=()=>{if(H.timeout)return Ya(),H.timeout.stop()},is=()=>{if(H.timeout){const t=H.timeout.start();return fr(t),t}},cu=()=>{const t=H.timeout;return t&&(t.running?ss():is())},uu=t=>{if(H.timeout){const e=H.timeout.increase(t);return fr(e,!0),e}},du=()=>H.timeout&&H.timeout.isRunning();let as=!1;const Sr={};function fu(t="data-swal-template"){Sr[t]=this,as||(document.body.addEventListener("click",mu),as=!0)}const mu=t=>{for(let e=t.target;e&&e!==document;e=e.parentNode)for(const n in Sr){const r=e.getAttribute(n);if(r){Sr[n].fire({template:r});return}}},pu=Object.freeze(Object.defineProperty({__proto__:null,argsToParams:su,bindClickHandler:fu,clickCancel:_c,clickConfirm:Wo,clickDeny:Sc,enableLoading:xt,fire:iu,getActions:zt,getCancelButton:pt,getCloseButton:lr,getConfirmButton:Me,getContainer:ue,getDenyButton:st,getFocusableElements:cr,getFooter:Ao,getHtmlContainer:En,getIcon:Ft,getImage:Eo,getInputLabel:za,getLoader:At,getPopup:Y,getTimerLeft:lu,getTimerProgressBar:An,getTitle:Co,getValidationMessage:Tn,increaseTimer:uu,isDeprecatedParameter:ar,isLoading:Wa,isTimerRunning:du,isUpdatableParameter:_o,isValidParameter:So,isVisible:wc,mixin:au,resumeTimer:is,showLoading:xt,stopTimer:ss,toggleTimer:cu},Symbol.toStringTag,{value:"Module"}));let _r;class Ot{constructor(...e){if(typeof window>"u")return;_r=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);j.promise.set(this,r)}_main(e,n={}){ja(Object.assign({},n,e)),H.currentInstance&&(H.currentInstance._destroy(),ur()&&Uo()),H.currentInstance=this;const r=gu(e,n);Gl(r),Object.freeze(r),H.timeout&&(H.timeout.stop(),delete H.timeout),clearTimeout(H.restoreFocusTimeout);const o=yu(this);return Mo(this,r),j.innerParams.set(this,r),hu(this,o,r)}then(e){return j.promise.get(this).then(e)}finally(e){return j.promise.get(this).finally(e)}}const hu=(t,e,n)=>new Promise((r,o)=>{const s=i=>{t.closePopup({isDismissed:!0,dismiss:i})};Gt.swalPromiseResolve.set(t,r),Gt.swalPromiseReject.set(t,o),e.confirmButton.onclick=()=>Gc(t),e.denyButton.onclick=()=>Yc(t),e.cancelButton.onclick=()=>Jc(t,s),e.closeButton.onclick=()=>s(It.close),Zc(t,e,s),kc(t,H,n,s),uc(t,n),sc(n),bu(H,n,s),vu(e,n),setTimeout(()=>{e.container.scrollTop=0})}),gu=(t,e)=>{const n=Ml(t),r=Object.assign({},Tt,e,n,t);return r.showClass=Object.assign({},Tt.showClass,r.showClass),r.hideClass=Object.assign({},Tt.hideClass,r.hideClass),r},yu=t=>{const e={popup:Y(),container:ue(),actions:zt(),confirmButton:Me(),denyButton:st(),cancelButton:pt(),loader:At(),closeButton:lr(),validationMessage:Tn(),progressSteps:To()};return j.domCache.set(t,e),e},bu=(t,e,n)=>{const r=An();fe(r),e.timer&&(t.timeout=new Yl(()=>{n("timer"),delete t.timeout},e.timer),e.timerProgressBar&&(le(r),Ne(r,e,"timerProgressBar"),setTimeout(()=>{t.timeout&&t.timeout.running&&fr(e.timer)})))},vu=(t,e)=>{if(!e.toast){if(!Cn(e.allowEnterKey))return Su();wu(t,e)||yr(e,-1,1)}},wu=(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,Su=()=>{document.activeElement instanceof HTMLElement&&typeof document.activeElement.blur=="function"&&document.activeElement.blur()};Object.assign(Ot.prototype,es),Object.assign(Ot,pu),Object.keys(es).forEach(t=>{Ot[t]=function(...e){if(_r)return _r[t](...e)}}),Ot.DismissReason=It,Ot.version="11.4.8";const Lt=Ot;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:ls,setPrototypeOf:cs,isFrozen:_u,getPrototypeOf:ku,getOwnPropertyDescriptor:Cu}=Object;let{freeze:he,seal:Ue,create:us}=Object,{apply:kr,construct:Cr}=typeof Reflect<"u"&&Reflect;he||(he=function(e){return e}),Ue||(Ue=function(e){return e}),kr||(kr=function(e,n,r){return e.apply(n,r)}),Cr||(Cr=function(e,n){return new e(...n)});const Ln=xe(Array.prototype.forEach),ds=xe(Array.prototype.pop),Jt=xe(Array.prototype.push),$n=xe(String.prototype.toLowerCase),Er=xe(String.prototype.toString),Eu=xe(String.prototype.match),Xt=xe(String.prototype.replace),Tu=xe(String.prototype.indexOf),Au=xe(String.prototype.trim),He=xe(Object.prototype.hasOwnProperty),Ie=xe(RegExp.prototype.test),Zt=Pu(TypeError);function xe(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 kr(t,e,r)}}function Pu(t){return function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return Cr(t,n)}}function K(t,e){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:$n;cs&&cs(t,null);let r=e.length;for(;r--;){let o=e[r];if(typeof o=="string"){const s=n(o);s!==o&&(_u(e)||(e[r]=s),o=s)}t[o]=!0}return t}function Iu(t){for(let e=0;e<t.length;e++)He(t,e)||(t[e]=null);return t}function yt(t){const e=us(null);for(const[n,r]of ls(t))He(t,n)&&(Array.isArray(r)?e[n]=Iu(r):r&&typeof r=="object"&&r.constructor===Object?e[n]=yt(r):e[n]=r);return e}function Rn(t,e){for(;t!==null;){const r=Cu(t,e);if(r){if(r.get)return xe(r.get);if(typeof r.value=="function")return xe(r.value)}t=ku(t)}function n(){return null}return n}const fs=he(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","section","select","shadow","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),Tr=he(["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"]),Ar=he(["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"]),xu=he(["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"]),Pr=he(["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"]),Ou=he(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),ms=he(["#text"]),ps=he(["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"]),Ir=he(["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"]),hs=he(["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"]),Nn=he(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),Lu=Ue(/\{\{[\w\W]*|[\w\W]*\}\}/gm),$u=Ue(/<%[\w\W]*|[\w\W]*%>/gm),Ru=Ue(/\${[\w\W]*}/gm),Nu=Ue(/^data-[\-\w.\u00B7-\uFFFF]/),Bu=Ue(/^aria-[\-\w]+$/),gs=Ue(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),Du=Ue(/^(?:\w+script|data):/i),Mu=Ue(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),ys=Ue(/^html$/i);var bs=Object.freeze({__proto__:null,MUSTACHE_EXPR:Lu,ERB_EXPR:$u,TMPLIT_EXPR:Ru,DATA_ATTR:Nu,ARIA_ATTR:Bu,IS_ALLOWED_URI:gs,IS_SCRIPT_OR_DATA:Du,ATTR_WHITESPACE:Mu,DOCTYPE_NAME:ys});const Uu=function(){return typeof window>"u"?null:window},Hu=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 vs(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Uu();const e=N=>vs(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=Rn(v,"cloneNode"),w=Rn(v,"nextSibling"),B=Rn(v,"childNodes"),C=Rn(v,"parentNode");if(typeof i=="function"){const N=n.createElement("template");N.content&&N.content.ownerDocument&&(n=N.content.ownerDocument)}let A,z="";const{implementation:Z,createNodeIterator:re,createDocumentFragment:X,getElementsByTagName:ye}=n,{importNode:ie}=r;let V={};e.isSupported=typeof ls=="function"&&typeof C=="function"&&Z&&Z.createHTMLDocument!==void 0;const{MUSTACHE_EXPR:$e,ERB_EXPR:ke,TMPLIT_EXPR:We,DATA_ATTR:qe,ARIA_ATTR:ft,IS_SCRIPT_OR_DATA:tt,ATTR_WHITESPACE:Ge}=bs;let{IS_ALLOWED_URI:Xe}=bs,ne=null;const Be=K({},[...fs,...Tr,...Ar,...Pr,...ms]);let f=null;const h=K({},[...ps,...Ir,...hs,...Nn]);let S=Object.seal(us(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,Q=!1,se=!1,be=!1,ce=!1,De=!1,Xi=!0,Zi=!1;const ch="user-content-";let co=!0,vn=!1,Bt={},Dt=null;const Qi=K({},["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 ea=null;const ta=K({},["audio","video","img","source","image","track"]);let uo=null;const na=K({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),er="http://www.w3.org/1998/Math/MathML",tr="http://www.w3.org/2000/svg",nt="http://www.w3.org/1999/xhtml";let Mt=nt,fo=!1,mo=null;const uh=K({},[er,tr,nt],Er);let wn=null;const dh=["application/xhtml+xml","text/html"],fh="text/html";let ae=null,Ut=null;const mh=n.createElement("form"),ra=function(p){return p instanceof RegExp||p instanceof Function},po=function(){let p=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(!(Ut&&Ut===p)){if((!p||typeof p!="object")&&(p={}),p=yt(p),wn=dh.indexOf(p.PARSER_MEDIA_TYPE)===-1?fh:p.PARSER_MEDIA_TYPE,ae=wn==="application/xhtml+xml"?Er:$n,ne=He(p,"ALLOWED_TAGS")?K({},p.ALLOWED_TAGS,ae):Be,f=He(p,"ALLOWED_ATTR")?K({},p.ALLOWED_ATTR,ae):h,mo=He(p,"ALLOWED_NAMESPACES")?K({},p.ALLOWED_NAMESPACES,Er):uh,uo=He(p,"ADD_URI_SAFE_ATTR")?K(yt(na),p.ADD_URI_SAFE_ATTR,ae):na,ea=He(p,"ADD_DATA_URI_TAGS")?K(yt(ta),p.ADD_DATA_URI_TAGS,ae):ta,Dt=He(p,"FORBID_CONTENTS")?K({},p.FORBID_CONTENTS,ae):Qi,P=He(p,"FORBID_TAGS")?K({},p.FORBID_TAGS,ae):{},k=He(p,"FORBID_ATTR")?K({},p.FORBID_ATTR,ae):{},Bt=He(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,be=p.RETURN_DOM||!1,ce=p.RETURN_DOM_FRAGMENT||!1,De=p.RETURN_TRUSTED_TYPE||!1,se=p.FORCE_BODY||!1,Xi=p.SANITIZE_DOM!==!1,Zi=p.SANITIZE_NAMED_PROPS||!1,co=p.KEEP_CONTENT!==!1,vn=p.IN_PLACE||!1,Xe=p.ALLOWED_URI_REGEXP||gs,Mt=p.NAMESPACE||nt,S=p.CUSTOM_ELEMENT_HANDLING||{},p.CUSTOM_ELEMENT_HANDLING&&ra(p.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(S.tagNameCheck=p.CUSTOM_ELEMENT_HANDLING.tagNameCheck),p.CUSTOM_ELEMENT_HANDLING&&ra(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),ce&&(be=!0),Bt&&(ne=K({},ms),f=[],Bt.html===!0&&(K(ne,fs),K(f,ps)),Bt.svg===!0&&(K(ne,Tr),K(f,Ir),K(f,Nn)),Bt.svgFilters===!0&&(K(ne,Ar),K(f,Ir),K(f,Nn)),Bt.mathMl===!0&&(K(ne,Pr),K(f,hs),K(f,Nn))),p.ADD_TAGS&&(ne===Be&&(ne=yt(ne)),K(ne,p.ADD_TAGS,ae)),p.ADD_ATTR&&(f===h&&(f=yt(f)),K(f,p.ADD_ATTR,ae)),p.ADD_URI_SAFE_ATTR&&K(uo,p.ADD_URI_SAFE_ATTR,ae),p.FORBID_CONTENTS&&(Dt===Qi&&(Dt=yt(Dt)),K(Dt,p.FORBID_CONTENTS,ae)),co&&(ne["#text"]=!0),$&&K(ne,["html","head","body"]),ne.table&&(K(ne,["tbody"]),delete P.tbody),p.TRUSTED_TYPES_POLICY){if(typeof p.TRUSTED_TYPES_POLICY.createHTML!="function")throw Zt('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof p.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw Zt('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');A=p.TRUSTED_TYPES_POLICY,z=A.createHTML("")}else A===void 0&&(A=Hu(_,o)),A!==null&&typeof z=="string"&&(z=A.createHTML(""));he&&he(p),Ut=p}},oa=K({},["mi","mo","mn","ms","mtext"]),sa=K({},["foreignobject","desc","title","annotation-xml"]),ph=K({},["title","style","font","a","script"]),ia=K({},[...Tr,...Ar,...xu]),aa=K({},[...Pr,...Ou]),hh=function(p){let x=C(p);(!x||!x.tagName)&&(x={namespaceURI:Mt,tagName:"template"});const R=$n(p.tagName),ee=$n(x.tagName);return mo[p.namespaceURI]?p.namespaceURI===tr?x.namespaceURI===nt?R==="svg":x.namespaceURI===er?R==="svg"&&(ee==="annotation-xml"||oa[ee]):!!ia[R]:p.namespaceURI===er?x.namespaceURI===nt?R==="math":x.namespaceURI===tr?R==="math"&&sa[ee]:!!aa[R]:p.namespaceURI===nt?x.namespaceURI===tr&&!sa[ee]||x.namespaceURI===er&&!oa[ee]?!1:!aa[R]&&(ph[R]||!ia[R]):!!(wn==="application/xhtml+xml"&&mo[p.namespaceURI]):!1},kt=function(p){Jt(e.removed,{element:p});try{p.parentNode.removeChild(p)}catch{p.remove()}},ho=function(p,x){try{Jt(e.removed,{attribute:x.getAttributeNode(p),from:x})}catch{Jt(e.removed,{attribute:null,from:x})}if(x.removeAttribute(p),p==="is"&&!f[p])if(be||ce)try{kt(x)}catch{}else try{x.setAttribute(p,"")}catch{}},la=function(p){let x=null,R=null;if(se)p="<remove></remove>"+p;else{const pe=Eu(p,/^[\r\n\t ]+/);R=pe&&pe[0]}wn==="application/xhtml+xml"&&Mt===nt&&(p='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+p+"</body></html>");const ee=A?A.createHTML(p):p;if(Mt===nt)try{x=new g().parseFromString(ee,wn)}catch{}if(!x||!x.documentElement){x=Z.createDocument(Mt,"template",null);try{x.documentElement.innerHTML=fo?z:ee}catch{}}const me=x.body||x.documentElement;return p&&R&&me.insertBefore(n.createTextNode(R),me.childNodes[0]||null),Mt===nt?ye.call(x,$?"html":"body")[0]:$?x.documentElement:me},ca=function(p){return re.call(p.ownerDocument||p,p,u.SHOW_ELEMENT|u.SHOW_COMMENT|u.SHOW_TEXT,null)},gh=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")},ua=function(p){return typeof a=="function"&&p instanceof a},rt=function(p,x,R){V[p]&&Ln(V[p],ee=>{ee.call(e,x,R,Ut)})},da=function(p){let x=null;if(rt("beforeSanitizeElements",p,null),gh(p))return kt(p),!0;const R=ae(p.nodeName);if(rt("uponSanitizeElement",p,{tagName:R,allowedTags:ne}),p.hasChildNodes()&&!ua(p.firstElementChild)&&Ie(/<[/\w]/g,p.innerHTML)&&Ie(/<[/\w]/g,p.textContent))return kt(p),!0;if(!ne[R]||P[R]){if(!P[R]&&ma(R)&&(S.tagNameCheck instanceof RegExp&&Ie(S.tagNameCheck,R)||S.tagNameCheck instanceof Function&&S.tagNameCheck(R)))return!1;if(co&&!Dt[R]){const ee=C(p)||p.parentNode,me=B(p)||p.childNodes;if(me&&ee){const pe=me.length;for(let Ce=pe-1;Ce>=0;--Ce)ee.insertBefore(T(me[Ce],!0),w(p))}}return kt(p),!0}return p instanceof c&&!hh(p)||(R==="noscript"||R==="noembed"||R==="noframes")&&Ie(/<\/no(script|embed|frames)/i,p.innerHTML)?(kt(p),!0):(O&&p.nodeType===3&&(x=p.textContent,Ln([$e,ke,We],ee=>{x=Xt(x,ee," ")}),p.textContent!==x&&(Jt(e.removed,{element:p.cloneNode()}),p.textContent=x)),rt("afterSanitizeElements",p,null),!1)},fa=function(p,x,R){if(Xi&&(x==="id"||x==="name")&&(R in n||R in mh))return!1;if(!(E&&!k[x]&&Ie(qe,x))){if(!(L&&Ie(ft,x))){if(!f[x]||k[x]){if(!(ma(p)&&(S.tagNameCheck instanceof RegExp&&Ie(S.tagNameCheck,p)||S.tagNameCheck instanceof Function&&S.tagNameCheck(p))&&(S.attributeNameCheck instanceof RegExp&&Ie(S.attributeNameCheck,x)||S.attributeNameCheck instanceof Function&&S.attributeNameCheck(x))||x==="is"&&S.allowCustomizedBuiltInElements&&(S.tagNameCheck instanceof RegExp&&Ie(S.tagNameCheck,R)||S.tagNameCheck instanceof Function&&S.tagNameCheck(R))))return!1}else if(!uo[x]){if(!Ie(Xe,Xt(R,Ge,""))){if(!((x==="src"||x==="xlink:href"||x==="href")&&p!=="script"&&Tu(R,"data:")===0&&ea[p])){if(!(I&&!Ie(tt,Xt(R,Ge,"")))){if(R)return!1}}}}}}return!0},ma=function(p){return p!=="annotation-xml"&&p.indexOf("-")>0},pa=function(p){rt("beforeSanitizeAttributes",p,null);const{attributes:x}=p;if(!x)return;const R={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:f};let ee=x.length;for(;ee--;){const me=x[ee],{name:pe,namespaceURI:Ce,value:Ct}=me,Sn=ae(pe);let Ee=pe==="value"?Ct:Au(Ct);if(R.attrName=Sn,R.attrValue=Ee,R.keepAttr=!0,R.forceKeepAttr=void 0,rt("uponSanitizeAttribute",p,R),Ee=R.attrValue,R.forceKeepAttr||(ho(pe,p),!R.keepAttr))continue;if(!D&&Ie(/\/>/i,Ee)){ho(pe,p);continue}O&&Ln([$e,ke,We],ga=>{Ee=Xt(Ee,ga," ")});const ha=ae(p.nodeName);if(fa(ha,Sn,Ee)){if(Zi&&(Sn==="id"||Sn==="name")&&(ho(pe,p),Ee=ch+Ee),A&&typeof _=="object"&&typeof _.getAttributeType=="function"&&!Ce)switch(_.getAttributeType(ha,Sn)){case"TrustedHTML":{Ee=A.createHTML(Ee);break}case"TrustedScriptURL":{Ee=A.createScriptURL(Ee);break}}try{Ce?p.setAttributeNS(Ce,pe,Ee):p.setAttribute(pe,Ee),ds(e.removed)}catch{}}}rt("afterSanitizeAttributes",p,null)},yh=function N(p){let x=null;const R=ca(p);for(rt("beforeSanitizeShadowDOM",p,null);x=R.nextNode();)rt("uponSanitizeShadowNode",x,null),!da(x)&&(x.content instanceof s&&N(x.content),pa(x));rt("afterSanitizeShadowDOM",p,null)};return e.sanitize=function(N){let p=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},x=null,R=null,ee=null,me=null;if(fo=!N,fo&&(N="<!-->"),typeof N!="string"&&!ua(N))if(typeof N.toString=="function"){if(N=N.toString(),typeof N!="string")throw Zt("dirty is not a string, aborting")}else throw Zt("toString is not a function");if(!e.isSupported)return N;if(Q||po(p),e.removed=[],typeof N=="string"&&(vn=!1),vn){if(N.nodeName){const Ct=ae(N.nodeName);if(!ne[Ct]||P[Ct])throw Zt("root node is forbidden and cannot be sanitized in-place")}}else if(N instanceof a)x=la("<!---->"),R=x.ownerDocument.importNode(N,!0),R.nodeType===1&&R.nodeName==="BODY"||R.nodeName==="HTML"?x=R:x.appendChild(R);else{if(!be&&!O&&!$&&N.indexOf("<")===-1)return A&&De?A.createHTML(N):N;if(x=la(N),!x)return be?null:De?z:""}x&&se&&kt(x.firstChild);const pe=ca(vn?N:x);for(;ee=pe.nextNode();)da(ee)||(ee.content instanceof s&&yh(ee.content),pa(ee));if(vn)return N;if(be){if(ce)for(me=X.call(x.ownerDocument);x.firstChild;)me.appendChild(x.firstChild);else me=x;return(f.shadowroot||f.shadowrootmode)&&(me=ie.call(r,me,!0)),me}let Ce=$?x.outerHTML:x.innerHTML;return $&&ne["!doctype"]&&x.ownerDocument&&x.ownerDocument.doctype&&x.ownerDocument.doctype.name&&Ie(ys,x.ownerDocument.doctype.name)&&(Ce="<!DOCTYPE "+x.ownerDocument.doctype.name+`>
|
|
65
|
+
`+Ce),O&&Ln([$e,ke,We],Ct=>{Ce=Xt(Ce,Ct," ")}),A&&De?A.createHTML(Ce):Ce},e.setConfig=function(){let N=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};po(N),Q=!0},e.clearConfig=function(){Ut=null,Q=!1},e.isValidAttribute=function(N,p,x){Ut||po({});const R=ae(N),ee=ae(p);return fa(R,ee,x)},e.addHook=function(N,p){typeof p=="function"&&(V[N]=V[N]||[],Jt(V[N],p))},e.removeHook=function(N){if(V[N])return ds(V[N])},e.removeHooks=function(N){V[N]&&(V[N]=[])},e.removeAllHooks=function(){V={}},e}var ws=vs();let Ss=class{get IsVisible(){return Lt.isVisible()}};class Vu extends Ss{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">${ws.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 ju extends Ss{async CreateConfirmAsync(e){return new Promise(n=>{Lt.fire({showCancelButton:!0,allowEscapeKey:!1,allowOutsideClick:!1,icon:"question",title:e.title,html:ws.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 Fu=()=>new Vu,_s=()=>new ju;function zu(t){return t instanceof Uint8Array||t!=null&&typeof t=="object"&&t.constructor.name==="Uint8Array"}function ks(t,...e){if(!zu(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 Cs(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 Ku(t,e){ks(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 xr=t=>new DataView(t.buffer,t.byteOffset,t.byteLength),Je=(t,e)=>t<<32-e|t>>>e;new Uint8Array(new Uint32Array([287454020]).buffer)[0];function Wu(t){if(typeof t!="string")throw new Error(`utf8ToBytes expected string, got ${typeof t}`);return new Uint8Array(new TextEncoder().encode(t))}function Es(t){return typeof t=="string"&&(t=Wu(t)),ks(t),t}class qu{clone(){return this._cloneInto()}}function Gu(t){const e=r=>t().update(Es(r)).digest(),n=t();return e.outputLen=n.outputLen,e.blockLen=n.blockLen,e.create=()=>t(),e}function Yu(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 Ju=(t,e,n)=>t&e^~t&n,Xu=(t,e,n)=>t&e^t&n^e&n;class Zu extends qu{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=xr(this.buffer)}update(e){Cs(this);const{view:n,buffer:r,blockLen:o}=this;e=Es(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=xr(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){Cs(this),Ku(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;Yu(r,o-8,BigInt(this.length*8),s),this.process(r,0);const a=xr(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 Qu=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]),at=new Uint32Array([1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225]),lt=new Uint32Array(64);class ed extends Zu{constructor(){super(64,32,8,!1),this.A=at[0]|0,this.B=at[1]|0,this.C=at[2]|0,this.D=at[3]|0,this.E=at[4]|0,this.F=at[5]|0,this.G=at[6]|0,this.H=at[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)lt[m]=e.getUint32(n,!1);for(let m=16;m<64;m++){const g=lt[m-15],_=lt[m-2],v=Je(g,7)^Je(g,18)^g>>>3,T=Je(_,17)^Je(_,19)^_>>>10;lt[m]=T+lt[m-7]+v+lt[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=Je(a,6)^Je(a,11)^Je(a,25),_=d+g+Ju(a,c,u)+Qu[m]+lt[m]|0,T=(Je(r,2)^Je(r,13)^Je(r,22))+Xu(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(){lt.fill(0)}destroy(){this.set(0,0,0,0,0,0,0,0),this.buffer.fill(0)}}const td=Gu(()=>new ed);class Qt extends Error{}Qt.prototype.name="InvalidTokenError";function nd(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 rd(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 nd(e)}catch{return atob(e)}}function Or(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=rd(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 Lr(t){if(!(this instanceof Lr))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=Be(console.info),d=Be(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=ne();var h=["default","cordova","cordova-native"];if(f&&h.indexOf(f.adapter)>-1?n=tt(f.adapter):f&&typeof f.adapter=="object"?n=f.adapter:window.Cordova||window.cordova?n=tt("cordova"):n=tt(),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=V(),P=V();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(se){var be=function(ce){if(!(ce.origin!==window.location.origin||O.contentWindow!==ce.source)){var De=X(ce.data);C(De,P,se),document.body.removeChild(O),window.removeEventListener("message",be)}};window.addEventListener("message",be)})};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(Q){Q||($.prompt="none"),f&&f.locale&&($.locale=f.locale),e.login($).then(function(){P.setSuccess()}).catch(function(se){P.setError(se)})},$={};switch(f.onLoad){case"check-sso":s.enable?ke().then(function(){qe().then(function(Q){Q?P.setSuccess():e.silentCheckSsoRedirectUri?L():O(!1)}).catch(function(Q){P.setError(Q)})}):e.silentCheckSsoRedirectUri?L():O(!1);break;case"login-required":O(!0);break;default:throw"Invalid value for onLoad"}}function I(){var O=X(window.location.href);if(O&&window.history.replaceState(window.history.state,null,O.newUrl),O&&O.valid)return ke().then(function(){C(O,P)}).catch(function($){P.setError($)});f?f.token&&f.refreshToken?(Z(f.token,f.refreshToken,f.idToken),s.enable?ke().then(function(){qe().then(function($){$?(e.onAuthSuccess&&e.onAuthSuccess(),P.setSuccess(),We()):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=V(),$=function(){(document.readyState==="interactive"||document.readyState==="complete")&&(document.removeEventListener("readystatechange",$),O.setSuccess())};return document.addEventListener("readystatechange",$),$(),O.promise}return k.then(function(){D().then(ft).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=td(h);return od(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=re(),S=re(),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=V();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=V();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=V();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);Z(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=qe();P.then(function(){S()}).catch(function(k){h.setError(k)})}else S();return h.promise},e.clearToken=function(){e.token&&(Z(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)&&Q(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 se=JSON.parse($.responseText);Q(se.access_token,se.refresh_token,se.id_token,e.flow==="standard"),We()}else e.onAuthError&&e.onAuthError(),h&&h.setError()},$.send(D)}function Q(se,be,ce,De){if(E=(E+new Date().getTime())/2,Z(se,be,ce,E),c&&e.idTokenParsed&&e.idTokenParsed.nonce!=f.storedNonce)u("[KEYCLOAK] Invalid nonce, clearing token"),e.clearToken(),h&&h.setError();else if(De){e.onAuthSuccess&&e.onAuthSuccess(),h&&h.setSuccess(),S&&S(se);return}}}function A(f){var h=V(),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||z(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||z(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 z(f){return f.status==0&&f.responseText&&f.responseURL.startsWith("file:")}function Z(f,h,S,P){if(e.tokenTimeoutHandle&&(clearTimeout(e.tokenTimeoutHandle),e.tokenTimeoutHandle=null),h?(e.refreshToken=h,e.refreshTokenParsed=Or(h)):(delete e.refreshToken,delete e.refreshTokenParsed),S?(e.idToken=S,e.idTokenParsed=Or(S)):(delete e.idToken,delete e.idTokenParsed),f){if(e.token=f,e.tokenParsed=Or(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 re(){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 X(f){var h=ye(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 ye(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=ie(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=ie(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 ie(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 V(){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 $e(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 ke(){var f=V();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 We(){s.enable&&e.token&&setTimeout(function(){qe().then(function(f){f&&We()})},s.interval*1e3)}function qe(){var f=V();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 ft(){var f=V();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 $e(f.promise,e.messageReceiveTimeout,"Timeout when waiting for 3rd party check iframe message.")}function tt(f){if(!f||f=="default")return{login:function(E){return window.location.assign(e.createLoginUrl(E)),V().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)),V().promise},accountManagement:function(){var E=e.createAccountUrl();if(typeof E<"u")window.location.href=E;else throw"Not supported by the OIDC server";return V().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=V(),D=k(E),O=e.createLoginUrl(E),$=h(O,"_blank",D),Q=!1,se=!1,be=function(){se=!0,$.close()};return $.addEventListener("loadstart",function(ce){if(ce.url.indexOf(L())==0){var De=X(ce.url);C(De,I),be(),Q=!0}}),$.addEventListener("loaderror",function(ce){if(!Q)if(ce.url.indexOf(L())==0){var De=X(ce.url);C(De,I),be(),Q=!0}else I.setError(),be()}),$.addEventListener("exit",function(ce){se||I.setError({reason:"closed_by_user"})}),I.promise},logout:function(E){var I=V(),D=e.createLogoutUrl(E),O=h(D,"_blank","location=no,hidden=yes,clearcache=yes"),$;return O.addEventListener("loadstart",function(Q){Q.url.indexOf(L())==0&&O.close()}),O.addEventListener("loaderror",function(Q){Q.url.indexOf(L())==0||($=!0),O.close()}),O.addEventListener("exit",function(Q){$?I.setError():(e.clearToken(),I.setSuccess())}),I.promise},register:function(E){var I=V(),D=e.createRegisterUrl(),O=k(E),$=h(D,"_blank",O);return $.addEventListener("loadstart",function(Q){if(Q.url.indexOf(L())==0){$.close();var se=X(Q.url);C(se,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=V(),D=e.createLoginUrl(E);return universalLinks.subscribe("keycloak",function(O){universalLinks.unsubscribe("keycloak"),window.cordova.plugins.browsertab.close();var $=X(O.url);C($,I)}),window.cordova.plugins.browsertab.openUrl(D),I.promise},logout:function(E){var I=V(),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=V(),D=e.createRegisterUrl(E);return universalLinks.subscribe("keycloak",function(O){universalLinks.unsubscribe("keycloak"),window.cordova.plugins.browsertab.close();var $=X(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 Ge=function(){if(!(this instanceof Ge))return new Ge;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))}},Xe=function(){if(!(this instanceof Xe))return new Xe;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 ne(){try{return new Ge}catch{}return new Xe}function Be(f){return function(){e.enableLogging&&f.apply(console,Array.prototype.slice.call(arguments))}}}function od(t){const e=String.fromCodePoint(...t);return btoa(e)}async function sd(t,e){e.userinfo=await t.loadUserInfo()}async function id(){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 Ts;function ad(t){const e=new Lr(t),n={Instance:e,isAuthenticated:!1,userinfo:null,InitAsync:async(r={})=>await id()?await e.init(r).then(async s=>(s&&(n.isAuthenticated=!0,await sd(e,n)),s||!1)).catch(s=>(console.info("Ocorreu um erro na inicialização. Verifique o console para mais detalhes."),console.error(s),!1)):!1};return Ts=n,n}const $r=()=>l.reactive(Ts),ld=t=>ad(t),cd=["data-cor"],ud={class:"sf-p-4"},dd=l.defineComponent({__name:"HeaderAvatar",emits:["logout"],setup(t,{emit:e}){const n=_s(),r=$r(),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,cd),l.createVNode(yo,{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",ud,[l.createTextVNode(l.toDisplayString((g=l.unref(r).userinfo)==null?void 0:g.name)+" ",1),l.createVNode(bo,{color:"error",onClick:i},{default:l.withCtx(()=>[l.createTextVNode("Sair")]),_:1})])]}),_:1},8,["visible"])],64))}}),fd={},md={xmlns:"http://www.w3.org/2000/svg",height:"48",viewBox:"0 -960 960 960",width:"48",class:"sf-svg-icon"},pd=[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)];function hd(t,e){return l.openBlock(),l.createElementBlock("svg",md,pd)}const gd=_n(fd,[["render",hd]]);class yd{get storedTheme(){return localStorage.getItem("color-scheme")}get IsDark(){return document.documentElement.classList.contains("dark")}Toggle(){this.IsDark?this.EnableLightMode():this.EnableDarkMode()}EnableDarkMode(){document.documentElement.classList.add("dark"),document.documentElement.classList.remove("light"),localStorage.setItem("color-scheme","dark")}EnableLightMode(){document.documentElement.classList.remove("dark"),document.documentElement.classList.add("light"),localStorage.setItem("color-scheme","light")}SetInitialTheme(){if(this.storedTheme==="light")return this.EnableLightMode();if(this.storedTheme==="dark")return this.EnableDarkMode();if(window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches)return this.EnableDarkMode();this.EnableLightMode()}}const Lt=new yd,bd=[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)],vd=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(Lt).Toggle&&l.unref(Lt).Toggle(...r))},bd))}}),wd={id:"sf-layout"},Sd=l.createElementVNode("div",{class:"sf-layout-menu-toggler-logo"},null,-1),_d={class:"title"},kd={class:"sf-layout-nav-content"},Cd=l.createElementVNode("div",{class:"sf-layout-nav-footer"},[l.createElementVNode("div",{class:"sf-layout-nav-footer-logo"})],-1),Ed=l.createElementVNode("section",{id:"sf-layout-page-title"},null,-1),Td={id:"sf-layout-content"},Ad=l.defineComponent({__name:"Layout",emits:["mounted","logout"],setup(t,{emit:e}){const n=nr(),r=e;return l.onMounted(()=>{r("mounted")}),(o,s)=>(l.openBlock(),l.createElementBlock("div",wd,[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())},[Sd,l.createVNode(gd)],2),l.createElementVNode("div",_d,[l.renderSlot(o.$slots,"title")]),l.renderSlot(o.$slots,"action"),l.createVNode(rr,{text:"Tema"},{default:l.withCtx(()=>[l.createVNode(vd)]),_:1}),l.createVNode(dd,{onLogout:s[1]||(s[1]=i=>r("logout"))})]),l.createElementVNode("nav",{class:l.normalizeClass({visible:l.unref(n).IsVisible})},[l.createElementVNode("div",kd,[l.renderSlot(o.$slots,"menu")]),Cd],2),l.createElementVNode("main",{class:l.normalizeClass({"menu-visible":l.unref(n).IsVisible})},[Ed,l.createElementVNode("section",Td,[l.renderSlot(o.$slots,"content")])],2)]))}}),Pd=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))}}),Id=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 ot("sf-content").AddClass(e.class,!!e.class).Build()}function r(){return new ot("sf-content-body").AddClass("sf-content-no-padding",e.disableBodyPadding).Build()}function o(){return new ot("sf-content-header").AddClass("sf-content-no-padding",e.disableHeaderPadding).Build()}function s(){return new ot("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(Pd)],2),l.createElementVNode("div",{class:l.normalizeClass(s())},[l.renderSlot(i.$slots,"footer")],2)],6))}}),xd={class:"sf-tab-navigation"},Od=[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)],Ld=["data-active"],$d=["href","onClick"],Rd=[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)],Nd=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",xd,[l.createElementVNode("div",{class:l.normalizeClass(["left-arrow",{active:o.value}]),onClick:u[0]||(u[0]=m=>i(!0))},Od,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,$d)])],8,Ld)]),_:2},1032,["to"]))),256))],512),l.createElementVNode("div",{class:l.normalizeClass(["right-arrow",{active:s.value}]),onClick:u[1]||(u[1]=m=>i())},Rd,2)])}}}),Bd=["data-icon"],Dd=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 ot("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,Bd))}});function Md(t,e){return t?t.classList?t.classList.contains(e):new RegExp("(^| )"+e+"( |$)","gi").test(t.className):!1}function Ud(t,e){if(t&&e){const n=r=>{Md(t,r)||(t.classList?t.classList.add(r):t.className+=" "+r)};[e].flat().filter(Boolean).forEach(r=>r.split(" ").forEach(n))}}function Rr(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 Hd(t,e){return t instanceof HTMLElement?t.offsetWidth:0}function Bn(t){return typeof HTMLElement=="object"?t instanceof HTMLElement:t&&typeof t=="object"&&t!==null&&t.nodeType===1&&typeof t.nodeName=="string"}function Dn(t,e={}){if(Bn(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"?Dn(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 Vd(t,e={},...n){{const r=document.createElement(t);return Dn(r,e),r.append(...n),r}}function Ve(t,e){return Bn(t)?t.matches(e)?t:t.querySelector(e):null}function en(t,e){t&&document.activeElement!==t&&t.focus(e)}function tn(t,e){if(Bn(t)){const n=t.getAttribute(e);return isNaN(n)?n==="true"||n==="false"?n==="true":n:+n}}function As(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 jd(t){if(t){let e=t.parentNode;return e&&e instanceof ShadowRoot&&e.host&&(e=e.host),e}return null}function Fd(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 zd(t,e){return t?t.offsetHeight:0}function Kd(t){return!!(t!==null&&typeof t<"u"&&t.nodeName&&jd(t))}function Ps(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 Wd(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}function qd(t,e="",n){Bn(t)&&n!==null&&n!==void 0&&t.setAttribute(e,n)}function Is(){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 bt(t){return t==null||t===""||Array.isArray(t)&&t.length===0||!(t instanceof Date)&&typeof t=="object"&&Object.keys(t).length===0}function Nr(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(!Nr(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],!Nr(t[i],e[i]))return!1;return!0}return t!==t&&e!==e}function Br(t){return!!(t&&t.constructor&&t.call&&t.apply)}function J(t){return!bt(t)}function $t(t,e,n){return Nr(t,e)}function xs(t,e){let n;if(J(t))try{n=t.findLast(e)}catch{n=[...t].reverse().find(e)}return n}function ct(t,e=!0){return t instanceof Object&&t.constructor===Object&&(e||Object.keys(t).length!==0)}function Oe(t,...e){return Br(t)?t(...e):t}function Se(t,e=!0){return typeof t=="string"&&(e||t!=="")}function je(t){return Se(t)?t.replace(/(-|_)/g,"").toLowerCase():t}function Dr(t,e="",n={}){const r=je(e).split("."),o=r.shift();return o?ct(t)?Dr(Oe(t[Object.keys(t).find(s=>je(s)===o)||""],n),r.join("."),n):void 0:Oe(t,n)}function Mr(t,e=!0){return Array.isArray(t)&&(e||t.length!==0)}function Os(t){return J(t)&&!isNaN(t)}function Gd(t=""){return J(t)&&t.length===1&&!!t.match(/\S| /)}function Qe(t,e){if(e){const n=e.test(t);return e.lastIndex=0,n}return!1}function nn(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 Yd(t){return Se(t,!1)?t[0].toUpperCase()+t.slice(1):t}function Ls(t){return Se(t)?t.replace(/(_)/g,"-").replace(/[A-Z]/g,(e,n)=>n===0?e:"-"+e.toLowerCase()).toLowerCase():t}function $s(t){return Se(t)?t.replace(/[A-Z]/g,(e,n)=>n===0?e:"."+e.toLowerCase()).toLowerCase():t}var Mn={};function Jd(t="pui_id_"){return Mn.hasOwnProperty(t)||(Mn[t]=0),Mn[t]++,`${t}${Mn[t]}`}function Un(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"pv_id_";return Jd(t)}var Xd=Object.defineProperty,Zd=Object.defineProperties,Qd=Object.getOwnPropertyDescriptors,Hn=Object.getOwnPropertySymbols,Rs=Object.prototype.hasOwnProperty,Ns=Object.prototype.propertyIsEnumerable,Bs=(t,e,n)=>e in t?Xd(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,rn=(t,e)=>{for(var n in e||(e={}))Rs.call(e,n)&&Bs(t,n,e[n]);if(Hn)for(var n of Hn(e))Ns.call(e,n)&&Bs(t,n,e[n]);return t},Ur=(t,e)=>Zd(t,Qd(e)),on=(t,e)=>{var n={};for(var r in t)Rs.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&Hn)for(var r of Hn(t))e.indexOf(r)<0&&Ns.call(t,r)&&(n[r]=t[r]);return n},ef=Is(),et=ef;function Ds(t,e){Mr(t)?t.push(...e||[]):ct(t)&&Object.assign(t,e)}function tf(t){return ct(t)&&t.hasOwnProperty("value")&&t.hasOwnProperty("type")?t.value:t}function Ms(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=>Os(s)?`${s}px`:s).join(" ")}function nf(t){return t.replaceAll(/ /g,"").replace(/[^\w]/g,"-")}function Hr(t="",e=""){return nf(`${Se(t,!1)&&Se(e,!1)?`${t}-`:t}${e}`)}function Us(t="",e=""){return`--${Hr(t,e)}`}function Hs(t,e="",n="",r=[],o){if(Se(t)){const s=/{([^}]*)}/g,i=t.trim();if(Qe(i,s)){const a=i.replaceAll(s,d=>{const g=d.replace(/{|}/g,"").split(".").filter(_=>!r.some(v=>Qe(_,v)));return`var(${Us(n,Ls(g.join("-")))}${J(o)?`, ${o}`:""})`}),c=/(\d+\s+[\+\-\*\/]\s+\d+)/g,u=/var\([^)]+\)/g;return Qe(a.replace(u,"0"),c)?`calc(${a})`:a}return Ms(i,e)}else if(Os(t))return Ms(t,e)}function rf(t,e,n){Se(e,!1)&&t.push(`${e}:${n};`)}function sn(t,e){return t?`${t}{${e}}`:""}var Vr=(...t)=>of(te.getTheme(),...t),of=(t={},e,n,r="variable")=>{if(e){const{variable:o,options:s}=te.defaults||{},{prefix:i,transform:a}=(t==null?void 0:t.options)||s||{},u=Qe(e,/{([^}]*)}/g)?e:`{${e}}`;return r==="value"||a==="strict"?te.getTokenValue(e):Hs(u,void 0,i,[o.excludedKeyRegex],n)}return""};function sf(t,e={}){const n=te.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=Qe(g,s)?Hr(d):Hr(d,Ls(g)),T=tf(_);if(ct(T)){const{variables:w,tokens:B}=i(T,v);Ds(m.tokens,B),Ds(m.variables,w)}else m.tokens.push((r?v.replace(`${r}-`,""):v).replaceAll("-",".")),rf(m.variables,Us(v),Hs(T,v,r,[s]));return m},{variables:[],tokens:[]}),{variables:a,tokens:c}=i(t,r);return{value:a,tokens:c,declarations:a.join(""),css:sn(o,a.join(""))}}var Fe={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 sf(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(J(u)){const{primitive:T,semantic:w}=u,B=w||{},{colorScheme:C}=B,A=on(B,["colorScheme"]),z=C||{},{dark:Z}=z,re=on(z,["dark"]),X=J(T)?this._toVariables({primitive:T},d):{},ye=J(A)?this._toVariables({semantic:A},d):{},ie=J(re)?this._toVariables({light:re},d):{},V=J(Z)?this._toVariables({dark:Z},d):{},[$e,ke]=[(s=X.declarations)!=null?s:"",X.tokens],[We,qe]=[(i=ye.declarations)!=null?i:"",ye.tokens||[]],[ft,tt]=[(a=ie.declarations)!=null?a:"",ie.tokens||[]],[Ge,Xe]=[(c=V.declarations)!=null?c:"",V.tokens||[]];m=this.transformCSS(t,$e,"light","variable",d,r,o),g=ke;const ne=this.transformCSS(t,`${We}${ft}color-scheme:light`,"light","variable",d,r,o),Be=this.transformCSS(t,`${Ge}color-scheme:dark`,"dark","variable",d,r,o);_=`${ne}${Be}`,v=[...new Set([...qe,...tt,...Xe])]}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,_=on(m,["colorScheme"]),v=g||{},{dark:T}=v,w=on(v,["dark"]),B=J(_)?this._toVariables({[d]:_},n):{},C=J(w)?this._toVariables({[d]:w},n):{},A=J(T)?this._toVariables({[d]:T},n):{},[z,Z]=[(a=B.declarations)!=null?a:"",B.tokens||[]],[re,X]=[(c=C.declarations)!=null?c:"",C.tokens||[]],[ye,ie]=[(u=A.declarations)!=null?u:"",A.tokens||[]],V=[...new Set([...Z,...X,...ie])],$e=this.transformCSS(d,`${z}${re}`,"light","variable",n,o,s,i),ke=this.transformCSS(d,ye,"dark","variable",n,o,s,i);return{css:`${$e}${ke}`,tokens:V}},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 ${Oe(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=nn(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}>${nn(c)}</style>`:""},createTokens(t={},e,n="",r="",o={}){return Object.entries(t).forEach(([s,i])=>{const a=Qe(s,e.variable.excludedKeyRegex)?n:n?`${n}.${$s(s)}`:$s(s),c=r?`${r}.${s}`:s;ct(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={}),Qe(i,m)){const v=i.trim().replaceAll(m,B=>{var C,A;const z=B.replace(/{|}/g,"");return(A=(C=o[z])==null?void 0:C.computed(u,d))==null?void 0:A.value}),T=/(\d+\w*\s+[\+\-\*\/]\s+\d+\w*)/g,w=/var\([^)]+\)/g;g=Qe(v.replace(w,"0"),T)?`calc(${v})`:v}return bt(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=>!Qe(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=on(d,["colorScheme"]);return c[m]=g,c},void 0)},transformCSS(t,e,n,r,o={},s,i,a){if(J(e)){const{cssLayer:c}=o;if(r!=="style"){const u=this.getColorSchemeOption(o,i),d=a?sn(a,e):e;e=n==="dark"?u.reduce((m,{selector:g})=>(J(g)&&(m+=g.includes("[CSS]")?g.replace("[CSS]",d):sn(g,d)),m),""):sn(a??":root",e)}if(c){const u={name:"primeui",order:"primeui"};ct(c)&&(u.name=Oe(c.name,{name:t,type:r})),J(u.name)&&(e=sn(`@layer ${u.name}`,e),s==null||s.layerNames(u.name))}return e}return""}},te={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=Ur(rn({},e),{options:rn(rn({},this.defaults.options),e.options)}),this._tokens=Fe.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=Ur(rn({},this.theme),{preset:t}),this._tokens=Fe.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=Ur(rn({},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 Fe.getTokenValue(this.tokens,t,this.defaults)},getCommon(t="",e){return Fe.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 Fe.getPresetC(n)},getDirective(t="",e){const n={name:t,theme:this.theme,params:e,defaults:this.defaults,set:{layerNames:this.setLayerNames.bind(this)}};return Fe.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 Fe.getPreset(o)},getLayerOrderCSS(t=""){return Fe.getLayerOrder(t,this.options,{names:this.getLayerNames()},this.defaults)},transformCSS(t="",e,n="style",r){return Fe.transformCSS(t,e,r,n,this.options,{layerNames:this.setLayerNames.bind(this)},this.defaults)},getCommonStyleSheet(t="",e,n={}){return Fe.getCommonStyleSheet({name:t,theme:this.theme,params:e,props:n,defaults:this.defaults,set:{layerNames:this.setLayerNames.bind(this)}})},getStyleSheet(t,e,n={}){return Fe.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"))}},ut={_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 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 Vs(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 js(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?Vs(Object(n),!0).forEach(function(r){af(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Vs(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function af(t,e,n){return(e=lf(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function lf(t){var e=cf(t,"string");return an(e)=="symbol"?e:e+""}function cf(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)}function uf(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;l.getCurrentInstance()?l.onMounted(t):e?t():l.nextTick(t)}var df=0;function ff(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=Wd()?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(++df):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,z=e.first,Z=z===void 0?!1:z,re=e.onMounted,X=re===void 0?void 0:re,ye=e.onUpdated,ie=ye===void 0?void 0:ye,V=e.onLoad,$e=V===void 0?void 0:V,ke=e.props,We=ke===void 0?{}:ke,qe=function(){},ft=function(Xe){var ne=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(a){var Be=js(js({},We),ne),f=Be.name||_,h=Be.id||T,S=Be.nonce||A;o.value=a.querySelector('style[data-primevue-style-id="'.concat(f,'"]'))||a.getElementById(h)||a.createElement("style"),o.value.isConnected||(r.value=Xe||t,Dn(o.value,{type:"text/css",id:h,media:B,nonce:S}),Z?a.head.prepend(o.value):a.head.appendChild(o.value),qd(o.value,"data-primevue-style-id",f),Dn(o.value,Be),o.value.onload=function(P){return $e==null?void 0:$e(P,{name:f})},X==null||X(f)),!n.value&&(qe=l.watch(r,function(P){o.value.textContent=P,ie==null||ie(f)},{immediate:!0}),n.value=!0)}},tt=function(){!a||!n.value||(qe(),Kd(o.value)&&a.head.removeChild(o.value),n.value=!1)};return u&&!m&&uf(ft),{id:T,name:_,el:o,css:r,unload:tt,load:ft,isLoaded:l.readonly(n)}}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 Fs(t,e){return gf(t)||hf(t,e)||pf(t,e)||mf()}function mf(){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
|
|
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 $e(f.promise,e.messageReceiveTimeout,"Timeout when waiting for 3rd party check iframe message.")}function tt(f){if(!f||f=="default")return{login:function(E){return window.location.assign(e.createLoginUrl(E)),V().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)),V().promise},accountManagement:function(){var E=e.createAccountUrl();if(typeof E<"u")window.location.href=E;else throw"Not supported by the OIDC server";return V().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=V(),D=k(E),O=e.createLoginUrl(E),$=h(O,"_blank",D),Q=!1,se=!1,be=function(){se=!0,$.close()};return $.addEventListener("loadstart",function(ce){if(ce.url.indexOf(L())==0){var De=X(ce.url);C(De,I),be(),Q=!0}}),$.addEventListener("loaderror",function(ce){if(!Q)if(ce.url.indexOf(L())==0){var De=X(ce.url);C(De,I),be(),Q=!0}else I.setError(),be()}),$.addEventListener("exit",function(ce){se||I.setError({reason:"closed_by_user"})}),I.promise},logout:function(E){var I=V(),D=e.createLogoutUrl(E),O=h(D,"_blank","location=no,hidden=yes,clearcache=yes"),$;return O.addEventListener("loadstart",function(Q){Q.url.indexOf(L())==0&&O.close()}),O.addEventListener("loaderror",function(Q){Q.url.indexOf(L())==0||($=!0),O.close()}),O.addEventListener("exit",function(Q){$?I.setError():(e.clearToken(),I.setSuccess())}),I.promise},register:function(E){var I=V(),D=e.createRegisterUrl(),O=k(E),$=h(D,"_blank",O);return $.addEventListener("loadstart",function(Q){if(Q.url.indexOf(L())==0){$.close();var se=X(Q.url);C(se,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=V(),D=e.createLoginUrl(E);return universalLinks.subscribe("keycloak",function(O){universalLinks.unsubscribe("keycloak"),window.cordova.plugins.browsertab.close();var $=X(O.url);C($,I)}),window.cordova.plugins.browsertab.openUrl(D),I.promise},logout:function(E){var I=V(),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=V(),D=e.createRegisterUrl(E);return universalLinks.subscribe("keycloak",function(O){universalLinks.unsubscribe("keycloak"),window.cordova.plugins.browsertab.close();var $=X(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 Ge=function(){if(!(this instanceof Ge))return new Ge;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))}},Xe=function(){if(!(this instanceof Xe))return new Xe;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 ne(){try{return new Ge}catch{}return new Xe}function Be(f){return function(){e.enableLogging&&f.apply(console,Array.prototype.slice.call(arguments))}}}function od(t){const e=String.fromCodePoint(...t);return btoa(e)}async function sd(){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 Ts;function id(t){const e=new Lr(t),n={Instance:e,isAuthenticated:!1,userinfo:null,InitAsync:async(r={})=>await sd()?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 Ts=n,n}const $r=()=>l.reactive(Ts),ad=t=>id(t),ld=["data-cor"],cd={class:"sf-p-4"},ud=l.defineComponent({__name:"HeaderAvatar",emits:["logout"],setup(t,{emit:e}){const n=_s(),r=$r(),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,ld),l.createVNode(yo,{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",cd,[l.createTextVNode(l.toDisplayString((g=l.unref(r).userinfo)==null?void 0:g.name)+" ",1),l.createVNode(bo,{color:"error",onClick:i},{default:l.withCtx(()=>[l.createTextVNode("Sair")]),_:1})])]}),_:1},8,["visible"])],64))}}),dd={},fd={xmlns:"http://www.w3.org/2000/svg",height:"48",viewBox:"0 -960 960 960",width:"48",class:"sf-svg-icon"},md=[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)];function pd(t,e){return l.openBlock(),l.createElementBlock("svg",fd,md)}const hd=_n(dd,[["render",pd]]);class gd{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 bt=new gd,yd=[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)],bd=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(bt).Toggle&&l.unref(bt).Toggle(...r))},yd))}}),vd={id:"sf-layout"},wd=l.createElementVNode("div",{class:"sf-layout-menu-toggler-logo"},null,-1),Sd={class:"title"},_d={class:"sf-layout-nav-content"},kd=l.createElementVNode("div",{class:"sf-layout-nav-footer"},[l.createElementVNode("div",{class:"sf-layout-nav-footer-logo"})],-1),Cd=l.createElementVNode("section",{id:"sf-layout-page-title"},null,-1),Ed={id:"sf-layout-content"},Td=l.defineComponent({__name:"Layout",emits:["mounted","logout"],setup(t,{emit:e}){const n=nr(),r=e;return l.onMounted(()=>{r("mounted")}),(o,s)=>(l.openBlock(),l.createElementBlock("div",vd,[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())},[wd,l.createVNode(hd)],2),l.createElementVNode("div",Sd,[l.renderSlot(o.$slots,"title")]),l.renderSlot(o.$slots,"action"),l.createVNode(rr,{text:"Tema"},{default:l.withCtx(()=>[l.createVNode(bd)]),_:1}),l.createVNode(ud,{onLogout:s[1]||(s[1]=i=>r("logout"))})]),l.createElementVNode("nav",{class:l.normalizeClass({visible:l.unref(n).IsVisible})},[l.createElementVNode("div",_d,[l.renderSlot(o.$slots,"menu")]),kd],2),l.createElementVNode("main",{class:l.normalizeClass({"menu-visible":l.unref(n).IsVisible})},[Cd,l.createElementVNode("section",Ed,[l.renderSlot(o.$slots,"content")])],2)]))}}),Ad=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))}}),Pd=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 ot("sf-content").AddClass(e.class,!!e.class).Build()}function r(){return new ot("sf-content-body").AddClass("sf-content-no-padding",e.disableBodyPadding).Build()}function o(){return new ot("sf-content-header").AddClass("sf-content-no-padding",e.disableHeaderPadding).Build()}function s(){return new ot("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(Ad)],2),l.createElementVNode("div",{class:l.normalizeClass(s())},[l.renderSlot(i.$slots,"footer")],2)],6))}}),Id={class:"sf-tab-navigation"},xd=[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)],Od=["data-active"],Ld=["href","onClick"],$d=[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)],Rd=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",Id,[l.createElementVNode("div",{class:l.normalizeClass(["left-arrow",{active:o.value}]),onClick:u[0]||(u[0]=m=>i(!0))},xd,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,Ld)])],8,Od)]),_:2},1032,["to"]))),256))],512),l.createElementVNode("div",{class:l.normalizeClass(["right-arrow",{active:s.value}]),onClick:u[1]||(u[1]=m=>i())},$d,2)])}}}),Nd=["data-icon"],Bd=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 ot("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,Nd))}});function Dd(t,e){return t?t.classList?t.classList.contains(e):new RegExp("(^| )"+e+"( |$)","gi").test(t.className):!1}function Md(t,e){if(t&&e){const n=r=>{Dd(t,r)||(t.classList?t.classList.add(r):t.className+=" "+r)};[e].flat().filter(Boolean).forEach(r=>r.split(" ").forEach(n))}}function Rr(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 Ud(t,e){return t instanceof HTMLElement?t.offsetWidth:0}function Bn(t){return typeof HTMLElement=="object"?t instanceof HTMLElement:t&&typeof t=="object"&&t!==null&&t.nodeType===1&&typeof t.nodeName=="string"}function Dn(t,e={}){if(Bn(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"?Dn(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 Hd(t,e={},...n){{const r=document.createElement(t);return Dn(r,e),r.append(...n),r}}function Ve(t,e){return Bn(t)?t.matches(e)?t:t.querySelector(e):null}function en(t,e){t&&document.activeElement!==t&&t.focus(e)}function tn(t,e){if(Bn(t)){const n=t.getAttribute(e);return isNaN(n)?n==="true"||n==="false"?n==="true":n:+n}}function As(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 Vd(t){if(t){let e=t.parentNode;return e&&e instanceof ShadowRoot&&e.host&&(e=e.host),e}return null}function jd(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 Fd(t,e){return t?t.offsetHeight:0}function zd(t){return!!(t!==null&&typeof t<"u"&&t.nodeName&&Vd(t))}function Ps(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 Kd(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}function Wd(t,e="",n){Bn(t)&&n!==null&&n!==void 0&&t.setAttribute(e,n)}function Is(){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 vt(t){return t==null||t===""||Array.isArray(t)&&t.length===0||!(t instanceof Date)&&typeof t=="object"&&Object.keys(t).length===0}function Nr(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(!Nr(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],!Nr(t[i],e[i]))return!1;return!0}return t!==t&&e!==e}function Br(t){return!!(t&&t.constructor&&t.call&&t.apply)}function J(t){return!vt(t)}function $t(t,e,n){return Nr(t,e)}function xs(t,e){let n;if(J(t))try{n=t.findLast(e)}catch{n=[...t].reverse().find(e)}return n}function ct(t,e=!0){return t instanceof Object&&t.constructor===Object&&(e||Object.keys(t).length!==0)}function Oe(t,...e){return Br(t)?t(...e):t}function Se(t,e=!0){return typeof t=="string"&&(e||t!=="")}function je(t){return Se(t)?t.replace(/(-|_)/g,"").toLowerCase():t}function Dr(t,e="",n={}){const r=je(e).split("."),o=r.shift();return o?ct(t)?Dr(Oe(t[Object.keys(t).find(s=>je(s)===o)||""],n),r.join("."),n):void 0:Oe(t,n)}function Mr(t,e=!0){return Array.isArray(t)&&(e||t.length!==0)}function Os(t){return J(t)&&!isNaN(t)}function qd(t=""){return J(t)&&t.length===1&&!!t.match(/\S| /)}function Qe(t,e){if(e){const n=e.test(t);return e.lastIndex=0,n}return!1}function nn(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 Gd(t){return Se(t,!1)?t[0].toUpperCase()+t.slice(1):t}function Ls(t){return Se(t)?t.replace(/(_)/g,"-").replace(/[A-Z]/g,(e,n)=>n===0?e:"-"+e.toLowerCase()).toLowerCase():t}function $s(t){return Se(t)?t.replace(/[A-Z]/g,(e,n)=>n===0?e:"."+e.toLowerCase()).toLowerCase():t}var Mn={};function Yd(t="pui_id_"){return Mn.hasOwnProperty(t)||(Mn[t]=0),Mn[t]++,`${t}${Mn[t]}`}function Un(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"pv_id_";return Yd(t)}var Jd=Object.defineProperty,Xd=Object.defineProperties,Zd=Object.getOwnPropertyDescriptors,Hn=Object.getOwnPropertySymbols,Rs=Object.prototype.hasOwnProperty,Ns=Object.prototype.propertyIsEnumerable,Bs=(t,e,n)=>e in t?Jd(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,rn=(t,e)=>{for(var n in e||(e={}))Rs.call(e,n)&&Bs(t,n,e[n]);if(Hn)for(var n of Hn(e))Ns.call(e,n)&&Bs(t,n,e[n]);return t},Ur=(t,e)=>Xd(t,Zd(e)),on=(t,e)=>{var n={};for(var r in t)Rs.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&Hn)for(var r of Hn(t))e.indexOf(r)<0&&Ns.call(t,r)&&(n[r]=t[r]);return n},Qd=Is(),et=Qd;function Ds(t,e){Mr(t)?t.push(...e||[]):ct(t)&&Object.assign(t,e)}function ef(t){return ct(t)&&t.hasOwnProperty("value")&&t.hasOwnProperty("type")?t.value:t}function Ms(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=>Os(s)?`${s}px`:s).join(" ")}function tf(t){return t.replaceAll(/ /g,"").replace(/[^\w]/g,"-")}function Hr(t="",e=""){return tf(`${Se(t,!1)&&Se(e,!1)?`${t}-`:t}${e}`)}function Us(t="",e=""){return`--${Hr(t,e)}`}function Hs(t,e="",n="",r=[],o){if(Se(t)){const s=/{([^}]*)}/g,i=t.trim();if(Qe(i,s)){const a=i.replaceAll(s,d=>{const g=d.replace(/{|}/g,"").split(".").filter(_=>!r.some(v=>Qe(_,v)));return`var(${Us(n,Ls(g.join("-")))}${J(o)?`, ${o}`:""})`}),c=/(\d+\s+[\+\-\*\/]\s+\d+)/g,u=/var\([^)]+\)/g;return Qe(a.replace(u,"0"),c)?`calc(${a})`:a}return Ms(i,e)}else if(Os(t))return Ms(t,e)}function nf(t,e,n){Se(e,!1)&&t.push(`${e}:${n};`)}function sn(t,e){return t?`${t}{${e}}`:""}var Vr=(...t)=>rf(te.getTheme(),...t),rf=(t={},e,n,r="variable")=>{if(e){const{variable:o,options:s}=te.defaults||{},{prefix:i,transform:a}=(t==null?void 0:t.options)||s||{},u=Qe(e,/{([^}]*)}/g)?e:`{${e}}`;return r==="value"||a==="strict"?te.getTokenValue(e):Hs(u,void 0,i,[o.excludedKeyRegex],n)}return""};function of(t,e={}){const n=te.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=Qe(g,s)?Hr(d):Hr(d,Ls(g)),T=ef(_);if(ct(T)){const{variables:w,tokens:B}=i(T,v);Ds(m.tokens,B),Ds(m.variables,w)}else m.tokens.push((r?v.replace(`${r}-`,""):v).replaceAll("-",".")),nf(m.variables,Us(v),Hs(T,v,r,[s]));return m},{variables:[],tokens:[]}),{variables:a,tokens:c}=i(t,r);return{value:a,tokens:c,declarations:a.join(""),css:sn(o,a.join(""))}}var Fe={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 of(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(J(u)){const{primitive:T,semantic:w}=u,B=w||{},{colorScheme:C}=B,A=on(B,["colorScheme"]),z=C||{},{dark:Z}=z,re=on(z,["dark"]),X=J(T)?this._toVariables({primitive:T},d):{},ye=J(A)?this._toVariables({semantic:A},d):{},ie=J(re)?this._toVariables({light:re},d):{},V=J(Z)?this._toVariables({dark:Z},d):{},[$e,ke]=[(s=X.declarations)!=null?s:"",X.tokens],[We,qe]=[(i=ye.declarations)!=null?i:"",ye.tokens||[]],[ft,tt]=[(a=ie.declarations)!=null?a:"",ie.tokens||[]],[Ge,Xe]=[(c=V.declarations)!=null?c:"",V.tokens||[]];m=this.transformCSS(t,$e,"light","variable",d,r,o),g=ke;const ne=this.transformCSS(t,`${We}${ft}color-scheme:light`,"light","variable",d,r,o),Be=this.transformCSS(t,`${Ge}color-scheme:dark`,"dark","variable",d,r,o);_=`${ne}${Be}`,v=[...new Set([...qe,...tt,...Xe])]}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,_=on(m,["colorScheme"]),v=g||{},{dark:T}=v,w=on(v,["dark"]),B=J(_)?this._toVariables({[d]:_},n):{},C=J(w)?this._toVariables({[d]:w},n):{},A=J(T)?this._toVariables({[d]:T},n):{},[z,Z]=[(a=B.declarations)!=null?a:"",B.tokens||[]],[re,X]=[(c=C.declarations)!=null?c:"",C.tokens||[]],[ye,ie]=[(u=A.declarations)!=null?u:"",A.tokens||[]],V=[...new Set([...Z,...X,...ie])],$e=this.transformCSS(d,`${z}${re}`,"light","variable",n,o,s,i),ke=this.transformCSS(d,ye,"dark","variable",n,o,s,i);return{css:`${$e}${ke}`,tokens:V}},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 ${Oe(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=nn(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}>${nn(c)}</style>`:""},createTokens(t={},e,n="",r="",o={}){return Object.entries(t).forEach(([s,i])=>{const a=Qe(s,e.variable.excludedKeyRegex)?n:n?`${n}.${$s(s)}`:$s(s),c=r?`${r}.${s}`:s;ct(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={}),Qe(i,m)){const v=i.trim().replaceAll(m,B=>{var C,A;const z=B.replace(/{|}/g,"");return(A=(C=o[z])==null?void 0:C.computed(u,d))==null?void 0:A.value}),T=/(\d+\w*\s+[\+\-\*\/]\s+\d+\w*)/g,w=/var\([^)]+\)/g;g=Qe(v.replace(w,"0"),T)?`calc(${v})`:v}return vt(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=>!Qe(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=on(d,["colorScheme"]);return c[m]=g,c},void 0)},transformCSS(t,e,n,r,o={},s,i,a){if(J(e)){const{cssLayer:c}=o;if(r!=="style"){const u=this.getColorSchemeOption(o,i),d=a?sn(a,e):e;e=n==="dark"?u.reduce((m,{selector:g})=>(J(g)&&(m+=g.includes("[CSS]")?g.replace("[CSS]",d):sn(g,d)),m),""):sn(a??":root",e)}if(c){const u={name:"primeui",order:"primeui"};ct(c)&&(u.name=Oe(c.name,{name:t,type:r})),J(u.name)&&(e=sn(`@layer ${u.name}`,e),s==null||s.layerNames(u.name))}return e}return""}},te={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=Ur(rn({},e),{options:rn(rn({},this.defaults.options),e.options)}),this._tokens=Fe.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=Ur(rn({},this.theme),{preset:t}),this._tokens=Fe.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=Ur(rn({},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 Fe.getTokenValue(this.tokens,t,this.defaults)},getCommon(t="",e){return Fe.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 Fe.getPresetC(n)},getDirective(t="",e){const n={name:t,theme:this.theme,params:e,defaults:this.defaults,set:{layerNames:this.setLayerNames.bind(this)}};return Fe.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 Fe.getPreset(o)},getLayerOrderCSS(t=""){return Fe.getLayerOrder(t,this.options,{names:this.getLayerNames()},this.defaults)},transformCSS(t="",e,n="style",r){return Fe.transformCSS(t,e,r,n,this.options,{layerNames:this.setLayerNames.bind(this)},this.defaults)},getCommonStyleSheet(t="",e,n={}){return Fe.getCommonStyleSheet({name:t,theme:this.theme,params:e,props:n,defaults:this.defaults,set:{layerNames:this.setLayerNames.bind(this)}})},getStyleSheet(t,e,n={}){return Fe.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"))}},ut={_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 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 Vs(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 js(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?Vs(Object(n),!0).forEach(function(r){sf(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Vs(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function sf(t,e,n){return(e=af(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function af(t){var e=lf(t,"string");return an(e)=="symbol"?e:e+""}function lf(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)}function cf(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;l.getCurrentInstance()?l.onMounted(t):e?t():l.nextTick(t)}var uf=0;function df(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=Kd()?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(++uf):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,z=e.first,Z=z===void 0?!1:z,re=e.onMounted,X=re===void 0?void 0:re,ye=e.onUpdated,ie=ye===void 0?void 0:ye,V=e.onLoad,$e=V===void 0?void 0:V,ke=e.props,We=ke===void 0?{}:ke,qe=function(){},ft=function(Xe){var ne=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(a){var Be=js(js({},We),ne),f=Be.name||_,h=Be.id||T,S=Be.nonce||A;o.value=a.querySelector('style[data-primevue-style-id="'.concat(f,'"]'))||a.getElementById(h)||a.createElement("style"),o.value.isConnected||(r.value=Xe||t,Dn(o.value,{type:"text/css",id:h,media:B,nonce:S}),Z?a.head.prepend(o.value):a.head.appendChild(o.value),Wd(o.value,"data-primevue-style-id",f),Dn(o.value,Be),o.value.onload=function(P){return $e==null?void 0:$e(P,{name:f})},X==null||X(f)),!n.value&&(qe=l.watch(r,function(P){o.value.textContent=P,ie==null||ie(f)},{immediate:!0}),n.value=!0)}},tt=function(){!a||!n.value||(qe(),zd(o.value)&&a.head.removeChild(o.value),n.value=!1)};return u&&!m&&cf(ft),{id:T,name:_,el:o,css:r,unload:tt,load:ft,isLoaded:l.readonly(n)}}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 Fs(t,e){return hf(t)||pf(t,e)||mf(t,e)||ff()}function ff(){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 mf(t,e){if(t){if(typeof t=="string")return zs(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)?zs(t,e):void 0}}function zs(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 pf(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 hf(t){if(Array.isArray(t))return t}function Ks(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 jr(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?Ks(Object(n),!0).forEach(function(r){gf(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Ks(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=bf(t,"string");return ln(e)=="symbol"?e:e+""}function bf(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 vf=function(e){var n=e.dt;return`
|
|
72
72
|
* {
|
|
73
73
|
box-sizing: border-box;
|
|
74
74
|
}
|
|
@@ -187,7 +187,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
187
187
|
background: transparent;
|
|
188
188
|
}
|
|
189
189
|
}
|
|
190
|
-
`)},
|
|
190
|
+
`)},wf=function(e){var n=e.dt;return`
|
|
191
191
|
.p-hidden-accessible {
|
|
192
192
|
border: 0;
|
|
193
193
|
clip: rect(0 0 0 0);
|
|
@@ -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
|
-
`)},
|
|
212
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Gs(t,e){if(t){if(typeof t=="string")return Ys(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)?Ys(t,e):void 0}}function Ys(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 Tf(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 Js(t){if(Array.isArray(t))return t}function Xs(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?Xs(Object(n),!0).forEach(function(r){jn(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Xs(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function jn(t,e,n){return(e=Af(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function Af(t){var e=Pf(t,"string");return cn(e)=="symbol"?e:e+""}function Pf(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 Fn={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=Ve(this.$el,'[data-pc-name="'.concat(je(this.$.type.name),'"]')),this.rootEl&&(this.rootEl.setAttribute(this.$attrSelector,""),this.rootEl.$pc=q({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 Br(e)?e.apply(void 0,r):l.mergeProps.apply(void 0,r)},_loadStyles:function(){var e=this,n=function(){ut.isStyleNameLoaded("base")||(ge.loadCSS(e.$styleOptions),e._loadGlobalStyles(),ut.setLoadedStyleName("base")),e._loadThemeStyles()};n(),this._themeChangeListener(n)},_loadCoreStyles:function(){var e,n;!ut.isStyleNameLoaded((e=this.$style)===null||e===void 0?void 0:e.name)&&(n=this.$style)!==null&&n!==void 0&&n.name&&(Ws.loadCSS(this.$styleOptions),this.$options.style&&this.$style.loadCSS(this.$styleOptions),ut.setLoadedStyleName(this.$style.name))},_loadGlobalStyles:function(){var e=this._useGlobalPT(this._getOptionValue,"global.css",this.$params);J(e)&&ge.load(e,q({name:"global"},this.$styleOptions))},_loadThemeStyles:function(){var e,n;if(!this.isUnstyled){if(!te.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,q({name:"primitive-variables"},this.$styleOptions)),ge.load(a==null?void 0:a.css,q({name:"semantic-variables"},this.$styleOptions)),ge.loadTheme(q({name:"global-style"},this.$styleOptions)),te.setLoadedStyleName("common")}if(!te.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(_,q({name:"".concat(this.$style.name,"-variables")},this.$styleOptions)),(m=this.$style)===null||m===void 0||m.loadTheme(q({name:"".concat(this.$style.name,"-style")},this.$styleOptions)),te.setLoadedStyleName(this.$style.name)}if(!te.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,q({name:"layer-order",first:!0},this.$styleOptions)),te.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,q({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(){};ut.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 Dr(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,q(q({},o),{},{global:g||{}})),v=this._getPTDatasets(r);return u||!u&&_?m?this._mergeProps(m,g,_,v):q(q(q({},g),_),v):q(q({},_),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"&&J((e=this.pt)===null||e===void 0?void 0:e["data-pc-section"]);return r!=="transition"&&q(q({},r==="root"&&q(jn({},"".concat(o,"name"),je(s?(n=this.pt)===null||n===void 0?void 0:n["data-pc-section"]:this.$.type.name)),s&&jn({},"".concat(o,"extend"),je(this.$.type.name)))),{},jn({},"".concat(o,"section"),je(r)))},_getPTClassValue:function(){var e=this._getOptionValue.apply(this,arguments);return Se(e)||Mr(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=je(r),g=je(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:Se(_)?_:Se(g)?g:u||!u&&_?m?this._mergeProps(m,g,_):q(q({},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,q(q({},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,q({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,q(q({},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,q(q({},this.$params),r)),s=this._getOptionValue(Ws.inlineStyles,e,q(q({},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 Oe(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,q({},n.$params))||Oe(r,q({},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 q(q({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=Vn(e,1),r=n[0];return r==null?void 0:r.startsWith("pt:")}).reduce(function(e,n){var r=Vn(n,2),o=r[0],s=r[1],i=o.split(":"),a=Cf(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=Vn(e,1),r=n[0];return!(r!=null&&r.startsWith("pt:"))}).reduce(function(e,n){var r=Vn(n,2),o=r[0],s=r[1];return e[o]=s,e},{})},$attrSelector:function(){return Un("pc")}}},If=`
|
|
211
|
+
`)},Sf={},_f={},ge={name:"base",css:wf,theme:vf,classes:Sf,inlineStyles:_f,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(Oe(e,{dt:Vr}));return o?df(nn(o),jr({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 te.transformCSS(n.name||e.name,r)})},getCommonTheme:function(e){return te.getCommon(this.name,e)},getComponentTheme:function(e){return te.getComponent(this.name,e)},getDirectiveTheme:function(e){return te.getDirective(this.name,e)},getPresetTheme:function(e,n,r){return te.getCustomPreset(this.name,e,n,r)},getLayerOrderThemeCSS:function(){return te.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=Oe(this.css,{dt:Vr}),o=nn("".concat(r).concat(e)),s=Object.entries(n).reduce(function(i,a){var c=Fs(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 te.getCommonStyleSheet(this.name,e,n)},getThemeStyleSheet:function(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=[te.getStyleSheet(this.name,e,n)];if(this.theme){var o=this.name==="base"?"global-style":"".concat(this.name,"-style"),s=Oe(this.theme,{dt:Vr}),i=nn(te.transformCSS(o,s)),a=Object.entries(n).reduce(function(c,u){var d=Fs(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 jr(jr({},this),{},{css:void 0,theme:void 0},e)}},Ws=ge.extend({name:"common"});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 kf(t){return Js(t)||Cf(t)||Gs(t)||qs()}function Cf(t){if(typeof Symbol<"u"&&t[Symbol.iterator]!=null||t["@@iterator"]!=null)return Array.from(t)}function Vn(t,e){return Js(t)||Ef(t,e)||Gs(t,e)||qs()}function qs(){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 Gs(t,e){if(t){if(typeof t=="string")return Ys(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)?Ys(t,e):void 0}}function Ys(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 Ef(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 Js(t){if(Array.isArray(t))return t}function Xs(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?Xs(Object(n),!0).forEach(function(r){jn(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Xs(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function jn(t,e,n){return(e=Tf(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function Tf(t){var e=Af(t,"string");return cn(e)=="symbol"?e:e+""}function Af(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 Fn={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=Ve(this.$el,'[data-pc-name="'.concat(je(this.$.type.name),'"]')),this.rootEl&&(this.rootEl.setAttribute(this.$attrSelector,""),this.rootEl.$pc=q({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 Br(e)?e.apply(void 0,r):l.mergeProps.apply(void 0,r)},_loadStyles:function(){var e=this,n=function(){ut.isStyleNameLoaded("base")||(ge.loadCSS(e.$styleOptions),e._loadGlobalStyles(),ut.setLoadedStyleName("base")),e._loadThemeStyles()};n(),this._themeChangeListener(n)},_loadCoreStyles:function(){var e,n;!ut.isStyleNameLoaded((e=this.$style)===null||e===void 0?void 0:e.name)&&(n=this.$style)!==null&&n!==void 0&&n.name&&(Ws.loadCSS(this.$styleOptions),this.$options.style&&this.$style.loadCSS(this.$styleOptions),ut.setLoadedStyleName(this.$style.name))},_loadGlobalStyles:function(){var e=this._useGlobalPT(this._getOptionValue,"global.css",this.$params);J(e)&&ge.load(e,q({name:"global"},this.$styleOptions))},_loadThemeStyles:function(){var e,n;if(!this.isUnstyled){if(!te.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,q({name:"primitive-variables"},this.$styleOptions)),ge.load(a==null?void 0:a.css,q({name:"semantic-variables"},this.$styleOptions)),ge.loadTheme(q({name:"global-style"},this.$styleOptions)),te.setLoadedStyleName("common")}if(!te.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(_,q({name:"".concat(this.$style.name,"-variables")},this.$styleOptions)),(m=this.$style)===null||m===void 0||m.loadTheme(q({name:"".concat(this.$style.name,"-style")},this.$styleOptions)),te.setLoadedStyleName(this.$style.name)}if(!te.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,q({name:"layer-order",first:!0},this.$styleOptions)),te.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,q({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(){};ut.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 Dr(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,q(q({},o),{},{global:g||{}})),v=this._getPTDatasets(r);return u||!u&&_?m?this._mergeProps(m,g,_,v):q(q(q({},g),_),v):q(q({},_),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"&&J((e=this.pt)===null||e===void 0?void 0:e["data-pc-section"]);return r!=="transition"&&q(q({},r==="root"&&q(jn({},"".concat(o,"name"),je(s?(n=this.pt)===null||n===void 0?void 0:n["data-pc-section"]:this.$.type.name)),s&&jn({},"".concat(o,"extend"),je(this.$.type.name)))),{},jn({},"".concat(o,"section"),je(r)))},_getPTClassValue:function(){var e=this._getOptionValue.apply(this,arguments);return Se(e)||Mr(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=je(r),g=je(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:Se(_)?_:Se(g)?g:u||!u&&_?m?this._mergeProps(m,g,_):q(q({},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,q(q({},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,q({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,q(q({},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,q(q({},this.$params),r)),s=this._getOptionValue(Ws.inlineStyles,e,q(q({},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 Oe(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,q({},n.$params))||Oe(r,q({},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 q(q({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=Vn(e,1),r=n[0];return r==null?void 0:r.startsWith("pt:")}).reduce(function(e,n){var r=Vn(n,2),o=r[0],s=r[1],i=o.split(":"),a=kf(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=Vn(e,1),r=n[0];return!(r!=null&&r.startsWith("pt:"))}).reduce(function(e,n){var r=Vn(n,2),o=r[0],s=r[1];return e[o]=s,e},{})},$attrSelector:function(){return Un("pc")}}},Pf=`
|
|
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
|
-
`,
|
|
244
|
+
`,If=ge.extend({name:"baseicon",css:Pf});function un(t){"@babel/helpers - typeof";return un=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},un(t)}function Zs(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 Qs(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?Zs(Object(n),!0).forEach(function(r){xf(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Zs(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function xf(t,e,n){return(e=Of(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function Of(t){var e=Lf(t,"string");return un(e)=="symbol"?e:e+""}function Lf(t,e){if(un(t)!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e||"default");if(un(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}var ei={name:"BaseIcon",extends:Fn,props:{label:{type:String,default:void 0},spin:{type:Boolean,default:!1}},style:If,provide:function(){return{$pcIcon:this,$parentInstance:this}},methods:{pti:function(){var e=vt(this.label);return Qs(Qs({},!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})}}},Fr={name:"ChevronDownIcon",extends:ei},$f=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),Rf=[$f];function Nf(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()),Rf,16)}Fr.render=Nf;var zr={name:"ChevronRightIcon",extends:ei},Bf=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),Df=[Bf];function Mf(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()),Df,16)}zr.render=Mf;var Uf=function(e){var n=e.dt;return`
|
|
245
245
|
.p-panelmenu {
|
|
246
246
|
display: flex;
|
|
247
247
|
flex-direction: column;
|
|
@@ -384,8 +384,8 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
384
384
|
.p-panelmenu-item:not(.p-disabled) > .p-panelmenu-item-content:hover .p-panelmenu-submenu-icon {
|
|
385
385
|
color: `).concat(n("panelmenu.submenu.icon.focus.color"),`;
|
|
386
386
|
}
|
|
387
|
-
`)},
|
|
388
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function zf(t,e){if(t){if(typeof t=="string")return ri(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)?ri(t,e):void 0}}function ri(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 Kf(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 Wf(t){if(Array.isArray(t))return t}function oi(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 G(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?oi(Object(n),!0).forEach(function(r){Kr(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):oi(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function Kr(t,e,n){return(e=qf(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function qf(t){var e=Gf(t,"string");return dn(e)=="symbol"?e:e+""}function Gf(t,e){if(dn(t)!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e||"default");if(dn(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}var F={_getMeta:function(){return[ct(arguments.length<=0?void 0:arguments[0])||arguments.length<=0?void 0:arguments[0],Oe(ct(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:Dr,_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 Se(C)||Mr(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,G(G({},i),{},{global:v||{}})),w=F._getPTDatasets(r,s);return m||!m&&T?_?F._mergeProps(r,_,v,T,w):G(G(G({},v),T),w):G(G({},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 G(G({},n==="root"&&Kr({},"".concat(r,"name"),je(e.$name))),{},Kr({},"".concat(r,"section"),je(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=je(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:Se(v)?v:Se(_)?_:d||!d&&v?g?F._mergeProps(e,g,_,v):G(G({},_),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(!ut.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)),ut.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(!te.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,G({name:"primitive-variables"},o)),ge.load(u==null?void 0:u.css,G({name:"semantic-variables"},o)),ge.loadTheme(G({name:"global-style"},o)),te.setLoadedStyleName("common")}if(!te.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,G({name:"".concat(r.$style.name,"-variables")},o)),(_=r.$style)===null||_===void 0||_.loadTheme(G({name:"".concat(r.$style.name,"-style")},o)),te.setLoadedStyleName(r.$style.name)}if(!te.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,G({name:"layer-order",first:!0},o)),te.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,G({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(){};ut.clearLoadedStyleNames(),et.on("theme:change",e)},_hook:function(e,n,r,o,s,i){var a,c,u="on".concat(Yd(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 Br(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=bt(T)?G(G({},n),n==null?void 0:n.methods):{};a._$instances[e]=G(G({},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:G({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]:"",z=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,G({},z))},ptmo:function(){var C=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},A=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"",z=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return F._getPTValue(a.$instance,C,A,z,!1)},cx:function(){var C,A,z=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",Z=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,z,G({},Z))},sx:function(){var C,A=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",z=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0,Z=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return z?F._getOptionValue((C=a.$instance)===null||C===void 0||(C=C.$style)===null||C===void 0?void 0:C.inlineStyles,A,G({},Z)):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]=G(G({},(_=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),ti.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),ti.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=Un("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=ni(e,2),r=n[0],o=n[1];return G({extend:function(){var i=F._getMeta.apply(F,arguments),a=ni(i,2),c=a[0],u=a[1];return F.extend(c,G(G(G({},o),o==null?void 0:o.methods),u))}},F._extend(r,o))}},Yf=function(e){var n=e.dt;return`
|
|
387
|
+
`)},Hf={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"},Vf=ge.extend({name:"panelmenu",theme:Uf,classes:Hf}),ti=Is();function dn(t){"@babel/helpers - typeof";return dn=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},dn(t)}function ni(t,e){return Kf(t)||zf(t,e)||Ff(t,e)||jf()}function jf(){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 Ff(t,e){if(t){if(typeof t=="string")return ri(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)?ri(t,e):void 0}}function ri(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 zf(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 Kf(t){if(Array.isArray(t))return t}function oi(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 G(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?oi(Object(n),!0).forEach(function(r){Kr(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):oi(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function Kr(t,e,n){return(e=Wf(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function Wf(t){var e=qf(t,"string");return dn(e)=="symbol"?e:e+""}function qf(t,e){if(dn(t)!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e||"default");if(dn(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}var F={_getMeta:function(){return[ct(arguments.length<=0?void 0:arguments[0])||arguments.length<=0?void 0:arguments[0],Oe(ct(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:Dr,_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 Se(C)||Mr(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,G(G({},i),{},{global:v||{}})),w=F._getPTDatasets(r,s);return m||!m&&T?_?F._mergeProps(r,_,v,T,w):G(G(G({},v),T),w):G(G({},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 G(G({},n==="root"&&Kr({},"".concat(r,"name"),je(e.$name))),{},Kr({},"".concat(r,"section"),je(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=je(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:Se(v)?v:Se(_)?_:d||!d&&v?g?F._mergeProps(e,g,_,v):G(G({},_),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(!ut.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)),ut.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(!te.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,G({name:"primitive-variables"},o)),ge.load(u==null?void 0:u.css,G({name:"semantic-variables"},o)),ge.loadTheme(G({name:"global-style"},o)),te.setLoadedStyleName("common")}if(!te.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,G({name:"".concat(r.$style.name,"-variables")},o)),(_=r.$style)===null||_===void 0||_.loadTheme(G({name:"".concat(r.$style.name,"-style")},o)),te.setLoadedStyleName(r.$style.name)}if(!te.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,G({name:"layer-order",first:!0},o)),te.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,G({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(){};ut.clearLoadedStyleNames(),et.on("theme:change",e)},_hook:function(e,n,r,o,s,i){var a,c,u="on".concat(Gd(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 Br(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=vt(T)?G(G({},n),n==null?void 0:n.methods):{};a._$instances[e]=G(G({},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:G({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]:"",z=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,G({},z))},ptmo:function(){var C=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},A=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"",z=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return F._getPTValue(a.$instance,C,A,z,!1)},cx:function(){var C,A,z=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",Z=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,z,G({},Z))},sx:function(){var C,A=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",z=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0,Z=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return z?F._getOptionValue((C=a.$instance)===null||C===void 0||(C=C.$style)===null||C===void 0?void 0:C.inlineStyles,A,G({},Z)):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]=G(G({},(_=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),ti.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),ti.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=Un("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=ni(e,2),r=n[0],o=n[1];return G({extend:function(){var i=F._getMeta.apply(F,arguments),a=ni(i,2),c=a[0],u=a[1];return F.extend(c,G(G(G({},o),o==null?void 0:o.methods),u))}},F._extend(r,o))}},Gf=function(e){var n=e.dt;return`
|
|
389
389
|
.p-ink {
|
|
390
390
|
display: block;
|
|
391
391
|
position: absolute;
|
|
@@ -405,12 +405,12 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
405
405
|
transform: scale(2.5);
|
|
406
406
|
}
|
|
407
407
|
}
|
|
408
|
-
`)},
|
|
409
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function
|
|
410
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function hm(t,e){if(t){if(typeof t=="string")return ai(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)?ai(t,e):void 0}}function ai(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 gm(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 ym(t){if(Array.isArray(t))return t}var li={name:"PanelMenuList",hostName:"PanelMenu",extends:Fn,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?Oe(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 J(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&&Gd(e.key)&&this.searchItems(e,e.key);break}},onArrowDownKey:function(e){var n=J(this.focusedItem)?this.findNextItem(this.focusedItem):this.findFirstItem();this.changeFocusedItem({originalEvent:e,processedItem:n,focusOnNext:!0}),e.preventDefault()},onArrowUpKey:function(e){var n=J(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(J(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=J(this.focusedItem.parent)?this.focusedItem.parent:this.focusedItem,e.preventDefault()}},onArrowRightKey:function(e){var n=this;if(J(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(J(this.focusedItem)){var n=Ve(this.$el,'li[id="'.concat("".concat(this.focusedItemId),'"]')),r=n&&(Ve(n,'[data-pc-section="itemlink"]')||Ve(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,en(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 xs(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?xs(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(J(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=bt(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 J(o)&&(s=!0),bt(o)&&bt(this.focusedItem)&&(o=this.findFirstItem()),J(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;J(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=Ve(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=mm(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 J(this.focusedItem)?"".concat(this.panelId,"_").concat(this.focusedItem.key):null}},components:{PanelMenuSub:ii}};function bm(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"])}li.render=bm;function mn(t){"@babel/helpers - typeof";return mn=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},mn(t)}function ci(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 vm(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?ci(Object(n),!0).forEach(function(r){wm(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):ci(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function wm(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 mn(e)=="symbol"?e:e+""}function _m(t,e){if(mn(t)!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e||"default");if(mn(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}var ui={name:"PanelMenu",extends:am,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||Un()}},mounted:function(){this.id=this.id||Un()},methods:{getItemProp:function(e,n){return e?Oe(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 $t(e,n)}):$t(e,this.activeItem)},isItemVisible:function(e){return this.getItemProp(e,"visible")!==!1},isItemDisabled:function(e){return this.getItemProp(e,"disabled")},isItemFocused:function(e){return $t(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),en(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=tn(e.currentTarget,"data-p-active")===!0?Ve(e.currentTarget.nextElementSibling,'[data-pc-section="rootlist"]'):null;n?en(n):this.updateFocusedHeader({originalEvent:e,focusOnNext:!0}),e.preventDefault()},onHeaderArrowUpKey:function(e){var n=this.findPrevHeader(e.currentTarget.parentElement)||this.findLastHeader(),r=tn(n,"data-p-active")===!0?Ve(n.nextElementSibling,'[data-pc-section="rootlist"]'):null;r?en(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=Ve(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=Ve(r,'[data-pc-section="header"]');return o?tn(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=Ve(r,'[data-pc-section="header"]');return o?tn(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?Ve(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&&$t(n,this.activeItem)?null:n,this.multiple&&(this.activeItems.some(function(i){return $t(n,i)})?this.activeItems=this.activeItems.filter(function(i){return!$t(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=vm({},this.expandedKeys);o?s[n.key]=!0:delete s[n.key],this.$emit("update:expandedKeys",s)}},changeFocusedHeader:function(e,n){n&&en(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:li,ChevronRightIcon:zr,ChevronDownIcon:Fr}},km=["id"],Cm=["id","tabindex","aria-label","aria-expanded","aria-controls","aria-disabled","onClick","onKeydown","data-p-active","data-p-disabled"],Em=["href"],Tm=["id","aria-labelledby"];function Am(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,Em))],16)],16,Cm),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,Tm),[[l.vShow,s.isItemActive(a)]])]}),_:2},1040)],16)):l.createCommentVNode("",!0)],64)}),128))],16,km)}ui.render=Am;const Pm=t=>(l.pushScopeId("data-v-74bc83ee"),t=t(),l.popScopeId(),t),Im={class:"panel-menu-wrapper"},xm=["data-active","href","onClick"],Om={class:"material-symbols-outlined item-menu-icon-left"},Lm={key:1,class:"item-menu sf-ripple"},$m={key:0,class:"material-symbols-outlined item-menu-icon-left"},Rm=Pm(()=>l.createElementVNode("div",{class:"sf-flex-grow-1"},null,-1)),Nm=_n(l.defineComponent({__name:"NavMenu",props:{items:{}},setup(t){const e=t,n=nr();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",Im,[l.createVNode(l.unref(ui),{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",Om,l.toDisplayString(a.icon??"chevron_right"),1),l.createElementVNode("span",null,l.toDisplayString(a.text),1)],8,xm)]),_:2},1032,["to"])):(l.openBlock(),l.createElementBlock("a",Lm,[a.icon?(l.openBlock(),l.createElementBlock("span",$m,l.toDisplayString(a.icon),1)):l.createCommentVNode("",!0),l.createElementVNode("span",null,l.toDisplayString(a.text),1),Rm,l.createElementVNode("span",{class:l.normalizeClass(["material-symbols-outlined arrow",{"--expand":c}])}," chevron_right ",2)]))]),_:1},8,["model"])])}}}),[["__scopeId","data-v-74bc83ee"]]);class pn{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 di(t,e){return function(){return t.apply(e,arguments)}}const{toString:Bm}=Object.prototype,{getPrototypeOf:qr}=Object,zn=(t=>e=>{const n=Bm.call(e);return t[n]||(t[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),ze=t=>(t=t.toLowerCase(),e=>zn(e)===t),Kn=t=>e=>typeof e===t,{isArray:Rt}=Array,hn=Kn("undefined");function Dm(t){return t!==null&&!hn(t)&&t.constructor!==null&&!hn(t.constructor)&&Le(t.constructor.isBuffer)&&t.constructor.isBuffer(t)}const fi=ze("ArrayBuffer");function Mm(t){let e;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?e=ArrayBuffer.isView(t):e=t&&t.buffer&&fi(t.buffer),e}const Um=Kn("string"),Le=Kn("function"),mi=Kn("number"),Wn=t=>t!==null&&typeof t=="object",Hm=t=>t===!0||t===!1,qn=t=>{if(zn(t)!=="object")return!1;const e=qr(t);return(e===null||e===Object.prototype||Object.getPrototypeOf(e)===null)&&!(Symbol.toStringTag in t)&&!(Symbol.iterator in t)},Vm=ze("Date"),jm=ze("File"),Fm=ze("Blob"),zm=ze("FileList"),Km=t=>Wn(t)&&Le(t.pipe),Wm=t=>{let e;return t&&(typeof FormData=="function"&&t instanceof FormData||Le(t.append)&&((e=zn(t))==="formdata"||e==="object"&&Le(t.toString)&&t.toString()==="[object FormData]"))},qm=ze("URLSearchParams"),[Gm,Ym,Jm,Xm]=["ReadableStream","Request","Response","Headers"].map(ze),Zm=t=>t.trim?t.trim():t.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function gn(t,e,{allOwnKeys:n=!1}={}){if(t===null||typeof t>"u")return;let r,o;if(typeof t!="object"&&(t=[t]),Rt(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 pi(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 vt=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,hi=t=>!hn(t)&&t!==vt;function Gr(){const{caseless:t}=hi(this)&&this||{},e={},n=(r,o)=>{const s=t&&pi(e,o)||o;qn(e[s])&&qn(r)?e[s]=Gr(e[s],r):qn(r)?e[s]=Gr({},r):Rt(r)?e[s]=r.slice():e[s]=r};for(let r=0,o=arguments.length;r<o;r++)arguments[r]&&gn(arguments[r],n);return e}const Qm=(t,e,n,{allOwnKeys:r}={})=>(gn(e,(o,s)=>{n&&Le(o)?t[s]=di(o,n):t[s]=o},{allOwnKeys:r}),t),ep=t=>(t.charCodeAt(0)===65279&&(t=t.slice(1)),t),tp=(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)},np=(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&&qr(t)}while(t&&(!n||n(t,e))&&t!==Object.prototype);return e},rp=(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},op=t=>{if(!t)return null;if(Rt(t))return t;let e=t.length;if(!mi(e))return null;const n=new Array(e);for(;e-- >0;)n[e]=t[e];return n},sp=(t=>e=>t&&e instanceof t)(typeof Uint8Array<"u"&&qr(Uint8Array)),ip=(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])}},ap=(t,e)=>{let n;const r=[];for(;(n=t.exec(e))!==null;)r.push(n);return r},lp=ze("HTMLFormElement"),cp=t=>t.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,r,o){return r.toUpperCase()+o}),gi=(({hasOwnProperty:t})=>(e,n)=>t.call(e,n))(Object.prototype),up=ze("RegExp"),yi=(t,e)=>{const n=Object.getOwnPropertyDescriptors(t),r={};gn(n,(o,s)=>{let i;(i=e(o,s,t))!==!1&&(r[s]=i||o)}),Object.defineProperties(t,r)},dp=t=>{yi(t,(e,n)=>{if(Le(t)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const r=t[n];if(Le(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+"'")})}})},fp=(t,e)=>{const n={},r=o=>{o.forEach(s=>{n[s]=!0})};return Rt(t)?r(t):r(String(t).split(e)),n},mp=()=>{},pp=(t,e)=>t!=null&&Number.isFinite(t=+t)?t:e,Yr="abcdefghijklmnopqrstuvwxyz",bi="0123456789",vi={DIGIT:bi,ALPHA:Yr,ALPHA_DIGIT:Yr+Yr.toUpperCase()+bi},hp=(t=16,e=vi.ALPHA_DIGIT)=>{let n="";const{length:r}=e;for(;t--;)n+=e[Math.random()*r|0];return n};function gp(t){return!!(t&&Le(t.append)&&t[Symbol.toStringTag]==="FormData"&&t[Symbol.iterator])}const yp=t=>{const e=new Array(10),n=(r,o)=>{if(Wn(r)){if(e.indexOf(r)>=0)return;if(!("toJSON"in r)){e[o]=r;const s=Rt(r)?[]:{};return gn(r,(i,a)=>{const c=n(i,o+1);!hn(c)&&(s[a]=c)}),e[o]=void 0,s}}return r};return n(t,0)},bp=ze("AsyncFunction"),vp=t=>t&&(Wn(t)||Le(t))&&Le(t.then)&&Le(t.catch),wi=((t,e)=>t?setImmediate:e?((n,r)=>(vt.addEventListener("message",({source:o,data:s})=>{o===vt&&s===n&&r.length&&r.shift()()},!1),o=>{r.push(o),vt.postMessage(n,"*")}))(`axios@${Math.random()}`,[]):n=>setTimeout(n))(typeof setImmediate=="function",Le(vt.postMessage)),wp=typeof queueMicrotask<"u"?queueMicrotask.bind(vt):typeof process<"u"&&process.nextTick||wi,y={isArray:Rt,isArrayBuffer:fi,isBuffer:Dm,isFormData:Wm,isArrayBufferView:Mm,isString:Um,isNumber:mi,isBoolean:Hm,isObject:Wn,isPlainObject:qn,isReadableStream:Gm,isRequest:Ym,isResponse:Jm,isHeaders:Xm,isUndefined:hn,isDate:Vm,isFile:jm,isBlob:Fm,isRegExp:up,isFunction:Le,isStream:Km,isURLSearchParams:qm,isTypedArray:sp,isFileList:zm,forEach:gn,merge:Gr,extend:Qm,trim:Zm,stripBOM:ep,inherits:tp,toFlatObject:np,kindOf:zn,kindOfTest:ze,endsWith:rp,toArray:op,forEachEntry:ip,matchAll:ap,isHTMLForm:lp,hasOwnProperty:gi,hasOwnProp:gi,reduceDescriptors:yi,freezeMethods:dp,toObjectSet:fp,toCamelCase:cp,noop:mp,toFiniteNumber:pp,findKey:pi,global:vt,isContextDefined:hi,ALPHABET:vi,generateString:hp,isSpecCompliantForm:gp,toJSONObject:yp,isAsyncFn:bp,isThenable:vp,setImmediate:wi,asap:wp};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 Si=M.prototype,_i={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(t=>{_i[t]={value:t}}),Object.defineProperties(M,_i),Object.defineProperty(Si,"isAxiosError",{value:!0}),M.from=(t,e,n,r,o,s)=>{const i=Object.create(Si);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 Sp=null;function Jr(t){return y.isPlainObject(t)||y.isArray(t)}function ki(t){return y.endsWith(t,"[]")?t.slice(0,-2):t}function Ci(t,e,n){return t?t.concat(e).map(function(o,s){return o=ki(o),!n&&s?"["+o+"]":o}).join(n?".":""):e}function _p(t){return y.isArray(t)&&!t.some(Jr)}const kp=y.toFlatObject(y,{},null,function(e){return/^is[A-Z]/.test(e)});function Gn(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)&&_p(v)||(y.isFileList(v)||y.endsWith(T,"[]"))&&(B=y.toArray(v)))return T=ki(T),B.forEach(function(A,z){!(y.isUndefined(A)||A===null)&&e.append(i===!0?Ci([T],z,s):i===null?T:T+"[]",u(A))}),!1}return Jr(v)?!0:(e.append(Ci(w,T,s),u(v)),!1)}const m=[],g=Object.assign(kp,{defaultVisitor:d,convertValue:u,isVisitable:Jr});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 Ei(t){const e={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(t).replace(/[!'()~]|%20|%00/g,function(r){return e[r]})}function Xr(t,e){this._pairs=[],t&&Gn(t,this,e)}const Ti=Xr.prototype;Ti.append=function(e,n){this._pairs.push([e,n])},Ti.toString=function(e){const n=e?function(r){return e.call(this,r,Ei)}:Ei;return this._pairs.map(function(o){return n(o[0])+"="+n(o[1])},"").join("&")};function Cp(t){return encodeURIComponent(t).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function Ai(t,e,n){if(!e)return t;const r=n&&n.encode||Cp,o=n&&n.serialize;let s;if(o?s=o(e,n):s=y.isURLSearchParams(e)?e.toString():new Xr(e,n).toString(r),s){const i=t.indexOf("#");i!==-1&&(t=t.slice(0,i)),t+=(t.indexOf("?")===-1?"?":"&")+s}return t}class Pi{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 Ii={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},Ep={isBrowser:!0,classes:{URLSearchParams:typeof URLSearchParams<"u"?URLSearchParams:Xr,FormData:typeof FormData<"u"?FormData:null,Blob:typeof Blob<"u"?Blob:null},protocols:["http","https","file","blob","url","data"]},Zr=typeof window<"u"&&typeof document<"u",Tp=(t=>Zr&&["ReactNative","NativeScript","NS"].indexOf(t)<0)(typeof navigator<"u"&&navigator.product),Ap=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",Pp=Zr&&window.location.href||"http://localhost",Ke={...Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:Zr,hasStandardBrowserEnv:Tp,hasStandardBrowserWebWorkerEnv:Ap,origin:Pp},Symbol.toStringTag,{value:"Module"})),...Ep};function Ip(t,e){return Gn(t,new Ke.classes.URLSearchParams,Object.assign({visitor:function(n,r,o,s){return Ke.isNode&&y.isBuffer(n)?(this.append(r,n.toString("base64")),!1):s.defaultVisitor.apply(this,arguments)}},e))}function xp(t){return y.matchAll(/\w+|\[(\w*)]/g,t).map(e=>e[0]==="[]"?"":e[1]||e[0])}function Op(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 xi(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]=Op(o[i])),!a)}if(y.isFormData(t)&&y.isFunction(t.entries)){const n={};return y.forEachEntry(t,(r,o)=>{e(xp(r),o,n,0)}),n}return null}function Lp(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 yn={transitional:Ii,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(xi(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 Ip(e,this.formSerializer).toString();if((a=y.isFileList(e))||r.indexOf("multipart/form-data")>-1){const c=this.env&&this.env.FormData;return Gn(a?{"files[]":e}:e,c&&new c,this.formSerializer)}}return s||o?(n.setContentType("application/json",!1),Lp(e)):e}],transformResponse:[function(e){const n=this.transitional||yn.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:Ke.classes.FormData,Blob:Ke.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};y.forEach(["delete","get","head","post","put","patch"],t=>{yn.headers[t]={}});const $p=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"]),Rp=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]
|
|
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[Oi]=this[Oi]={accessors:{}}).accessors,o=this.prototype;function s(i){const a=bn(i);r[a]||(Mp(o,i),r[a]=!0)}return y.isArray(e)?e.forEach(s):s(e),this}}_e.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),y.reduceDescriptors(_e.prototype,({value:t},e)=>{let n=e[0].toUpperCase()+e.slice(1);return{get:()=>t,set(r){this[n]=r}}}),y.freezeMethods(_e);function eo(t,e){const n=this||yn,r=e||n,o=_e.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 Li(t){return!!(t&&t.__CANCEL__)}function Nt(t,e,n){M.call(this,t??"canceled",M.ERR_CANCELED,e,n),this.name="CanceledError"}y.inherits(Nt,M,{__CANCEL__:!0});function $i(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 Up(t){const e=/^([-+\w]{1,25})(:?\/\/|:)/.exec(t);return e&&e[1]||""}function Hp(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 Vp(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 Jn=(t,e,n=3)=>{let r=0;const o=Hp(50,250);return Vp(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)},Ri=(t,e)=>{const n=t!=null;return[r=>e[0]({lengthComputable:n,total:t,loaded:r}),e[1]]},Ni=t=>(...e)=>y.asap(()=>t(...e)),jp=Ke.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}}(),Fp=Ke.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 zp(t){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(t)}function Kp(t,e){return e?t.replace(/\/?\/$/,"")+"/"+e.replace(/^\/+/,""):t}function Bi(t,e){return t&&!zp(e)?Kp(t,e):e}const Di=t=>t instanceof _e?{...t}:t;function wt(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(Di(u),Di(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 Mi=t=>{const e=wt({},t);let{data:n,withXSRFToken:r,xsrfHeaderName:o,xsrfCookieName:s,headers:i,auth:a}=e;e.headers=i=_e.from(i),e.url=Ai(Bi(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(Ke.hasStandardBrowserEnv||Ke.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(Ke.hasStandardBrowserEnv&&(r&&y.isFunction(r)&&(r=r(e)),r||r!==!1&&jp(e.url))){const u=o&&s&&Fp.read(s);u&&i.set(o,u)}return e},Wp=typeof XMLHttpRequest<"u"&&function(t){return new Promise(function(n,r){const o=Mi(t);let s=o.data;const i=_e.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=_e.from("getAllResponseHeaders"in w&&w.getAllResponseHeaders()),Z={data:!a||a==="text"||a==="json"?w.responseText:w.response,status:w.status,statusText:w.statusText,headers:A,config:t,request:w};$i(function(X){n(X),T()},function(X){r(X),T()},Z),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 z=o.timeout?"timeout of "+o.timeout+"ms exceeded":"timeout exceeded";const Z=o.transitional||Ii;o.timeoutErrorMessage&&(z=o.timeoutErrorMessage),r(new M(z,Z.clarifyTimeoutError?M.ETIMEDOUT:M.ECONNABORTED,t,w)),w=null},s===void 0&&i.setContentType(null),"setRequestHeader"in w&&y.forEach(i.toJSON(),function(z,Z){w.setRequestHeader(Z,z)}),y.isUndefined(o.withCredentials)||(w.withCredentials=!!o.withCredentials),a&&a!=="json"&&(w.responseType=o.responseType),u&&([g,v]=Jn(u,!0),w.addEventListener("progress",g)),c&&w.upload&&([m,_]=Jn(c),w.upload.addEventListener("progress",m),w.upload.addEventListener("loadend",_)),(o.cancelToken||o.signal)&&(d=A=>{w&&(r(!A||A.type?new Nt(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=Up(o.url);if(C&&Ke.protocols.indexOf(C)===-1){r(new M("Unsupported protocol "+C+":",M.ERR_BAD_REQUEST,t));return}w.send(s||null)})},qp=(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 Nt(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}]},Gp=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},Yp=async function*(t,e,n){for await(const r of t)yield*Gp(ArrayBuffer.isView(r)?r:await n(String(r)),e)},Ui=(t,e,n,r,o)=>{const s=Yp(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})},Xn=typeof fetch=="function"&&typeof Request=="function"&&typeof Response=="function",Hi=Xn&&typeof ReadableStream=="function",to=Xn&&(typeof TextEncoder=="function"?(t=>e=>t.encode(e))(new TextEncoder):async t=>new Uint8Array(await new Response(t).arrayBuffer())),Vi=(t,...e)=>{try{return!!t(...e)}catch{return!1}},Jp=Hi&&Vi(()=>{let t=!1;const e=new Request(Ke.origin,{body:new ReadableStream,method:"POST",get duplex(){return t=!0,"half"}}).headers.has("Content-Type");return t&&!e}),ji=64*1024,no=Hi&&Vi(()=>y.isReadableStream(new Response("").body)),Zn={stream:no&&(t=>t.body)};Xn&&(t=>{["text","arrayBuffer","blob","formData","stream"].forEach(e=>{!Zn[e]&&(Zn[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 Xp=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 to(t)).byteLength},Zp=async(t,e)=>{const n=y.toFiniteNumber(t.getContentLength());return n??Xp(e)},ro={http:Sp,xhr:Wp,fetch:Xn&&(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}=Mi(t);u=u?(u+"").toLowerCase():"text";let[_,v]=o||s||i?qp([o,s],i):[],T,w;const B=()=>{!T&&setTimeout(()=>{_&&_.unsubscribe()}),T=!0};let C;try{if(c&&Jp&&n!=="get"&&n!=="head"&&(C=await Zp(d,r))!==0){let re=new Request(e,{method:"POST",body:r,duplex:"half"}),X;if(y.isFormData(r)&&(X=re.headers.get("content-type"))&&d.setContentType(X),re.body){const[ye,ie]=Ri(C,Jn(Ni(c)));r=Ui(re.body,ji,ye,ie,to)}}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 z=no&&(u==="stream"||u==="response");if(no&&(a||z)){const re={};["status","statusText","headers"].forEach(V=>{re[V]=A[V]});const X=y.toFiniteNumber(A.headers.get("content-length")),[ye,ie]=a&&Ri(X,Jn(Ni(a),!0))||[];A=new Response(Ui(A.body,ji,ye,()=>{ie&&ie(),z&&B()},to),re)}u=u||"text";let Z=await Zn[y.findKey(Zn,u)||"text"](A,t);return!z&&B(),v&&v(),await new Promise((re,X)=>{$i(re,X,{data:Z,headers:_e.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)}})};y.forEach(ro,(t,e)=>{if(t){try{Object.defineProperty(t,"name",{value:e})}catch{}Object.defineProperty(t,"adapterName",{value:e})}});const Fi=t=>`- ${t}`,Qp=t=>y.isFunction(t)||t===null||t===!1,zi={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,!Qp(n)&&(r=ro[(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 :
|
|
408
|
+
`)},Yf={root:"p-ink"},Jf=ge.extend({name:"ripple-directive",theme:Gf,classes:Yf}),Xf=F.extend({style:Jf});function fn(t){"@babel/helpers - typeof";return fn=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},fn(t)}function Zf(t){return nm(t)||tm(t)||em(t)||Qf()}function Qf(){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 em(t,e){if(t){if(typeof t=="string")return Wr(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)?Wr(t,e):void 0}}function tm(t){if(typeof Symbol<"u"&&t[Symbol.iterator]!=null||t["@@iterator"]!=null)return Array.from(t)}function nm(t){if(Array.isArray(t))return Wr(t)}function Wr(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 si(t,e,n){return(e=rm(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function rm(t){var e=om(t,"string");return fn(e)=="symbol"?e:e+""}function om(t,e){if(fn(t)!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e||"default");if(fn(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}var sm=Xf.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=Hd("span",si(si({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()&&Rr(o,"p-ink-active"),o.setAttribute("data-p-ink-active","false"),!As(o)&&!Ps(o)){var s=Math.max(Ud(r),Fd(r));o.style.height=s+"px",o.style.width=s+"px"}var i=jd(r),a=e.pageX-i.left+document.body.scrollTop-Ps(o)/2,c=e.pageY-i.top+document.body.scrollLeft-As(o)/2;o.style.top=c+"px",o.style.left=a+"px",!this.isUnstyled()&&Md(o,"p-ink-active"),o.setAttribute("data-p-ink-active","true"),this.timeout=setTimeout(function(){o&&(!n.isUnstyled()&&Rr(o,"p-ink-active"),o.setAttribute("data-p-ink-active","false"))},401)}},onAnimationEnd:function(e){this.timeout&&clearTimeout(this.timeout),!this.isUnstyled()&&Rr(e.currentTarget,"p-ink-active"),e.currentTarget.setAttribute("data-p-ink-active","false")},getInk:function(e){return e&&e.children?Zf(e.children).find(function(n){return tn(n,"data-pc-name")==="ripple"}):void 0}}}),im={name:"BasePanelMenu",extends:Fn,props:{model:{type:Array,default:null},expandedKeys:{type:Object,default:null},multiple:{type:Boolean,default:!1},tabindex:{type:Number,default:0}},style:Vf,provide:function(){return{$pcPanelMenu:this,$parentInstance:this}}},ii={name:"PanelMenuSub",hostName:"PanelMenu",extends:Fn,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?Oe(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 J(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:zr,ChevronDownIcon:Fr},directives:{ripple:sm}},am=["tabindex"],lm=["id","aria-label","aria-expanded","aria-level","aria-setsize","aria-posinset","data-p-focused","data-p-disabled"],cm=["onClick","onMousemove"],um=["href","target"];function dm(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,um)),[[a]])],16,cm),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,lm)):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,am)}ii.render=dm;function fm(t,e){return gm(t)||hm(t,e)||pm(t,e)||mm()}function mm(){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 pm(t,e){if(t){if(typeof t=="string")return ai(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)?ai(t,e):void 0}}function ai(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 hm(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 gm(t){if(Array.isArray(t))return t}var li={name:"PanelMenuList",hostName:"PanelMenu",extends:Fn,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?Oe(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 J(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&&qd(e.key)&&this.searchItems(e,e.key);break}},onArrowDownKey:function(e){var n=J(this.focusedItem)?this.findNextItem(this.focusedItem):this.findFirstItem();this.changeFocusedItem({originalEvent:e,processedItem:n,focusOnNext:!0}),e.preventDefault()},onArrowUpKey:function(e){var n=J(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(J(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=J(this.focusedItem.parent)?this.focusedItem.parent:this.focusedItem,e.preventDefault()}},onArrowRightKey:function(e){var n=this;if(J(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(J(this.focusedItem)){var n=Ve(this.$el,'li[id="'.concat("".concat(this.focusedItemId),'"]')),r=n&&(Ve(n,'[data-pc-section="itemlink"]')||Ve(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,en(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 xs(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?xs(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(J(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=vt(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 J(o)&&(s=!0),vt(o)&&vt(this.focusedItem)&&(o=this.findFirstItem()),J(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;J(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=Ve(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=fm(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 J(this.focusedItem)?"".concat(this.panelId,"_").concat(this.focusedItem.key):null}},components:{PanelMenuSub:ii}};function ym(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"])}li.render=ym;function mn(t){"@babel/helpers - typeof";return mn=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},mn(t)}function ci(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?ci(Object(n),!0).forEach(function(r){vm(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):ci(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function vm(t,e,n){return(e=wm(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function wm(t){var e=Sm(t,"string");return mn(e)=="symbol"?e:e+""}function Sm(t,e){if(mn(t)!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e||"default");if(mn(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}var ui={name:"PanelMenu",extends:im,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||Un()}},mounted:function(){this.id=this.id||Un()},methods:{getItemProp:function(e,n){return e?Oe(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 $t(e,n)}):$t(e,this.activeItem)},isItemVisible:function(e){return this.getItemProp(e,"visible")!==!1},isItemDisabled:function(e){return this.getItemProp(e,"disabled")},isItemFocused:function(e){return $t(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),en(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=tn(e.currentTarget,"data-p-active")===!0?Ve(e.currentTarget.nextElementSibling,'[data-pc-section="rootlist"]'):null;n?en(n):this.updateFocusedHeader({originalEvent:e,focusOnNext:!0}),e.preventDefault()},onHeaderArrowUpKey:function(e){var n=this.findPrevHeader(e.currentTarget.parentElement)||this.findLastHeader(),r=tn(n,"data-p-active")===!0?Ve(n.nextElementSibling,'[data-pc-section="rootlist"]'):null;r?en(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=Ve(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=Ve(r,'[data-pc-section="header"]');return o?tn(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=Ve(r,'[data-pc-section="header"]');return o?tn(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?Ve(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&&$t(n,this.activeItem)?null:n,this.multiple&&(this.activeItems.some(function(i){return $t(n,i)})?this.activeItems=this.activeItems.filter(function(i){return!$t(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&&en(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:li,ChevronRightIcon:zr,ChevronDownIcon:Fr}},_m=["id"],km=["id","tabindex","aria-label","aria-expanded","aria-controls","aria-disabled","onClick","onKeydown","data-p-active","data-p-disabled"],Cm=["href"],Em=["id","aria-labelledby"];function Tm(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,Cm))],16)],16,km),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,Em),[[l.vShow,s.isItemActive(a)]])]}),_:2},1040)],16)):l.createCommentVNode("",!0)],64)}),128))],16,_m)}ui.render=Tm;const Am=t=>(l.pushScopeId("data-v-74bc83ee"),t=t(),l.popScopeId(),t),Pm={class:"panel-menu-wrapper"},Im=["data-active","href","onClick"],xm={class:"material-symbols-outlined item-menu-icon-left"},Om={key:1,class:"item-menu sf-ripple"},Lm={key:0,class:"material-symbols-outlined item-menu-icon-left"},$m=Am(()=>l.createElementVNode("div",{class:"sf-flex-grow-1"},null,-1)),Rm=_n(l.defineComponent({__name:"NavMenu",props:{items:{}},setup(t){const e=t,n=nr();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",Pm,[l.createVNode(l.unref(ui),{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",xm,l.toDisplayString(a.icon??"chevron_right"),1),l.createElementVNode("span",null,l.toDisplayString(a.text),1)],8,Im)]),_:2},1032,["to"])):(l.openBlock(),l.createElementBlock("a",Om,[a.icon?(l.openBlock(),l.createElementBlock("span",Lm,l.toDisplayString(a.icon),1)):l.createCommentVNode("",!0),l.createElementVNode("span",null,l.toDisplayString(a.text),1),$m,l.createElementVNode("span",{class:l.normalizeClass(["material-symbols-outlined arrow",{"--expand":c}])}," chevron_right ",2)]))]),_:1},8,["model"])])}}}),[["__scopeId","data-v-74bc83ee"]]);class pn{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 di(t,e){return function(){return t.apply(e,arguments)}}const{toString:Nm}=Object.prototype,{getPrototypeOf:qr}=Object,zn=(t=>e=>{const n=Nm.call(e);return t[n]||(t[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),ze=t=>(t=t.toLowerCase(),e=>zn(e)===t),Kn=t=>e=>typeof e===t,{isArray:Rt}=Array,hn=Kn("undefined");function Bm(t){return t!==null&&!hn(t)&&t.constructor!==null&&!hn(t.constructor)&&Le(t.constructor.isBuffer)&&t.constructor.isBuffer(t)}const fi=ze("ArrayBuffer");function Dm(t){let e;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?e=ArrayBuffer.isView(t):e=t&&t.buffer&&fi(t.buffer),e}const Mm=Kn("string"),Le=Kn("function"),mi=Kn("number"),Wn=t=>t!==null&&typeof t=="object",Um=t=>t===!0||t===!1,qn=t=>{if(zn(t)!=="object")return!1;const e=qr(t);return(e===null||e===Object.prototype||Object.getPrototypeOf(e)===null)&&!(Symbol.toStringTag in t)&&!(Symbol.iterator in t)},Hm=ze("Date"),Vm=ze("File"),jm=ze("Blob"),Fm=ze("FileList"),zm=t=>Wn(t)&&Le(t.pipe),Km=t=>{let e;return t&&(typeof FormData=="function"&&t instanceof FormData||Le(t.append)&&((e=zn(t))==="formdata"||e==="object"&&Le(t.toString)&&t.toString()==="[object FormData]"))},Wm=ze("URLSearchParams"),[qm,Gm,Ym,Jm]=["ReadableStream","Request","Response","Headers"].map(ze),Xm=t=>t.trim?t.trim():t.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function gn(t,e,{allOwnKeys:n=!1}={}){if(t===null||typeof t>"u")return;let r,o;if(typeof t!="object"&&(t=[t]),Rt(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 pi(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 wt=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,hi=t=>!hn(t)&&t!==wt;function Gr(){const{caseless:t}=hi(this)&&this||{},e={},n=(r,o)=>{const s=t&&pi(e,o)||o;qn(e[s])&&qn(r)?e[s]=Gr(e[s],r):qn(r)?e[s]=Gr({},r):Rt(r)?e[s]=r.slice():e[s]=r};for(let r=0,o=arguments.length;r<o;r++)arguments[r]&&gn(arguments[r],n);return e}const Zm=(t,e,n,{allOwnKeys:r}={})=>(gn(e,(o,s)=>{n&&Le(o)?t[s]=di(o,n):t[s]=o},{allOwnKeys:r}),t),Qm=t=>(t.charCodeAt(0)===65279&&(t=t.slice(1)),t),ep=(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)},tp=(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&&qr(t)}while(t&&(!n||n(t,e))&&t!==Object.prototype);return e},np=(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},rp=t=>{if(!t)return null;if(Rt(t))return t;let e=t.length;if(!mi(e))return null;const n=new Array(e);for(;e-- >0;)n[e]=t[e];return n},op=(t=>e=>t&&e instanceof t)(typeof Uint8Array<"u"&&qr(Uint8Array)),sp=(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])}},ip=(t,e)=>{let n;const r=[];for(;(n=t.exec(e))!==null;)r.push(n);return r},ap=ze("HTMLFormElement"),lp=t=>t.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,r,o){return r.toUpperCase()+o}),gi=(({hasOwnProperty:t})=>(e,n)=>t.call(e,n))(Object.prototype),cp=ze("RegExp"),yi=(t,e)=>{const n=Object.getOwnPropertyDescriptors(t),r={};gn(n,(o,s)=>{let i;(i=e(o,s,t))!==!1&&(r[s]=i||o)}),Object.defineProperties(t,r)},up=t=>{yi(t,(e,n)=>{if(Le(t)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const r=t[n];if(Le(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+"'")})}})},dp=(t,e)=>{const n={},r=o=>{o.forEach(s=>{n[s]=!0})};return Rt(t)?r(t):r(String(t).split(e)),n},fp=()=>{},mp=(t,e)=>t!=null&&Number.isFinite(t=+t)?t:e,Yr="abcdefghijklmnopqrstuvwxyz",bi="0123456789",vi={DIGIT:bi,ALPHA:Yr,ALPHA_DIGIT:Yr+Yr.toUpperCase()+bi},pp=(t=16,e=vi.ALPHA_DIGIT)=>{let n="";const{length:r}=e;for(;t--;)n+=e[Math.random()*r|0];return n};function hp(t){return!!(t&&Le(t.append)&&t[Symbol.toStringTag]==="FormData"&&t[Symbol.iterator])}const gp=t=>{const e=new Array(10),n=(r,o)=>{if(Wn(r)){if(e.indexOf(r)>=0)return;if(!("toJSON"in r)){e[o]=r;const s=Rt(r)?[]:{};return gn(r,(i,a)=>{const c=n(i,o+1);!hn(c)&&(s[a]=c)}),e[o]=void 0,s}}return r};return n(t,0)},yp=ze("AsyncFunction"),bp=t=>t&&(Wn(t)||Le(t))&&Le(t.then)&&Le(t.catch),wi=((t,e)=>t?setImmediate:e?((n,r)=>(wt.addEventListener("message",({source:o,data:s})=>{o===wt&&s===n&&r.length&&r.shift()()},!1),o=>{r.push(o),wt.postMessage(n,"*")}))(`axios@${Math.random()}`,[]):n=>setTimeout(n))(typeof setImmediate=="function",Le(wt.postMessage)),vp=typeof queueMicrotask<"u"?queueMicrotask.bind(wt):typeof process<"u"&&process.nextTick||wi,y={isArray:Rt,isArrayBuffer:fi,isBuffer:Bm,isFormData:Km,isArrayBufferView:Dm,isString:Mm,isNumber:mi,isBoolean:Um,isObject:Wn,isPlainObject:qn,isReadableStream:qm,isRequest:Gm,isResponse:Ym,isHeaders:Jm,isUndefined:hn,isDate:Hm,isFile:Vm,isBlob:jm,isRegExp:cp,isFunction:Le,isStream:zm,isURLSearchParams:Wm,isTypedArray:op,isFileList:Fm,forEach:gn,merge:Gr,extend:Zm,trim:Xm,stripBOM:Qm,inherits:ep,toFlatObject:tp,kindOf:zn,kindOfTest:ze,endsWith:np,toArray:rp,forEachEntry:sp,matchAll:ip,isHTMLForm:ap,hasOwnProperty:gi,hasOwnProp:gi,reduceDescriptors:yi,freezeMethods:up,toObjectSet:dp,toCamelCase:lp,noop:fp,toFiniteNumber:mp,findKey:pi,global:wt,isContextDefined:hi,ALPHABET:vi,generateString:pp,isSpecCompliantForm:hp,toJSONObject:gp,isAsyncFn:yp,isThenable:bp,setImmediate:wi,asap:vp};function U(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(U,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 Si=U.prototype,_i={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(t=>{_i[t]={value:t}}),Object.defineProperties(U,_i),Object.defineProperty(Si,"isAxiosError",{value:!0}),U.from=(t,e,n,r,o,s)=>{const i=Object.create(Si);return y.toFlatObject(t,i,function(c){return c!==Error.prototype},a=>a!=="isAxiosError"),U.call(i,t.message,e,n,r,o),i.cause=t,i.name=t.name,s&&Object.assign(i,s),i};const wp=null;function Jr(t){return y.isPlainObject(t)||y.isArray(t)}function ki(t){return y.endsWith(t,"[]")?t.slice(0,-2):t}function Ci(t,e,n){return t?t.concat(e).map(function(o,s){return o=ki(o),!n&&s?"["+o+"]":o}).join(n?".":""):e}function Sp(t){return y.isArray(t)&&!t.some(Jr)}const _p=y.toFlatObject(y,{},null,function(e){return/^is[A-Z]/.test(e)});function Gn(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 U("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)&&Sp(v)||(y.isFileList(v)||y.endsWith(T,"[]"))&&(B=y.toArray(v)))return T=ki(T),B.forEach(function(A,z){!(y.isUndefined(A)||A===null)&&e.append(i===!0?Ci([T],z,s):i===null?T:T+"[]",u(A))}),!1}return Jr(v)?!0:(e.append(Ci(w,T,s),u(v)),!1)}const m=[],g=Object.assign(_p,{defaultVisitor:d,convertValue:u,isVisitable:Jr});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 Ei(t){const e={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(t).replace(/[!'()~]|%20|%00/g,function(r){return e[r]})}function Xr(t,e){this._pairs=[],t&&Gn(t,this,e)}const Ti=Xr.prototype;Ti.append=function(e,n){this._pairs.push([e,n])},Ti.toString=function(e){const n=e?function(r){return e.call(this,r,Ei)}:Ei;return this._pairs.map(function(o){return n(o[0])+"="+n(o[1])},"").join("&")};function kp(t){return encodeURIComponent(t).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function Ai(t,e,n){if(!e)return t;const r=n&&n.encode||kp,o=n&&n.serialize;let s;if(o?s=o(e,n):s=y.isURLSearchParams(e)?e.toString():new Xr(e,n).toString(r),s){const i=t.indexOf("#");i!==-1&&(t=t.slice(0,i)),t+=(t.indexOf("?")===-1?"?":"&")+s}return t}class Pi{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 Ii={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},Cp={isBrowser:!0,classes:{URLSearchParams:typeof URLSearchParams<"u"?URLSearchParams:Xr,FormData:typeof FormData<"u"?FormData:null,Blob:typeof Blob<"u"?Blob:null},protocols:["http","https","file","blob","url","data"]},Zr=typeof window<"u"&&typeof document<"u",Ep=(t=>Zr&&["ReactNative","NativeScript","NS"].indexOf(t)<0)(typeof navigator<"u"&&navigator.product),Tp=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",Ap=Zr&&window.location.href||"http://localhost",Ke={...Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:Zr,hasStandardBrowserEnv:Ep,hasStandardBrowserWebWorkerEnv:Tp,origin:Ap},Symbol.toStringTag,{value:"Module"})),...Cp};function Pp(t,e){return Gn(t,new Ke.classes.URLSearchParams,Object.assign({visitor:function(n,r,o,s){return Ke.isNode&&y.isBuffer(n)?(this.append(r,n.toString("base64")),!1):s.defaultVisitor.apply(this,arguments)}},e))}function Ip(t){return y.matchAll(/\w+|\[(\w*)]/g,t).map(e=>e[0]==="[]"?"":e[1]||e[0])}function xp(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 xi(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]=xp(o[i])),!a)}if(y.isFormData(t)&&y.isFunction(t.entries)){const n={};return y.forEachEntry(t,(r,o)=>{e(Ip(r),o,n,0)}),n}return null}function Op(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 yn={transitional:Ii,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(xi(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 Pp(e,this.formSerializer).toString();if((a=y.isFileList(e))||r.indexOf("multipart/form-data")>-1){const c=this.env&&this.env.FormData;return Gn(a?{"files[]":e}:e,c&&new c,this.formSerializer)}}return s||o?(n.setContentType("application/json",!1),Op(e)):e}],transformResponse:[function(e){const n=this.transitional||yn.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"?U.from(a,U.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:Ke.classes.FormData,Blob:Ke.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};y.forEach(["delete","get","head","post","put","patch"],t=>{yn.headers[t]={}});const Lp=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"]),$p=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]&&Lp[n])&&(n==="set-cookie"?e[n]?e[n].push(r):e[n]=[r]:e[n]=e[n]?e[n]+", "+r:r)}),e},Oi=Symbol("internals");function bn(t){return t&&String(t).trim().toLowerCase()}function Yn(t){return t===!1||t==null?t:y.isArray(t)?t.map(Yn):String(t)}function Rp(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 Np=t=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(t.trim());function Qr(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 Bp(t){return t.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(e,n,r)=>n.toUpperCase()+r)}function Dp(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 _e{constructor(e){e&&this.set(e)}set(e,n,r){const o=this;function s(a,c,u){const d=bn(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]=Yn(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())&&!Np(e))i($p(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=bn(e),e){const r=y.findKey(this,e);if(r){const o=this[r];if(!n)return o;if(n===!0)return Rp(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=bn(e),e){const r=y.findKey(this,e);return!!(r&&this[r]!==void 0&&(!n||Qr(this,this[r],r,n)))}return!1}delete(e,n){const r=this;let o=!1;function s(i){if(i=bn(i),i){const a=y.findKey(r,i);a&&(!n||Qr(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||Qr(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]=Yn(o),delete n[s];return}const a=e?Bp(s):String(s).trim();a!==s&&delete n[s],n[a]=Yn(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[Oi]=this[Oi]={accessors:{}}).accessors,o=this.prototype;function s(i){const a=bn(i);r[a]||(Dp(o,i),r[a]=!0)}return y.isArray(e)?e.forEach(s):s(e),this}}_e.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),y.reduceDescriptors(_e.prototype,({value:t},e)=>{let n=e[0].toUpperCase()+e.slice(1);return{get:()=>t,set(r){this[n]=r}}}),y.freezeMethods(_e);function eo(t,e){const n=this||yn,r=e||n,o=_e.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 Li(t){return!!(t&&t.__CANCEL__)}function Nt(t,e,n){U.call(this,t??"canceled",U.ERR_CANCELED,e,n),this.name="CanceledError"}y.inherits(Nt,U,{__CANCEL__:!0});function $i(t,e,n){const r=n.config.validateStatus;!n.status||!r||r(n.status)?t(n):e(new U("Request failed with status code "+n.status,[U.ERR_BAD_REQUEST,U.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}function Mp(t){const e=/^([-+\w]{1,25})(:?\/\/|:)/.exec(t);return e&&e[1]||""}function Up(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 Hp(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 Jn=(t,e,n=3)=>{let r=0;const o=Up(50,250);return Hp(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)},Ri=(t,e)=>{const n=t!=null;return[r=>e[0]({lengthComputable:n,total:t,loaded:r}),e[1]]},Ni=t=>(...e)=>y.asap(()=>t(...e)),Vp=Ke.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}}(),jp=Ke.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 Fp(t){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(t)}function zp(t,e){return e?t.replace(/\/?\/$/,"")+"/"+e.replace(/^\/+/,""):t}function Bi(t,e){return t&&!Fp(e)?zp(t,e):e}const Di=t=>t instanceof _e?{...t}:t;function St(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(Di(u),Di(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 Mi=t=>{const e=St({},t);let{data:n,withXSRFToken:r,xsrfHeaderName:o,xsrfCookieName:s,headers:i,auth:a}=e;e.headers=i=_e.from(i),e.url=Ai(Bi(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(Ke.hasStandardBrowserEnv||Ke.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(Ke.hasStandardBrowserEnv&&(r&&y.isFunction(r)&&(r=r(e)),r||r!==!1&&Vp(e.url))){const u=o&&s&&jp.read(s);u&&i.set(o,u)}return e},Kp=typeof XMLHttpRequest<"u"&&function(t){return new Promise(function(n,r){const o=Mi(t);let s=o.data;const i=_e.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=_e.from("getAllResponseHeaders"in w&&w.getAllResponseHeaders()),Z={data:!a||a==="text"||a==="json"?w.responseText:w.response,status:w.status,statusText:w.statusText,headers:A,config:t,request:w};$i(function(X){n(X),T()},function(X){r(X),T()},Z),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 U("Request aborted",U.ECONNABORTED,t,w)),w=null)},w.onerror=function(){r(new U("Network Error",U.ERR_NETWORK,t,w)),w=null},w.ontimeout=function(){let z=o.timeout?"timeout of "+o.timeout+"ms exceeded":"timeout exceeded";const Z=o.transitional||Ii;o.timeoutErrorMessage&&(z=o.timeoutErrorMessage),r(new U(z,Z.clarifyTimeoutError?U.ETIMEDOUT:U.ECONNABORTED,t,w)),w=null},s===void 0&&i.setContentType(null),"setRequestHeader"in w&&y.forEach(i.toJSON(),function(z,Z){w.setRequestHeader(Z,z)}),y.isUndefined(o.withCredentials)||(w.withCredentials=!!o.withCredentials),a&&a!=="json"&&(w.responseType=o.responseType),u&&([g,v]=Jn(u,!0),w.addEventListener("progress",g)),c&&w.upload&&([m,_]=Jn(c),w.upload.addEventListener("progress",m),w.upload.addEventListener("loadend",_)),(o.cancelToken||o.signal)&&(d=A=>{w&&(r(!A||A.type?new Nt(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=Mp(o.url);if(C&&Ke.protocols.indexOf(C)===-1){r(new U("Unsupported protocol "+C+":",U.ERR_BAD_REQUEST,t));return}w.send(s||null)})},Wp=(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 U?u:new Nt(u instanceof Error?u.message:u))}};let s=e&&setTimeout(()=>{o(new U(`timeout ${e} of ms exceeded`,U.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}]},qp=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},Gp=async function*(t,e,n){for await(const r of t)yield*qp(ArrayBuffer.isView(r)?r:await n(String(r)),e)},Ui=(t,e,n,r,o)=>{const s=Gp(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})},Xn=typeof fetch=="function"&&typeof Request=="function"&&typeof Response=="function",Hi=Xn&&typeof ReadableStream=="function",to=Xn&&(typeof TextEncoder=="function"?(t=>e=>t.encode(e))(new TextEncoder):async t=>new Uint8Array(await new Response(t).arrayBuffer())),Vi=(t,...e)=>{try{return!!t(...e)}catch{return!1}},Yp=Hi&&Vi(()=>{let t=!1;const e=new Request(Ke.origin,{body:new ReadableStream,method:"POST",get duplex(){return t=!0,"half"}}).headers.has("Content-Type");return t&&!e}),ji=64*1024,no=Hi&&Vi(()=>y.isReadableStream(new Response("").body)),Zn={stream:no&&(t=>t.body)};Xn&&(t=>{["text","arrayBuffer","blob","formData","stream"].forEach(e=>{!Zn[e]&&(Zn[e]=y.isFunction(t[e])?n=>n[e]():(n,r)=>{throw new U(`Response type '${e}' is not supported`,U.ERR_NOT_SUPPORT,r)})})})(new Response);const Jp=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 to(t)).byteLength},Xp=async(t,e)=>{const n=y.toFiniteNumber(t.getContentLength());return n??Jp(e)},ro={http:wp,xhr:Kp,fetch:Xn&&(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}=Mi(t);u=u?(u+"").toLowerCase():"text";let[_,v]=o||s||i?Wp([o,s],i):[],T,w;const B=()=>{!T&&setTimeout(()=>{_&&_.unsubscribe()}),T=!0};let C;try{if(c&&Yp&&n!=="get"&&n!=="head"&&(C=await Xp(d,r))!==0){let re=new Request(e,{method:"POST",body:r,duplex:"half"}),X;if(y.isFormData(r)&&(X=re.headers.get("content-type"))&&d.setContentType(X),re.body){const[ye,ie]=Ri(C,Jn(Ni(c)));r=Ui(re.body,ji,ye,ie,to)}}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 z=no&&(u==="stream"||u==="response");if(no&&(a||z)){const re={};["status","statusText","headers"].forEach(V=>{re[V]=A[V]});const X=y.toFiniteNumber(A.headers.get("content-length")),[ye,ie]=a&&Ri(X,Jn(Ni(a),!0))||[];A=new Response(Ui(A.body,ji,ye,()=>{ie&&ie(),z&&B()},to),re)}u=u||"text";let Z=await Zn[y.findKey(Zn,u)||"text"](A,t);return!z&&B(),v&&v(),await new Promise((re,X)=>{$i(re,X,{data:Z,headers:_e.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 U("Network Error",U.ERR_NETWORK,t,w),{cause:A.cause||A}):U.from(A,A&&A.code,t,w)}})};y.forEach(ro,(t,e)=>{if(t){try{Object.defineProperty(t,"name",{value:e})}catch{}Object.defineProperty(t,"adapterName",{value:e})}});const Fi=t=>`- ${t}`,Zp=t=>y.isFunction(t)||t===null||t===!1,zi={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,!Zp(n)&&(r=ro[(i=String(n)).toLowerCase()],r===void 0))throw new U(`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(Fi).join(`
|
|
414
|
-
`):" "+Fi(s[0]):"as no adapter specified";throw new
|
|
415
|
-
`+s):r.stack=s}catch{}}throw r}}_request(e,n){typeof e=="string"?(n=n||{},n.url=e):n=e||{},n=wt(this.defaults,n);const{transitional:r,paramsSerializer:o,headers:s}=n;r!==void 0&&io.assertOptions(r,{silentJSONParsing:dt.transitional(dt.boolean),forcedJSONParsing:dt.transitional(dt.boolean),clarifyTimeoutError:dt.transitional(dt.boolean)},!1),o!=null&&(y.isFunction(o)?n.paramsSerializer={serialize:o}:io.assertOptions(o,{encode:dt.function,serialize:dt.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=_e.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=[Ki.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=Ki.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=wt(this.defaults,e);const n=Bi(e.baseURL,e.url);return Ai(n,e.params,e.paramsSerializer)}}y.forEach(["delete","get","head","options"],function(e){St.prototype[e]=function(n,r){return this.request(wt(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(wt(a||{},{method:e,headers:r?{"Content-Type":"multipart/form-data"}:{},url:s,data:i}))}}St.prototype[e]=n(),St.prototype[e+"Form"]=n(!0)});class ao{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 Nt(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 ao(function(o){e=o}),cancel:e}}}function th(t){return function(n){return t.apply(null,n)}}function nh(t){return y.isObject(t)&&t.isAxiosError===!0}const lo={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(lo).forEach(([t,e])=>{lo[e]=t});function Gi(t){const e=new St(t),n=di(St.prototype.request,e);return y.extend(n,St.prototype,e,{allOwnKeys:!0}),y.extend(n,e,null,{allOwnKeys:!0}),n.create=function(o){return Gi(wt(t,o))},n}const oe=Gi(yn);oe.Axios=St,oe.CanceledError=Nt,oe.CancelToken=ao,oe.isCancel=Li,oe.VERSION=Wi,oe.toFormData=Gn,oe.AxiosError=M,oe.Cancel=oe.CanceledError,oe.all=function(e){return Promise.all(e)},oe.spread=th,oe.isAxiosError=nh,oe.mergeConfig=wt,oe.AxiosHeaders=_e,oe.formToJSON=t=>xi(y.isHTMLForm(t)?new FormData(t):t),oe.getAdapter=zi.getAdapter,oe.HttpStatusCode=lo,oe.default=oe;class Yi{constructor(e,n){Te(this,"keycloak");Te(this,"axios");Te(this,"fileName","silent-login.html");this.keycloak=e,this.axios=oe.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 pn,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 pn,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 rh=(t,e)=>new Yi(t,e);class Ji{constructor(){Te(this,"axios");Te(this,"authService",$r());this.axios=oe.create(),this.axios.defaults.baseURL=window.location.origin+"/api",this.axios.defaults.headers.common["content-type"]="application/json",this.axios.defaults.timeout=1e3*60*5,this.axios.interceptors.request.use(async e=>{const n=await this.GetAccessToken();return e.headers.Authorization=n?`Bearer ${n}`:void 0,e})}GetAxios(e=!0){return e?this.axios:oe.create()}async GetAccessToken(){return await this.authService.Instance.getAccessTokenAsync()}async GetAsync(e){return this.GetAxios().get(e).then(n=>this.HandleThen(n)).catch(n=>this.HandleCatch(n))}async PostAsync(e,n){return this.GetAxios().post(e,n).then(r=>this.HandleThen(r)).catch(r=>this.HandleCatch(r))}async PutAsync(e,n){return this.GetAxios().put(e,n).then(r=>this.HandleThen(r)).catch(r=>this.HandleCatch(r))}async DeleteAsync(e){return this.GetAxios().delete(e).then(n=>this.HandleThen(n)).catch(n=>this.HandleCatch(n))}HandleThen(e){const n=new pn,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 pn,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 oh=()=>new Ji;class Qn{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 Qn.Mask(e.padStart(11,"0"),"###.###.###-##")}static MaskCnpj(e){return Qn.Mask(e.padStart(14,"0"),"##.###.###/####-##")}}function sh(){document.documentElement.classList.add("app-mounted")}function ih(){Lt.Toggle()}function ah(){Lt.EnableDarkMode()}function lh(){Lt.EnableLightMode()}Lt.SetInitialTheme(),U.ApiClient=Ji,U.AppResult=pn,U.AxiosClient=Yi,U.EnableDarkMode=ah,U.EnableLightMode=lh,U.Keycloak=Lr,U.RemovePreloader=sh,U.SfButton=bo,U.SfContent=Id,U.SfDrawer=yo,U.SfIcon=kn,U.SfLayout=Ad,U.SfMessage=Dd,U.SfNavMenu=Nm,U.SfTabNavigation=Nd,U.SfTooltip=rr,U.StartAuthService=ld,U.ToggleTheme=ih,U.UseAlertService=Fu,U.UseApiClient=oh,U.UseAuthService=$r,U.UseAxiosClient=rh,U.UseConfirmService=_s,U.UseNavMenuService=nr,U.Utilities=Qn,Object.defineProperty(U,Symbol.toStringTag,{value:"Module"})});
|
|
414
|
+
`):" "+Fi(s[0]):"as no adapter specified";throw new U("There is no suitable adapter to dispatch the request "+i,"ERR_NOT_SUPPORT")}return r},adapters:ro};function oo(t){if(t.cancelToken&&t.cancelToken.throwIfRequested(),t.signal&&t.signal.aborted)throw new Nt(null,t)}function Ki(t){return oo(t),t.headers=_e.from(t.headers),t.data=eo.call(t,t.transformRequest),["post","put","patch"].indexOf(t.method)!==-1&&t.headers.setContentType("application/x-www-form-urlencoded",!1),zi.getAdapter(t.adapter||yn.adapter)(t).then(function(r){return oo(t),r.data=eo.call(t,t.transformResponse,r),r.headers=_e.from(r.headers),r},function(r){return Li(r)||(oo(t),r&&r.response&&(r.response.data=eo.call(t,t.transformResponse,r.response),r.response.headers=_e.from(r.response.headers))),Promise.reject(r)})}const Wi="1.7.4",so={};["object","boolean","number","function","string","symbol"].forEach((t,e)=>{so[t]=function(r){return typeof r===t||"a"+(e<1?"n ":" ")+t}});const qi={};so.transitional=function(e,n,r){function o(s,i){return"[Axios v"+Wi+"] Transitional option '"+s+"'"+i+(r?". "+r:"")}return(s,i,a)=>{if(e===!1)throw new U(o(i," has been removed"+(n?" in "+n:"")),U.ERR_DEPRECATED);return n&&!qi[i]&&(qi[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 Qp(t,e,n){if(typeof t!="object")throw new U("options must be an object",U.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 U("option "+s+" must be "+c,U.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new U("Unknown option "+s,U.ERR_BAD_OPTION)}}const io={assertOptions:Qp,validators:so},dt=io.validators;class _t{constructor(e){this.defaults=e,this.interceptors={request:new Pi,response:new Pi}}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=St(this.defaults,n);const{transitional:r,paramsSerializer:o,headers:s}=n;r!==void 0&&io.assertOptions(r,{silentJSONParsing:dt.transitional(dt.boolean),forcedJSONParsing:dt.transitional(dt.boolean),clarifyTimeoutError:dt.transitional(dt.boolean)},!1),o!=null&&(y.isFunction(o)?n.paramsSerializer={serialize:o}:io.assertOptions(o,{encode:dt.function,serialize:dt.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=_e.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=[Ki.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=Ki.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=St(this.defaults,e);const n=Bi(e.baseURL,e.url);return Ai(n,e.params,e.paramsSerializer)}}y.forEach(["delete","get","head","options"],function(e){_t.prototype[e]=function(n,r){return this.request(St(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(St(a||{},{method:e,headers:r?{"Content-Type":"multipart/form-data"}:{},url:s,data:i}))}}_t.prototype[e]=n(),_t.prototype[e+"Form"]=n(!0)});class ao{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 Nt(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 ao(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 lo={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(lo).forEach(([t,e])=>{lo[e]=t});function Gi(t){const e=new _t(t),n=di(_t.prototype.request,e);return y.extend(n,_t.prototype,e,{allOwnKeys:!0}),y.extend(n,e,null,{allOwnKeys:!0}),n.create=function(o){return Gi(St(t,o))},n}const oe=Gi(yn);oe.Axios=_t,oe.CanceledError=Nt,oe.CancelToken=ao,oe.isCancel=Li,oe.VERSION=Wi,oe.toFormData=Gn,oe.AxiosError=U,oe.Cancel=oe.CanceledError,oe.all=function(e){return Promise.all(e)},oe.spread=eh,oe.isAxiosError=th,oe.mergeConfig=St,oe.AxiosHeaders=_e,oe.formToJSON=t=>xi(y.isHTMLForm(t)?new FormData(t):t),oe.getAdapter=zi.getAdapter,oe.HttpStatusCode=lo,oe.default=oe;class Yi{constructor(e,n){Te(this,"keycloak");Te(this,"axios");Te(this,"fileName","silent-login.html");this.keycloak=e,this.axios=oe.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 pn,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 pn,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 nh=(t,e)=>new Yi(t,e);class Ji{constructor(){Te(this,"axios");Te(this,"authService",$r());this.axios=oe.create(),this.axios.defaults.baseURL=window.location.origin+"/api",this.axios.defaults.headers.common["content-type"]="application/json",this.axios.defaults.timeout=1e3*60*5,this.axios.interceptors.request.use(async e=>{const n=await this.GetAccessToken();return e.headers.Authorization=n?`Bearer ${n}`:void 0,e})}GetAxios(e=!0){return e?this.axios:oe.create()}async GetAccessToken(){return await this.authService.Instance.getAccessTokenAsync()}async GetAsync(e){return this.GetAxios().get(e).then(n=>this.HandleThen(n)).catch(n=>this.HandleCatch(n))}async PostAsync(e,n){return this.GetAxios().post(e,n).then(r=>this.HandleThen(r)).catch(r=>this.HandleCatch(r))}async PutAsync(e,n){return this.GetAxios().put(e,n).then(r=>this.HandleThen(r)).catch(r=>this.HandleCatch(r))}async DeleteAsync(e){return this.GetAxios().delete(e).then(n=>this.HandleThen(n)).catch(n=>this.HandleCatch(n))}HandleThen(e){const n=new pn,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 pn,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 rh=()=>new Ji;class Qn{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 Qn.Mask(e.padStart(11,"0"),"###.###.###-##")}static MaskCnpj(e){return Qn.Mask(e.padStart(14,"0"),"##.###.###/####-##")}}function oh(){document.documentElement.classList.add("app-mounted")}function sh(){bt.Toggle()}function ih(){bt.EnableDarkMode()}function ah(){bt.EnableLightMode()}function lh(){bt.ClearStoredTheme()}bt.SetInitialTheme(),M.ApiClient=Ji,M.AppResult=pn,M.AxiosClient=Yi,M.ClearStoredTheme=lh,M.EnableDarkMode=ih,M.EnableLightMode=ah,M.Keycloak=Lr,M.RemovePreloader=oh,M.SfButton=bo,M.SfContent=Pd,M.SfDrawer=yo,M.SfIcon=kn,M.SfLayout=Td,M.SfMessage=Bd,M.SfNavMenu=Rm,M.SfTabNavigation=Rd,M.SfTooltip=rr,M.StartAuthService=ad,M.ToggleTheme=sh,M.UseAlertService=Fu,M.UseApiClient=rh,M.UseAuthService=$r,M.UseAxiosClient=nh,M.UseConfirmService=_s,M.UseNavMenuService=nr,M.Utilities=Qn,Object.defineProperty(M,Symbol.toStringTag,{value:"Module"})});
|
|
416
416
|
//# sourceMappingURL=sf.prefeiturasp.vuecomponents.umd.cjs.map
|