@luizleon/sf.prefeiturasp.vuecomponents 4.1.32 → 5.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/sf.prefeiturasp.vuecomponents.js +3389 -2822
- package/dist/sf.prefeiturasp.vuecomponents.js.map +1 -1
- package/dist/sf.prefeiturasp.vuecomponents.umd.cjs +20 -20
- package/dist/sf.prefeiturasp.vuecomponents.umd.cjs.map +1 -1
- package/dist/style.css +1 -1
- package/dist/types/components/button/Button.vue.d.ts +8 -4
- package/dist/types/components/button/Button.vue.d.ts.map +1 -1
- package/dist/types/components/content/Content.vue.d.ts +1 -1
- package/dist/types/components/drawer/Drawer.vue.d.ts +3 -3
- package/dist/types/components/icon/Icon.vue.d.ts +8 -3
- package/dist/types/components/icon/Icon.vue.d.ts.map +1 -1
- package/dist/types/components/internal/LoadingCircle.vue.d.ts +1 -1
- package/dist/types/components/internal/MenuIcon.vue.d.ts +1 -1
- package/dist/types/components/internal/ScrollToTop.vue.d.ts +1 -1
- package/dist/types/components/internal/ThemeToggle.vue.d.ts +1 -1
- package/dist/types/components/layout/FontSize.vue.d.ts +3 -0
- package/dist/types/components/layout/FontSize.vue.d.ts.map +1 -0
- package/dist/types/components/layout/Main.vue.d.ts +18 -0
- package/dist/types/components/layout/Main.vue.d.ts.map +1 -0
- package/dist/types/components/layout/PageTitle.vue.d.ts +7 -0
- package/dist/types/components/layout/PageTitle.vue.d.ts.map +1 -0
- package/dist/types/components/message/Message.vue.d.ts +2 -2
- package/dist/types/components/navmenu/NavMenu.vue.d.ts +1 -1
- package/dist/types/components/navmenu/NavMenu.vue.d.ts.map +1 -1
- package/dist/types/components/tabnavigation/TabNavigation.vue.d.ts +3 -3
- package/dist/types/components/tooltip/Tooltip.vue.d.ts +1 -1
- package/dist/types/composables/useAlert.d.ts +20 -0
- package/dist/types/composables/useAlert.d.ts.map +1 -0
- package/dist/types/composables/useAppInject.d.ts +3 -0
- package/dist/types/composables/useAppInject.d.ts.map +1 -0
- package/dist/types/{services/authService.d.ts → composables/useAuth.d.ts} +1 -1
- package/dist/types/composables/useAuth.d.ts.map +1 -0
- package/dist/types/composables/useConfirm.d.ts +18 -0
- package/dist/types/composables/useConfirm.d.ts.map +1 -0
- package/dist/types/index.d.ts +17 -14
- package/dist/types/index.d.ts.map +1 -1
- package/dist/types/plugin/configSF.d.ts +6 -0
- package/dist/types/plugin/configSF.d.ts.map +1 -0
- package/dist/types/primevue/preset.d.ts +12 -0
- package/dist/types/primevue/preset.d.ts.map +1 -0
- package/dist/types/symbols/appInject.d.ts +50 -0
- package/dist/types/symbols/appInject.d.ts.map +1 -0
- package/package.json +7 -4
- package/src/primevue/pt-br.json +185 -0
- package/dist/types/components/layout/Layout.vue.d.ts +0 -20
- package/dist/types/components/layout/Layout.vue.d.ts.map +0 -1
- package/dist/types/services/authService.d.ts.map +0 -1
- package/dist/types/services/dialogService.d.ts +0 -30
- package/dist/types/services/dialogService.d.ts.map +0 -1
- package/dist/types/services/navMenuService.d.ts +0 -10
- package/dist/types/services/navMenuService.d.ts.map +0 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
(function(U,s){typeof exports=="object"&&typeof module<"u"?s(exports,require("vue")):typeof define=="function"&&define.amd?define(["exports","vue"],s):(U=typeof globalThis<"u"?globalThis:U||self,s((U.sf=U.sf||{},U.sf.prefeiturasp=U.sf.prefeiturasp||{},U.sf.prefeiturasp.vuecomponents={}),U.Vue))})(this,function(U,s){"use strict";var cf=Object.defineProperty;var uf=(U,s,pt)=>s in U?cf(U,s,{enumerable:!0,configurable:!0,writable:!0,value:pt}):U[s]=pt;var Re=(U,s,pt)=>uf(U,typeof s!="symbol"?s+"":s,pt);class pt{constructor(){Re(this,"_visible",s.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 zi=new pt,Bn=()=>zi,ln=(t,e)=>{const n=t.__vccOpts||t;for(const[o,r]of e)n[o]=r;return n},Wi={},Gi={xmlns:"http://www.w3.org/2000/svg",height:"48",viewBox:"0 -960 960 960",width:"48",class:"sf-svg-icon"};function qi(t,e){return s.openBlock(),s.createElementBlock("svg",Gi,e[0]||(e[0]=[s.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)]))}const Yi=ln(Wi,[["render",qi]]);class Xi{get storedTheme(){return localStorage.getItem("color-scheme")}get IsDark(){return document.documentElement.classList.contains("dark")}Toggle(){this.IsDark?this.EnableLightMode():this.EnableDarkMode()}EnableDarkMode(){document.documentElement.classList.add("dark"),document.documentElement.classList.remove("light"),localStorage.setItem("color-scheme","dark")}EnableLightMode(){document.documentElement.classList.remove("dark"),document.documentElement.classList.add("light"),localStorage.setItem("color-scheme","light")}SetInitialTheme(){if(this.storedTheme==="light")return this.EnableLightMode();if(this.storedTheme==="dark")return this.EnableDarkMode();if(window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches)return this.EnableDarkMode();this.EnableLightMode()}ClearStoredTheme(){localStorage.removeItem("color-scheme")}}const st=new Xi,Zi=s.defineComponent({__name:"ThemeToggle",setup(t){return(e,n)=>(s.openBlock(),s.createElementBlock("button",{id:"sf-theme-toggle",onClick:n[0]||(n[0]=(...o)=>s.unref(st).Toggle&&s.unref(st).Toggle(...o))},n[1]||(n[1]=[s.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)])))}});function Ao(t=[]){let e="body > *:not(script):not(style)";for(const o of t)e+=`, ${o}`;const n=Math.max(...Array.from(document.querySelectorAll(e)).map(o=>{const r=getComputedStyle(o).zIndex;return+r==+r?+r:0}));return n>=100?n:100}const Nn=s.defineComponent({__name:"Tooltip",props:{text:{}},setup(t){const e=t;class n{constructor(){Re(this,"wrapper",null);Re(this,"inner",null)}Render(){this.wrapper=document.createElement("div"),this.wrapper.classList.add("sf-tooltip-wrapper"),this.wrapper.style.zIndex=`${Ao()??1}`,this.inner=document.createElement("div"),this.inner.classList.add("sf-tooltip-inner"),this.wrapper.appendChild(this.inner)}Show(i){this.Render(),this.inner.textContent=e.text,document.body.appendChild(this.wrapper),this.wrapper.classList.add("visible"),this.Position(i)}Hide(){const i=this.wrapper,c=this.inner;!i||!c||(i.classList.remove("visible"),document.body.removeChild(i),this.wrapper=null,this.inner=null)}Position(i){const a=i.currentTarget.getBoundingClientRect();this.FixWidth();const l=this.wrapper;if(!l)return;const d=5;l.style.top=`${a.top+a.height-d}px`,l.style.left=`${a.left+a.width-d}px`,this.OutOfBottom()&&(l.style.top=`${a.top-l.clientHeight+d}px`),this.OutOfRight()&&(l.style.left=`${a.left-l.clientWidth+d}px`)}FixWidth(){const i=this.wrapper;if(!i)return;i.style.width="fit-content",i.style.wordBreak="normal",i.style.whiteSpace="nowrap";const c=window.innerWidth/2;i.clientWidth>c&&(i.style.width=`${c}px`,i.style.wordBreak="break-word",i.style.whiteSpace="normal")}OutOfBottom(){const i=this.wrapper;if(!i)return!1;const c=i.getBoundingClientRect(),a=window.innerHeight||document.documentElement.clientHeight;return c.bottom+10>a}OutOfRight(){const i=this.wrapper;if(!i)return!1;const c=i.getBoundingClientRect(),a=window.innerWidth||document.documentElement.clientWidth;return c.right+10>a}}const o=new n;return s.onBeforeUnmount(()=>{o.Hide()}),(r,i)=>(s.openBlock(),s.createElementBlock("div",{class:"sf-tooltip-anchor",onMouseenter:i[0]||(i[0]=(...c)=>s.unref(o).Show&&s.unref(o).Show(...c)),onMouseleave:i[1]||(i[1]=(...c)=>s.unref(o).Hide&&s.unref(o).Hide(...c)),onMousedown:i[2]||(i[2]=(...c)=>s.unref(o).Hide&&s.unref(o).Hide(...c))},[s.renderSlot(r.$slots,"default")],32))}}),Ji={id:"sf-layout"},Qi={class:"title"},es={class:"sf-layout-nav-content"},ts={id:"sf-layout-content"},ns=s.defineComponent({__name:"Layout",emits:["mounted","logout"],setup(t,{emit:e}){const n=Bn(),o=e;return s.onMounted(()=>{o("mounted")}),(r,i)=>(s.openBlock(),s.createElementBlock("div",Ji,[s.createElementVNode("header",null,[s.createElementVNode("div",{class:s.normalizeClass(["sf-layout-menu-toggler",{invert:s.unref(n).IsVisible}]),onClick:i[0]||(i[0]=c=>s.unref(n).Toggle())},[i[1]||(i[1]=s.createElementVNode("div",{class:"sf-layout-menu-toggler-logo"},null,-1)),s.createVNode(Yi)],2),s.createElementVNode("div",Qi,[s.renderSlot(r.$slots,"title")]),s.renderSlot(r.$slots,"action"),s.createVNode(Nn,{text:"Tema"},{default:s.withCtx(()=>[s.createVNode(Zi)]),_:1})]),s.createElementVNode("nav",{class:s.normalizeClass({visible:s.unref(n).IsVisible})},[s.createElementVNode("div",es,[s.renderSlot(r.$slots,"menu")]),i[2]||(i[2]=s.createElementVNode("div",{class:"sf-layout-nav-footer"},[s.createElementVNode("div",{class:"sf-layout-nav-footer-logo"})],-1))],2),s.createElementVNode("main",{class:s.normalizeClass({"menu-visible":s.unref(n).IsVisible})},[i[3]||(i[3]=s.createElementVNode("section",{id:"sf-layout-page-title"},null,-1)),s.createElementVNode("section",ts,[s.renderSlot(r.$slots,"content")])],2)]))}}),os={},rs={class:"sf-loading-circle"};function is(t,e){return s.openBlock(),s.createElementBlock("div",rs,e[0]||(e[0]=[s.createElementVNode("div",null,[s.createElementVNode("svg",{viewBox:"25 25 50 50"},[s.createElementVNode("circle",{cx:"50",cy:"50",r:"20",fill:"none","stroke-width":"4","stroke-miterlimit":"10"})])],-1)]))}const ss=ln(os,[["render",is]]);class ze{constructor(e){Re(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()}}const as=["disabled","tabindex"],ls=["data-color"],cn=ln(s.defineComponent({__name:"Icon",props:{icon:{},visible:{type:Boolean,default:!0},class:{default:""},style:{type:[Boolean,null,String,Object,Array],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=s.computed(()=>e.tooltip?Nn:"div"),o=s.computed(()=>new ze(e.tooltip?"":"display-content").AddClass("sf-component-loading",e.loading).AddClass("sf-component-disabled",e.disabled).Build()),r=s.computed(()=>new ze(`${e.class} sf-icon`).AddClass("sf-component-loading",e.loading).AddClass("sf-component-disabled",e.disabled).AddClass("sf-icon-button",e.button).AddClass("sf-icon-small",e.size==="sm").AddClass("sf-icon-medium",e.size==="md").AddClass("sf-icon-large",e.size==="lg").AddClass("sf-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(i,c)=>(s.openBlock(),s.createBlock(s.resolveDynamicComponent(n.value),{text:e.tooltip,class:s.normalizeClass(o.value)},{default:s.withCtx(()=>[e.visible?(s.openBlock(),s.createElementBlock("div",{key:0,style:s.normalizeStyle(e.style),class:s.normalizeClass(r.value)},[s.createElementVNode("button",s.mergeProps({class:["material-symbols-outlined",{"icon-filled":!!e.filled}],disabled:e.disabled||e.loading},e.buttonProps,{tabindex:e.button?void 0:-1}),[e.loading?(s.openBlock(),s.createBlock(ss,{key:0})):(s.openBlock(),s.createElementBlock(s.Fragment,{key:1},[s.createTextVNode(s.toDisplayString(e.icon),1)],64))],16,as),e.dot?(s.openBlock(),s.createElementBlock("span",{key:0,"data-color":e.dotColor},null,8,ls)):s.createCommentVNode("",!0)],6)):s.createCommentVNode("",!0)]),_:1},8,["text","class"]))}}),[["__scopeId","data-v-545d34b6"]]),cs=s.defineComponent({__name:"ScrollToTop",setup(t){const e=s.ref(!1),n=`--${+new Date}`;let o=null;function r(){o==null||o.scrollTo(0,0)}return s.onMounted(()=>{var i;o=((i=document.getElementById(n))==null?void 0:i.parentElement)??null,o&&o.addEventListener("scroll",function(){e.value=this.scrollTop-this.clientHeight>0})}),(i,c)=>(s.openBlock(),s.createElementBlock("button",{id:n,class:s.normalizeClass(["sf-scrollToTop",{"sf-scrollToTop-visible":e.value}]),onClick:r},null,2))}}),us=s.defineComponent({__name:"Content",props:{class:{},style:{type:[Boolean,null,String,Object,Array]},disableBodyPadding:{type:Boolean},disableHeaderPadding:{type:Boolean},disableFooterPadding:{type:Boolean}},setup(t){const e=t;function n(){return new ze("sf-content").AddClass(e.class,!!e.class).Build()}function o(){return new ze("sf-content-body").AddClass("sf-content-no-padding",e.disableBodyPadding).Build()}function r(){return new ze("sf-content-header").AddClass("sf-content-no-padding",e.disableHeaderPadding).Build()}function i(){return new ze("sf-content-footer").AddClass("sf-content-no-padding",e.disableFooterPadding).Build()}return(c,a)=>(s.openBlock(),s.createElementBlock("div",{class:s.normalizeClass(n()),style:s.normalizeStyle(e.style)},[s.createElementVNode("div",{class:s.normalizeClass(r())},[s.renderSlot(c.$slots,"header")],2),s.createElementVNode("div",{class:s.normalizeClass(o())},[s.renderSlot(c.$slots,"default"),s.createVNode(cs)],2),s.createElementVNode("div",{class:s.normalizeClass(i())},[s.renderSlot(c.$slots,"footer")],2)],6))}}),ds={class:"sf-tab-navigation"},fs=["data-active"],ms=["href","onClick"],ps=s.defineComponent({__name:"TabNavigation",props:{tabs:{}},setup(t){const e=t,n=s.ref(null),o=new ResizeObserver(l=>{a()}),r=s.ref(!1),i=s.ref(!1);function c(l=!1){const d=n.value.clientWidth;n.value.scrollLeft+=l?-d:d}function a(){const l=n.value.scrollWidth-n.value.clientWidth;r.value=n.value.scrollLeft>10,i.value=n.value.scrollLeft<l-10}return s.onMounted(()=>{n.value.addEventListener("scroll",a),o.observe(n.value)}),s.onBeforeUnmount(()=>{var l;try{(l=n.value)==null||l.removeEventListener("scroll",a),o.unobserve(n.value),o.disconnect()}catch{}}),(l,d)=>{const m=s.resolveComponent("RouterLink");return s.openBlock(),s.createElementBlock("div",ds,[s.createElementVNode("div",{class:s.normalizeClass(["left-arrow",{active:r.value}]),onClick:d[0]||(d[0]=h=>c(!0))},d[2]||(d[2]=[s.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"},[s.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M15.75 19.5L8.25 12l7.5-7.5"})],-1)]),2),s.createElementVNode("ul",{ref_key:"trackerContainer",ref:n},[(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(e.tabs,h=>(s.openBlock(),s.createBlock(m,{to:h.route,custom:!0},{default:s.withCtx(({navigate:v,isActive:I})=>[s.createElementVNode("li",{"data-active":I},[s.renderSlot(l.$slots,"item",{item:h,navigate:v,isActive:I},()=>[s.createElementVNode("a",{href:h.route,class:s.normalizeClass({active:I}),onClick:v},s.toDisplayString(h.text),11,ms)])],8,fs)]),_:2},1032,["to"]))),256))],512),s.createElementVNode("div",{class:s.normalizeClass(["right-arrow",{active:i.value}]),onClick:d[1]||(d[1]=h=>c())},d[3]||(d[3]=[s.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"},[s.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M8.25 4.5l7.5 7.5-7.5 7.5"})],-1)]),2)])}}}),hs=["id","name","disabled","data-color","form","type"],gs={class:"sf-button-label"},ys=s.defineComponent({__name:"Button",props:{icon:{},visible:{type:Boolean,default:!0},class:{},style:{type:[Boolean,null,String,Object,Array]},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 ze(`${e.class??""} sf-button`).AddClass("sf-component-loading",e.loading).AddClass("sf-component-disabled",e.disabled).AddClass("sf-button-small",e.size==="sm").AddClass("sf-button-medium",e.size==="md").AddClass("sf-button-large",e.size==="lg").AddClass("sf-button-filled",e.variant==="filled").AddClass("sf-button-text",e.variant==="text").AddClass("sf-button-outlined",e.variant==="outlined").AddClass("sf-button-with-icon",!!e.icon).AddClass("sf-ripple").Build()}return(o,r)=>e.visible?(s.openBlock(),s.createElementBlock("button",{key:0,id:e.id,name:e.name,class:s.normalizeClass(n()),style:s.normalizeStyle(e.style),disabled:e.disabled||e.loading,"data-color":e.color,form:e.form,type:e.type},[e.icon?(s.openBlock(),s.createBlock(cn,{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?(s.openBlock(),s.createBlock(cn,{key:1,loading:!0,size:e.size,"button-props":{tabindex:-1}},null,8,["size"])):s.createCommentVNode("",!0),s.createElementVNode("span",gs,[s.renderSlot(o.$slots,"default")])],14,hs)):s.createCommentVNode("",!0)}}),bs={class:"sf-drawer-title"},vs={class:"sf-drawer-action"},ws=s.defineComponent({__name:"Drawer",props:{visible:{type:Boolean,default:!1},position:{default:"left"},style:{type:[Boolean,null,String,Object,Array]},dismissableMask:{type:Boolean,default:!0},title:{},unstyledHeader:{type:Boolean},unstyledContent:{type:Boolean},unstyledFooter:{type:Boolean}},emits:["update:visible","open","before-close"],setup(t,{emit:e}){const n=t,o=e,r=s.useSlots(),i=s.ref(n.visible),c=s.ref(!1),a=s.ref(0),l="sf-drawer-"+Math.random().toString(36).slice(2,11)+"-"+Date.now();function d(){i.value=!1}function m(L){if(!n.dismissableMask)return;const k=L.target;k&&k.id===l&&(i.value=!1)}function h(L){(L.key==="Escape"||L.code==="Escape")&&d()}function v(){o("open"),window.document.addEventListener("keydown",h,!0)}function I(L){a.value=Ao(),L.style.zIndex=`${a.value}`}function T(L){var k;o("before-close"),(k=L==null?void 0:L.parentElement)==null||k.classList.add("sf-mask-overlay-leave")}function $(){window.document.removeEventListener("keydown",h,!0),c.value=!1}function B(){return new ze("sf-mask sf-mask-overlay").AddClass("right",n.position==="right").AddClass("bottom",n.position==="bottom").AddClass("center",n.position==="center").AddClass("full",n.position==="full").AddClass("sf-mask-overlay-enter",n.visible===!0).Build()}return s.watch(()=>n.visible,L=>{i.value=L}),s.watch(()=>i.value,L=>{o("update:visible",L),L&&(c.value=!0)}),(L,k)=>(s.openBlock(),s.createBlock(s.Teleport,{to:"body"},[c.value?(s.openBlock(),s.createElementBlock("div",{key:0,id:l,class:s.normalizeClass(B()),style:s.normalizeStyle({zIndex:a.value-1}),onClick:s.withModifiers(m,["stop"])},[s.createVNode(s.Transition,{name:"sf-drawer",appear:"",onBeforeEnter:I,onEnter:v,onBeforeLeave:T,onAfterLeave:$},{default:s.withCtx(()=>[i.value?(s.openBlock(),s.createElementBlock("div",{key:0,class:s.normalizeClass(["sf-drawer"]),style:s.normalizeStyle(n.style),role:"dialog"},[s.renderSlot(L.$slots,"header",s.normalizeProps(s.guardReactiveProps({Close:d})),()=>[s.createElementVNode("div",{class:s.normalizeClass(["sf-drawer-header",{unstyled:n.unstyledHeader}])},[s.renderSlot(L.$slots,"title",{},()=>[s.createElementVNode("div",bs,s.toDisplayString(n.title),1)]),k[0]||(k[0]=s.createElementVNode("div",{class:"sf-drawer-spacer"},null,-1)),s.renderSlot(L.$slots,"action",s.normalizeProps(s.guardReactiveProps({Close:d})),()=>[s.createElementVNode("div",vs,[s.createVNode(cn,{button:!0,icon:"close",onClick:d})])])],2)]),s.createElementVNode("div",{class:s.normalizeClass(["sf-drawer-content",{unstyled:n.unstyledContent}])},[s.renderSlot(L.$slots,"default")],2),s.unref(r).footer?(s.openBlock(),s.createElementBlock("div",{key:0,class:s.normalizeClass(["sf-drawer-footer",{unstyled:n.unstyledFooter}])},[s.renderSlot(L.$slots,"footer",s.normalizeProps(s.guardReactiveProps({Close:d})))],2)):s.createCommentVNode("",!0)],4)):s.createCommentVNode("",!0)]),_:3})],6)):s.createCommentVNode("",!0)]))}}),ks=["data-icon"],_s=s.defineComponent({__name:"Message",props:{color:{default:"info"},class:{},style:{type:[Boolean,null,String,Object,Array]},icon:{}},setup(t){const e=t,n=s.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}}),o=s.computed(()=>new ze("sf-message").AddClass("sf-message-error",e.color==="error").AddClass("sf-message-info",e.color==="info").AddClass("sf-message-warning",e.color==="warn").AddClass("sf-message-success",e.color==="success").AddClass("sf-message-help",e.color==="help").AddClass("sf-message-primary",e.color==="primary").AddClass("sf-message-secondary",e.color==="secondary").AddClass(e.class).Build());return(r,i)=>(s.openBlock(),s.createElementBlock("div",{class:s.normalizeClass(o.value),"data-icon":n.value},[s.renderSlot(r.$slots,"default")],10,ks))}});function Ss(t,e){return t?t.classList?t.classList.contains(e):new RegExp("(^| )"+e+"( |$)","gi").test(t.className):!1}function Cs(t,e){if(t&&e){const n=o=>{Ss(t,o)||(t.classList?t.classList.add(o):t.className+=" "+o)};[e].flat().filter(Boolean).forEach(o=>o.split(" ").forEach(n))}}function Mn(t,e){if(t&&e){const n=o=>{t.classList?t.classList.remove(o):t.className=t.className.replace(new RegExp("(^|\\b)"+o.split(" ").join("|")+"(\\b|$)","gi")," ")};[e].flat().filter(Boolean).forEach(o=>o.split(" ").forEach(n))}}function Is(t,e){return t instanceof HTMLElement?t.offsetWidth:0}function un(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(un(t)){const n=(o,r)=>{var i,c;const a=(i=t==null?void 0:t.$attrs)!=null&&i[o]?[(c=t==null?void 0:t.$attrs)==null?void 0:c[o]]:[];return[r].flat().reduce((l,d)=>{if(d!=null){const m=typeof d;if(m==="string"||m==="number")l.push(d);else if(m==="object"){const h=Array.isArray(d)?n(o,d):Object.entries(d).map(([v,I])=>o==="style"&&(I||I===0)?`${v.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()}:${I}`:I?v:void 0);l=h.length?l.concat(h.filter(v=>!!v)):l}}return l},a)};Object.entries(e).forEach(([o,r])=>{if(r!=null){const i=o.match(/^on(.+)/);i?t.addEventListener(i[1].toLowerCase(),r):o==="p-bind"?dn(t,r):(r=o==="class"?[...new Set(n("class",r))].join(" ").trim():o==="style"?n("style",r).join(";").trim():r,(t.$attrs=t.$attrs||{})&&(t.$attrs[o]=r),t.setAttribute(o,r))}})}}function Ts(t,e={},...n){{const o=document.createElement(t);return dn(o,e),o.append(...n),o}}function Oe(t,e){return un(t)?t.matches(e)?t:t.querySelector(e):null}function Pt(t,e){t&&document.activeElement!==t&&t.focus(e)}function At(t,e){if(un(t)){const n=t.getAttribute(e);return isNaN(n)?n==="true"||n==="false"?n==="true":n:+n}}function xo(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 Es(t){if(t){let e=t.parentNode;return e&&e instanceof ShadowRoot&&e.host&&(e=e.host),e}return null}function Ps(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 As(t,e){return t?t.offsetHeight:0}function xs(t){return!!(t!==null&&typeof t<"u"&&t.nodeName&&Es(t))}function Oo(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 Os(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}function Ls(t,e="",n){un(t)&&n!==null&&n!==void 0&&t.setAttribute(e,n)}function Lo(){const t=new Map;return{on(e,n){let o=t.get(e);return o?o.push(n):o=[n],t.set(e,o),this},off(e,n){let o=t.get(e);return o&&o.splice(o.indexOf(n)>>>0,1),this},emit(e,n){let o=t.get(e);o&&o.slice().map(r=>{r(n)})},clear(){t.clear()}}}function at(t){return t==null||t===""||Array.isArray(t)&&t.length===0||!(t instanceof Date)&&typeof t=="object"&&Object.keys(t).length===0}function Dn(t,e){if(t===e)return!0;if(t&&e&&typeof t=="object"&&typeof e=="object"){var n=Array.isArray(t),o=Array.isArray(e),r,i,c;if(n&&o){if(i=t.length,i!=e.length)return!1;for(r=i;r--!==0;)if(!Dn(t[r],e[r]))return!1;return!0}if(n!=o)return!1;var a=t instanceof Date,l=e instanceof Date;if(a!=l)return!1;if(a&&l)return t.getTime()==e.getTime();var d=t instanceof RegExp,m=e instanceof RegExp;if(d!=m)return!1;if(d&&m)return t.toString()==e.toString();var h=Object.keys(t);if(i=h.length,i!==Object.keys(e).length)return!1;for(r=i;r--!==0;)if(!Object.prototype.hasOwnProperty.call(e,h[r]))return!1;for(r=i;r--!==0;)if(c=h[r],!Dn(t[c],e[c]))return!1;return!0}return t!==t&&e!==e}function Rn(t){return!!(t&&t.constructor&&t.call&&t.apply)}function G(t){return!at(t)}function ht(t,e,n){return Dn(t,e)}function $o(t,e){let n;if(G(t))try{n=t.findLast(e)}catch{n=[...t].reverse().find(e)}return n}function Qe(t,e=!0){return t instanceof Object&&t.constructor===Object&&(e||Object.keys(t).length!==0)}function ke(t,...e){return Rn(t)?t(...e):t}function pe(t,e=!0){return typeof t=="string"&&(e||t!=="")}function Le(t){return pe(t)?t.replace(/(-|_)/g,"").toLowerCase():t}function Un(t,e="",n={}){const o=Le(e).split("."),r=o.shift();return r?Qe(t)?Un(ke(t[Object.keys(t).find(i=>Le(i)===r)||""],n),o.join("."),n):void 0:ke(t,n)}function Vn(t,e=!0){return Array.isArray(t)&&(e||t.length!==0)}function Bo(t){return G(t)&&!isNaN(t)}function $s(t=""){return G(t)&&t.length===1&&!!t.match(/\S| /)}function We(t,e){if(e){const n=e.test(t);return e.lastIndex=0,n}return!1}function xt(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 Bs(t){return pe(t,!1)?t[0].toUpperCase()+t.slice(1):t}function No(t){return pe(t)?t.replace(/(_)/g,"-").replace(/[A-Z]/g,(e,n)=>n===0?e:"-"+e.toLowerCase()).toLowerCase():t}function Mo(t){return pe(t)?t.replace(/[A-Z]/g,(e,n)=>n===0?e:"."+e.toLowerCase()).toLowerCase():t}var fn={};function Ns(t="pui_id_"){return fn.hasOwnProperty(t)||(fn[t]=0),fn[t]++,`${t}${fn[t]}`}function mn(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"pv_id_";return Ns(t)}var Ms=Object.defineProperty,Ds=Object.defineProperties,Rs=Object.getOwnPropertyDescriptors,pn=Object.getOwnPropertySymbols,Do=Object.prototype.hasOwnProperty,Ro=Object.prototype.propertyIsEnumerable,Uo=(t,e,n)=>e in t?Ms(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,Ot=(t,e)=>{for(var n in e||(e={}))Do.call(e,n)&&Uo(t,n,e[n]);if(pn)for(var n of pn(e))Ro.call(e,n)&&Uo(t,n,e[n]);return t},Hn=(t,e)=>Ds(t,Rs(e)),Lt=(t,e)=>{var n={};for(var o in t)Do.call(t,o)&&e.indexOf(o)<0&&(n[o]=t[o]);if(t!=null&&pn)for(var o of pn(t))e.indexOf(o)<0&&Ro.call(t,o)&&(n[o]=t[o]);return n},Us=Lo(),Ge=Us;function Vo(t,e){Vn(t)?t.push(...e||[]):Qe(t)&&Object.assign(t,e)}function Vs(t){return Qe(t)&&t.hasOwnProperty("value")&&t.hasOwnProperty("type")?t.value:t}function Ho(t,e=""){return["opacity","z-index","line-height","font-weight","flex","flex-grow","flex-shrink","order"].some(o=>e.endsWith(o))?t:`${t}`.trim().split(" ").map(i=>Bo(i)?`${i}px`:i).join(" ")}function Hs(t){return t.replaceAll(/ /g,"").replace(/[^\w]/g,"-")}function jn(t="",e=""){return Hs(`${pe(t,!1)&&pe(e,!1)?`${t}-`:t}${e}`)}function jo(t="",e=""){return`--${jn(t,e)}`}function Fo(t,e="",n="",o=[],r){if(pe(t)){const i=/{([^}]*)}/g,c=t.trim();if(We(c,i)){const a=c.replaceAll(i,m=>{const v=m.replace(/{|}/g,"").split(".").filter(I=>!o.some(T=>We(I,T)));return`var(${jo(n,No(v.join("-")))}${G(r)?`, ${r}`:""})`}),l=/(\d+\s+[\+\-\*\/]\s+\d+)/g,d=/var\([^)]+\)/g;return We(a.replace(d,"0"),l)?`calc(${a})`:a}return Ho(c,e)}else if(Bo(t))return Ho(t,e)}function js(t,e,n){pe(e,!1)&&t.push(`${e}:${n};`)}function $t(t,e){return t?`${t}{${e}}`:""}var Fn=(...t)=>Fs(Z.getTheme(),...t),Fs=(t={},e,n,o="variable")=>{if(e){const{variable:r,options:i}=Z.defaults||{},{prefix:c,transform:a}=(t==null?void 0:t.options)||i||{},d=We(e,/{([^}]*)}/g)?e:`{${e}}`;return o==="value"||a==="strict"?Z.getTokenValue(e):Fo(d,void 0,c,[r.excludedKeyRegex],n)}return""};function Ks(t,e={}){const n=Z.defaults.variable,{prefix:o=n.prefix,selector:r=n.selector,excludedKeyRegex:i=n.excludedKeyRegex}=e,c=(d,m="")=>Object.entries(d).reduce((h,[v,I])=>{const T=We(v,i)?jn(m):jn(m,No(v)),$=Vs(I);if(Qe($)){const{variables:B,tokens:L}=c($,T);Vo(h.tokens,L),Vo(h.variables,B)}else h.tokens.push((o?T.replace(`${o}-`,""):T).replaceAll("-",".")),js(h.variables,jo(T),Fo($,T,o,[i]));return h},{variables:[],tokens:[]}),{variables:a,tokens:l}=c(t,o);return{value:a,tokens:l,declarations:a.join(""),css:$t(r,a.join(""))}}var $e={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 o;return(o=e.map(r=>r.resolve(n)).find(r=>r.matched))!=null?o:this.rules.custom.resolve(n)})}},_toVariables(t,e){return Ks(t,{prefix:e==null?void 0:e.prefix})},getCommon({name:t="",theme:e={},params:n,set:o,defaults:r}){var i,c,a,l;const{preset:d,options:m}=e;let h,v,I,T;if(G(d)){const{primitive:$,semantic:B}=d,L=B||{},{colorScheme:k}=L,N=Lt(L,["colorScheme"]),F=k||{},{dark:J}=F,ye=Lt(F,["dark"]),ee=G($)?this._toVariables({primitive:$},m):{},Me=G(N)?this._toVariables({semantic:N},m):{},Ie=G(ye)?this._toVariables({light:ye},m):{},Y=G(J)?this._toVariables({dark:J},m):{},[Q,be]=[(i=ee.declarations)!=null?i:"",ee.tokens],[De,Te]=[(c=Me.declarations)!=null?c:"",Me.tokens||[]],[it,Ye]=[(a=Ie.declarations)!=null?a:"",Ie.tokens||[]],[He,je]=[(l=Y.declarations)!=null?l:"",Y.tokens||[]];h=this.transformCSS(t,Q,"light","variable",m,o,r),v=be;const mt=this.transformCSS(t,`${De}${it}color-scheme:light`,"light","variable",m,o,r),xe=this.transformCSS(t,`${He}color-scheme:dark`,"dark","variable",m,o,r);I=`${mt}${xe}`,T=[...new Set([...Te,...Ye,...je])]}return{primitive:{css:h,tokens:v},semantic:{css:I,tokens:T}}},getPreset({name:t="",preset:e={},options:n,params:o,set:r,defaults:i,selector:c}){var a,l,d;const m=t.replace("-directive",""),h=e,{colorScheme:v}=h,I=Lt(h,["colorScheme"]),T=v||{},{dark:$}=T,B=Lt(T,["dark"]),L=G(I)?this._toVariables({[m]:I},n):{},k=G(B)?this._toVariables({[m]:B},n):{},N=G($)?this._toVariables({[m]:$},n):{},[F,J]=[(a=L.declarations)!=null?a:"",L.tokens||[]],[ye,ee]=[(l=k.declarations)!=null?l:"",k.tokens||[]],[Me,Ie]=[(d=N.declarations)!=null?d:"",N.tokens||[]],Y=[...new Set([...J,...ee,...Ie])],Q=this.transformCSS(m,`${F}${ye}`,"light","variable",n,r,i,c),be=this.transformCSS(m,Me,"dark","variable",n,r,i,c);return{css:`${Q}${be}`,tokens:Y}},getPresetC({name:t="",theme:e={},params:n,set:o,defaults:r}){var i;const{preset:c,options:a}=e,l=(i=c==null?void 0:c.components)==null?void 0:i[t];return this.getPreset({name:t,preset:l,options:a,params:n,set:o,defaults:r})},getPresetD({name:t="",theme:e={},params:n,set:o,defaults:r}){var i;const c=t.replace("-directive",""),{preset:a,options:l}=e,d=(i=a==null?void 0:a.directives)==null?void 0:i[c];return this.getPreset({name:c,preset:d,options:l,params:n,set:o,defaults:r})},getColorSchemeOption(t,e){var n;return this.regex.resolve((n=t.darkModeSelector)!=null?n:e.options.darkModeSelector)},getLayerOrder(t,e={},n,o){const{cssLayer:r}=e;return r?`@layer ${ke(r.order||"primeui",n)}`:""},getCommonStyleSheet({name:t="",theme:e={},params:n,props:o={},set:r,defaults:i}){const c=this.getCommon({name:t,theme:e,params:n,set:r,defaults:i}),a=Object.entries(o).reduce((l,[d,m])=>l.push(`${d}="${m}"`)&&l,[]).join(" ");return Object.entries(c||{}).reduce((l,[d,m])=>{if(m!=null&&m.css){const h=xt(m==null?void 0:m.css),v=`${d}-variables`;l.push(`<style type="text/css" data-primevue-style-id="${v}" ${a}>${h}</style>`)}return l},[]).join("")},getStyleSheet({name:t="",theme:e={},params:n,props:o={},set:r,defaults:i}){var c;const a={name:t,theme:e,params:n,set:r,defaults:i},l=(c=t.includes("-directive")?this.getPresetD(a):this.getPresetC(a))==null?void 0:c.css,d=Object.entries(o).reduce((m,[h,v])=>m.push(`${h}="${v}"`)&&m,[]).join(" ");return l?`<style type="text/css" data-primevue-style-id="${t}-variables" ${d}>${xt(l)}</style>`:""},createTokens(t={},e,n="",o="",r={}){return Object.entries(t).forEach(([i,c])=>{const a=We(i,e.variable.excludedKeyRegex)?n:n?`${n}.${Mo(i)}`:Mo(i),l=o?`${o}.${i}`:i;Qe(c)?this.createTokens(c,e,a,l,r):(r[a]||(r[a]={paths:[],computed(d,m={}){if(d){const h=this.paths.find(v=>v.scheme===d)||this.paths.find(v=>v.scheme==="none");return h==null?void 0:h.computed(d,m.binding)}return this.paths.map(h=>h.computed(h.scheme,m[h.scheme]))}}),r[a].paths.push({path:l,value:c,scheme:l.includes("colorScheme.light")?"light":l.includes("colorScheme.dark")?"dark":"none",computed(d,m={}){const h=/{([^}]*)}/g;let v=c;if(m.name=this.path,m.binding||(m.binding={}),We(c,h)){const T=c.trim().replaceAll(h,L=>{var k,N;const F=L.replace(/{|}/g,"");return(N=(k=r[F])==null?void 0:k.computed(d,m))==null?void 0:N.value}),$=/(\d+\w*\s+[\+\-\*\/]\s+\d+\w*)/g,B=/var\([^)]+\)/g;v=We(T.replace(B,"0"),$)?`calc(${T})`:T}return at(m.binding)&&delete m.binding,{colorScheme:d,path:this.path,paths:m,value:v.includes("undefined")?void 0:v}}}))}),r},getTokenValue(t,e,n){var o;const i=(l=>l.split(".").filter(m=>!We(m.toLowerCase(),n.variable.excludedKeyRegex)).join("."))(e),c=e.includes("colorScheme.light")?"light":e.includes("colorScheme.dark")?"dark":void 0,a=[(o=t[i])==null?void 0:o.computed(c)].flat().filter(l=>l);return a.length===1?a[0].value:a.reduce((l={},d)=>{const m=d,{colorScheme:h}=m,v=Lt(m,["colorScheme"]);return l[h]=v,l},void 0)},transformCSS(t,e,n,o,r={},i,c,a){if(G(e)){const{cssLayer:l}=r;if(o!=="style"){const d=this.getColorSchemeOption(r,c),m=a?$t(a,e):e;e=n==="dark"?d.reduce((h,{selector:v})=>(G(v)&&(h+=v.includes("[CSS]")?v.replace("[CSS]",m):$t(v,m)),h),""):$t(a??":root",e)}if(l){const d={name:"primeui",order:"primeui"};Qe(l)&&(d.name=ke(l.name,{name:t,type:o})),G(d.name)&&(e=$t(`@layer ${d.name}`,e),i==null||i.layerNames(d.name))}return e}return""}},Z={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=Hn(Ot({},e),{options:Ot(Ot({},this.defaults.options),e.options)}),this._tokens=$e.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}),Ge.emit("theme:change",t)},getPreset(){return this.preset},setPreset(t){this._theme=Hn(Ot({},this.theme),{preset:t}),this._tokens=$e.createTokens(t,this.defaults),this.clearLoadedStyleNames(),Ge.emit("preset:change",t),Ge.emit("theme:change",this.theme)},getOptions(){return this.options},setOptions(t){this._theme=Hn(Ot({},this.theme),{options:t}),this.clearLoadedStyleNames(),Ge.emit("options:change",t),Ge.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 $e.getTokenValue(this.tokens,t,this.defaults)},getCommon(t="",e){return $e.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 $e.getPresetC(n)},getDirective(t="",e){const n={name:t,theme:this.theme,params:e,defaults:this.defaults,set:{layerNames:this.setLayerNames.bind(this)}};return $e.getPresetD(n)},getCustomPreset(t="",e,n,o){const r={name:t,preset:e,options:this.options,selector:n,params:o,defaults:this.defaults,set:{layerNames:this.setLayerNames.bind(this)}};return $e.getPreset(r)},getLayerOrderCSS(t=""){return $e.getLayerOrder(t,this.options,{names:this.getLayerNames()},this.defaults)},transformCSS(t="",e,n="style",o){return $e.transformCSS(t,e,o,n,this.options,{layerNames:this.setLayerNames.bind(this)},this.defaults)},getCommonStyleSheet(t="",e,n={}){return $e.getCommonStyleSheet({name:t,theme:this.theme,params:e,props:n,defaults:this.defaults,set:{layerNames:this.setLayerNames.bind(this)}})},getStyleSheet(t,e,n={}){return $e.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),Ge.emit(`theme:${e}:load`,t),!this._loadingStyles.size&&Ge.emit("theme:load"))}},et={_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 Bt(t){"@babel/helpers - typeof";return Bt=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Bt(t)}function Ko(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);e&&(o=o.filter(function(r){return Object.getOwnPropertyDescriptor(t,r).enumerable})),n.push.apply(n,o)}return n}function zo(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?Ko(Object(n),!0).forEach(function(o){zs(t,o,n[o])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Ko(Object(n)).forEach(function(o){Object.defineProperty(t,o,Object.getOwnPropertyDescriptor(n,o))})}return t}function zs(t,e,n){return(e=Ws(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function Ws(t){var e=Gs(t,"string");return Bt(e)=="symbol"?e:e+""}function Gs(t,e){if(Bt(t)!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var o=n.call(t,e||"default");if(Bt(o)!="object")return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function qs(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;s.getCurrentInstance()?s.onMounted(t):e?t():s.nextTick(t)}var Ys=0;function Xs(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=s.ref(!1),o=s.ref(t),r=s.ref(null),i=Os()?window.document:void 0,c=e.document,a=c===void 0?i:c,l=e.immediate,d=l===void 0?!0:l,m=e.manual,h=m===void 0?!1:m,v=e.name,I=v===void 0?"style_".concat(++Ys):v,T=e.id,$=T===void 0?void 0:T,B=e.media,L=B===void 0?void 0:B,k=e.nonce,N=k===void 0?void 0:k,F=e.first,J=F===void 0?!1:F,ye=e.onMounted,ee=ye===void 0?void 0:ye,Me=e.onUpdated,Ie=Me===void 0?void 0:Me,Y=e.onLoad,Q=Y===void 0?void 0:Y,be=e.props,De=be===void 0?{}:be,Te=function(){},it=function(je){var mt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(a){var xe=zo(zo({},De),mt),u=xe.name||I,p=xe.id||$,b=xe.nonce||N;r.value=a.querySelector('style[data-primevue-style-id="'.concat(u,'"]'))||a.getElementById(p)||a.createElement("style"),r.value.isConnected||(o.value=je||t,dn(r.value,{type:"text/css",id:p,media:L,nonce:b}),J?a.head.prepend(r.value):a.head.appendChild(r.value),Ls(r.value,"data-primevue-style-id",u),dn(r.value,xe),r.value.onload=function(C){return Q==null?void 0:Q(C,{name:u})},ee==null||ee(u)),!n.value&&(Te=s.watch(o,function(C){r.value.textContent=C,Ie==null||Ie(u)},{immediate:!0}),n.value=!0)}},Ye=function(){!a||!n.value||(Te(),xs(r.value)&&a.head.removeChild(r.value),n.value=!1)};return d&&!h&&qs(it),{id:$,name:I,el:r,css:o,unload:Ye,load:it,isLoaded:s.readonly(n)}}function Nt(t){"@babel/helpers - typeof";return Nt=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Nt(t)}function Wo(t,e){return ea(t)||Qs(t,e)||Js(t,e)||Zs()}function Zs(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
2
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function
|
|
1
|
+
(function(R,s){typeof exports=="object"&&typeof module<"u"?s(exports,require("vue"),require("vue-router")):typeof define=="function"&&define.amd?define(["exports","vue","vue-router"],s):(R=typeof globalThis<"u"?globalThis:R||self,s((R.sf=R.sf||{},R.sf.prefeiturasp=R.sf.prefeiturasp||{},R.sf.prefeiturasp.vuecomponents={}),R.Vue,R.VueRouter))})(this,function(R,s,ht){"use strict";var Af=Object.defineProperty;var Pf=(R,s,ht)=>s in R?Af(R,s,{enumerable:!0,configurable:!0,writable:!0,value:ht}):R[s]=ht;var Ke=(R,s,ht)=>Pf(R,typeof s!="symbol"?s+"":s,ht);const gt=(t,e)=>{const n=t.__vccOpts||t;for(const[r,o]of e)n[r]=o;return n},Qi={},es={class:"sf-loading-circle"};function ts(t,e){return s.openBlock(),s.createElementBlock("div",es,e[0]||(e[0]=[s.createElementVNode("div",null,[s.createElementVNode("svg",{viewBox:"25 25 50 50"},[s.createElementVNode("circle",{cx:"50",cy:"50",r:"20",fill:"none","stroke-width":"4","stroke-miterlimit":"10"})])],-1)]))}const xr=gt(Qi,[["render",ts]]);class We{constructor(e){Ke(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 Nn(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}const Or=s.defineComponent({__name:"Tooltip",props:{text:{}},setup(t){const e=t;class n{constructor(){Ke(this,"wrapper",null);Ke(this,"inner",null)}Render(){this.wrapper=document.createElement("div"),this.wrapper.classList.add("sf-tooltip-wrapper"),this.wrapper.style.zIndex=`${Nn()??1}`,this.inner=document.createElement("div"),this.inner.classList.add("sf-tooltip-inner"),this.wrapper.appendChild(this.inner)}Show(i){this.Render(),this.inner.textContent=e.text,document.body.appendChild(this.wrapper),this.wrapper.classList.add("visible"),this.Position(i)}Hide(){const i=this.wrapper,c=this.inner;!i||!c||(i.classList.remove("visible"),document.body.removeChild(i),this.wrapper=null,this.inner=null)}Position(i){const a=i.currentTarget.getBoundingClientRect();this.FixWidth();const l=this.wrapper;if(!l)return;const d=5;l.style.top=`${a.top+a.height-d}px`,l.style.left=`${a.left+a.width-d}px`,this.OutOfBottom()&&(l.style.top=`${a.top-l.clientHeight+d}px`),this.OutOfRight()&&(l.style.left=`${a.left-l.clientWidth+d}px`)}FixWidth(){const i=this.wrapper;if(!i)return;i.style.width="fit-content",i.style.wordBreak="normal",i.style.whiteSpace="nowrap";const c=window.innerWidth/2;i.clientWidth>c&&(i.style.width=`${c}px`,i.style.wordBreak="break-word",i.style.whiteSpace="normal")}OutOfBottom(){const i=this.wrapper;if(!i)return!1;const c=i.getBoundingClientRect(),a=window.innerHeight||document.documentElement.clientHeight;return c.bottom+10>a}OutOfRight(){const i=this.wrapper;if(!i)return!1;const c=i.getBoundingClientRect(),a=window.innerWidth||document.documentElement.clientWidth;return c.right+10>a}}const r=new n;return s.onBeforeUnmount(()=>{r.Hide()}),(o,i)=>(s.openBlock(),s.createElementBlock("div",{class:"sf-tooltip-anchor",onMouseenter:i[0]||(i[0]=(...c)=>s.unref(r).Show&&s.unref(r).Show(...c)),onMouseleave:i[1]||(i[1]=(...c)=>s.unref(r).Hide&&s.unref(r).Hide(...c)),onMousedown:i[2]||(i[2]=(...c)=>s.unref(r).Hide&&s.unref(r).Hide(...c))},[s.renderSlot(o.$slots,"default")],32))}}),ns=["disabled","data-p-loading","tabindex"],rs=["data-color"],Te=gt(s.defineComponent({__name:"Icon",props:{icon:{},visible:{type:Boolean,default:!0},class:{default:""},style:{type:[Boolean,null,String,Object,Array],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"}},emits:["click"],setup(t,{emit:e}){const n=t,r=s.computed(()=>n.tooltip?Or:"div"),o=s.computed(()=>new We(n.tooltip?"":"display-content").AddClass("loading",n.loading).AddClass("disabled",n.disabled).Build()),i=s.computed(()=>new We(`${n.class} sf-icon`).AddClass("sf-icon-button",n.button).AddClass("sf-icon-small",n.size==="sm").AddClass("sf-icon-medium",n.size==="md").AddClass("sf-icon-large",n.size==="lg").AddClass("sf-icon-xlarge",n.size==="xl").AddClass("sf-icon-2xlarge",n.size==="2xl").AddClass("sf-icon-3xlarge",n.size==="3xl").AddClass("sf-ripple",n.button===!0).AddClass(`${n.color}-color`,!!n.color&&n.color!=="inherit").Build()),c=l=>{n.disabled||n.loading||a("click",l)},a=e;return(l,d)=>(s.openBlock(),s.createBlock(s.resolveDynamicComponent(r.value),{text:n.tooltip,class:s.normalizeClass(o.value),onClick:c},{default:s.withCtx(()=>[n.visible?(s.openBlock(),s.createElementBlock("div",{key:0,style:s.normalizeStyle(n.style),class:s.normalizeClass(i.value)},[n.loading?(s.openBlock(),s.createBlock(xr,{key:0})):(s.openBlock(),s.createElementBlock(s.Fragment,{key:1},[s.createElementVNode("button",s.mergeProps({class:["material-symbols-outlined",{"icon-filled":!!n.filled}],disabled:n.disabled,"data-p-loading":n.loading},n.buttonProps,{tabindex:n.button?void 0:-1}),s.toDisplayString(n.icon),17,ns),n.dot?(s.openBlock(),s.createElementBlock("span",{key:0,"data-color":n.dotColor},null,8,rs)):s.createCommentVNode("",!0)],64))],6)):s.createCommentVNode("",!0)]),_:1},8,["text","class"]))}}),[["__scopeId","data-v-77b83510"]]),os=s.defineComponent({__name:"ScrollToTop",setup(t){const e=s.ref(!1),n=`--${+new Date}`;let r=null;function o(){r==null||r.scrollTo(0,0)}return s.onMounted(()=>{var i;r=((i=document.getElementById(n))==null?void 0:i.parentElement)??null,r&&r.addEventListener("scroll",function(){e.value=this.scrollTop-this.clientHeight>0})}),(i,c)=>(s.openBlock(),s.createElementBlock("button",{id:n,class:s.normalizeClass(["sf-scrollToTop",{"sf-scrollToTop-visible":e.value}]),onClick:o},null,2))}}),is=s.defineComponent({__name:"Content",props:{class:{},style:{type:[Boolean,null,String,Object,Array]},disableBodyPadding:{type:Boolean},disableHeaderPadding:{type:Boolean},disableFooterPadding:{type:Boolean}},setup(t){const e=t;function n(){return new We("sf-content").AddClass(e.class,!!e.class).Build()}function r(){return new We("sf-content-body").AddClass("sf-content-no-padding",e.disableBodyPadding).Build()}function o(){return new We("sf-content-header").AddClass("sf-content-no-padding",e.disableHeaderPadding).Build()}function i(){return new We("sf-content-footer").AddClass("sf-content-no-padding",e.disableFooterPadding).Build()}return(c,a)=>(s.openBlock(),s.createElementBlock("div",{class:s.normalizeClass(n()),style:s.normalizeStyle(e.style)},[s.createElementVNode("div",{class:s.normalizeClass(o())},[s.renderSlot(c.$slots,"header")],2),s.createElementVNode("div",{class:s.normalizeClass(r())},[s.renderSlot(c.$slots,"default"),s.createVNode(os)],2),s.createElementVNode("div",{class:s.normalizeClass(i())},[s.renderSlot(c.$slots,"footer")],2)],6))}}),ss={class:"sf-tab-navigation"},as=["data-active"],ls=["href","onClick"],cs=s.defineComponent({__name:"TabNavigation",props:{tabs:{}},setup(t){const e=t,n=s.ref(null),r=new ResizeObserver(l=>{a()}),o=s.ref(!1),i=s.ref(!1);function c(l=!1){const d=n.value.clientWidth;n.value.scrollLeft+=l?-d:d}function a(){const l=n.value.scrollWidth-n.value.clientWidth;o.value=n.value.scrollLeft>10,i.value=n.value.scrollLeft<l-10}return s.onMounted(()=>{n.value.addEventListener("scroll",a),r.observe(n.value)}),s.onBeforeUnmount(()=>{var l;try{(l=n.value)==null||l.removeEventListener("scroll",a),r.unobserve(n.value),r.disconnect()}catch{}}),(l,d)=>{const m=s.resolveComponent("RouterLink");return s.openBlock(),s.createElementBlock("div",ss,[s.createElementVNode("div",{class:s.normalizeClass(["left-arrow",{active:o.value}]),onClick:d[0]||(d[0]=p=>c(!0))},d[2]||(d[2]=[s.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"},[s.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M15.75 19.5L8.25 12l7.5-7.5"})],-1)]),2),s.createElementVNode("ul",{ref_key:"trackerContainer",ref:n},[(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(e.tabs,p=>(s.openBlock(),s.createBlock(m,{to:p.route,custom:!0},{default:s.withCtx(({navigate:y,isActive:k})=>[s.createElementVNode("li",{"data-active":k},[s.renderSlot(l.$slots,"item",{item:p,navigate:y,isActive:k},()=>[s.createElementVNode("a",{href:p.route,class:s.normalizeClass({active:k}),onClick:y},s.toDisplayString(p.text),11,ls)])],8,as)]),_:2},1032,["to"]))),256))],512),s.createElementVNode("div",{class:s.normalizeClass(["right-arrow",{active:i.value}]),onClick:d[1]||(d[1]=p=>c())},d[3]||(d[3]=[s.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"},[s.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M8.25 4.5l7.5 7.5-7.5 7.5"})],-1)]),2)])}}}),us=["id","name","disabled","data-color","form","type","data-p-loading"],ds=gt(s.defineComponent({__name:"Button",props:{icon:{},visible:{type:Boolean,default:!0},class:{},style:{type:[Boolean,null,String,Object,Array]},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}},emits:["click"],setup(t,{emit:e}){const n=t;function r(){return new We(`${n.class??""} sf-button`).AddClass("sf-button-small",n.size==="sm").AddClass("sf-button-medium",n.size==="md").AddClass("sf-button-large",n.size==="lg").AddClass("sf-button-filled",n.variant==="filled").AddClass("sf-button-text",n.variant==="text").AddClass("sf-button-outlined",n.variant==="outlined").AddClass("sf-button-with-icon",!!n.icon).AddClass("sf-ripple",!n.loading&&!n.disabled).Build()}const o=c=>{n.disabled||n.loading||i("click",c)},i=e;return(c,a)=>n.visible?(s.openBlock(),s.createElementBlock("button",{key:0,id:n.id,name:n.name,class:s.normalizeClass(r()),style:s.normalizeStyle(n.style),disabled:n.disabled,"data-color":n.color,form:n.form,type:n.type,"data-p-loading":n.loading,onClick:o},[n.loading?(s.openBlock(),s.createBlock(Te,{key:0,loading:!0,size:n.size,"button-props":{tabindex:-1},class:s.normalizeClass("icon-loading")},null,8,["size"])):s.createCommentVNode("",!0),n.icon?(s.openBlock(),s.createBlock(Te,{key:1,icon:n.icon,size:n.size,"button-props":{tabindex:-1},filled:n.iconFilled,class:s.normalizeClass({transparent:n.loading})},null,8,["icon","size","filled","class"])):s.createCommentVNode("",!0),s.createElementVNode("span",{class:s.normalizeClass({"button-label":!0,transparent:!n.disabled&&n.loading})},[s.renderSlot(c.$slots,"default",{},void 0,!0)],2)],14,us)):s.createCommentVNode("",!0)}}),[["__scopeId","data-v-09dce4de"]]),fs={class:"sf-drawer-title"},ms={class:"sf-drawer-action"},ps=s.defineComponent({__name:"Drawer",props:{visible:{type:Boolean,default:!1},position:{default:"left"},style:{type:[Boolean,null,String,Object,Array]},dismissableMask:{type:Boolean,default:!0},title:{},unstyledHeader:{type:Boolean},unstyledContent:{type:Boolean},unstyledFooter:{type:Boolean}},emits:["update:visible","open","before-close"],setup(t,{emit:e}){const n=t,r=e,o=s.useSlots(),i=s.ref(n.visible),c=s.ref(!1),a=s.ref(0),l="sf-drawer-"+Math.random().toString(36).slice(2,11)+"-"+Date.now();function d(){i.value=!1}function m(A){if(!n.dismissableMask)return;const S=A.target;S&&S.id===l&&(i.value=!1)}function p(A){(A.key==="Escape"||A.code==="Escape")&&d()}function y(){r("open"),window.document.addEventListener("keydown",p,!0)}function k(A){a.value=Nn(),A.style.zIndex=`${a.value}`}function _(A){var S;r("before-close"),(S=A==null?void 0:A.parentElement)==null||S.classList.add("sf-mask-overlay-leave")}function $(){window.document.removeEventListener("keydown",p,!0),c.value=!1}function B(){return new We("sf-mask sf-mask-overlay").AddClass("right",n.position==="right").AddClass("bottom",n.position==="bottom").AddClass("center",n.position==="center").AddClass("full",n.position==="full").AddClass("sf-mask-overlay-enter",n.visible===!0).Build()}return s.watch(()=>n.visible,A=>{i.value=A}),s.watch(()=>i.value,A=>{r("update:visible",A),A&&(c.value=!0)}),(A,S)=>(s.openBlock(),s.createBlock(s.Teleport,{to:"body"},[c.value?(s.openBlock(),s.createElementBlock("div",{key:0,id:l,class:s.normalizeClass(B()),style:s.normalizeStyle({zIndex:a.value-1}),onClick:s.withModifiers(m,["stop"])},[s.createVNode(s.Transition,{name:"sf-drawer",appear:"",onBeforeEnter:k,onEnter:y,onBeforeLeave:_,onAfterLeave:$},{default:s.withCtx(()=>[i.value?(s.openBlock(),s.createElementBlock("div",{key:0,class:s.normalizeClass(["sf-drawer"]),style:s.normalizeStyle(n.style),role:"dialog"},[s.renderSlot(A.$slots,"header",s.normalizeProps(s.guardReactiveProps({Close:d})),()=>[s.createElementVNode("div",{class:s.normalizeClass(["sf-drawer-header",{unstyled:n.unstyledHeader}])},[s.renderSlot(A.$slots,"title",{},()=>[s.createElementVNode("div",fs,s.toDisplayString(n.title),1)]),S[0]||(S[0]=s.createElementVNode("div",{class:"sf-drawer-spacer"},null,-1)),s.renderSlot(A.$slots,"action",s.normalizeProps(s.guardReactiveProps({Close:d})),()=>[s.createElementVNode("div",ms,[s.createVNode(Te,{button:!0,icon:"close",onClick:d})])])],2)]),s.createElementVNode("div",{class:s.normalizeClass(["sf-drawer-content",{unstyled:n.unstyledContent}])},[s.renderSlot(A.$slots,"default")],2),s.unref(o).footer?(s.openBlock(),s.createElementBlock("div",{key:0,class:s.normalizeClass(["sf-drawer-footer",{unstyled:n.unstyledFooter}])},[s.renderSlot(A.$slots,"footer",s.normalizeProps(s.guardReactiveProps({Close:d})))],2)):s.createCommentVNode("",!0)],4)):s.createCommentVNode("",!0)]),_:3})],6)):s.createCommentVNode("",!0)]))}}),hs=["data-icon"],gs=s.defineComponent({__name:"Message",props:{color:{default:"info"},class:{},style:{type:[Boolean,null,String,Object,Array]},icon:{}},setup(t){const e=t,n=s.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=s.computed(()=>new We("sf-message").AddClass("sf-message-error",e.color==="error").AddClass("sf-message-info",e.color==="info").AddClass("sf-message-warning",e.color==="warn").AddClass("sf-message-success",e.color==="success").AddClass("sf-message-help",e.color==="help").AddClass("sf-message-primary",e.color==="primary").AddClass("sf-message-secondary",e.color==="secondary").AddClass(e.class).Build());return(o,i)=>(s.openBlock(),s.createElementBlock("div",{class:s.normalizeClass(r.value),"data-icon":n.value},[s.renderSlot(o.$slots,"default")],10,hs))}});function ys(t,e){return t?t.classList?t.classList.contains(e):new RegExp("(^| )"+e+"( |$)","gi").test(t.className):!1}function bs(t,e){if(t&&e){const n=r=>{ys(t,r)||(t.classList?t.classList.add(r):t.className+=" "+r)};[e].flat().filter(Boolean).forEach(r=>r.split(" ").forEach(n))}}function Mn(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 vs(t,e){return t instanceof HTMLElement?t.offsetWidth:0}function dn(t){return typeof HTMLElement=="object"?t instanceof HTMLElement:t&&typeof t=="object"&&t!==null&&t.nodeType===1&&typeof t.nodeName=="string"}function fn(t,e={}){if(dn(t)){const n=(r,o)=>{var i,c;const a=(i=t==null?void 0:t.$attrs)!=null&&i[r]?[(c=t==null?void 0:t.$attrs)==null?void 0:c[r]]:[];return[o].flat().reduce((l,d)=>{if(d!=null){const m=typeof d;if(m==="string"||m==="number")l.push(d);else if(m==="object"){const p=Array.isArray(d)?n(r,d):Object.entries(d).map(([y,k])=>r==="style"&&(k||k===0)?`${y.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()}:${k}`:k?y:void 0);l=p.length?l.concat(p.filter(y=>!!y)):l}}return l},a)};Object.entries(e).forEach(([r,o])=>{if(o!=null){const i=r.match(/^on(.+)/);i?t.addEventListener(i[1].toLowerCase(),o):r==="p-bind"?fn(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 ws(t,e={},...n){{const r=document.createElement(t);return fn(r,e),r.append(...n),r}}function Le(t,e){return dn(t)?t.matches(e)?t:t.querySelector(e):null}function xt(t,e){t&&document.activeElement!==t&&t.focus(e)}function Ot(t,e){if(dn(t)){const n=t.getAttribute(e);return isNaN(n)?n==="true"||n==="false"?n==="true":n:+n}}function Lr(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 ks(t){if(t){let e=t.parentNode;return e&&e instanceof ShadowRoot&&e.host&&(e=e.host),e}return null}function _s(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 Ss(t,e){return t?t.offsetHeight:0}function Cs(t){return!!(t!==null&&typeof t<"u"&&t.nodeName&&ks(t))}function $r(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 Is(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}function Es(t,e="",n){dn(t)&&n!==null&&n!==void 0&&t.setAttribute(e,n)}function Br(){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 at(t){return t==null||t===""||Array.isArray(t)&&t.length===0||!(t instanceof Date)&&typeof t=="object"&&Object.keys(t).length===0}function Dn(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,i,c;if(n&&r){if(i=t.length,i!=e.length)return!1;for(o=i;o--!==0;)if(!Dn(t[o],e[o]))return!1;return!0}if(n!=r)return!1;var a=t instanceof Date,l=e instanceof Date;if(a!=l)return!1;if(a&&l)return t.getTime()==e.getTime();var d=t instanceof RegExp,m=e instanceof RegExp;if(d!=m)return!1;if(d&&m)return t.toString()==e.toString();var p=Object.keys(t);if(i=p.length,i!==Object.keys(e).length)return!1;for(o=i;o--!==0;)if(!Object.prototype.hasOwnProperty.call(e,p[o]))return!1;for(o=i;o--!==0;)if(c=p[o],!Dn(t[c],e[c]))return!1;return!0}return t!==t&&e!==e}function Rn(t){return!!(t&&t.constructor&&t.call&&t.apply)}function G(t){return!at(t)}function yt(t,e,n){return Dn(t,e)}function Nr(t,e){let n;if(G(t))try{n=t.findLast(e)}catch{n=[...t].reverse().find(e)}return n}function et(t,e=!0){return t instanceof Object&&t.constructor===Object&&(e||Object.keys(t).length!==0)}function ke(t,...e){return Rn(t)?t(...e):t}function pe(t,e=!0){return typeof t=="string"&&(e||t!=="")}function $e(t){return pe(t)?t.replace(/(-|_)/g,"").toLowerCase():t}function Un(t,e="",n={}){const r=$e(e).split("."),o=r.shift();return o?et(t)?Un(ke(t[Object.keys(t).find(i=>$e(i)===o)||""],n),r.join("."),n):void 0:ke(t,n)}function Vn(t,e=!0){return Array.isArray(t)&&(e||t.length!==0)}function Mr(t){return G(t)&&!isNaN(t)}function Ts(t=""){return G(t)&&t.length===1&&!!t.match(/\S| /)}function Ge(t,e){if(e){const n=e.test(t);return e.lastIndex=0,n}return!1}function Lt(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 As(t){return pe(t,!1)?t[0].toUpperCase()+t.slice(1):t}function Dr(t){return pe(t)?t.replace(/(_)/g,"-").replace(/[A-Z]/g,(e,n)=>n===0?e:"-"+e.toLowerCase()).toLowerCase():t}function Rr(t){return pe(t)?t.replace(/[A-Z]/g,(e,n)=>n===0?e:"."+e.toLowerCase()).toLowerCase():t}var mn={};function Ps(t="pui_id_"){return mn.hasOwnProperty(t)||(mn[t]=0),mn[t]++,`${t}${mn[t]}`}function pn(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"pv_id_";return Ps(t)}var xs=Object.defineProperty,Os=Object.defineProperties,Ls=Object.getOwnPropertyDescriptors,hn=Object.getOwnPropertySymbols,Ur=Object.prototype.hasOwnProperty,Vr=Object.prototype.propertyIsEnumerable,Hr=(t,e,n)=>e in t?xs(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,$t=(t,e)=>{for(var n in e||(e={}))Ur.call(e,n)&&Hr(t,n,e[n]);if(hn)for(var n of hn(e))Vr.call(e,n)&&Hr(t,n,e[n]);return t},Hn=(t,e)=>Os(t,Ls(e)),Bt=(t,e)=>{var n={};for(var r in t)Ur.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&&Vr.call(t,r)&&(n[r]=t[r]);return n},$s=Br(),qe=$s;function jr(t,e){Vn(t)?t.push(...e||[]):et(t)&&Object.assign(t,e)}function Bs(t){return et(t)&&t.hasOwnProperty("value")&&t.hasOwnProperty("type")?t.value:t}function Fr(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(i=>Mr(i)?`${i}px`:i).join(" ")}function Ns(t){return t.replaceAll(/ /g,"").replace(/[^\w]/g,"-")}function jn(t="",e=""){return Ns(`${pe(t,!1)&&pe(e,!1)?`${t}-`:t}${e}`)}function zr(t="",e=""){return`--${jn(t,e)}`}function Kr(t,e="",n="",r=[],o){if(pe(t)){const i=/{([^}]*)}/g,c=t.trim();if(Ge(c,i)){const a=c.replaceAll(i,m=>{const y=m.replace(/{|}/g,"").split(".").filter(k=>!r.some(_=>Ge(k,_)));return`var(${zr(n,Dr(y.join("-")))}${G(o)?`, ${o}`:""})`}),l=/(\d+\s+[\+\-\*\/]\s+\d+)/g,d=/var\([^)]+\)/g;return Ge(a.replace(d,"0"),l)?`calc(${a})`:a}return Fr(c,e)}else if(Mr(t))return Fr(t,e)}function Ms(t,e,n){pe(e,!1)&&t.push(`${e}:${n};`)}function Nt(t,e){return t?`${t}{${e}}`:""}var Fn=(...t)=>Ds(Z.getTheme(),...t),Ds=(t={},e,n,r="variable")=>{if(e){const{variable:o,options:i}=Z.defaults||{},{prefix:c,transform:a}=(t==null?void 0:t.options)||i||{},d=Ge(e,/{([^}]*)}/g)?e:`{${e}}`;return r==="value"||a==="strict"?Z.getTokenValue(e):Kr(d,void 0,c,[o.excludedKeyRegex],n)}return""};function Rs(t,e={}){const n=Z.defaults.variable,{prefix:r=n.prefix,selector:o=n.selector,excludedKeyRegex:i=n.excludedKeyRegex}=e,c=(d,m="")=>Object.entries(d).reduce((p,[y,k])=>{const _=Ge(y,i)?jn(m):jn(m,Dr(y)),$=Bs(k);if(et($)){const{variables:B,tokens:A}=c($,_);jr(p.tokens,A),jr(p.variables,B)}else p.tokens.push((r?_.replace(`${r}-`,""):_).replaceAll("-",".")),Ms(p.variables,zr(_),Kr($,_,r,[i]));return p},{variables:[],tokens:[]}),{variables:a,tokens:l}=c(t,r);return{value:a,tokens:l,declarations:a.join(""),css:Nt(o,a.join(""))}}var Be={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 Rs(t,{prefix:e==null?void 0:e.prefix})},getCommon({name:t="",theme:e={},params:n,set:r,defaults:o}){var i,c,a,l;const{preset:d,options:m}=e;let p,y,k,_;if(G(d)){const{primitive:$,semantic:B}=d,A=B||{},{colorScheme:S}=A,N=Bt(A,["colorScheme"]),F=S||{},{dark:J}=F,ye=Bt(F,["dark"]),ee=G($)?this._toVariables({primitive:$},m):{},De=G(N)?this._toVariables({semantic:N},m):{},Ie=G(ye)?this._toVariables({light:ye},m):{},Y=G(J)?this._toVariables({dark:J},m):{},[Q,be]=[(i=ee.declarations)!=null?i:"",ee.tokens],[Re,Ee]=[(c=De.declarations)!=null?c:"",De.tokens||[]],[st,Xe]=[(a=Ie.declarations)!=null?a:"",Ie.tokens||[]],[He,je]=[(l=Y.declarations)!=null?l:"",Y.tokens||[]];p=this.transformCSS(t,Q,"light","variable",m,r,o),y=be;const pt=this.transformCSS(t,`${Re}${st}color-scheme:light`,"light","variable",m,r,o),Oe=this.transformCSS(t,`${He}color-scheme:dark`,"dark","variable",m,r,o);k=`${pt}${Oe}`,_=[...new Set([...Ee,...Xe,...je])]}return{primitive:{css:p,tokens:y},semantic:{css:k,tokens:_}}},getPreset({name:t="",preset:e={},options:n,params:r,set:o,defaults:i,selector:c}){var a,l,d;const m=t.replace("-directive",""),p=e,{colorScheme:y}=p,k=Bt(p,["colorScheme"]),_=y||{},{dark:$}=_,B=Bt(_,["dark"]),A=G(k)?this._toVariables({[m]:k},n):{},S=G(B)?this._toVariables({[m]:B},n):{},N=G($)?this._toVariables({[m]:$},n):{},[F,J]=[(a=A.declarations)!=null?a:"",A.tokens||[]],[ye,ee]=[(l=S.declarations)!=null?l:"",S.tokens||[]],[De,Ie]=[(d=N.declarations)!=null?d:"",N.tokens||[]],Y=[...new Set([...J,...ee,...Ie])],Q=this.transformCSS(m,`${F}${ye}`,"light","variable",n,o,i,c),be=this.transformCSS(m,De,"dark","variable",n,o,i,c);return{css:`${Q}${be}`,tokens:Y}},getPresetC({name:t="",theme:e={},params:n,set:r,defaults:o}){var i;const{preset:c,options:a}=e,l=(i=c==null?void 0:c.components)==null?void 0:i[t];return this.getPreset({name:t,preset:l,options:a,params:n,set:r,defaults:o})},getPresetD({name:t="",theme:e={},params:n,set:r,defaults:o}){var i;const c=t.replace("-directive",""),{preset:a,options:l}=e,d=(i=a==null?void 0:a.directives)==null?void 0:i[c];return this.getPreset({name:c,preset:d,options:l,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 ${ke(o.order||"primeui",n)}`:""},getCommonStyleSheet({name:t="",theme:e={},params:n,props:r={},set:o,defaults:i}){const c=this.getCommon({name:t,theme:e,params:n,set:o,defaults:i}),a=Object.entries(r).reduce((l,[d,m])=>l.push(`${d}="${m}"`)&&l,[]).join(" ");return Object.entries(c||{}).reduce((l,[d,m])=>{if(m!=null&&m.css){const p=Lt(m==null?void 0:m.css),y=`${d}-variables`;l.push(`<style type="text/css" data-primevue-style-id="${y}" ${a}>${p}</style>`)}return l},[]).join("")},getStyleSheet({name:t="",theme:e={},params:n,props:r={},set:o,defaults:i}){var c;const a={name:t,theme:e,params:n,set:o,defaults:i},l=(c=t.includes("-directive")?this.getPresetD(a):this.getPresetC(a))==null?void 0:c.css,d=Object.entries(r).reduce((m,[p,y])=>m.push(`${p}="${y}"`)&&m,[]).join(" ");return l?`<style type="text/css" data-primevue-style-id="${t}-variables" ${d}>${Lt(l)}</style>`:""},createTokens(t={},e,n="",r="",o={}){return Object.entries(t).forEach(([i,c])=>{const a=Ge(i,e.variable.excludedKeyRegex)?n:n?`${n}.${Rr(i)}`:Rr(i),l=r?`${r}.${i}`:i;et(c)?this.createTokens(c,e,a,l,o):(o[a]||(o[a]={paths:[],computed(d,m={}){if(d){const p=this.paths.find(y=>y.scheme===d)||this.paths.find(y=>y.scheme==="none");return p==null?void 0:p.computed(d,m.binding)}return this.paths.map(p=>p.computed(p.scheme,m[p.scheme]))}}),o[a].paths.push({path:l,value:c,scheme:l.includes("colorScheme.light")?"light":l.includes("colorScheme.dark")?"dark":"none",computed(d,m={}){const p=/{([^}]*)}/g;let y=c;if(m.name=this.path,m.binding||(m.binding={}),Ge(c,p)){const _=c.trim().replaceAll(p,A=>{var S,N;const F=A.replace(/{|}/g,"");return(N=(S=o[F])==null?void 0:S.computed(d,m))==null?void 0:N.value}),$=/(\d+\w*\s+[\+\-\*\/]\s+\d+\w*)/g,B=/var\([^)]+\)/g;y=Ge(_.replace(B,"0"),$)?`calc(${_})`:_}return at(m.binding)&&delete m.binding,{colorScheme:d,path:this.path,paths:m,value:y.includes("undefined")?void 0:y}}}))}),o},getTokenValue(t,e,n){var r;const i=(l=>l.split(".").filter(m=>!Ge(m.toLowerCase(),n.variable.excludedKeyRegex)).join("."))(e),c=e.includes("colorScheme.light")?"light":e.includes("colorScheme.dark")?"dark":void 0,a=[(r=t[i])==null?void 0:r.computed(c)].flat().filter(l=>l);return a.length===1?a[0].value:a.reduce((l={},d)=>{const m=d,{colorScheme:p}=m,y=Bt(m,["colorScheme"]);return l[p]=y,l},void 0)},transformCSS(t,e,n,r,o={},i,c,a){if(G(e)){const{cssLayer:l}=o;if(r!=="style"){const d=this.getColorSchemeOption(o,c),m=a?Nt(a,e):e;e=n==="dark"?d.reduce((p,{selector:y})=>(G(y)&&(p+=y.includes("[CSS]")?y.replace("[CSS]",m):Nt(y,m)),p),""):Nt(a??":root",e)}if(l){const d={name:"primeui",order:"primeui"};et(l)&&(d.name=ke(l.name,{name:t,type:r})),G(d.name)&&(e=Nt(`@layer ${d.name}`,e),i==null||i.layerNames(d.name))}return e}return""}},Z={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=Hn($t({},e),{options:$t($t({},this.defaults.options),e.options)}),this._tokens=Be.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}),qe.emit("theme:change",t)},getPreset(){return this.preset},setPreset(t){this._theme=Hn($t({},this.theme),{preset:t}),this._tokens=Be.createTokens(t,this.defaults),this.clearLoadedStyleNames(),qe.emit("preset:change",t),qe.emit("theme:change",this.theme)},getOptions(){return this.options},setOptions(t){this._theme=Hn($t({},this.theme),{options:t}),this.clearLoadedStyleNames(),qe.emit("options:change",t),qe.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 Be.getTokenValue(this.tokens,t,this.defaults)},getCommon(t="",e){return Be.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 Be.getPresetC(n)},getDirective(t="",e){const n={name:t,theme:this.theme,params:e,defaults:this.defaults,set:{layerNames:this.setLayerNames.bind(this)}};return Be.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 Be.getPreset(o)},getLayerOrderCSS(t=""){return Be.getLayerOrder(t,this.options,{names:this.getLayerNames()},this.defaults)},transformCSS(t="",e,n="style",r){return Be.transformCSS(t,e,r,n,this.options,{layerNames:this.setLayerNames.bind(this)},this.defaults)},getCommonStyleSheet(t="",e,n={}){return Be.getCommonStyleSheet({name:t,theme:this.theme,params:e,props:n,defaults:this.defaults,set:{layerNames:this.setLayerNames.bind(this)}})},getStyleSheet(t,e,n={}){return Be.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),qe.emit(`theme:${e}:load`,t),!this._loadingStyles.size&&qe.emit("theme:load"))}},tt={_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 Mt(t){"@babel/helpers - typeof";return Mt=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Mt(t)}function Wr(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 Gr(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?Wr(Object(n),!0).forEach(function(r){Us(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Wr(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function Us(t,e,n){return(e=Vs(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function Vs(t){var e=Hs(t,"string");return Mt(e)=="symbol"?e:e+""}function Hs(t,e){if(Mt(t)!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e||"default");if(Mt(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function js(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;s.getCurrentInstance()?s.onMounted(t):e?t():s.nextTick(t)}var Fs=0;function zs(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=s.ref(!1),r=s.ref(t),o=s.ref(null),i=Is()?window.document:void 0,c=e.document,a=c===void 0?i:c,l=e.immediate,d=l===void 0?!0:l,m=e.manual,p=m===void 0?!1:m,y=e.name,k=y===void 0?"style_".concat(++Fs):y,_=e.id,$=_===void 0?void 0:_,B=e.media,A=B===void 0?void 0:B,S=e.nonce,N=S===void 0?void 0:S,F=e.first,J=F===void 0?!1:F,ye=e.onMounted,ee=ye===void 0?void 0:ye,De=e.onUpdated,Ie=De===void 0?void 0:De,Y=e.onLoad,Q=Y===void 0?void 0:Y,be=e.props,Re=be===void 0?{}:be,Ee=function(){},st=function(je){var pt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(a){var Oe=Gr(Gr({},Re),pt),u=Oe.name||k,h=Oe.id||$,v=Oe.nonce||N;o.value=a.querySelector('style[data-primevue-style-id="'.concat(u,'"]'))||a.getElementById(h)||a.createElement("style"),o.value.isConnected||(r.value=je||t,fn(o.value,{type:"text/css",id:h,media:A,nonce:v}),J?a.head.prepend(o.value):a.head.appendChild(o.value),Es(o.value,"data-primevue-style-id",u),fn(o.value,Oe),o.value.onload=function(E){return Q==null?void 0:Q(E,{name:u})},ee==null||ee(u)),!n.value&&(Ee=s.watch(r,function(E){o.value.textContent=E,Ie==null||Ie(u)},{immediate:!0}),n.value=!0)}},Xe=function(){!a||!n.value||(Ee(),Cs(o.value)&&a.head.removeChild(o.value),n.value=!1)};return d&&!p&&js(st),{id:$,name:k,el:o,css:r,unload:Xe,load:st,isLoaded:s.readonly(n)}}function Dt(t){"@babel/helpers - typeof";return Dt=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},Dt(t)}function qr(t,e){return qs(t)||Gs(t,e)||Ws(t,e)||Ks()}function Ks(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
2
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Ws(t,e){if(t){if(typeof t=="string")return Yr(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)?Yr(t,e):void 0}}function Yr(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 Gs(t,e){var n=t==null?null:typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(n!=null){var r,o,i,c,a=[],l=!0,d=!1;try{if(i=(n=n.call(t)).next,e!==0)for(;!(l=(r=i.call(n)).done)&&(a.push(r.value),a.length!==e);l=!0);}catch(m){d=!0,o=m}finally{try{if(!l&&n.return!=null&&(c=n.return(),Object(c)!==c))return}finally{if(d)throw o}}return a}}function qs(t){if(Array.isArray(t))return t}function Xr(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 zn(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?Xr(Object(n),!0).forEach(function(r){Ys(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Xr(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function Ys(t,e,n){return(e=Xs(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function Xs(t){var e=Zs(t,"string");return Dt(e)=="symbol"?e:e+""}function Zs(t,e){if(Dt(t)!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e||"default");if(Dt(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}var Js=function(e){var n=e.dt;return`
|
|
3
3
|
* {
|
|
4
4
|
box-sizing: border-box;
|
|
5
5
|
}
|
|
@@ -118,7 +118,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
118
118
|
background: transparent;
|
|
119
119
|
}
|
|
120
120
|
}
|
|
121
|
-
`)},
|
|
121
|
+
`)},Qs=function(e){var n=e.dt;return`
|
|
122
122
|
.p-hidden-accessible {
|
|
123
123
|
border: 0;
|
|
124
124
|
clip: rect(0 0 0 0);
|
|
@@ -139,8 +139,8 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
139
139
|
overflow: hidden;
|
|
140
140
|
padding-right: `.concat(n("scrollbar.width"),`;
|
|
141
141
|
}
|
|
142
|
-
`)},
|
|
143
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Zo(t,e){if(t){if(typeof t=="string")return Jo(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)?Jo(t,e):void 0}}function Jo(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,o=Array(e);n<e;n++)o[n]=t[n];return o}function ua(t,e){var n=t==null?null:typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(n!=null){var o,r,i,c,a=[],l=!0,d=!1;try{if(i=(n=n.call(t)).next,e===0){if(Object(n)!==n)return;l=!1}else for(;!(l=(o=i.call(n)).done)&&(a.push(o.value),a.length!==e);l=!0);}catch(m){d=!0,r=m}finally{try{if(!l&&n.return!=null&&(c=n.return(),Object(c)!==c))return}finally{if(d)throw r}}return a}}function Qo(t){if(Array.isArray(t))return t}function er(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);e&&(o=o.filter(function(r){return Object.getOwnPropertyDescriptor(t,r).enumerable})),n.push.apply(n,o)}return n}function K(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?er(Object(n),!0).forEach(function(o){gn(t,o,n[o])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):er(Object(n)).forEach(function(o){Object.defineProperty(t,o,Object.getOwnPropertyDescriptor(n,o))})}return t}function gn(t,e,n){return(e=da(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function da(t){var e=fa(t,"string");return Mt(e)=="symbol"?e:e+""}function fa(t,e){if(Mt(t)!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var o=n.call(t,e||"default");if(Mt(o)!="object")return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}var yn={name:"BaseComponent",props:{pt:{type:Object,default:void 0},ptOptions:{type:Object,default:void 0},unstyled:{type:Boolean,default:void 0},dt:{type:Object,default:void 0}},inject:{$parentInstance:{default:void 0}},watch:{isUnstyled:{immediate:!0,handler:function(e){e||(this._loadCoreStyles(),this._themeChangeListener(this._loadCoreStyles))}},dt:{immediate:!0,handler:function(e){var n=this;e?(this._loadScopedThemeStyles(e),this._themeChangeListener(function(){return n._loadScopedThemeStyles(e)})):this._unloadScopedThemeStyles()}}},scopedStyleEl:void 0,rootEl:void 0,beforeCreate:function(){var e,n,o,r,i,c,a,l,d,m,h,v=(e=this.pt)===null||e===void 0?void 0:e._usept,I=v?(n=this.pt)===null||n===void 0||(n=n.originalValue)===null||n===void 0?void 0:n[this.$.type.name]:void 0,T=v?(o=this.pt)===null||o===void 0||(o=o.value)===null||o===void 0?void 0:o[this.$.type.name]:this.pt;(r=T||I)===null||r===void 0||(r=r.hooks)===null||r===void 0||(i=r.onBeforeCreate)===null||i===void 0||i.call(r);var $=(c=this.$primevueConfig)===null||c===void 0||(c=c.pt)===null||c===void 0?void 0:c._usept,B=$?(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,L=$?(l=this.$primevue)===null||l===void 0||(l=l.config)===null||l===void 0||(l=l.pt)===null||l===void 0?void 0:l.value:(d=this.$primevue)===null||d===void 0||(d=d.config)===null||d===void 0?void 0:d.pt;(m=L||B)===null||m===void 0||(m=m[this.$.type.name])===null||m===void 0||(m=m.hooks)===null||m===void 0||(h=m.onBeforeCreate)===null||h===void 0||h.call(m)},created:function(){this._hook("onCreated")},beforeMount:function(){this._loadStyles(),this._hook("onBeforeMount")},mounted:function(){this.rootEl=Oe(this.$el,'[data-pc-name="'.concat(Le(this.$.type.name),'"]')),this.rootEl&&(this.rootEl.setAttribute(this.$attrSelector,""),this.rootEl.$pc=K({name:this.$.type.name},this.$params)),this._hook("onMounted")},beforeUpdate:function(){this._hook("onBeforeUpdate")},updated:function(){this._hook("onUpdated")},beforeUnmount:function(){this._hook("onBeforeUnmount")},unmounted:function(){this._unloadScopedThemeStyles(),this._hook("onUnmounted")},methods:{_hook:function(e){if(!this.$options.hostName){var n=this._usePT(this._getPT(this.pt,this.$.type.name),this._getOptionValue,"hooks.".concat(e)),o=this._useDefaultPT(this._getOptionValue,"hooks.".concat(e));n==null||n(),o==null||o()}},_mergeProps:function(e){for(var n=arguments.length,o=new Array(n>1?n-1:0),r=1;r<n;r++)o[r-1]=arguments[r];return Rn(e)?e.apply(void 0,o):s.mergeProps.apply(void 0,o)},_loadStyles:function(){var e=this,n=function(){et.isStyleNameLoaded("base")||(ue.loadCSS(e.$styleOptions),e._loadGlobalStyles(),et.setLoadedStyleName("base")),e._loadThemeStyles()};n(),this._themeChangeListener(n)},_loadCoreStyles:function(){var e,n;!et.isStyleNameLoaded((e=this.$style)===null||e===void 0?void 0:e.name)&&(n=this.$style)!==null&&n!==void 0&&n.name&&(Yo.loadCSS(this.$styleOptions),this.$options.style&&this.$style.loadCSS(this.$styleOptions),et.setLoadedStyleName(this.$style.name))},_loadGlobalStyles:function(){var e=this._useGlobalPT(this._getOptionValue,"global.css",this.$params);G(e)&&ue.load(e,K({name:"global"},this.$styleOptions))},_loadThemeStyles:function(){var e,n;if(!this.isUnstyled){if(!Z.isStyleNameLoaded("common")){var o,r,i=((o=this.$style)===null||o===void 0||(r=o.getCommonTheme)===null||r===void 0?void 0:r.call(o))||{},c=i.primitive,a=i.semantic;ue.load(c==null?void 0:c.css,K({name:"primitive-variables"},this.$styleOptions)),ue.load(a==null?void 0:a.css,K({name:"semantic-variables"},this.$styleOptions)),ue.loadTheme(K({name:"global-style"},this.$styleOptions)),Z.setLoadedStyleName("common")}if(!Z.isStyleNameLoaded((e=this.$style)===null||e===void 0?void 0:e.name)&&(n=this.$style)!==null&&n!==void 0&&n.name){var l,d,m,h,v=((l=this.$style)===null||l===void 0||(d=l.getComponentTheme)===null||d===void 0?void 0:d.call(l))||{},I=v.css;(m=this.$style)===null||m===void 0||m.load(I,K({name:"".concat(this.$style.name,"-variables")},this.$styleOptions)),(h=this.$style)===null||h===void 0||h.loadTheme(K({name:"".concat(this.$style.name,"-style")},this.$styleOptions)),Z.setLoadedStyleName(this.$style.name)}if(!Z.isStyleNameLoaded("layer-order")){var T,$,B=(T=this.$style)===null||T===void 0||($=T.getLayerOrderThemeCSS)===null||$===void 0?void 0:$.call(T);ue.load(B,K({name:"layer-order",first:!0},this.$styleOptions)),Z.setLoadedStyleName("layer-order")}}},_loadScopedThemeStyles:function(e){var n,o,r,i=((n=this.$style)===null||n===void 0||(o=n.getPresetTheme)===null||o===void 0?void 0:o.call(n,e,"[".concat(this.$attrSelector,"]")))||{},c=i.css,a=(r=this.$style)===null||r===void 0?void 0:r.load(c,K({name:"".concat(this.$attrSelector,"-").concat(this.$style.name)},this.$styleOptions));this.scopedStyleEl=a.el},_unloadScopedThemeStyles:function(){var e;(e=this.scopedStyleEl)===null||e===void 0||(e=e.value)===null||e===void 0||e.remove()},_themeChangeListener:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:function(){};et.clearLoadedStyleNames(),Ge.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]:"",o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return Un(e,n,o)},_getPTValue:function(){var e,n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"",r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!0,c=/./g.test(o)&&!!r[o.split(".")[0]],a=this._getPropValue("ptOptions")||((e=this.$primevueConfig)===null||e===void 0?void 0:e.ptOptions)||{},l=a.mergeSections,d=l===void 0?!0:l,m=a.mergeProps,h=m===void 0?!1:m,v=i?c?this._useGlobalPT(this._getPTClassValue,o,r):this._useDefaultPT(this._getPTClassValue,o,r):void 0,I=c?void 0:this._getPTSelf(n,this._getPTClassValue,o,K(K({},r),{},{global:v||{}})),T=this._getPTDatasets(o);return d||!d&&I?h?this._mergeProps(h,v,I,T):K(K(K({},v),I),T):K(K({},I),T)},_getPTSelf:function(){for(var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=arguments.length,o=new Array(n>1?n-1:0),r=1;r<n;r++)o[r-1]=arguments[r];return s.mergeProps(this._usePT.apply(this,[this._getPT(e,this.$name)].concat(o)),this._usePT.apply(this,[this.$_attrsPT].concat(o)))},_getPTDatasets:function(){var e,n,o=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",r="data-pc-",i=o==="root"&&G((e=this.pt)===null||e===void 0?void 0:e["data-pc-section"]);return o!=="transition"&&K(K({},o==="root"&&K(gn({},"".concat(r,"name"),Le(i?(n=this.pt)===null||n===void 0?void 0:n["data-pc-section"]:this.$.type.name)),i&&gn({},"".concat(r,"extend"),Le(this.$.type.name)))),{},gn({},"".concat(r,"section"),Le(o)))},_getPTClassValue:function(){var e=this._getOptionValue.apply(this,arguments);return pe(e)||Vn(e)?{class:e}:e},_getPT:function(e){var n=this,o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"",r=arguments.length>2?arguments[2]:void 0,i=function(a){var l,d=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,m=r?r(a):a,h=Le(o),v=Le(n.$name);return(l=d?h!==v?m==null?void 0:m[h]:void 0:m==null?void 0:m[h])!==null&&l!==void 0?l:m};return e!=null&&e.hasOwnProperty("_usept")?{_usept:e._usept,originalValue:i(e.originalValue),value:i(e.value)}:i(e,!0)},_usePT:function(e,n,o,r){var i=function($){return n($,o,r)};if(e!=null&&e.hasOwnProperty("_usept")){var c,a=e._usept||((c=this.$primevueConfig)===null||c===void 0?void 0:c.ptOptions)||{},l=a.mergeSections,d=l===void 0?!0:l,m=a.mergeProps,h=m===void 0?!1:m,v=i(e.originalValue),I=i(e.value);return v===void 0&&I===void 0?void 0:pe(I)?I:pe(v)?v:d||!d&&I?h?this._mergeProps(h,v,I):K(K({},v),I):I}return i(e)},_useGlobalPT:function(e,n,o){return this._usePT(this.globalPT,e,n,o)},_useDefaultPT:function(e,n,o){return this._usePT(this.defaultPT,e,n,o)},ptm:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return this._getPTValue(this.pt,e,K(K({},this.$params),n))},ptmi:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return s.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]:"",o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return this._getPTValue(e,n,K({instance:this},o),!1)},cx:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return this.isUnstyled?void 0:this._getOptionValue(this.$style.classes,e,K(K({},this.$params),n))},sx:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0,o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};if(n){var r=this._getOptionValue(this.$style.inlineStyles,e,K(K({},this.$params),o)),i=this._getOptionValue(Yo.inlineStyles,e,K(K({},this.$params),o));return[i,r]}}},computed:{globalPT:function(){var e,n=this;return this._getPT((e=this.$primevueConfig)===null||e===void 0?void 0:e.pt,void 0,function(o){return ke(o,{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(o){return n._getOptionValue(o,n.$name,K({},n.$params))||ke(o,K({},n.$params))})},isUnstyled:function(){var e;return this.unstyled!==void 0?this.unstyled:(e=this.$primevueConfig)===null||e===void 0?void 0:e.unstyled},$theme:function(){var e;return(e=this.$primevueConfig)===null||e===void 0?void 0:e.theme},$style:function(){return K(K({classes:void 0,inlineStyles:void 0,load:function(){},loadCSS:function(){},loadTheme:function(){}},(this._getHostInstance(this)||{}).$style),this.$options.style)},$styleOptions:function(){var e;return{nonce:(e=this.$primevueConfig)===null||e===void 0||(e=e.csp)===null||e===void 0?void 0:e.nonce}},$primevueConfig:function(){var e;return(e=this.$primevue)===null||e===void 0?void 0:e.config},$name:function(){return this.$options.hostName||this.$.type.name},$params:function(){var e=this._getHostInstance(this)||this.$parent;return{instance:this,props:this.$props,state:this.$data,attrs:this.$attrs,parent:{instance:e,props:e==null?void 0:e.$props,state:e==null?void 0:e.$data,attrs:e==null?void 0:e.$attrs}}},$_attrsPT:function(){return Object.entries(this.$attrs||{}).filter(function(e){var n=hn(e,1),o=n[0];return o==null?void 0:o.startsWith("pt:")}).reduce(function(e,n){var o=hn(n,2),r=o[0],i=o[1],c=r.split(":"),a=la(c),l=a.slice(1);return l==null||l.reduce(function(d,m,h,v){return!d[m]&&(d[m]=h===v.length-1?i:{}),d[m]},e),e},{})},$_attrsWithoutPT:function(){return Object.entries(this.$attrs||{}).filter(function(e){var n=hn(e,1),o=n[0];return!(o!=null&&o.startsWith("pt:"))}).reduce(function(e,n){var o=hn(n,2),r=o[0],i=o[1];return e[r]=i,e},{})},$attrSelector:function(){return mn("pc")}}},ma=`
|
|
142
|
+
`)},ea={},ta={},ue={name:"base",css:Qs,theme:Js,classes:ea,inlineStyles:ta,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(i){return i},o=r(ke(e,{dt:Fn}));return o?zs(Lt(o),zn({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 Z.transformCSS(n.name||e.name,r)})},getCommonTheme:function(e){return Z.getCommon(this.name,e)},getComponentTheme:function(e){return Z.getComponent(this.name,e)},getDirectiveTheme:function(e){return Z.getDirective(this.name,e)},getPresetTheme:function(e,n,r){return Z.getCustomPreset(this.name,e,n,r)},getLayerOrderThemeCSS:function(){return Z.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=ke(this.css,{dt:Fn}),o=Lt("".concat(r).concat(e)),i=Object.entries(n).reduce(function(c,a){var l=qr(a,2),d=l[0],m=l[1];return c.push("".concat(d,'="').concat(m,'"'))&&c},[]).join(" ");return'<style type="text/css" data-primevue-style-id="'.concat(this.name,'" ').concat(i,">").concat(o,"</style>")}return""},getCommonThemeStyleSheet:function(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return Z.getCommonStyleSheet(this.name,e,n)},getThemeStyleSheet:function(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=[Z.getStyleSheet(this.name,e,n)];if(this.theme){var o=this.name==="base"?"global-style":"".concat(this.name,"-style"),i=ke(this.theme,{dt:Fn}),c=Lt(Z.transformCSS(o,i)),a=Object.entries(n).reduce(function(l,d){var m=qr(d,2),p=m[0],y=m[1];return l.push("".concat(p,'="').concat(y,'"'))&&l},[]).join(" ");r.push('<style type="text/css" data-primevue-style-id="'.concat(o,'" ').concat(a,">").concat(c,"</style>"))}return r.join("")},extend:function(e){return zn(zn({},this),{},{css:void 0,theme:void 0},e)}},Zr=ue.extend({name:"common"});function Rt(t){"@babel/helpers - typeof";return Rt=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},Rt(t)}function na(t){return to(t)||ra(t)||Qr(t)||Jr()}function ra(t){if(typeof Symbol<"u"&&t[Symbol.iterator]!=null||t["@@iterator"]!=null)return Array.from(t)}function gn(t,e){return to(t)||oa(t,e)||Qr(t,e)||Jr()}function Jr(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
143
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Qr(t,e){if(t){if(typeof t=="string")return eo(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)?eo(t,e):void 0}}function eo(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 oa(t,e){var n=t==null?null:typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(n!=null){var r,o,i,c,a=[],l=!0,d=!1;try{if(i=(n=n.call(t)).next,e===0){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=i.call(n)).done)&&(a.push(r.value),a.length!==e);l=!0);}catch(m){d=!0,o=m}finally{try{if(!l&&n.return!=null&&(c=n.return(),Object(c)!==c))return}finally{if(d)throw o}}return a}}function to(t){if(Array.isArray(t))return t}function no(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(t,o).enumerable})),n.push.apply(n,r)}return n}function z(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?no(Object(n),!0).forEach(function(r){yn(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):no(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function yn(t,e,n){return(e=ia(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function ia(t){var e=sa(t,"string");return Rt(e)=="symbol"?e:e+""}function sa(t,e){if(Rt(t)!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e||"default");if(Rt(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}var bn={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,i,c,a,l,d,m,p,y=(e=this.pt)===null||e===void 0?void 0:e._usept,k=y?(n=this.pt)===null||n===void 0||(n=n.originalValue)===null||n===void 0?void 0:n[this.$.type.name]:void 0,_=y?(r=this.pt)===null||r===void 0||(r=r.value)===null||r===void 0?void 0:r[this.$.type.name]:this.pt;(o=_||k)===null||o===void 0||(o=o.hooks)===null||o===void 0||(i=o.onBeforeCreate)===null||i===void 0||i.call(o);var $=(c=this.$primevueConfig)===null||c===void 0||(c=c.pt)===null||c===void 0?void 0:c._usept,B=$?(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,A=$?(l=this.$primevue)===null||l===void 0||(l=l.config)===null||l===void 0||(l=l.pt)===null||l===void 0?void 0:l.value:(d=this.$primevue)===null||d===void 0||(d=d.config)===null||d===void 0?void 0:d.pt;(m=A||B)===null||m===void 0||(m=m[this.$.type.name])===null||m===void 0||(m=m.hooks)===null||m===void 0||(p=m.onBeforeCreate)===null||p===void 0||p.call(m)},created:function(){this._hook("onCreated")},beforeMount:function(){this._loadStyles(),this._hook("onBeforeMount")},mounted:function(){this.rootEl=Le(this.$el,'[data-pc-name="'.concat($e(this.$.type.name),'"]')),this.rootEl&&(this.rootEl.setAttribute(this.$attrSelector,""),this.rootEl.$pc=z({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 Rn(e)?e.apply(void 0,r):s.mergeProps.apply(void 0,r)},_loadStyles:function(){var e=this,n=function(){tt.isStyleNameLoaded("base")||(ue.loadCSS(e.$styleOptions),e._loadGlobalStyles(),tt.setLoadedStyleName("base")),e._loadThemeStyles()};n(),this._themeChangeListener(n)},_loadCoreStyles:function(){var e,n;!tt.isStyleNameLoaded((e=this.$style)===null||e===void 0?void 0:e.name)&&(n=this.$style)!==null&&n!==void 0&&n.name&&(Zr.loadCSS(this.$styleOptions),this.$options.style&&this.$style.loadCSS(this.$styleOptions),tt.setLoadedStyleName(this.$style.name))},_loadGlobalStyles:function(){var e=this._useGlobalPT(this._getOptionValue,"global.css",this.$params);G(e)&&ue.load(e,z({name:"global"},this.$styleOptions))},_loadThemeStyles:function(){var e,n;if(!this.isUnstyled){if(!Z.isStyleNameLoaded("common")){var r,o,i=((r=this.$style)===null||r===void 0||(o=r.getCommonTheme)===null||o===void 0?void 0:o.call(r))||{},c=i.primitive,a=i.semantic;ue.load(c==null?void 0:c.css,z({name:"primitive-variables"},this.$styleOptions)),ue.load(a==null?void 0:a.css,z({name:"semantic-variables"},this.$styleOptions)),ue.loadTheme(z({name:"global-style"},this.$styleOptions)),Z.setLoadedStyleName("common")}if(!Z.isStyleNameLoaded((e=this.$style)===null||e===void 0?void 0:e.name)&&(n=this.$style)!==null&&n!==void 0&&n.name){var l,d,m,p,y=((l=this.$style)===null||l===void 0||(d=l.getComponentTheme)===null||d===void 0?void 0:d.call(l))||{},k=y.css;(m=this.$style)===null||m===void 0||m.load(k,z({name:"".concat(this.$style.name,"-variables")},this.$styleOptions)),(p=this.$style)===null||p===void 0||p.loadTheme(z({name:"".concat(this.$style.name,"-style")},this.$styleOptions)),Z.setLoadedStyleName(this.$style.name)}if(!Z.isStyleNameLoaded("layer-order")){var _,$,B=(_=this.$style)===null||_===void 0||($=_.getLayerOrderThemeCSS)===null||$===void 0?void 0:$.call(_);ue.load(B,z({name:"layer-order",first:!0},this.$styleOptions)),Z.setLoadedStyleName("layer-order")}}},_loadScopedThemeStyles:function(e){var n,r,o,i=((n=this.$style)===null||n===void 0||(r=n.getPresetTheme)===null||r===void 0?void 0:r.call(n,e,"[".concat(this.$attrSelector,"]")))||{},c=i.css,a=(o=this.$style)===null||o===void 0?void 0:o.load(c,z({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(){};tt.clearLoadedStyleNames(),qe.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 Un(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]:{},i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!0,c=/./g.test(r)&&!!o[r.split(".")[0]],a=this._getPropValue("ptOptions")||((e=this.$primevueConfig)===null||e===void 0?void 0:e.ptOptions)||{},l=a.mergeSections,d=l===void 0?!0:l,m=a.mergeProps,p=m===void 0?!1:m,y=i?c?this._useGlobalPT(this._getPTClassValue,r,o):this._useDefaultPT(this._getPTClassValue,r,o):void 0,k=c?void 0:this._getPTSelf(n,this._getPTClassValue,r,z(z({},o),{},{global:y||{}})),_=this._getPTDatasets(r);return d||!d&&k?p?this._mergeProps(p,y,k,_):z(z(z({},y),k),_):z(z({},k),_)},_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 s.mergeProps(this._usePT.apply(this,[this._getPT(e,this.$name)].concat(r)),this._usePT.apply(this,[this.$_attrsPT].concat(r)))},_getPTDatasets:function(){var e,n,r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",o="data-pc-",i=r==="root"&&G((e=this.pt)===null||e===void 0?void 0:e["data-pc-section"]);return r!=="transition"&&z(z({},r==="root"&&z(yn({},"".concat(o,"name"),$e(i?(n=this.pt)===null||n===void 0?void 0:n["data-pc-section"]:this.$.type.name)),i&&yn({},"".concat(o,"extend"),$e(this.$.type.name)))),{},yn({},"".concat(o,"section"),$e(r)))},_getPTClassValue:function(){var e=this._getOptionValue.apply(this,arguments);return pe(e)||Vn(e)?{class:e}:e},_getPT:function(e){var n=this,r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"",o=arguments.length>2?arguments[2]:void 0,i=function(a){var l,d=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,m=o?o(a):a,p=$e(r),y=$e(n.$name);return(l=d?p!==y?m==null?void 0:m[p]:void 0:m==null?void 0:m[p])!==null&&l!==void 0?l:m};return e!=null&&e.hasOwnProperty("_usept")?{_usept:e._usept,originalValue:i(e.originalValue),value:i(e.value)}:i(e,!0)},_usePT:function(e,n,r,o){var i=function($){return n($,r,o)};if(e!=null&&e.hasOwnProperty("_usept")){var c,a=e._usept||((c=this.$primevueConfig)===null||c===void 0?void 0:c.ptOptions)||{},l=a.mergeSections,d=l===void 0?!0:l,m=a.mergeProps,p=m===void 0?!1:m,y=i(e.originalValue),k=i(e.value);return y===void 0&&k===void 0?void 0:pe(k)?k:pe(y)?y:d||!d&&k?p?this._mergeProps(p,y,k):z(z({},y),k):k}return i(e)},_useGlobalPT:function(e,n,r){return this._usePT(this.globalPT,e,n,r)},_useDefaultPT:function(e,n,r){return this._usePT(this.defaultPT,e,n,r)},ptm:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return this._getPTValue(this.pt,e,z(z({},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 s.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,z({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,z(z({},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,z(z({},this.$params),r)),i=this._getOptionValue(Zr.inlineStyles,e,z(z({},this.$params),r));return[i,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 ke(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,z({},n.$params))||ke(r,z({},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 z(z({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=gn(e,1),r=n[0];return r==null?void 0:r.startsWith("pt:")}).reduce(function(e,n){var r=gn(n,2),o=r[0],i=r[1],c=o.split(":"),a=na(c),l=a.slice(1);return l==null||l.reduce(function(d,m,p,y){return!d[m]&&(d[m]=p===y.length-1?i:{}),d[m]},e),e},{})},$_attrsWithoutPT:function(){return Object.entries(this.$attrs||{}).filter(function(e){var n=gn(e,1),r=n[0];return!(r!=null&&r.startsWith("pt:"))}).reduce(function(e,n){var r=gn(n,2),o=r[0],i=r[1];return e[o]=i,e},{})},$attrSelector:function(){return pn("pc")}}},aa=`
|
|
144
144
|
.p-icon {
|
|
145
145
|
display: inline-block;
|
|
146
146
|
vertical-align: baseline;
|
|
@@ -172,7 +172,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
172
172
|
transform: rotate(359deg);
|
|
173
173
|
}
|
|
174
174
|
}
|
|
175
|
-
`,
|
|
175
|
+
`,la=ue.extend({name:"baseicon",css:aa});function Ut(t){"@babel/helpers - typeof";return Ut=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Ut(t)}function ro(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 oo(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?ro(Object(n),!0).forEach(function(r){ca(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):ro(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function ca(t,e,n){return(e=ua(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function ua(t){var e=da(t,"string");return Ut(e)=="symbol"?e:e+""}function da(t,e){if(Ut(t)!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e||"default");if(Ut(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}var io={name:"BaseIcon",extends:bn,props:{label:{type:String,default:void 0},spin:{type:Boolean,default:!1}},style:la,provide:function(){return{$pcIcon:this,$parentInstance:this}},methods:{pti:function(){var e=at(this.label);return oo(oo({},!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})}}},Kn={name:"ChevronDownIcon",extends:io},fa=s.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),ma=[fa];function pa(t,e,n,r,o,i){return s.openBlock(),s.createElementBlock("svg",s.mergeProps({width:"14",height:"14",viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg"},t.pti()),ma,16)}Kn.render=pa;var Wn={name:"ChevronRightIcon",extends:io},ha=s.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),ga=[ha];function ya(t,e,n,r,o,i){return s.openBlock(),s.createElementBlock("svg",s.mergeProps({width:"14",height:"14",viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg"},t.pti()),ga,16)}Wn.render=ya;var ba=function(e){var n=e.dt;return`
|
|
176
176
|
.p-panelmenu {
|
|
177
177
|
display: flex;
|
|
178
178
|
flex-direction: column;
|
|
@@ -315,8 +315,8 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
315
315
|
.p-panelmenu-item:not(.p-disabled) > .p-panelmenu-item-content:hover .p-panelmenu-submenu-icon {
|
|
316
316
|
color: `).concat(n("panelmenu.submenu.icon.focus.color"),`;
|
|
317
317
|
}
|
|
318
|
-
`)},
|
|
319
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Pa(t,e){if(t){if(typeof t=="string")return sr(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)?sr(t,e):void 0}}function sr(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,o=Array(e);n<e;n++)o[n]=t[n];return o}function Aa(t,e){var n=t==null?null:typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(n!=null){var o,r,i,c,a=[],l=!0,d=!1;try{if(i=(n=n.call(t)).next,e!==0)for(;!(l=(o=i.call(n)).done)&&(a.push(o.value),a.length!==e);l=!0);}catch(m){d=!0,r=m}finally{try{if(!l&&n.return!=null&&(c=n.return(),Object(c)!==c))return}finally{if(d)throw r}}return a}}function xa(t){if(Array.isArray(t))return t}function ar(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);e&&(o=o.filter(function(r){return Object.getOwnPropertyDescriptor(t,r).enumerable})),n.push.apply(n,o)}return n}function W(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?ar(Object(n),!0).forEach(function(o){Gn(t,o,n[o])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):ar(Object(n)).forEach(function(o){Object.defineProperty(t,o,Object.getOwnPropertyDescriptor(n,o))})}return t}function Gn(t,e,n){return(e=Oa(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function Oa(t){var e=La(t,"string");return Rt(e)=="symbol"?e:e+""}function La(t,e){if(Rt(t)!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var o=n.call(t,e||"default");if(Rt(o)!="object")return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}var V={_getMeta:function(){return[Qe(arguments.length<=0?void 0:arguments[0])||arguments.length<=0?void 0:arguments[0],ke(Qe(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 o,r,i;return(o=(e==null||(r=e.instance)===null||r===void 0?void 0:r.$primevue)||(n==null||(i=n.ctx)===null||i===void 0||(i=i.appContext)===null||i===void 0||(i=i.config)===null||i===void 0||(i=i.globalProperties)===null||i===void 0?void 0:i.$primevue))===null||o===void 0?void 0:o.config},_getOptionValue:Un,_getPTValue:function(){var e,n,o=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"",c=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},a=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!0,l=function(){var k=V._getOptionValue.apply(V,arguments);return pe(k)||Vn(k)?{class:k}:k},d=((e=o.binding)===null||e===void 0||(e=e.value)===null||e===void 0?void 0:e.ptOptions)||((n=o.$primevueConfig)===null||n===void 0?void 0:n.ptOptions)||{},m=d.mergeSections,h=m===void 0?!0:m,v=d.mergeProps,I=v===void 0?!1:v,T=a?V._useDefaultPT(o,o.defaultPT(),l,i,c):void 0,$=V._usePT(o,V._getPT(r,o.$name),l,i,W(W({},c),{},{global:T||{}})),B=V._getPTDatasets(o,i);return h||!h&&$?I?V._mergeProps(o,I,T,$,B):W(W(W({},T),$),B):W(W({},$),B)},_getPTDatasets:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"",o="data-pc-";return W(W({},n==="root"&&Gn({},"".concat(o,"name"),Le(e.$name))),{},Gn({},"".concat(o,"section"),Le(n)))},_getPT:function(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"",o=arguments.length>2?arguments[2]:void 0,r=function(c){var a,l=o?o(c):c,d=Le(n);return(a=l==null?void 0:l[d])!==null&&a!==void 0?a:l};return e!=null&&e.hasOwnProperty("_usept")?{_usept:e._usept,originalValue:r(e.originalValue),value:r(e.value)}:r(e)},_usePT:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0,o=arguments.length>2?arguments[2]:void 0,r=arguments.length>3?arguments[3]:void 0,i=arguments.length>4?arguments[4]:void 0,c=function(B){return o(B,r,i)};if(n!=null&&n.hasOwnProperty("_usept")){var a,l=n._usept||((a=e.$primevueConfig)===null||a===void 0?void 0:a.ptOptions)||{},d=l.mergeSections,m=d===void 0?!0:d,h=l.mergeProps,v=h===void 0?!1:h,I=c(n.originalValue),T=c(n.value);return I===void 0&&T===void 0?void 0:pe(T)?T:pe(I)?I:m||!m&&T?v?V._mergeProps(e,v,I,T):W(W({},I),T):T}return c(n)},_useDefaultPT:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},o=arguments.length>2?arguments[2]:void 0,r=arguments.length>3?arguments[3]:void 0,i=arguments.length>4?arguments[4]:void 0;return V._usePT(e,n,o,r,i)},_loadStyles:function(e,n,o){var r,i=V._getConfig(n,o),c={nonce:i==null||(r=i.csp)===null||r===void 0?void 0:r.nonce};V._loadCoreStyles(e.$instance,c),V._loadThemeStyles(e.$instance,c),V._loadScopedThemeStyles(e.$instance,c),V._themeChangeListener(function(){return V._loadThemeStyles(e.$instance,c)})},_loadCoreStyles:function(){var e,n,o=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},r=arguments.length>1?arguments[1]:void 0;if(!et.isStyleNameLoaded((e=o.$style)===null||e===void 0?void 0:e.name)&&(n=o.$style)!==null&&n!==void 0&&n.name){var i;ue.loadCSS(r),o.isUnstyled()&&((i=o.$style)===null||i===void 0||i.loadCSS(r)),et.setLoadedStyleName(o.$style.name)}},_loadThemeStyles:function(){var e,n,o=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},r=arguments.length>1?arguments[1]:void 0;if(!(o!=null&&o.isUnstyled())){if(!Z.isStyleNameLoaded("common")){var i,c,a=((i=o.$style)===null||i===void 0||(c=i.getCommonTheme)===null||c===void 0?void 0:c.call(i))||{},l=a.primitive,d=a.semantic;ue.load(l==null?void 0:l.css,W({name:"primitive-variables"},r)),ue.load(d==null?void 0:d.css,W({name:"semantic-variables"},r)),ue.loadTheme(W({name:"global-style"},r)),Z.setLoadedStyleName("common")}if(!Z.isStyleNameLoaded((e=o.$style)===null||e===void 0?void 0:e.name)&&(n=o.$style)!==null&&n!==void 0&&n.name){var m,h,v,I,T=((m=o.$style)===null||m===void 0||(h=m.getDirectiveTheme)===null||h===void 0?void 0:h.call(m))||{},$=T.css;(v=o.$style)===null||v===void 0||v.load($,W({name:"".concat(o.$style.name,"-variables")},r)),(I=o.$style)===null||I===void 0||I.loadTheme(W({name:"".concat(o.$style.name,"-style")},r)),Z.setLoadedStyleName(o.$style.name)}if(!Z.isStyleNameLoaded("layer-order")){var B,L,k=(B=o.$style)===null||B===void 0||(L=B.getLayerOrderThemeCSS)===null||L===void 0?void 0:L.call(B);ue.load(k,W({name:"layer-order",first:!0},r)),Z.setLoadedStyleName("layer-order")}}},_loadScopedThemeStyles:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0,o=e.preset();if(o&&e.$attrSelector){var r,i,c,a=((r=e.$style)===null||r===void 0||(i=r.getPresetTheme)===null||i===void 0?void 0:i.call(r,o,"[".concat(e.$attrSelector,"]")))||{},l=a.css,d=(c=e.$style)===null||c===void 0?void 0:c.load(l,W({name:"".concat(e.$attrSelector,"-").concat(e.$style.name)},n));e.scopedStyleEl=d.el}},_themeChangeListener:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:function(){};et.clearLoadedStyleNames(),Ge.on("theme:change",e)},_hook:function(e,n,o,r,i,c){var a,l,d="on".concat(Bs(n)),m=V._getConfig(r,i),h=o==null?void 0:o.$instance,v=V._usePT(h,V._getPT(r==null||(a=r.value)===null||a===void 0?void 0:a.pt,e),V._getOptionValue,"hooks.".concat(d)),I=V._useDefaultPT(h,m==null||(l=m.pt)===null||l===void 0||(l=l.directives)===null||l===void 0?void 0:l[e],V._getOptionValue,"hooks.".concat(d)),T={el:o,binding:r,vnode:i,prevVnode:c};v==null||v(h,T),I==null||I(h,T)},_mergeProps:function(){for(var e=arguments.length>1?arguments[1]:void 0,n=arguments.length,o=new Array(n>2?n-2:0),r=2;r<n;r++)o[r-2]=arguments[r];return Rn(e)?e.apply(void 0,o):s.mergeProps.apply(void 0,o)},_extend:function(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},o=function(c,a,l,d,m){var h,v,I;a._$instances=a._$instances||{};var T=V._getConfig(l,d),$=a._$instances[e]||{},B=at($)?W(W({},n),n==null?void 0:n.methods):{};a._$instances[e]=W(W({},$),{},{$name:e,$host:a,$binding:l,$modifiers:l==null?void 0:l.modifiers,$value:l==null?void 0:l.value,$el:$.$el||a||void 0,$style:W({classes:void 0,inlineStyles:void 0,load:function(){},loadCSS:function(){},loadTheme:function(){}},n==null?void 0:n.style),$primevueConfig:T,$attrSelector:a.$attrSelector,defaultPT:function(){return V._getPT(T==null?void 0:T.pt,void 0,function(k){var N;return k==null||(N=k.directives)===null||N===void 0?void 0:N[e]})},isUnstyled:function(){var k,N;return((k=a.$instance)===null||k===void 0||(k=k.$binding)===null||k===void 0||(k=k.value)===null||k===void 0?void 0:k.unstyled)!==void 0?(N=a.$instance)===null||N===void 0||(N=N.$binding)===null||N===void 0||(N=N.value)===null||N===void 0?void 0:N.unstyled:T==null?void 0:T.unstyled},theme:function(){var k;return(k=a.$instance)===null||k===void 0||(k=k.$primevueConfig)===null||k===void 0?void 0:k.theme},preset:function(){var k;return(k=a.$instance)===null||k===void 0||(k=k.$binding)===null||k===void 0||(k=k.value)===null||k===void 0?void 0:k.dt},ptm:function(){var k,N=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",F=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return V._getPTValue(a.$instance,(k=a.$instance)===null||k===void 0||(k=k.$binding)===null||k===void 0||(k=k.value)===null||k===void 0?void 0:k.pt,N,W({},F))},ptmo:function(){var k=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},N=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"",F=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return V._getPTValue(a.$instance,k,N,F,!1)},cx:function(){var k,N,F=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",J=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return(k=a.$instance)!==null&&k!==void 0&&k.isUnstyled()?void 0:V._getOptionValue((N=a.$instance)===null||N===void 0||(N=N.$style)===null||N===void 0?void 0:N.classes,F,W({},J))},sx:function(){var k,N=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",F=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0,J=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return F?V._getOptionValue((k=a.$instance)===null||k===void 0||(k=k.$style)===null||k===void 0?void 0:k.inlineStyles,N,W({},J)):void 0}},B),a.$instance=a._$instances[e],(h=(v=a.$instance)[c])===null||h===void 0||h.call(v,a,l,d,m),a["$".concat(e)]=a.$instance,V._hook(e,c,a,l,d,m),a.$pd||(a.$pd={}),a.$pd[e]=W(W({},(I=a.$pd)===null||I===void 0?void 0:I[e]),{},{name:e,instance:a.$instance})},r=function(c){var a,l,d,m,h,v=(a=c.$instance)===null||a===void 0?void 0:a.watch;v==null||(l=v.config)===null||l===void 0||l.call(c.$instance,(d=c.$instance)===null||d===void 0?void 0:d.$primevueConfig),rr.on("config:change",function(I){var T,$=I.newValue,B=I.oldValue;return v==null||(T=v.config)===null||T===void 0?void 0:T.call(c.$instance,$,B)}),v==null||(m=v["config.ripple"])===null||m===void 0||m.call(c.$instance,(h=c.$instance)===null||h===void 0||(h=h.$primevueConfig)===null||h===void 0?void 0:h.ripple),rr.on("config:ripple:change",function(I){var T,$=I.newValue,B=I.oldValue;return v==null||(T=v["config.ripple"])===null||T===void 0?void 0:T.call(c.$instance,$,B)})};return{created:function(c,a,l,d){o("created",c,a,l,d)},beforeMount:function(c,a,l,d){c.$attrSelector=mn("pd"),V._loadStyles(c,a,l),o("beforeMount",c,a,l,d),r(c)},mounted:function(c,a,l,d){V._loadStyles(c,a,l),o("mounted",c,a,l,d)},beforeUpdate:function(c,a,l,d){o("beforeUpdate",c,a,l,d)},updated:function(c,a,l,d){V._loadStyles(c,a,l),o("updated",c,a,l,d)},beforeUnmount:function(c,a,l,d){o("beforeUnmount",c,a,l,d)},unmounted:function(c,a,l,d){var m;(m=c.$instance)===null||m===void 0||(m=m.scopedStyleEl)===null||m===void 0||(m=m.value)===null||m===void 0||m.remove(),o("unmounted",c,a,l,d)}}},extend:function(){var e=V._getMeta.apply(V,arguments),n=ir(e,2),o=n[0],r=n[1];return W({extend:function(){var c=V._getMeta.apply(V,arguments),a=ir(c,2),l=a[0],d=a[1];return V.extend(l,W(W(W({},r),r==null?void 0:r.methods),d))}},V._extend(o,r))}},$a=function(e){var n=e.dt;return`
|
|
318
|
+
`)},va={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"},wa=ue.extend({name:"panelmenu",theme:ba,classes:va}),so=Br();function Vt(t){"@babel/helpers - typeof";return Vt=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Vt(t)}function ao(t,e){return Ca(t)||Sa(t,e)||_a(t,e)||ka()}function ka(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
319
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function _a(t,e){if(t){if(typeof t=="string")return lo(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)?lo(t,e):void 0}}function lo(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 Sa(t,e){var n=t==null?null:typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(n!=null){var r,o,i,c,a=[],l=!0,d=!1;try{if(i=(n=n.call(t)).next,e!==0)for(;!(l=(r=i.call(n)).done)&&(a.push(r.value),a.length!==e);l=!0);}catch(m){d=!0,o=m}finally{try{if(!l&&n.return!=null&&(c=n.return(),Object(c)!==c))return}finally{if(d)throw o}}return a}}function Ca(t){if(Array.isArray(t))return t}function co(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 W(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?co(Object(n),!0).forEach(function(r){Gn(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):co(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function Gn(t,e,n){return(e=Ia(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function Ia(t){var e=Ea(t,"string");return Vt(e)=="symbol"?e:e+""}function Ea(t,e){if(Vt(t)!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e||"default");if(Vt(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}var V={_getMeta:function(){return[et(arguments.length<=0?void 0:arguments[0])||arguments.length<=0?void 0:arguments[0],ke(et(arguments.length<=0?void 0:arguments[0])?arguments.length<=0?void 0:arguments[0]:arguments.length<=1?void 0:arguments[1])]},_getConfig:function(e,n){var r,o,i;return(r=(e==null||(o=e.instance)===null||o===void 0?void 0:o.$primevue)||(n==null||(i=n.ctx)===null||i===void 0||(i=i.appContext)===null||i===void 0||(i=i.config)===null||i===void 0||(i=i.globalProperties)===null||i===void 0?void 0:i.$primevue))===null||r===void 0?void 0:r.config},_getOptionValue:Un,_getPTValue:function(){var e,n,r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"",c=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},a=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!0,l=function(){var S=V._getOptionValue.apply(V,arguments);return pe(S)||Vn(S)?{class:S}:S},d=((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)||{},m=d.mergeSections,p=m===void 0?!0:m,y=d.mergeProps,k=y===void 0?!1:y,_=a?V._useDefaultPT(r,r.defaultPT(),l,i,c):void 0,$=V._usePT(r,V._getPT(o,r.$name),l,i,W(W({},c),{},{global:_||{}})),B=V._getPTDatasets(r,i);return p||!p&&$?k?V._mergeProps(r,k,_,$,B):W(W(W({},_),$),B):W(W({},$),B)},_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 W(W({},n==="root"&&Gn({},"".concat(r,"name"),$e(e.$name))),{},Gn({},"".concat(r,"section"),$e(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(c){var a,l=r?r(c):c,d=$e(n);return(a=l==null?void 0:l[d])!==null&&a!==void 0?a:l};return e!=null&&e.hasOwnProperty("_usept")?{_usept:e._usept,originalValue:o(e.originalValue),value:o(e.value)}:o(e)},_usePT:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0,r=arguments.length>2?arguments[2]:void 0,o=arguments.length>3?arguments[3]:void 0,i=arguments.length>4?arguments[4]:void 0,c=function(B){return r(B,o,i)};if(n!=null&&n.hasOwnProperty("_usept")){var a,l=n._usept||((a=e.$primevueConfig)===null||a===void 0?void 0:a.ptOptions)||{},d=l.mergeSections,m=d===void 0?!0:d,p=l.mergeProps,y=p===void 0?!1:p,k=c(n.originalValue),_=c(n.value);return k===void 0&&_===void 0?void 0:pe(_)?_:pe(k)?k:m||!m&&_?y?V._mergeProps(e,y,k,_):W(W({},k),_):_}return c(n)},_useDefaultPT:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=arguments.length>2?arguments[2]:void 0,o=arguments.length>3?arguments[3]:void 0,i=arguments.length>4?arguments[4]:void 0;return V._usePT(e,n,r,o,i)},_loadStyles:function(e,n,r){var o,i=V._getConfig(n,r),c={nonce:i==null||(o=i.csp)===null||o===void 0?void 0:o.nonce};V._loadCoreStyles(e.$instance,c),V._loadThemeStyles(e.$instance,c),V._loadScopedThemeStyles(e.$instance,c),V._themeChangeListener(function(){return V._loadThemeStyles(e.$instance,c)})},_loadCoreStyles:function(){var e,n,r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},o=arguments.length>1?arguments[1]:void 0;if(!tt.isStyleNameLoaded((e=r.$style)===null||e===void 0?void 0:e.name)&&(n=r.$style)!==null&&n!==void 0&&n.name){var i;ue.loadCSS(o),r.isUnstyled()&&((i=r.$style)===null||i===void 0||i.loadCSS(o)),tt.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(!Z.isStyleNameLoaded("common")){var i,c,a=((i=r.$style)===null||i===void 0||(c=i.getCommonTheme)===null||c===void 0?void 0:c.call(i))||{},l=a.primitive,d=a.semantic;ue.load(l==null?void 0:l.css,W({name:"primitive-variables"},o)),ue.load(d==null?void 0:d.css,W({name:"semantic-variables"},o)),ue.loadTheme(W({name:"global-style"},o)),Z.setLoadedStyleName("common")}if(!Z.isStyleNameLoaded((e=r.$style)===null||e===void 0?void 0:e.name)&&(n=r.$style)!==null&&n!==void 0&&n.name){var m,p,y,k,_=((m=r.$style)===null||m===void 0||(p=m.getDirectiveTheme)===null||p===void 0?void 0:p.call(m))||{},$=_.css;(y=r.$style)===null||y===void 0||y.load($,W({name:"".concat(r.$style.name,"-variables")},o)),(k=r.$style)===null||k===void 0||k.loadTheme(W({name:"".concat(r.$style.name,"-style")},o)),Z.setLoadedStyleName(r.$style.name)}if(!Z.isStyleNameLoaded("layer-order")){var B,A,S=(B=r.$style)===null||B===void 0||(A=B.getLayerOrderThemeCSS)===null||A===void 0?void 0:A.call(B);ue.load(S,W({name:"layer-order",first:!0},o)),Z.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,i,c,a=((o=e.$style)===null||o===void 0||(i=o.getPresetTheme)===null||i===void 0?void 0:i.call(o,r,"[".concat(e.$attrSelector,"]")))||{},l=a.css,d=(c=e.$style)===null||c===void 0?void 0:c.load(l,W({name:"".concat(e.$attrSelector,"-").concat(e.$style.name)},n));e.scopedStyleEl=d.el}},_themeChangeListener:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:function(){};tt.clearLoadedStyleNames(),qe.on("theme:change",e)},_hook:function(e,n,r,o,i,c){var a,l,d="on".concat(As(n)),m=V._getConfig(o,i),p=r==null?void 0:r.$instance,y=V._usePT(p,V._getPT(o==null||(a=o.value)===null||a===void 0?void 0:a.pt,e),V._getOptionValue,"hooks.".concat(d)),k=V._useDefaultPT(p,m==null||(l=m.pt)===null||l===void 0||(l=l.directives)===null||l===void 0?void 0:l[e],V._getOptionValue,"hooks.".concat(d)),_={el:r,binding:o,vnode:i,prevVnode:c};y==null||y(p,_),k==null||k(p,_)},_mergeProps:function(){for(var e=arguments.length>1?arguments[1]:void 0,n=arguments.length,r=new Array(n>2?n-2:0),o=2;o<n;o++)r[o-2]=arguments[o];return Rn(e)?e.apply(void 0,r):s.mergeProps.apply(void 0,r)},_extend:function(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=function(c,a,l,d,m){var p,y,k;a._$instances=a._$instances||{};var _=V._getConfig(l,d),$=a._$instances[e]||{},B=at($)?W(W({},n),n==null?void 0:n.methods):{};a._$instances[e]=W(W({},$),{},{$name:e,$host:a,$binding:l,$modifiers:l==null?void 0:l.modifiers,$value:l==null?void 0:l.value,$el:$.$el||a||void 0,$style:W({classes:void 0,inlineStyles:void 0,load:function(){},loadCSS:function(){},loadTheme:function(){}},n==null?void 0:n.style),$primevueConfig:_,$attrSelector:a.$attrSelector,defaultPT:function(){return V._getPT(_==null?void 0:_.pt,void 0,function(S){var N;return S==null||(N=S.directives)===null||N===void 0?void 0:N[e]})},isUnstyled:function(){var S,N;return((S=a.$instance)===null||S===void 0||(S=S.$binding)===null||S===void 0||(S=S.value)===null||S===void 0?void 0:S.unstyled)!==void 0?(N=a.$instance)===null||N===void 0||(N=N.$binding)===null||N===void 0||(N=N.value)===null||N===void 0?void 0:N.unstyled:_==null?void 0:_.unstyled},theme:function(){var S;return(S=a.$instance)===null||S===void 0||(S=S.$primevueConfig)===null||S===void 0?void 0:S.theme},preset:function(){var S;return(S=a.$instance)===null||S===void 0||(S=S.$binding)===null||S===void 0||(S=S.value)===null||S===void 0?void 0:S.dt},ptm:function(){var S,N=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",F=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return V._getPTValue(a.$instance,(S=a.$instance)===null||S===void 0||(S=S.$binding)===null||S===void 0||(S=S.value)===null||S===void 0?void 0:S.pt,N,W({},F))},ptmo:function(){var S=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},N=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"",F=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return V._getPTValue(a.$instance,S,N,F,!1)},cx:function(){var S,N,F=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",J=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return(S=a.$instance)!==null&&S!==void 0&&S.isUnstyled()?void 0:V._getOptionValue((N=a.$instance)===null||N===void 0||(N=N.$style)===null||N===void 0?void 0:N.classes,F,W({},J))},sx:function(){var S,N=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",F=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0,J=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return F?V._getOptionValue((S=a.$instance)===null||S===void 0||(S=S.$style)===null||S===void 0?void 0:S.inlineStyles,N,W({},J)):void 0}},B),a.$instance=a._$instances[e],(p=(y=a.$instance)[c])===null||p===void 0||p.call(y,a,l,d,m),a["$".concat(e)]=a.$instance,V._hook(e,c,a,l,d,m),a.$pd||(a.$pd={}),a.$pd[e]=W(W({},(k=a.$pd)===null||k===void 0?void 0:k[e]),{},{name:e,instance:a.$instance})},o=function(c){var a,l,d,m,p,y=(a=c.$instance)===null||a===void 0?void 0:a.watch;y==null||(l=y.config)===null||l===void 0||l.call(c.$instance,(d=c.$instance)===null||d===void 0?void 0:d.$primevueConfig),so.on("config:change",function(k){var _,$=k.newValue,B=k.oldValue;return y==null||(_=y.config)===null||_===void 0?void 0:_.call(c.$instance,$,B)}),y==null||(m=y["config.ripple"])===null||m===void 0||m.call(c.$instance,(p=c.$instance)===null||p===void 0||(p=p.$primevueConfig)===null||p===void 0?void 0:p.ripple),so.on("config:ripple:change",function(k){var _,$=k.newValue,B=k.oldValue;return y==null||(_=y["config.ripple"])===null||_===void 0?void 0:_.call(c.$instance,$,B)})};return{created:function(c,a,l,d){r("created",c,a,l,d)},beforeMount:function(c,a,l,d){c.$attrSelector=pn("pd"),V._loadStyles(c,a,l),r("beforeMount",c,a,l,d),o(c)},mounted:function(c,a,l,d){V._loadStyles(c,a,l),r("mounted",c,a,l,d)},beforeUpdate:function(c,a,l,d){r("beforeUpdate",c,a,l,d)},updated:function(c,a,l,d){V._loadStyles(c,a,l),r("updated",c,a,l,d)},beforeUnmount:function(c,a,l,d){r("beforeUnmount",c,a,l,d)},unmounted:function(c,a,l,d){var m;(m=c.$instance)===null||m===void 0||(m=m.scopedStyleEl)===null||m===void 0||(m=m.value)===null||m===void 0||m.remove(),r("unmounted",c,a,l,d)}}},extend:function(){var e=V._getMeta.apply(V,arguments),n=ao(e,2),r=n[0],o=n[1];return W({extend:function(){var c=V._getMeta.apply(V,arguments),a=ao(c,2),l=a[0],d=a[1];return V.extend(l,W(W(W({},o),o==null?void 0:o.methods),d))}},V._extend(r,o))}},Ta=function(e){var n=e.dt;return`
|
|
320
320
|
.p-ink {
|
|
321
321
|
display: block;
|
|
322
322
|
position: absolute;
|
|
@@ -336,9 +336,9 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
336
336
|
transform: scale(2.5);
|
|
337
337
|
}
|
|
338
338
|
}
|
|
339
|
-
`)},
|
|
340
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function
|
|
341
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Qa(t,e){if(t){if(typeof t=="string")return ur(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)?ur(t,e):void 0}}function ur(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,o=Array(e);n<e;n++)o[n]=t[n];return o}function el(t,e){var n=t==null?null:typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(n!=null){var o,r,i,c,a=[],l=!0,d=!1;try{if(i=(n=n.call(t)).next,e!==0)for(;!(l=(o=i.call(n)).done)&&(a.push(o.value),a.length!==e);l=!0);}catch(m){d=!0,r=m}finally{try{if(!l&&n.return!=null&&(c=n.return(),Object(c)!==c))return}finally{if(d)throw r}}return a}}function tl(t){if(Array.isArray(t))return t}var dr={name:"PanelMenuList",hostName:"PanelMenu",extends:yn,emits:["item-toggle","header-focus"],props:{panelId:{type:String,default:null},items:{type:Array,default:null},templates:{type:Object,default:null},expandedKeys:{type:Object,default:null}},searchTimeout:null,searchValue:null,data:function(){return{focused:!1,focusedItem:null,activeItemPath:[]}},watch:{expandedKeys:function(e){this.autoUpdateActiveItemPath(e)}},mounted:function(){this.autoUpdateActiveItemPath(this.expandedKeys)},methods:{getItemProp:function(e,n){return e&&e.item?ke(e.item[n]):void 0},getItemLabel:function(e){return this.getItemProp(e,"label")},isItemVisible:function(e){return this.getItemProp(e,"visible")!==!1},isItemDisabled:function(e){return this.getItemProp(e,"disabled")},isItemActive:function(e){return this.activeItemPath.some(function(n){return n.key===e.parentKey})},isItemGroup:function(e){return G(e.items)},onFocus:function(e){this.focused=!0,this.focusedItem=this.focusedItem||(this.isElementInPanel(e,e.relatedTarget)?this.findFirstItem():this.findLastItem())},onBlur:function(){this.focused=!1,this.focusedItem=null,this.searchValue=""},onKeyDown:function(e){var n=e.metaKey||e.ctrlKey;switch(e.code){case"ArrowDown":this.onArrowDownKey(e);break;case"ArrowUp":this.onArrowUpKey(e);break;case"ArrowLeft":this.onArrowLeftKey(e);break;case"ArrowRight":this.onArrowRightKey(e);break;case"Home":this.onHomeKey(e);break;case"End":this.onEndKey(e);break;case"Space":this.onSpaceKey(e);break;case"Enter":case"NumpadEnter":this.onEnterKey(e);break;case"Escape":case"Tab":case"PageDown":case"PageUp":case"Backspace":case"ShiftLeft":case"ShiftRight":break;default:!n&&$s(e.key)&&this.searchItems(e,e.key);break}},onArrowDownKey:function(e){var n=G(this.focusedItem)?this.findNextItem(this.focusedItem):this.findFirstItem();this.changeFocusedItem({originalEvent:e,processedItem:n,focusOnNext:!0}),e.preventDefault()},onArrowUpKey:function(e){var n=G(this.focusedItem)?this.findPrevItem(this.focusedItem):this.findLastItem();this.changeFocusedItem({originalEvent:e,processedItem:n,selfCheck:!0}),e.preventDefault()},onArrowLeftKey:function(e){var n=this;if(G(this.focusedItem)){var o=this.activeItemPath.some(function(r){return r.key===n.focusedItem.key});o?this.activeItemPath=this.activeItemPath.filter(function(r){return r.key!==n.focusedItem.key}):this.focusedItem=G(this.focusedItem.parent)?this.focusedItem.parent:this.focusedItem,e.preventDefault()}},onArrowRightKey:function(e){var n=this;if(G(this.focusedItem)){var o=this.isItemGroup(this.focusedItem);if(o){var r=this.activeItemPath.some(function(i){return i.key===n.focusedItem.key});r?this.onArrowDownKey(e):(this.activeItemPath=this.activeItemPath.filter(function(i){return i.parentKey!==n.focusedItem.parentKey}),this.activeItemPath.push(this.focusedItem))}e.preventDefault()}},onHomeKey:function(e){this.changeFocusedItem({originalEvent:e,processedItem:this.findFirstItem(),allowHeaderFocus:!1}),e.preventDefault()},onEndKey:function(e){this.changeFocusedItem({originalEvent:e,processedItem:this.findLastItem(),focusOnNext:!0,allowHeaderFocus:!1}),e.preventDefault()},onEnterKey:function(e){if(G(this.focusedItem)){var n=Oe(this.$el,'li[id="'.concat("".concat(this.focusedItemId),'"]')),o=n&&(Oe(n,'[data-pc-section="itemlink"]')||Oe(n,"a,button"));o?o.click():n&&n.click()}e.preventDefault()},onSpaceKey:function(e){this.onEnterKey(e)},onItemToggle:function(e){var n=e.processedItem,o=e.expanded;this.expandedKeys?this.$emit("item-toggle",{item:n.item,expanded:o}):(this.activeItemPath=this.activeItemPath.filter(function(r){return r.parentKey!==n.parentKey}),o&&this.activeItemPath.push(n)),this.focusedItem=n,Pt(this.$el)},onItemMouseMove:function(e){this.focused&&(this.focusedItem=e.processedItem)},isElementInPanel:function(e,n){var o=e.currentTarget.closest('[data-pc-section="panel"]');return o&&o.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 $o(this.visibleItems,function(n){return e.isValidItem(n)})},findNextItem:function(e){var n=this,o=this.visibleItems.findIndex(function(i){return i.key===e.key}),r=o<this.visibleItems.length-1?this.visibleItems.slice(o+1).find(function(i){return n.isValidItem(i)}):void 0;return r||e},findPrevItem:function(e){var n=this,o=this.visibleItems.findIndex(function(i){return i.key===e.key}),r=o>0?$o(this.visibleItems.slice(0,o),function(i){return n.isValidItem(i)}):void 0;return r||e},searchItems:function(e,n){var o=this;this.searchValue=(this.searchValue||"")+n;var r=null,i=!1;if(G(this.focusedItem)){var c=this.visibleItems.findIndex(function(a){return a.key===o.focusedItem.key});r=this.visibleItems.slice(c).find(function(a){return o.isItemMatched(a)}),r=at(r)?this.visibleItems.slice(0,c).find(function(a){return o.isItemMatched(a)}):r}else r=this.visibleItems.find(function(a){return o.isItemMatched(a)});return G(r)&&(i=!0),at(r)&&at(this.focusedItem)&&(r=this.findFirstItem()),G(r)&&this.changeFocusedItem({originalEvent:e,processedItem:r,allowHeaderFocus:!1}),this.searchTimeout&&clearTimeout(this.searchTimeout),this.searchTimeout=setTimeout(function(){o.searchValue="",o.searchTimeout=null},500),i},changeFocusedItem:function(e){var n=e.originalEvent,o=e.processedItem,r=e.focusOnNext,i=e.selfCheck,c=e.allowHeaderFocus,a=c===void 0?!0:c;G(this.focusedItem)&&this.focusedItem.key!==o.key?(this.focusedItem=o,this.scrollInView()):a&&this.$emit("header-focus",{originalEvent:n,focusOnNext:r,selfCheck:i})},scrollInView:function(){var e=Oe(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(o,r){var i=Za(r,2),c=i[0],a=i[1];if(a){var l=n.findProcessedItemByItemKey(c);l&&o.push(l)}return o},[])},findProcessedItemByItemKey:function(e,n){var o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0;if(n=n||o===0&&this.processedItems,!n)return null;for(var r=0;r<n.length;r++){var i=n[r];if(this.getItemProp(i,"key")===e)return i;var c=this.findProcessedItemByItemKey(e,i.items,o+1);if(c)return c}},createProcessedItems:function(e){var n=this,o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:"",c=[];return e&&e.forEach(function(a,l){var d=(i!==""?i+"_":"")+l,m={item:a,index:l,level:o,key:d,parent:r,parentKey:i};m.items=n.createProcessedItems(a.items,o+1,m,d),c.push(m)}),c},flatItems:function(e){var n=this,o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[];return e&&e.forEach(function(r){n.isVisibleItem(r)&&(o.push(r),n.flatItems(r.items,o))}),o}},computed:{processedItems:function(){return this.createProcessedItems(this.items||[])},visibleItems:function(){return this.flatItems(this.processedItems)},focusedItemId:function(){return G(this.focusedItem)?"".concat(this.panelId,"_").concat(this.focusedItem.key):null}},components:{PanelMenuSub:cr}};function nl(t,e,n,o,r,i){var c=s.resolveComponent("PanelMenuSub");return s.openBlock(),s.createBlock(c,s.mergeProps({id:n.panelId+"_list",class:t.cx("rootList"),role:"tree",tabindex:-1,"aria-activedescendant":r.focused?i.focusedItemId:void 0,panelId:n.panelId,focusedItemId:r.focused?i.focusedItemId:void 0,items:i.processedItems,templates:n.templates,activeItemPath:r.activeItemPath,onFocus:i.onFocus,onBlur:i.onBlur,onKeydown:i.onKeyDown,onItemToggle:i.onItemToggle,onItemMousemove:i.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"])}dr.render=nl;function Vt(t){"@babel/helpers - typeof";return Vt=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Vt(t)}function fr(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);e&&(o=o.filter(function(r){return Object.getOwnPropertyDescriptor(t,r).enumerable})),n.push.apply(n,o)}return n}function ol(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?fr(Object(n),!0).forEach(function(o){rl(t,o,n[o])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):fr(Object(n)).forEach(function(o){Object.defineProperty(t,o,Object.getOwnPropertyDescriptor(n,o))})}return t}function rl(t,e,n){return(e=il(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function il(t){var e=sl(t,"string");return Vt(e)=="symbol"?e:e+""}function sl(t,e){if(Vt(t)!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var o=n.call(t,e||"default");if(Vt(o)!="object")return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}var mr={name:"PanelMenu",extends:za,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||mn()}},mounted:function(){this.id=this.id||mn()},methods:{getItemProp:function(e,n){return e?ke(e[n]):void 0},getItemLabel:function(e){return this.getItemProp(e,"label")},getPTOptions:function(e,n,o){return this.ptm(e,{context:{index:o,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 ht(e,n)}):ht(e,this.activeItem)},isItemVisible:function(e){return this.getItemProp(e,"visible")!==!1},isItemDisabled:function(e){return this.getItemProp(e,"disabled")},isItemFocused:function(e){return ht(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),Pt(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=At(e.currentTarget,"data-p-active")===!0?Oe(e.currentTarget.nextElementSibling,'[data-pc-section="rootlist"]'):null;n?Pt(n):this.updateFocusedHeader({originalEvent:e,focusOnNext:!0}),e.preventDefault()},onHeaderArrowUpKey:function(e){var n=this.findPrevHeader(e.currentTarget.parentElement)||this.findLastHeader(),o=At(n,"data-p-active")===!0?Oe(n.nextElementSibling,'[data-pc-section="rootlist"]'):null;o?Pt(o):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 o=Oe(e.currentTarget,'[data-pc-section="headerlink"]');o?o.click():this.onHeaderClick(e,n),e.preventDefault()},findNextHeader:function(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,o=n?e:e.nextElementSibling,r=Oe(o,'[data-pc-section="header"]');return r?At(r,"data-p-disabled")?this.findNextHeader(r.parentElement):r:null},findPrevHeader:function(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,o=n?e:e.previousElementSibling,r=Oe(o,'[data-pc-section="header"]');return r?At(r,"data-p-disabled")?this.findPrevHeader(r.parentElement):r: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,o=e.focusOnNext,r=e.selfCheck,i=n.currentTarget.closest('[data-pc-section="panel"]'),c=r?Oe(i,'[data-pc-section="header"]'):o?this.findNextHeader(i):this.findPrevHeader(i);c?this.changeFocusedHeader(n,c):o?this.onHeaderHomeKey(n):this.onHeaderEndKey(n)},changeActiveItem:function(e,n){var o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;if(!this.isItemDisabled(n)){var r=this.isItemActive(n),i=r?"panel-close":"panel-open";this.activeItem=o?n:this.activeItem&&ht(n,this.activeItem)?null:n,this.multiple&&(this.activeItems.some(function(c){return ht(n,c)})?this.activeItems=this.activeItems.filter(function(c){return!ht(n,c)}):this.activeItems.push(n)),this.changeExpandedKeys({item:n,expanded:!r}),this.$emit(i,{originalEvent:e,item:n})}},changeExpandedKeys:function(e){var n=e.item,o=e.expanded,r=o===void 0?!1:o;if(this.expandedKeys){var i=ol({},this.expandedKeys);r?i[n.key]=!0:delete i[n.key],this.$emit("update:expandedKeys",i)}},changeFocusedHeader:function(e,n){n&&Pt(n)},getMenuItemProps:function(e,n){return{icon:s.mergeProps({class:[this.cx("headerIcon"),this.getItemProp(e,"icon")]},this.getPTOptions("headerIcon",e,n)),label:s.mergeProps({class:this.cx("headerLabel")},this.getPTOptions("headerLabel",e,n))}}},components:{PanelMenuList:dr,ChevronRightIcon:Wn,ChevronDownIcon:zn}},al=["id"],ll=["id","tabindex","aria-label","aria-expanded","aria-controls","aria-disabled","onClick","onKeydown","data-p-active","data-p-disabled"],cl=["href"],ul=["id","aria-labelledby"];function dl(t,e,n,o,r,i){var c=s.resolveComponent("PanelMenuList");return s.openBlock(),s.createElementBlock("div",s.mergeProps({id:r.id,class:t.cx("root")},t.ptmi("root")),[(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(t.model,function(a,l){return s.openBlock(),s.createElementBlock(s.Fragment,{key:i.getPanelKey(l)},[i.isItemVisible(a)?(s.openBlock(),s.createElementBlock("div",s.mergeProps({key:0,style:i.getItemProp(a,"style"),class:[t.cx("panel"),i.getItemProp(a,"class")],ref_for:!0},t.ptm("panel")),[s.createElementVNode("div",s.mergeProps({id:i.getHeaderId(l),class:[t.cx("header",{item:a}),i.getItemProp(a,"headerClass")],tabindex:i.isItemDisabled(a)?-1:t.tabindex,role:"button","aria-label":i.getItemLabel(a),"aria-expanded":i.isItemActive(a),"aria-controls":i.getContentId(l),"aria-disabled":i.isItemDisabled(a),onClick:function(m){return i.onHeaderClick(m,a)},onKeydown:function(m){return i.onHeaderKeyDown(m,a)},ref_for:!0},i.getPTOptions("header",a,l),{"data-p-active":i.isItemActive(a),"data-p-disabled":i.isItemDisabled(a)}),[s.createElementVNode("div",s.mergeProps({class:t.cx("headerContent"),ref_for:!0},i.getPTOptions("headerContent",a,l)),[t.$slots.item?(s.openBlock(),s.createBlock(s.resolveDynamicComponent(t.$slots.item),{key:1,item:a,root:!0,active:i.isItemActive(a),hasSubmenu:i.getItemProp(a,"items"),label:i.getItemLabel(a),props:i.getMenuItemProps(a,l)},null,8,["item","active","hasSubmenu","label","props"])):(s.openBlock(),s.createElementBlock("a",s.mergeProps({key:0,href:i.getItemProp(a,"url"),class:t.cx("headerLink"),tabindex:-1,ref_for:!0},i.getPTOptions("headerLink",a,l)),[i.getItemProp(a,"items")?s.renderSlot(t.$slots,"submenuicon",{key:0,active:i.isItemActive(a)},function(){return[(s.openBlock(),s.createBlock(s.resolveDynamicComponent(i.isItemActive(a)?"ChevronDownIcon":"ChevronRightIcon"),s.mergeProps({class:t.cx("submenuIcon"),ref_for:!0},i.getPTOptions("submenuIcon",a,l)),null,16,["class"]))]}):s.createCommentVNode("",!0),t.$slots.headericon?(s.openBlock(),s.createBlock(s.resolveDynamicComponent(t.$slots.headericon),{key:1,item:a,class:s.normalizeClass([t.cx("headerIcon"),i.getItemProp(a,"icon")])},null,8,["item","class"])):i.getItemProp(a,"icon")?(s.openBlock(),s.createElementBlock("span",s.mergeProps({key:2,class:[t.cx("headerIcon"),i.getItemProp(a,"icon")],ref_for:!0},i.getPTOptions("headerIcon",a,l)),null,16)):s.createCommentVNode("",!0),s.createElementVNode("span",s.mergeProps({class:t.cx("headerLabel"),ref_for:!0},i.getPTOptions("headerLabel",a,l)),s.toDisplayString(i.getItemLabel(a)),17)],16,cl))],16)],16,ll),s.createVNode(s.Transition,s.mergeProps({name:"p-toggleable-content",ref_for:!0},t.ptm("transition")),{default:s.withCtx(function(){return[s.withDirectives(s.createElementVNode("div",s.mergeProps({id:i.getContentId(l),class:t.cx("contentContainer"),role:"region","aria-labelledby":i.getHeaderId(l),ref_for:!0},t.ptm("contentContainer")),[i.getItemProp(a,"items")?(s.openBlock(),s.createElementBlock("div",s.mergeProps({key:0,class:t.cx("content"),ref_for:!0},t.ptm("content")),[s.createVNode(c,{panelId:i.getPanelId(l),items:i.getItemProp(a,"items"),templates:t.$slots,expandedKeys:t.expandedKeys,onItemToggle:i.changeExpandedKeys,onHeaderFocus:i.updateFocusedHeader,pt:t.pt,unstyled:t.unstyled},null,8,["panelId","items","templates","expandedKeys","onItemToggle","onHeaderFocus","pt","unstyled"])],16)):s.createCommentVNode("",!0)],16,ul),[[s.vShow,i.isItemActive(a)]])]}),_:2},1040)],16)):s.createCommentVNode("",!0)],64)}),128))],16,al)}mr.render=dl;const fl={class:"panel-menu-wrapper"},ml=["data-active","href","onClick"],pl={class:"material-symbols-outlined item-menu-icon-left"},hl={key:1,class:"item-menu sf-ripple"},gl={key:0,class:"material-symbols-outlined item-menu-icon-left"},yl=ln(s.defineComponent({__name:"NavMenu",props:{items:{}},setup(t){const e=t,n=Bn();function o(r,i){r.preventDefault();const a=r.target.closest(".panel-menu-wrapper");a&&a.clientWidth+10>document.body.clientWidth&&n.Close(),i()}return(r,i)=>{const c=s.resolveComponent("router-link");return s.openBlock(),s.createElementBlock("div",fl,[s.createVNode(s.unref(mr),{model:e.items,unstyled:!0},{item:s.withCtx(({item:a,active:l})=>[a.href?(s.openBlock(),s.createBlock(c,{key:0,to:{path:a.href,params:a.params??{},query:a.query??{}},custom:""},{default:s.withCtx(({navigate:d,isActive:m})=>[s.createElementVNode("a",{class:"item-menu sf-ripple","data-active":m,href:a.href,onClick:h=>o(h,d)},[s.createElementVNode("span",pl,s.toDisplayString(a.icon??"chevron_right"),1),s.createElementVNode("span",null,s.toDisplayString(a.text),1)],8,ml)]),_:2},1032,["to"])):(s.openBlock(),s.createElementBlock("a",hl,[a.icon?(s.openBlock(),s.createElementBlock("span",gl,s.toDisplayString(a.icon),1)):s.createCommentVNode("",!0),s.createElementVNode("span",null,s.toDisplayString(a.text),1),i[0]||(i[0]=s.createElementVNode("div",{class:"sf-flex-grow-1"},null,-1)),s.createElementVNode("span",{class:s.normalizeClass(["material-symbols-outlined arrow",{"--expand":l}])}," chevron_right ",2)]))]),_:1},8,["model"])])}}}),[["__scopeId","data-v-1411187f"]]),pr="SweetAlert2:",bl=t=>{const e=[];for(let n=0;n<t.length;n++)e.indexOf(t[n])===-1&&e.push(t[n]);return e},Yn=t=>t.charAt(0).toUpperCase()+t.slice(1),_e=t=>Array.prototype.slice.call(t),he=t=>{console.warn(`${pr} ${typeof t=="object"?t.join(" "):t}`)},lt=t=>{console.error(`${pr} ${t}`)},hr=[],vl=t=>{hr.includes(t)||(hr.push(t),he(t))},wl=(t,e)=>{vl(`"${t}" is deprecated and will be removed in the next major release. Please use "${e}" instead.`)},bn=t=>typeof t=="function"?t():t,Xn=t=>t&&typeof t.toPromise=="function",Ht=t=>Xn(t)?t.toPromise():Promise.resolve(t),Zn=t=>t&&Promise.resolve(t)===t,gt={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},kl=["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"],_l={},Sl=["allowOutsideClick","allowEnterKey","backdrop","focusConfirm","focusDeny","focusCancel","returnFocus","heightAuto","keydownListenerCapture"],gr=t=>Object.prototype.hasOwnProperty.call(gt,t),yr=t=>kl.indexOf(t)!==-1,Jn=t=>_l[t],Cl=t=>{gr(t)||he(`Unknown parameter "${t}"`)},Il=t=>{Sl.includes(t)&&he(`The parameter "${t}" is incompatible with toasts`)},Tl=t=>{Jn(t)&&wl(t,Jn(t))},El=t=>{!t.backdrop&&t.allowOutsideClick&&he('"allowOutsideClick" parameter requires `backdrop` parameter to be set to `true`');for(const e in t)Cl(e),t.toast&&Il(e),Tl(e)},Pl="swal2-",br=t=>{const e={};for(const n in t)e[t[n]]=Pl+t[n];return e},g=br(["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"]),jt=br(["success","warning","info","question","error"]),re=()=>document.body.querySelector(`.${g.container}`),Ft=t=>{const e=re();return e?e.querySelector(t):null},Ee=t=>Ft(`.${t}`),q=()=>Ee(g.popup),Kt=()=>Ee(g.icon),vr=()=>Ee(g.title),vn=()=>Ee(g["html-container"]),wr=()=>Ee(g.image),kr=()=>Ee(g["progress-steps"]),wn=()=>Ee(g["validation-message"]),Be=()=>Ft(`.${g.actions} .${g.confirm}`),tt=()=>Ft(`.${g.actions} .${g.deny}`),Al=()=>Ee(g["input-label"]),yt=()=>Ft(`.${g.loader}`),ct=()=>Ft(`.${g.actions} .${g.cancel}`),zt=()=>Ee(g.actions),_r=()=>Ee(g.footer),kn=()=>Ee(g["timer-progress-bar"]),Qn=()=>Ee(g.close),xl=`
|
|
339
|
+
`)},Aa={root:"p-ink"},Pa=ue.extend({name:"ripple-directive",theme:Ta,classes:Aa}),xa=V.extend({style:Pa});function Ht(t){"@babel/helpers - typeof";return Ht=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Ht(t)}function Oa(t){return Na(t)||Ba(t)||$a(t)||La()}function La(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
340
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function $a(t,e){if(t){if(typeof t=="string")return qn(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)?qn(t,e):void 0}}function Ba(t){if(typeof Symbol<"u"&&t[Symbol.iterator]!=null||t["@@iterator"]!=null)return Array.from(t)}function Na(t){if(Array.isArray(t))return qn(t)}function qn(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 uo(t,e,n){return(e=Ma(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function Ma(t){var e=Da(t,"string");return Ht(e)=="symbol"?e:e+""}function Da(t,e){if(Ht(t)!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e||"default");if(Ht(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}var Ra=xa.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=ws("span",uo(uo({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()&&Mn(o,"p-ink-active"),o.setAttribute("data-p-ink-active","false"),!Lr(o)&&!$r(o)){var i=Math.max(vs(r),Ss(r));o.style.height=i+"px",o.style.width=i+"px"}var c=_s(r),a=e.pageX-c.left+document.body.scrollTop-$r(o)/2,l=e.pageY-c.top+document.body.scrollLeft-Lr(o)/2;o.style.top=l+"px",o.style.left=a+"px",!this.isUnstyled()&&bs(o,"p-ink-active"),o.setAttribute("data-p-ink-active","true"),this.timeout=setTimeout(function(){o&&(!n.isUnstyled()&&Mn(o,"p-ink-active"),o.setAttribute("data-p-ink-active","false"))},401)}},onAnimationEnd:function(e){this.timeout&&clearTimeout(this.timeout),!this.isUnstyled()&&Mn(e.currentTarget,"p-ink-active"),e.currentTarget.setAttribute("data-p-ink-active","false")},getInk:function(e){return e&&e.children?Oa(e.children).find(function(n){return Ot(n,"data-pc-name")==="ripple"}):void 0}}}),Ua={name:"BasePanelMenu",extends:bn,props:{model:{type:Array,default:null},expandedKeys:{type:Object,default:null},multiple:{type:Boolean,default:!1},tabindex:{type:Number,default:0}},style:wa,provide:function(){return{$pcPanelMenu:this,$parentInstance:this}}},fo={name:"PanelMenuSub",hostName:"PanelMenu",extends:bn,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?ke(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.item,index:r,active:this.isItemActive(n),focused:this.isItemFocused(n),disabled:this.isItemDisabled(n)}})},isItemActive:function(e){return this.activeItemPath.some(function(n){return n.key===e.key})},isItemVisible:function(e){return this.getItemProp(e,"visible")!==!1},isItemDisabled:function(e){return this.getItemProp(e,"disabled")},isItemFocused:function(e){return this.focusedItemId===this.getItemId(e)},isItemGroup:function(e){return G(e.items)},onItemClick:function(e,n){this.getItemProp(n,"command",{originalEvent:e,item:n.item}),this.$emit("item-toggle",{processedItem:n,expanded:!this.isItemActive(n)})},onItemToggle:function(e){this.$emit("item-toggle",e)},onItemMouseMove:function(e,n){this.$emit("item-mousemove",{originalEvent:e,processedItem:n})},getAriaSetSize:function(){var e=this;return this.items.filter(function(n){return e.isItemVisible(n)&&!e.getItemProp(n,"separator")}).length},getAriaPosInset:function(e){var n=this;return e-this.items.slice(0,e).filter(function(r){return n.isItemVisible(r)&&n.getItemProp(r,"separator")}).length+1},getMenuItemProps:function(e,n){return{action:s.mergeProps({class:this.cx("itemLink"),tabindex:-1,"aria-hidden":!0},this.getPTOptions("itemLink",e,n)),icon:s.mergeProps({class:[this.cx("itemIcon"),this.getItemProp(e,"icon")]},this.getPTOptions("itemIcon",e,n)),label:s.mergeProps({class:this.cx("itemLabel")},this.getPTOptions("itemLabel",e,n)),submenuicon:s.mergeProps({class:this.cx("submenuIcon")},this.getPTOptions("submenuicon",e,n))}}},components:{ChevronRightIcon:Wn,ChevronDownIcon:Kn},directives:{ripple:Ra}},Va=["tabindex"],Ha=["id","aria-label","aria-expanded","aria-level","aria-setsize","aria-posinset","data-p-focused","data-p-disabled"],ja=["onClick","onMousemove"],Fa=["href","target"];function za(t,e,n,r,o,i){var c=s.resolveComponent("PanelMenuSub",!0),a=s.resolveDirective("ripple");return s.openBlock(),s.createElementBlock("ul",{class:s.normalizeClass(t.cx("submenu")),tabindex:n.tabindex},[(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(n.items,function(l,d){return s.openBlock(),s.createElementBlock(s.Fragment,{key:i.getItemKey(l)},[i.isItemVisible(l)&&!i.getItemProp(l,"separator")?(s.openBlock(),s.createElementBlock("li",s.mergeProps({key:0,id:i.getItemId(l),class:[t.cx("item",{processedItem:l}),i.getItemProp(l,"class")],style:i.getItemProp(l,"style"),role:"treeitem","aria-label":i.getItemLabel(l),"aria-expanded":i.isItemGroup(l)?i.isItemActive(l):void 0,"aria-level":n.level+1,"aria-setsize":i.getAriaSetSize(),"aria-posinset":i.getAriaPosInset(d),ref_for:!0},i.getPTOptions("item",l,d),{"data-p-focused":i.isItemFocused(l),"data-p-disabled":i.isItemDisabled(l)}),[s.createElementVNode("div",s.mergeProps({class:t.cx("itemContent"),onClick:function(p){return i.onItemClick(p,l)},onMousemove:function(p){return i.onItemMouseMove(p,l)},ref_for:!0},i.getPTOptions("itemContent",l,d)),[n.templates.item?(s.openBlock(),s.createBlock(s.resolveDynamicComponent(n.templates.item),{key:1,item:l.item,root:!1,active:i.isItemActive(l),hasSubmenu:i.isItemGroup(l),label:i.getItemLabel(l),props:i.getMenuItemProps(l,d)},null,8,["item","active","hasSubmenu","label","props"])):s.withDirectives((s.openBlock(),s.createElementBlock("a",s.mergeProps({key:0,href:i.getItemProp(l,"url"),class:t.cx("itemLink"),target:i.getItemProp(l,"target"),tabindex:"-1",ref_for:!0},i.getPTOptions("itemLink",l,d)),[i.isItemGroup(l)?(s.openBlock(),s.createElementBlock(s.Fragment,{key:0},[n.templates.submenuicon?(s.openBlock(),s.createBlock(s.resolveDynamicComponent(n.templates.submenuicon),s.mergeProps({key:0,class:t.cx("submenuIcon"),active:i.isItemActive(l),ref_for:!0},i.getPTOptions("submenuIcon",l,d)),null,16,["class","active"])):(s.openBlock(),s.createBlock(s.resolveDynamicComponent(i.isItemActive(l)?"ChevronDownIcon":"ChevronRightIcon"),s.mergeProps({key:1,class:t.cx("submenuIcon"),ref_for:!0},i.getPTOptions("submenuIcon",l,d)),null,16,["class"]))],64)):s.createCommentVNode("",!0),n.templates.itemicon?(s.openBlock(),s.createBlock(s.resolveDynamicComponent(n.templates.itemicon),{key:1,item:l.item,class:s.normalizeClass(t.cx("itemIcon"))},null,8,["item","class"])):i.getItemProp(l,"icon")?(s.openBlock(),s.createElementBlock("span",s.mergeProps({key:2,class:[t.cx("itemIcon"),i.getItemProp(l,"icon")],ref_for:!0},i.getPTOptions("itemIcon",l,d)),null,16)):s.createCommentVNode("",!0),s.createElementVNode("span",s.mergeProps({class:t.cx("itemLabel"),ref_for:!0},i.getPTOptions("itemLabel",l,d)),s.toDisplayString(i.getItemLabel(l)),17)],16,Fa)),[[a]])],16,ja),s.createVNode(s.Transition,s.mergeProps({name:"p-toggleable-content",ref_for:!0},t.ptm("transition")),{default:s.withCtx(function(){return[s.withDirectives(s.createElementVNode("div",s.mergeProps({class:t.cx("contentContainer"),ref_for:!0},t.ptm("contentContainer")),[i.isItemVisible(l)&&i.isItemGroup(l)?(s.openBlock(),s.createBlock(c,s.mergeProps({key:0,id:i.getItemId(l)+"_list",role:"group",panelId:n.panelId,focusedItemId:n.focusedItemId,items:l.items,level:n.level+1,templates:n.templates,activeItemPath:n.activeItemPath,onItemToggle:i.onItemToggle,onItemMousemove:e[0]||(e[0]=function(m){return t.$emit("item-mousemove",m)}),pt:t.pt,unstyled:t.unstyled,ref_for:!0},t.ptm("submenu")),null,16,["id","panelId","focusedItemId","items","level","templates","activeItemPath","onItemToggle","pt","unstyled"])):s.createCommentVNode("",!0)],16),[[s.vShow,i.isItemActive(l)]])]}),_:2},1040)],16,Ha)):s.createCommentVNode("",!0),i.isItemVisible(l)&&i.getItemProp(l,"separator")?(s.openBlock(),s.createElementBlock("li",s.mergeProps({key:1,style:i.getItemProp(l,"style"),class:[t.cx("separator"),i.getItemProp(l,"class")],role:"separator",ref_for:!0},t.ptm("separator")),null,16)):s.createCommentVNode("",!0)],64)}),128))],10,Va)}fo.render=za;function Ka(t,e){return Ya(t)||qa(t,e)||Ga(t,e)||Wa()}function Wa(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
341
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Ga(t,e){if(t){if(typeof t=="string")return mo(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)?mo(t,e):void 0}}function mo(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 qa(t,e){var n=t==null?null:typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(n!=null){var r,o,i,c,a=[],l=!0,d=!1;try{if(i=(n=n.call(t)).next,e!==0)for(;!(l=(r=i.call(n)).done)&&(a.push(r.value),a.length!==e);l=!0);}catch(m){d=!0,o=m}finally{try{if(!l&&n.return!=null&&(c=n.return(),Object(c)!==c))return}finally{if(d)throw o}}return a}}function Ya(t){if(Array.isArray(t))return t}var po={name:"PanelMenuList",hostName:"PanelMenu",extends:bn,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?ke(e.item[n]):void 0},getItemLabel:function(e){return this.getItemProp(e,"label")},isItemVisible:function(e){return this.getItemProp(e,"visible")!==!1},isItemDisabled:function(e){return this.getItemProp(e,"disabled")},isItemActive:function(e){return this.activeItemPath.some(function(n){return n.key===e.parentKey})},isItemGroup:function(e){return G(e.items)},onFocus:function(e){this.focused=!0,this.focusedItem=this.focusedItem||(this.isElementInPanel(e,e.relatedTarget)?this.findFirstItem():this.findLastItem())},onBlur:function(){this.focused=!1,this.focusedItem=null,this.searchValue=""},onKeyDown:function(e){var n=e.metaKey||e.ctrlKey;switch(e.code){case"ArrowDown":this.onArrowDownKey(e);break;case"ArrowUp":this.onArrowUpKey(e);break;case"ArrowLeft":this.onArrowLeftKey(e);break;case"ArrowRight":this.onArrowRightKey(e);break;case"Home":this.onHomeKey(e);break;case"End":this.onEndKey(e);break;case"Space":this.onSpaceKey(e);break;case"Enter":case"NumpadEnter":this.onEnterKey(e);break;case"Escape":case"Tab":case"PageDown":case"PageUp":case"Backspace":case"ShiftLeft":case"ShiftRight":break;default:!n&&Ts(e.key)&&this.searchItems(e,e.key);break}},onArrowDownKey:function(e){var n=G(this.focusedItem)?this.findNextItem(this.focusedItem):this.findFirstItem();this.changeFocusedItem({originalEvent:e,processedItem:n,focusOnNext:!0}),e.preventDefault()},onArrowUpKey:function(e){var n=G(this.focusedItem)?this.findPrevItem(this.focusedItem):this.findLastItem();this.changeFocusedItem({originalEvent:e,processedItem:n,selfCheck:!0}),e.preventDefault()},onArrowLeftKey:function(e){var n=this;if(G(this.focusedItem)){var r=this.activeItemPath.some(function(o){return o.key===n.focusedItem.key});r?this.activeItemPath=this.activeItemPath.filter(function(o){return o.key!==n.focusedItem.key}):this.focusedItem=G(this.focusedItem.parent)?this.focusedItem.parent:this.focusedItem,e.preventDefault()}},onArrowRightKey:function(e){var n=this;if(G(this.focusedItem)){var r=this.isItemGroup(this.focusedItem);if(r){var o=this.activeItemPath.some(function(i){return i.key===n.focusedItem.key});o?this.onArrowDownKey(e):(this.activeItemPath=this.activeItemPath.filter(function(i){return i.parentKey!==n.focusedItem.parentKey}),this.activeItemPath.push(this.focusedItem))}e.preventDefault()}},onHomeKey:function(e){this.changeFocusedItem({originalEvent:e,processedItem:this.findFirstItem(),allowHeaderFocus:!1}),e.preventDefault()},onEndKey:function(e){this.changeFocusedItem({originalEvent:e,processedItem:this.findLastItem(),focusOnNext:!0,allowHeaderFocus:!1}),e.preventDefault()},onEnterKey:function(e){if(G(this.focusedItem)){var n=Le(this.$el,'li[id="'.concat("".concat(this.focusedItemId),'"]')),r=n&&(Le(n,'[data-pc-section="itemlink"]')||Le(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,xt(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 Nr(this.visibleItems,function(n){return e.isValidItem(n)})},findNextItem:function(e){var n=this,r=this.visibleItems.findIndex(function(i){return i.key===e.key}),o=r<this.visibleItems.length-1?this.visibleItems.slice(r+1).find(function(i){return n.isValidItem(i)}):void 0;return o||e},findPrevItem:function(e){var n=this,r=this.visibleItems.findIndex(function(i){return i.key===e.key}),o=r>0?Nr(this.visibleItems.slice(0,r),function(i){return n.isValidItem(i)}):void 0;return o||e},searchItems:function(e,n){var r=this;this.searchValue=(this.searchValue||"")+n;var o=null,i=!1;if(G(this.focusedItem)){var c=this.visibleItems.findIndex(function(a){return a.key===r.focusedItem.key});o=this.visibleItems.slice(c).find(function(a){return r.isItemMatched(a)}),o=at(o)?this.visibleItems.slice(0,c).find(function(a){return r.isItemMatched(a)}):o}else o=this.visibleItems.find(function(a){return r.isItemMatched(a)});return G(o)&&(i=!0),at(o)&&at(this.focusedItem)&&(o=this.findFirstItem()),G(o)&&this.changeFocusedItem({originalEvent:e,processedItem:o,allowHeaderFocus:!1}),this.searchTimeout&&clearTimeout(this.searchTimeout),this.searchTimeout=setTimeout(function(){r.searchValue="",r.searchTimeout=null},500),i},changeFocusedItem:function(e){var n=e.originalEvent,r=e.processedItem,o=e.focusOnNext,i=e.selfCheck,c=e.allowHeaderFocus,a=c===void 0?!0:c;G(this.focusedItem)&&this.focusedItem.key!==r.key?(this.focusedItem=r,this.scrollInView()):a&&this.$emit("header-focus",{originalEvent:n,focusOnNext:o,selfCheck:i})},scrollInView:function(){var e=Le(this.$el,'li[id="'.concat("".concat(this.focusedItemId),'"]'));e&&e.scrollIntoView&&e.scrollIntoView({block:"nearest",inline:"start"})},autoUpdateActiveItemPath:function(e){var n=this;this.activeItemPath=Object.entries(e||{}).reduce(function(r,o){var i=Ka(o,2),c=i[0],a=i[1];if(a){var l=n.findProcessedItemByItemKey(c);l&&r.push(l)}return r},[])},findProcessedItemByItemKey:function(e,n){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0;if(n=n||r===0&&this.processedItems,!n)return null;for(var o=0;o<n.length;o++){var i=n[o];if(this.getItemProp(i,"key")===e)return i;var c=this.findProcessedItemByItemKey(e,i.items,r+1);if(c)return c}},createProcessedItems:function(e){var n=this,r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:"",c=[];return e&&e.forEach(function(a,l){var d=(i!==""?i+"_":"")+l,m={item:a,index:l,level:r,key:d,parent:o,parentKey:i};m.items=n.createProcessedItems(a.items,r+1,m,d),c.push(m)}),c},flatItems:function(e){var n=this,r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[];return e&&e.forEach(function(o){n.isVisibleItem(o)&&(r.push(o),n.flatItems(o.items,r))}),r}},computed:{processedItems:function(){return this.createProcessedItems(this.items||[])},visibleItems:function(){return this.flatItems(this.processedItems)},focusedItemId:function(){return G(this.focusedItem)?"".concat(this.panelId,"_").concat(this.focusedItem.key):null}},components:{PanelMenuSub:fo}};function Xa(t,e,n,r,o,i){var c=s.resolveComponent("PanelMenuSub");return s.openBlock(),s.createBlock(c,s.mergeProps({id:n.panelId+"_list",class:t.cx("rootList"),role:"tree",tabindex:-1,"aria-activedescendant":o.focused?i.focusedItemId:void 0,panelId:n.panelId,focusedItemId:o.focused?i.focusedItemId:void 0,items:i.processedItems,templates:n.templates,activeItemPath:o.activeItemPath,onFocus:i.onFocus,onBlur:i.onBlur,onKeydown:i.onKeyDown,onItemToggle:i.onItemToggle,onItemMousemove:i.onItemMouseMove,pt:t.pt,unstyled:t.unstyled},t.ptm("rootList")),null,16,["id","class","aria-activedescendant","panelId","focusedItemId","items","templates","activeItemPath","onFocus","onBlur","onKeydown","onItemToggle","onItemMousemove","pt","unstyled"])}po.render=Xa;function jt(t){"@babel/helpers - typeof";return jt=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},jt(t)}function ho(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 Za(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?ho(Object(n),!0).forEach(function(r){Ja(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):ho(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function Ja(t,e,n){return(e=Qa(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function Qa(t){var e=el(t,"string");return jt(e)=="symbol"?e:e+""}function el(t,e){if(jt(t)!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e||"default");if(jt(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}var go={name:"PanelMenu",extends:Ua,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||pn()}},mounted:function(){this.id=this.id||pn()},methods:{getItemProp:function(e,n){return e?ke(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 yt(e,n)}):yt(e,this.activeItem)},isItemVisible:function(e){return this.getItemProp(e,"visible")!==!1},isItemDisabled:function(e){return this.getItemProp(e,"disabled")},isItemFocused:function(e){return yt(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),xt(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=Ot(e.currentTarget,"data-p-active")===!0?Le(e.currentTarget.nextElementSibling,'[data-pc-section="rootlist"]'):null;n?xt(n):this.updateFocusedHeader({originalEvent:e,focusOnNext:!0}),e.preventDefault()},onHeaderArrowUpKey:function(e){var n=this.findPrevHeader(e.currentTarget.parentElement)||this.findLastHeader(),r=Ot(n,"data-p-active")===!0?Le(n.nextElementSibling,'[data-pc-section="rootlist"]'):null;r?xt(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=Le(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=Le(r,'[data-pc-section="header"]');return o?Ot(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=Le(r,'[data-pc-section="header"]');return o?Ot(o,"data-p-disabled")?this.findPrevHeader(o.parentElement):o:null},findFirstHeader:function(){return this.findNextHeader(this.$el.firstElementChild,!0)},findLastHeader:function(){return this.findPrevHeader(this.$el.lastElementChild,!0)},updateFocusedHeader:function(e){var n=e.originalEvent,r=e.focusOnNext,o=e.selfCheck,i=n.currentTarget.closest('[data-pc-section="panel"]'),c=o?Le(i,'[data-pc-section="header"]'):r?this.findNextHeader(i):this.findPrevHeader(i);c?this.changeFocusedHeader(n,c):r?this.onHeaderHomeKey(n):this.onHeaderEndKey(n)},changeActiveItem:function(e,n){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;if(!this.isItemDisabled(n)){var o=this.isItemActive(n),i=o?"panel-close":"panel-open";this.activeItem=r?n:this.activeItem&&yt(n,this.activeItem)?null:n,this.multiple&&(this.activeItems.some(function(c){return yt(n,c)})?this.activeItems=this.activeItems.filter(function(c){return!yt(n,c)}):this.activeItems.push(n)),this.changeExpandedKeys({item:n,expanded:!o}),this.$emit(i,{originalEvent:e,item:n})}},changeExpandedKeys:function(e){var n=e.item,r=e.expanded,o=r===void 0?!1:r;if(this.expandedKeys){var i=Za({},this.expandedKeys);o?i[n.key]=!0:delete i[n.key],this.$emit("update:expandedKeys",i)}},changeFocusedHeader:function(e,n){n&&xt(n)},getMenuItemProps:function(e,n){return{icon:s.mergeProps({class:[this.cx("headerIcon"),this.getItemProp(e,"icon")]},this.getPTOptions("headerIcon",e,n)),label:s.mergeProps({class:this.cx("headerLabel")},this.getPTOptions("headerLabel",e,n))}}},components:{PanelMenuList:po,ChevronRightIcon:Wn,ChevronDownIcon:Kn}},tl=["id"],nl=["id","tabindex","aria-label","aria-expanded","aria-controls","aria-disabled","onClick","onKeydown","data-p-active","data-p-disabled"],rl=["href"],ol=["id","aria-labelledby"];function il(t,e,n,r,o,i){var c=s.resolveComponent("PanelMenuList");return s.openBlock(),s.createElementBlock("div",s.mergeProps({id:o.id,class:t.cx("root")},t.ptmi("root")),[(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(t.model,function(a,l){return s.openBlock(),s.createElementBlock(s.Fragment,{key:i.getPanelKey(l)},[i.isItemVisible(a)?(s.openBlock(),s.createElementBlock("div",s.mergeProps({key:0,style:i.getItemProp(a,"style"),class:[t.cx("panel"),i.getItemProp(a,"class")],ref_for:!0},t.ptm("panel")),[s.createElementVNode("div",s.mergeProps({id:i.getHeaderId(l),class:[t.cx("header",{item:a}),i.getItemProp(a,"headerClass")],tabindex:i.isItemDisabled(a)?-1:t.tabindex,role:"button","aria-label":i.getItemLabel(a),"aria-expanded":i.isItemActive(a),"aria-controls":i.getContentId(l),"aria-disabled":i.isItemDisabled(a),onClick:function(m){return i.onHeaderClick(m,a)},onKeydown:function(m){return i.onHeaderKeyDown(m,a)},ref_for:!0},i.getPTOptions("header",a,l),{"data-p-active":i.isItemActive(a),"data-p-disabled":i.isItemDisabled(a)}),[s.createElementVNode("div",s.mergeProps({class:t.cx("headerContent"),ref_for:!0},i.getPTOptions("headerContent",a,l)),[t.$slots.item?(s.openBlock(),s.createBlock(s.resolveDynamicComponent(t.$slots.item),{key:1,item:a,root:!0,active:i.isItemActive(a),hasSubmenu:i.getItemProp(a,"items"),label:i.getItemLabel(a),props:i.getMenuItemProps(a,l)},null,8,["item","active","hasSubmenu","label","props"])):(s.openBlock(),s.createElementBlock("a",s.mergeProps({key:0,href:i.getItemProp(a,"url"),class:t.cx("headerLink"),tabindex:-1,ref_for:!0},i.getPTOptions("headerLink",a,l)),[i.getItemProp(a,"items")?s.renderSlot(t.$slots,"submenuicon",{key:0,active:i.isItemActive(a)},function(){return[(s.openBlock(),s.createBlock(s.resolveDynamicComponent(i.isItemActive(a)?"ChevronDownIcon":"ChevronRightIcon"),s.mergeProps({class:t.cx("submenuIcon"),ref_for:!0},i.getPTOptions("submenuIcon",a,l)),null,16,["class"]))]}):s.createCommentVNode("",!0),t.$slots.headericon?(s.openBlock(),s.createBlock(s.resolveDynamicComponent(t.$slots.headericon),{key:1,item:a,class:s.normalizeClass([t.cx("headerIcon"),i.getItemProp(a,"icon")])},null,8,["item","class"])):i.getItemProp(a,"icon")?(s.openBlock(),s.createElementBlock("span",s.mergeProps({key:2,class:[t.cx("headerIcon"),i.getItemProp(a,"icon")],ref_for:!0},i.getPTOptions("headerIcon",a,l)),null,16)):s.createCommentVNode("",!0),s.createElementVNode("span",s.mergeProps({class:t.cx("headerLabel"),ref_for:!0},i.getPTOptions("headerLabel",a,l)),s.toDisplayString(i.getItemLabel(a)),17)],16,rl))],16)],16,nl),s.createVNode(s.Transition,s.mergeProps({name:"p-toggleable-content",ref_for:!0},t.ptm("transition")),{default:s.withCtx(function(){return[s.withDirectives(s.createElementVNode("div",s.mergeProps({id:i.getContentId(l),class:t.cx("contentContainer"),role:"region","aria-labelledby":i.getHeaderId(l),ref_for:!0},t.ptm("contentContainer")),[i.getItemProp(a,"items")?(s.openBlock(),s.createElementBlock("div",s.mergeProps({key:0,class:t.cx("content"),ref_for:!0},t.ptm("content")),[s.createVNode(c,{panelId:i.getPanelId(l),items:i.getItemProp(a,"items"),templates:t.$slots,expandedKeys:t.expandedKeys,onItemToggle:i.changeExpandedKeys,onHeaderFocus:i.updateFocusedHeader,pt:t.pt,unstyled:t.unstyled},null,8,["panelId","items","templates","expandedKeys","onItemToggle","onHeaderFocus","pt","unstyled"])],16)):s.createCommentVNode("",!0)],16,ol),[[s.vShow,i.isItemActive(a)]])]}),_:2},1040)],16)):s.createCommentVNode("",!0)],64)}),128))],16,tl)}go.render=il;const sl={class:"panel-menu-wrapper"},al=["data-active","href","onClick"],ll={key:0,class:"material-symbols-outlined item-menu-icon-left"},cl=["onClick"],ul={key:0,class:"material-symbols-outlined item-menu-icon-left"},dl={key:2,class:s.normalizeClass(["item-menu sf-ripple"])},fl={key:0,class:"material-symbols-outlined item-menu-icon-left"},ml=gt(s.defineComponent({__name:"NavMenu",props:{items:{}},setup(t){const e=t,n=(o,i)=>{o.disabled||i()},r=(o,i)=>{i.disabled||typeof i.command=="function"&&i.command(o)};return(o,i)=>{const c=s.resolveComponent("router-link");return s.openBlock(),s.createElementBlock("div",sl,[s.createVNode(s.unref(go),{model:e.items,unstyled:!0},{item:s.withCtx(({item:a,active:l})=>[a.path?(s.openBlock(),s.createBlock(c,{key:0,to:{path:a.path,params:a.params??{},query:a.query??{}},custom:""},{default:s.withCtx(({navigate:d,isActive:m})=>[s.createElementVNode("a",{class:s.normalizeClass(["item-menu",{"sf-ripple":!a.disabled,disabled:a.disabled}]),"data-active":m,href:a.path,onClick:s.withModifiers(p=>n(a,d),["prevent"])},[a.icon?(s.openBlock(),s.createElementBlock("span",ll,s.toDisplayString(a.icon),1)):s.createCommentVNode("",!0),s.createElementVNode("span",null,s.toDisplayString(a.text),1)],10,al)]),_:2},1032,["to"])):typeof a.command=="function"?(s.openBlock(),s.createElementBlock("span",{key:1,class:s.normalizeClass(["item-menu",{"sf-ripple":!a.disabled,disabled:a.disabled}]),onClick:s.withModifiers(d=>r(d,a),["stop"])},[a.icon?(s.openBlock(),s.createElementBlock("span",ul,s.toDisplayString(a.icon),1)):s.createCommentVNode("",!0),s.createElementVNode("span",null,s.toDisplayString(a.text),1)],10,cl)):(s.openBlock(),s.createElementBlock("a",dl,[a.icon?(s.openBlock(),s.createElementBlock("span",fl,s.toDisplayString(a.icon),1)):s.createCommentVNode("",!0),s.createElementVNode("span",null,s.toDisplayString(a.text),1),i[0]||(i[0]=s.createElementVNode("div",{class:"sep"},null,-1)),s.createElementVNode("span",{class:s.normalizeClass(["material-symbols-outlined arrow",{"--expand":l}])}," chevron_right ",2)]))]),_:1},8,["model"])])}}}),[["__scopeId","data-v-fbc3d38a"]]);class Ft{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 i=getComputedStyle(o).zIndex;return+i==+i?+i: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 Ft.Mask(e.padStart(11,"0"),"###.###.###-##")}static MaskCnpj(e){return Ft.Mask(e.padStart(14,"0"),"##.###.###/####-##")}static MaskCcm(e){return Ft.Mask(e.padStart(8,"0"),"#.###.###-#")}static async DelayAsync(e){return new Promise(n=>setTimeout(n,e))}}const yo=Symbol();class pl{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 zt=new pl,bo="SweetAlert2:",hl=t=>{const e=[];for(let n=0;n<t.length;n++)e.indexOf(t[n])===-1&&e.push(t[n]);return e},Yn=t=>t.charAt(0).toUpperCase()+t.slice(1),_e=t=>Array.prototype.slice.call(t),he=t=>{console.warn(`${bo} ${typeof t=="object"?t.join(" "):t}`)},lt=t=>{console.error(`${bo} ${t}`)},vo=[],gl=t=>{vo.includes(t)||(vo.push(t),he(t))},yl=(t,e)=>{gl(`"${t}" is deprecated and will be removed in the next major release. Please use "${e}" instead.`)},vn=t=>typeof t=="function"?t():t,Xn=t=>t&&typeof t.toPromise=="function",Kt=t=>Xn(t)?t.toPromise():Promise.resolve(t),Zn=t=>t&&Promise.resolve(t)===t,bt={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},bl=["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"],vl={},wl=["allowOutsideClick","allowEnterKey","backdrop","focusConfirm","focusDeny","focusCancel","returnFocus","heightAuto","keydownListenerCapture"],wo=t=>Object.prototype.hasOwnProperty.call(bt,t),ko=t=>bl.indexOf(t)!==-1,Jn=t=>vl[t],kl=t=>{wo(t)||he(`Unknown parameter "${t}"`)},_l=t=>{wl.includes(t)&&he(`The parameter "${t}" is incompatible with toasts`)},Sl=t=>{Jn(t)&&yl(t,Jn(t))},Cl=t=>{!t.backdrop&&t.allowOutsideClick&&he('"allowOutsideClick" parameter requires `backdrop` parameter to be set to `true`');for(const e in t)kl(e),t.toast&&_l(e),Sl(e)},Il="swal2-",_o=t=>{const e={};for(const n in t)e[t[n]]=Il+t[n];return e},g=_o(["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"]),Wt=_o(["success","warning","info","question","error"]),oe=()=>document.body.querySelector(`.${g.container}`),Gt=t=>{const e=oe();return e?e.querySelector(t):null},Ae=t=>Gt(`.${t}`),q=()=>Ae(g.popup),qt=()=>Ae(g.icon),So=()=>Ae(g.title),wn=()=>Ae(g["html-container"]),Co=()=>Ae(g.image),Io=()=>Ae(g["progress-steps"]),kn=()=>Ae(g["validation-message"]),Ne=()=>Gt(`.${g.actions} .${g.confirm}`),nt=()=>Gt(`.${g.actions} .${g.deny}`),El=()=>Ae(g["input-label"]),vt=()=>Gt(`.${g.loader}`),ct=()=>Gt(`.${g.actions} .${g.cancel}`),Yt=()=>Ae(g.actions),Eo=()=>Ae(g.footer),_n=()=>Ae(g["timer-progress-bar"]),Qn=()=>Ae(g.close),Tl=`
|
|
342
342
|
a[href],
|
|
343
343
|
area[href],
|
|
344
344
|
input:not([disabled]),
|
|
@@ -353,7 +353,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
353
353
|
audio[controls],
|
|
354
354
|
video[controls],
|
|
355
355
|
summary
|
|
356
|
-
`,
|
|
356
|
+
`,er=()=>{const t=_e(q().querySelectorAll('[tabindex]:not([tabindex="-1"]):not([tabindex="0"])')).sort((n,r)=>{const o=parseInt(n.getAttribute("tabindex")),i=parseInt(r.getAttribute("tabindex"));return o>i?1:o<i?-1:0}),e=_e(q().querySelectorAll(Tl)).filter(n=>n.getAttribute("tabindex")!=="-1");return hl(t.concat(e)).filter(n=>Se(n))},tr=()=>Ye(document.body,g.shown)&&!Ye(document.body,g["toast-shown"])&&!Ye(document.body,g["no-backdrop"]),Sn=()=>q()&&Ye(q(),g.toast),Al=()=>q().hasAttribute("data-loading"),wt={previousBodyPadding:null},ie=(t,e)=>{if(t.textContent="",e){const r=new DOMParser().parseFromString(e,"text/html");_e(r.querySelector("head").childNodes).forEach(o=>{t.appendChild(o)}),_e(r.querySelector("body").childNodes).forEach(o=>{t.appendChild(o)})}},Ye=(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},Pl=(t,e)=>{_e(t.classList).forEach(n=>{!Object.values(g).includes(n)&&!Object.values(Wt).includes(n)&&!Object.values(e.showClass).includes(n)&&t.classList.remove(n)})},Pe=(t,e,n)=>{if(Pl(t,e),e.customClass&&e.customClass[n]){if(typeof e.customClass[n]!="string"&&!e.customClass[n].forEach)return he(`Invalid type of customClass.${n}! Expected string or iterable object, got "${typeof e.customClass[n]}"`);K(t,e.customClass[n])}},nr=(t,e)=>{if(!e)return null;switch(e){case"select":case"textarea":case"file":return t.querySelector(`.${g.popup} > .${g[e]}`);case"checkbox":return t.querySelector(`.${g.popup} > .${g.checkbox} input`);case"radio":return t.querySelector(`.${g.popup} > .${g.radio} input:checked`)||t.querySelector(`.${g.popup} > .${g.radio} input:first-child`);case"range":return t.querySelector(`.${g.popup} > .${g.range} input`);default:return t.querySelector(`.${g.popup} > .${g.input}`)}},To=t=>{if(t.focus(),t.type!=="file"){const e=t.value;t.value="",t.value=e}},Ao=(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)}))},K=(t,e)=>{Ao(t,e,!0)},Ue=(t,e)=>{Ao(t,e,!1)},rt=(t,e)=>{const n=_e(t.childNodes);for(let r=0;r<n.length;r++)if(Ye(n[r],e))return n[r]},Xt=(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)},ne=(t,e="flex")=>{t.style.display=e},se=t=>{t.style.display="none"},Po=(t,e,n,r)=>{const o=t.querySelector(e);o&&(o.style[n]=r)},Cn=(t,e,n)=>{e?ne(t,n):se(t)},Se=t=>!!(t&&(t.offsetWidth||t.offsetHeight||t.getClientRects().length)),xl=()=>!Se(Ne())&&!Se(nt())&&!Se(ct()),xo=t=>t.scrollHeight>t.clientHeight,Oo=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},rr=(t,e=!1)=>{const n=_n();Se(n)&&(e&&(n.style.transition="none",n.style.width="100%"),setTimeout(()=>{n.style.transition=`width ${t/1e3}s linear`,n.style.width="0%"},10))},Ol=()=>{const t=_n(),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}%`},Lo=()=>typeof window>"u"||typeof document>"u",Ll=100,D={},$l=()=>{D.previousActiveElement&&D.previousActiveElement.focus?(D.previousActiveElement.focus(),D.previousActiveElement=null):document.body&&document.body.focus()},Bl=t=>new Promise(e=>{if(!t)return e();const n=window.scrollX,r=window.scrollY;D.restoreFocusTimeout=setTimeout(()=>{$l(),e()},Ll),window.scrollTo(n,r)}),Nl=`
|
|
357
357
|
<div aria-labelledby="${g.title}" aria-describedby="${g["html-container"]}" class="${g.popup}" tabindex="-1">
|
|
358
358
|
<button type="button" class="${g.close}"></button>
|
|
359
359
|
<ul class="${g["progress-steps"]}"></ul>
|
|
@@ -386,26 +386,26 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
386
386
|
<div class="${g["timer-progress-bar"]}"></div>
|
|
387
387
|
</div>
|
|
388
388
|
</div>
|
|
389
|
-
`.replace(/(^|\n)\s*/g,""),
|
|
389
|
+
`.replace(/(^|\n)\s*/g,""),Ml=()=>{const t=oe();return t?(t.remove(),Ue([document.documentElement,document.body],[g["no-backdrop"],g["toast-shown"],g["has-column"]]),!0):!1},ut=()=>{D.currentInstance.resetValidationMessage()},Dl=()=>{const t=q(),e=rt(t,g.input),n=rt(t,g.file),r=t.querySelector(`.${g.range} input`),o=t.querySelector(`.${g.range} output`),i=rt(t,g.select),c=t.querySelector(`.${g.checkbox} input`),a=rt(t,g.textarea);e.oninput=ut,n.onchange=ut,i.onchange=ut,c.onchange=ut,a.oninput=ut,r.oninput=()=>{ut(),o.value=r.value},r.onchange=()=>{ut(),r.nextSibling.value=r.value}},Rl=t=>typeof t=="string"?document.querySelector(t):t,Ul=t=>{const e=q();e.setAttribute("role",t.toast?"alert":"dialog"),e.setAttribute("aria-live",t.toast?"polite":"assertive"),t.toast||e.setAttribute("aria-modal","true")},Vl=t=>{window.getComputedStyle(t).direction==="rtl"&&K(oe(),g.rtl)},Hl=t=>{const e=Ml();if(Lo()){lt("SweetAlert2 requires document to initialize");return}const n=document.createElement("div");n.className=g.container,e&&K(n,g["no-transition"]),ie(n,Nl);const r=Rl(t.target);r.appendChild(n),Ul(t),Vl(r),Dl()},or=(t,e)=>{t instanceof HTMLElement?e.appendChild(t):typeof t=="object"?jl(t,e):t&&ie(e,t)},jl=(t,e)=>{t.jquery?Fl(e,t):ie(e,t.toString())},Fl=(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))},Zt=(()=>{if(Lo())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})(),zl=()=>{const t=document.createElement("div");t.className=g["scrollbar-measure"],document.body.appendChild(t);const e=t.getBoundingClientRect().width-t.clientWidth;return document.body.removeChild(t),e},Kl=(t,e)=>{const n=Yt(),r=vt();!e.showConfirmButton&&!e.showDenyButton&&!e.showCancelButton?se(n):ne(n),Pe(n,e,"actions"),Wl(n,r,e),ie(r,e.loaderHtml),Pe(r,e,"loader")};function Wl(t,e,n){const r=Ne(),o=nt(),i=ct();ir(r,"confirm",n),ir(o,"deny",n),ir(i,"cancel",n),Gl(r,o,i,n),n.reverseButtons&&(n.toast?(t.insertBefore(i,r),t.insertBefore(o,r)):(t.insertBefore(i,e),t.insertBefore(o,e),t.insertBefore(r,e)))}function Gl(t,e,n,r){if(!r.buttonsStyling)return Ue([t,e,n],g.styled);K([t,e,n],g.styled),r.confirmButtonColor&&(t.style.backgroundColor=r.confirmButtonColor,K(t,g["default-outline"])),r.denyButtonColor&&(e.style.backgroundColor=r.denyButtonColor,K(e,g["default-outline"])),r.cancelButtonColor&&(n.style.backgroundColor=r.cancelButtonColor,K(n,g["default-outline"]))}function ir(t,e,n){Cn(t,n[`show${Yn(e)}Button`],"inline-block"),ie(t,n[`${e}ButtonText`]),t.setAttribute("aria-label",n[`${e}ButtonAriaLabel`]),t.className=g[e],Pe(t,n,`${e}Button`),K(t,n[`${e}ButtonClass`])}function ql(t,e){typeof e=="string"?t.style.background=e:e||K([document.documentElement,document.body],g["no-backdrop"])}function Yl(t,e){e in g?K(t,g[e]):(he('The "position" parameter is not valid, defaulting to "center"'),K(t,g.center))}function Xl(t,e){if(e&&typeof e=="string"){const n=`grow-${e}`;n in g&&K(t,g[n])}}const Zl=(t,e)=>{const n=oe();n&&(ql(n,e.backdrop),Yl(n,e.position),Xl(n,e.grow),Pe(n,e,"container"))},U={awaitingPromise:new WeakMap,promise:new WeakMap,innerParams:new WeakMap,domCache:new WeakMap},Jl=["input","file","range","select","radio","checkbox","textarea"],Ql=(t,e)=>{const n=q(),r=U.innerParams.get(t),o=!r||e.input!==r.input;Jl.forEach(i=>{const c=g[i],a=rt(n,c);nc(i,e.inputAttributes),a.className=c,o&&se(a)}),e.input&&(o&&ec(e),rc(e))},ec=t=>{if(!ge[t.input])return lt(`Unexpected type of input! Expected "text", "email", "password", "number", "tel", "select", "radio", "checkbox", "textarea", "file" or "url", got "${t.input}"`);const e=$o(t.input),n=ge[t.input](e,t);ne(n),setTimeout(()=>{To(n)})},tc=t=>{for(let e=0;e<t.attributes.length;e++){const n=t.attributes[e].name;["type","value","style"].includes(n)||t.removeAttribute(n)}},nc=(t,e)=>{const n=nr(q(),t);if(n){tc(n);for(const r in e)n.setAttribute(r,e[r])}},rc=t=>{const e=$o(t.input);t.customClass&&K(e,t.customClass.input)},sr=(t,e)=>{(!t.placeholder||e.inputPlaceholder)&&(t.placeholder=e.inputPlaceholder)},Jt=(t,e,n)=>{if(n.inputLabel){t.id=g.input;const r=document.createElement("label"),o=g["input-label"];r.setAttribute("for",t.id),r.className=o,K(r,n.customClass.inputLabel),r.innerText=n.inputLabel,e.insertAdjacentElement("beforebegin",r)}},$o=t=>{const e=g[t]?g[t]:g.input;return rt(q(),e)},ge={};ge.text=ge.email=ge.password=ge.number=ge.tel=ge.url=(t,e)=>(typeof e.inputValue=="string"||typeof e.inputValue=="number"?t.value=e.inputValue:Zn(e.inputValue)||he(`Unexpected type of inputValue! Expected "string", "number" or "Promise", got "${typeof e.inputValue}"`),Jt(t,t,e),sr(t,e),t.type=e.input,t),ge.file=(t,e)=>(Jt(t,t,e),sr(t,e),t),ge.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,Jt(n,t,e),t},ge.select=(t,e)=>{if(t.textContent="",e.inputPlaceholder){const n=document.createElement("option");ie(n,e.inputPlaceholder),n.value="",n.disabled=!0,n.selected=!0,t.appendChild(n)}return Jt(t,t,e),t},ge.radio=t=>(t.textContent="",t),ge.checkbox=(t,e)=>{const n=nr(q(),"checkbox");n.value="1",n.id=g.checkbox,n.checked=!!e.inputValue;const r=t.querySelector("span");return ie(r,e.inputPlaceholder),t},ge.textarea=(t,e)=>{t.value=e.inputValue,sr(t,e),Jt(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(q()).width),o=()=>{const i=t.offsetWidth+n(t);i>r?q().style.width=`${i}px`:q().style.width=null};new MutationObserver(o).observe(t,{attributes:!0,attributeFilter:["style"]})}}),t};const oc=(t,e)=>{const n=wn();Pe(n,e,"htmlContainer"),e.html?(or(e.html,n),ne(n,"block")):e.text?(n.textContent=e.text,ne(n,"block")):se(n),Ql(t,e)},ic=(t,e)=>{const n=Eo();Cn(n,e.footer),e.footer&&or(e.footer,n),Pe(n,e,"footer")},sc=(t,e)=>{const n=Qn();ie(n,e.closeButtonHtml),Pe(n,e,"closeButton"),Cn(n,e.showCloseButton),n.setAttribute("aria-label",e.closeButtonAriaLabel)},ac=(t,e)=>{const n=U.innerParams.get(t),r=qt();if(n&&e.icon===n.icon){No(r,e),Bo(r,e);return}if(!e.icon&&!e.iconHtml)return se(r);if(e.icon&&Object.keys(Wt).indexOf(e.icon)===-1)return lt(`Unknown icon! Expected "success", "error", "warning", "info" or "question", got "${e.icon}"`),se(r);ne(r),No(r,e),Bo(r,e),K(r,e.showClass.icon)},Bo=(t,e)=>{for(const n in Wt)e.icon!==n&&Ue(t,Wt[n]);K(t,Wt[e.icon]),dc(t,e),lc(),Pe(t,e,"icon")},lc=()=>{const t=q(),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},cc=`
|
|
390
390
|
<div class="swal2-success-circular-line-left"></div>
|
|
391
391
|
<span class="swal2-success-line-tip"></span> <span class="swal2-success-line-long"></span>
|
|
392
392
|
<div class="swal2-success-ring"></div> <div class="swal2-success-fix"></div>
|
|
393
393
|
<div class="swal2-success-circular-line-right"></div>
|
|
394
|
-
`,
|
|
394
|
+
`,uc=`
|
|
395
395
|
<span class="swal2-x-mark">
|
|
396
396
|
<span class="swal2-x-mark-line-left"></span>
|
|
397
397
|
<span class="swal2-x-mark-line-right"></span>
|
|
398
398
|
</span>
|
|
399
|
-
`,
|
|
399
|
+
`,No=(t,e)=>{t.textContent="",e.iconHtml?ie(t,Mo(e.iconHtml)):e.icon==="success"?ie(t,cc):e.icon==="error"?ie(t,uc):ie(t,Mo({question:"?",warning:"!",info:"i"}[e.icon]))},dc=(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"])Po(t,n,"backgroundColor",e.iconColor);Po(t,".swal2-success-ring","borderColor",e.iconColor)}},Mo=t=>`<div class="${g["icon-content"]}">${t}</div>`,fc=(t,e)=>{const n=Co();if(!e.imageUrl)return se(n);ne(n,""),n.setAttribute("src",e.imageUrl),n.setAttribute("alt",e.imageAlt),Xt(n,"width",e.imageWidth),Xt(n,"height",e.imageHeight),n.className=g.image,Pe(n,e,"image")},mc=t=>{const e=document.createElement("li");return K(e,g["progress-step"]),ie(e,t),e},pc=t=>{const e=document.createElement("li");return K(e,g["progress-step-line"]),t.progressStepsDistance&&(e.style.width=t.progressStepsDistance),e},hc=(t,e)=>{const n=Io();if(!e.progressSteps||e.progressSteps.length===0)return se(n);ne(n),n.textContent="",e.currentProgressStep>=e.progressSteps.length&&he("Invalid currentProgressStep parameter, it should be less than progressSteps.length (currentProgressStep like JS arrays starts from 0)"),e.progressSteps.forEach((r,o)=>{const i=mc(r);if(n.appendChild(i),o===e.currentProgressStep&&K(i,g["active-progress-step"]),o!==e.progressSteps.length-1){const c=pc(e);n.appendChild(c)}})},gc=(t,e)=>{const n=So();Cn(n,e.title||e.titleText,"block"),e.title&&or(e.title,n),e.titleText&&(n.innerText=e.titleText),Pe(n,e,"title")},yc=(t,e)=>{const n=oe(),r=q();e.toast?(Xt(n,"width",e.width),r.style.width="100%",r.insertBefore(vt(),qt())):Xt(r,"width",e.width),Xt(r,"padding",e.padding),e.color&&(r.style.color=e.color),e.background&&(r.style.background=e.background),se(kn()),bc(r,e)},bc=(t,e)=>{t.className=`${g.popup} ${Se(t)?e.showClass.popup:""}`,e.toast?(K([document.documentElement,document.body],g["toast-shown"]),K(t,g.toast)):K(t,g.modal),Pe(t,e,"popup"),typeof e.customClass=="string"&&K(t,e.customClass),e.icon&&K(t,g[`icon-${e.icon}`])},Do=(t,e)=>{yc(t,e),Zl(t,e),hc(t,e),ac(t,e),fc(t,e),gc(t,e),sc(t,e),oc(t,e),Kl(t,e),ic(t,e),typeof e.didRender=="function"&&e.didRender(q())},kt=Object.freeze({cancel:"cancel",backdrop:"backdrop",close:"close",esc:"esc",timer:"timer"}),vc=()=>{_e(document.body.children).forEach(e=>{e===oe()||e.contains(oe())||(e.hasAttribute("aria-hidden")&&e.setAttribute("data-previous-aria-hidden",e.getAttribute("aria-hidden")),e.setAttribute("aria-hidden","true"))})},Ro=()=>{_e(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")})},Uo=["swal-title","swal-html","swal-footer"],wc=t=>{const e=typeof t.template=="string"?document.querySelector(t.template):t.template;if(!e)return{};const n=e.content;return Tc(n),Object.assign(kc(n),_c(n),Sc(n),Cc(n),Ic(n),Ec(n,Uo))},kc=t=>{const e={};return _e(t.querySelectorAll("swal-param")).forEach(n=>{dt(n,["name","value"]);const r=n.getAttribute("name"),o=n.getAttribute("value");typeof bt[r]=="boolean"&&o==="false"&&(e[r]=!1),typeof bt[r]=="object"&&(e[r]=JSON.parse(o))}),e},_c=t=>{const e={};return _e(t.querySelectorAll("swal-button")).forEach(n=>{dt(n,["type","color","aria-label"]);const r=n.getAttribute("type");e[`${r}ButtonText`]=n.innerHTML,e[`show${Yn(r)}Button`]=!0,n.hasAttribute("color")&&(e[`${r}ButtonColor`]=n.getAttribute("color")),n.hasAttribute("aria-label")&&(e[`${r}ButtonAriaLabel`]=n.getAttribute("aria-label"))}),e},Sc=t=>{const e={},n=t.querySelector("swal-image");return n&&(dt(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},Cc=t=>{const e={},n=t.querySelector("swal-icon");return n&&(dt(n,["type","color"]),n.hasAttribute("type")&&(e.icon=n.getAttribute("type")),n.hasAttribute("color")&&(e.iconColor=n.getAttribute("color")),e.iconHtml=n.innerHTML),e},Ic=t=>{const e={},n=t.querySelector("swal-input");n&&(dt(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={},_e(r).forEach(o=>{dt(o,["value"]);const i=o.getAttribute("value"),c=o.innerHTML;e.inputOptions[i]=c})),e},Ec=(t,e)=>{const n={};for(const r in e){const o=e[r],i=t.querySelector(o);i&&(dt(i,[]),n[o.replace(/^swal-/,"")]=i.innerHTML.trim())}return n},Tc=t=>{const e=Uo.concat(["swal-param","swal-button","swal-image","swal-icon","swal-input","swal-input-option"]);_e(t.children).forEach(n=>{const r=n.tagName.toLowerCase();e.indexOf(r)===-1&&he(`Unrecognized element <${r}>`)})},dt=(t,e)=>{_e(t.attributes).forEach(n=>{e.indexOf(n.name)===-1&&he([`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 Ac(t){t.inputValidator||Object.keys(Vo).forEach(e=>{t.input===e&&(t.inputValidator=Vo[e])})}function Pc(t){(!t.target||typeof t.target=="string"&&!document.querySelector(t.target)||typeof t.target!="string"&&!t.target.appendChild)&&(he('Target parameter is not valid, defaulting to "body"'),t.target="body")}function xc(t){Ac(t),t.showLoaderOnConfirm&&!t.preConfirm&&he(`showLoaderOnConfirm is set to true, but preConfirm is not defined.
|
|
400
400
|
showLoaderOnConfirm should be used together with preConfirm, see usage example:
|
|
401
|
-
https://sweetalert2.github.io/#ajax-request`),
|
|
402
|
-
`).join("<br />")),Kl(t)}class Bc{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 Nc=()=>{bt.previousBodyPadding===null&&document.body.scrollHeight>window.innerHeight&&(bt.previousBodyPadding=parseInt(window.getComputedStyle(document.body).getPropertyValue("padding-right")),document.body.style.paddingRight=`${bt.previousBodyPadding+Gl()}px`)},Mc=()=>{bt.previousBodyPadding!==null&&(document.body.style.paddingRight=`${bt.previousBodyPadding}px`,bt.previousBodyPadding=null)},Dc=()=>{if((/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream||navigator.platform==="MacIntel"&&navigator.maxTouchPoints>1)&&!qe(document.body,g.iosfix)){const e=document.body.scrollTop;document.body.style.top=`${e*-1}px`,z(document.body,g.iosfix),Uc(),Rc()}},Rc=()=>{const t=navigator.userAgent,e=!!t.match(/iPad/i)||!!t.match(/iPhone/i),n=!!t.match(/WebKit/i);e&&n&&!t.match(/CriOS/i)&&q().scrollHeight>window.innerHeight-44&&(re().style.paddingBottom="44px")},Uc=()=>{const t=re();let e;t.ontouchstart=n=>{e=Vc(n)},t.ontouchmove=n=>{e&&(n.preventDefault(),n.stopPropagation())}},Vc=t=>{const e=t.target,n=re();return Hc(t)||jc(t)?!1:e===n||!Tr(n)&&e.tagName!=="INPUT"&&e.tagName!=="TEXTAREA"&&!(Tr(vn())&&vn().contains(e))},Hc=t=>t.touches&&t.touches.length&&t.touches[0].touchType==="stylus",jc=t=>t.touches&&t.touches.length>1,Fc=()=>{if(qe(document.body,g.iosfix)){const t=parseInt(document.body.style.top,10);Ue(document.body,g.iosfix),document.body.style.top="",document.body.scrollTop=t*-1}},Dr=10,Kc=t=>{const e=re(),n=q();typeof t.willOpen=="function"&&t.willOpen(n);const r=window.getComputedStyle(document.body).overflowY;Gc(e,n,t),setTimeout(()=>{zc(e,n)},Dr),to()&&(Wc(e,t.scrollbarPadding,r),_c()),!_n()&&!D.previousActiveElement&&(D.previousActiveElement=document.activeElement),typeof t.didOpen=="function"&&setTimeout(()=>t.didOpen(n)),Ue(e,g["no-transition"])},Rr=t=>{const e=q();if(t.target!==e)return;const n=re();e.removeEventListener(Gt,Rr),n.style.overflowY="auto"},zc=(t,e)=>{Gt&&Er(e)?(t.style.overflowY="hidden",e.addEventListener(Gt,Rr)):t.style.overflowY="auto"},Wc=(t,e,n)=>{Dc(),e&&n!=="hidden"&&Nc(),setTimeout(()=>{t.scrollTop=0})},Gc=(t,e,n)=>{z(t,n.showClass.backdrop),e.style.setProperty("opacity","0","important"),ne(e,"grid"),setTimeout(()=>{z(e,n.showClass.popup),e.style.removeProperty("opacity")},Dr),z([document.documentElement,document.body],g.shown),n.heightAuto&&n.backdrop&&!n.toast&&z([document.documentElement,document.body],g["height-auto"])},wt=t=>{let e=q();e||new _t,e=q();const n=yt();_n()?se(Kt()):qc(e,t),ne(n),e.setAttribute("data-loading",!0),e.setAttribute("aria-busy",!0),e.focus()},qc=(t,e)=>{const n=zt(),o=yt();!e&&Se(Be())&&(e=Be()),ne(n),e&&(se(e),o.setAttribute("data-button-to-replace",e.className)),o.parentNode.insertBefore(o,e),z([t,n],g.loading)},Yc=(t,e)=>{e.input==="select"||e.input==="radio"?eu(t,e):["text","email","number","tel","textarea"].includes(e.input)&&(Xn(e.inputValue)||Zn(e.inputValue))&&(wt(Be()),tu(t,e))},Xc=(t,e)=>{const n=t.getInput();if(!n)return null;switch(e.input){case"checkbox":return Zc(n);case"radio":return Jc(n);case"file":return Qc(n);default:return e.inputAutoTrim?n.value.trim():n.value}},Zc=t=>t.checked?1:0,Jc=t=>t.checked?t.value:null,Qc=t=>t.files.length?t.getAttribute("multiple")!==null?t.files:t.files[0]:null,eu=(t,e)=>{const n=q(),o=r=>nu[e.input](n,ao(r),e);Xn(e.inputOptions)||Zn(e.inputOptions)?(wt(Be()),Ht(e.inputOptions).then(r=>{t.hideLoading(),o(r)})):typeof e.inputOptions=="object"?o(e.inputOptions):lt(`Unexpected type of inputOptions! Expected object, Map or Promise, got ${typeof e.inputOptions}`)},tu=(t,e)=>{const n=t.getInput();se(n),Ht(e.inputValue).then(o=>{n.value=e.input==="number"?parseFloat(o)||0:`${o}`,ne(n),n.focus(),t.hideLoading()}).catch(o=>{lt(`Error in inputValue promise: ${o}`),n.value="",ne(n),n.focus(),t.hideLoading()})},nu={select:(t,e,n)=>{const o=nt(t,g.select),r=(i,c,a)=>{const l=document.createElement("option");l.value=a,ie(l,c),l.selected=Ur(a,n.inputValue),i.appendChild(l)};e.forEach(i=>{const c=i[0],a=i[1];if(Array.isArray(a)){const l=document.createElement("optgroup");l.label=c,l.disabled=!1,o.appendChild(l),a.forEach(d=>r(l,d[1],d[0]))}else r(o,a,c)}),o.focus()},radio:(t,e,n)=>{const o=nt(t,g.radio);e.forEach(i=>{const c=i[0],a=i[1],l=document.createElement("input"),d=document.createElement("label");l.type="radio",l.name=g.radio,l.value=c,Ur(c,n.inputValue)&&(l.checked=!0);const m=document.createElement("span");ie(m,a),m.className=g.label,d.appendChild(l),d.appendChild(m),o.appendChild(d)});const r=o.querySelectorAll("input");r.length&&r[0].focus()}},ao=t=>{const e=[];return typeof Map<"u"&&t instanceof Map?t.forEach((n,o)=>{let r=n;typeof r=="object"&&(r=ao(r)),e.push([o,r])}):Object.keys(t).forEach(n=>{let o=t[n];typeof o=="object"&&(o=ao(o)),e.push([n,o])}),e},Ur=(t,e)=>e&&e.toString()===t.toString();function Vr(){const t=R.innerParams.get(this);if(!t)return;const e=R.domCache.get(this);se(e.loader),_n()?t.icon&&ne(Kt()):ou(e),Ue([e.popup,e.actions],g.loading),e.popup.removeAttribute("aria-busy"),e.popup.removeAttribute("data-loading"),e.confirmButton.disabled=!1,e.denyButton.disabled=!1,e.cancelButton.disabled=!1}const ou=t=>{const e=t.popup.getElementsByClassName(t.loader.getAttribute("data-button-to-replace"));e.length?ne(e[0],"inline-block"):$l()&&se(t.actions)};function ru(t){const e=R.innerParams.get(t||this),n=R.domCache.get(t||this);return n?no(n.popup,e.input):null}const Yt={swalPromiseResolve:new WeakMap,swalPromiseReject:new WeakMap},iu=()=>Se(q()),Hr=()=>Be()&&Be().click(),su=()=>tt()&&tt().click(),au=()=>ct()&&ct().click(),jr=t=>{t.keydownTarget&&t.keydownHandlerAdded&&(t.keydownTarget.removeEventListener("keydown",t.keydownHandler,{capture:t.keydownListenerCapture}),t.keydownHandlerAdded=!1)},lu=(t,e,n,o)=>{jr(e),n.toast||(e.keydownHandler=r=>uu(t,r,o),e.keydownTarget=n.keydownListenerCapture?window:q(),e.keydownListenerCapture=n.keydownListenerCapture,e.keydownTarget.addEventListener("keydown",e.keydownHandler,{capture:e.keydownListenerCapture}),e.keydownHandlerAdded=!0)},lo=(t,e,n)=>{const o=eo();if(o.length)return e=e+n,e===o.length?e=0:e===-1&&(e=o.length-1),o[e].focus();q().focus()},Fr=["ArrowRight","ArrowDown"],cu=["ArrowLeft","ArrowUp"],uu=(t,e,n)=>{const o=R.innerParams.get(t);o&&(e.isComposing||e.keyCode===229||(o.stopKeydownPropagation&&e.stopPropagation(),e.key==="Enter"?du(t,e,o):e.key==="Tab"?fu(e,o):[...Fr,...cu].includes(e.key)?mu(e.key):e.key==="Escape"&&pu(e,o,n)))},du=(t,e,n)=>{if(bn(n.allowEnterKey)&&e.target&&t.getInput()&&e.target.outerHTML===t.getInput().outerHTML){if(["textarea","file"].includes(n.input))return;Hr(),e.preventDefault()}},fu=(t,e)=>{const n=t.target,o=eo();let r=-1;for(let i=0;i<o.length;i++)if(n===o[i]){r=i;break}t.shiftKey?lo(e,r,-1):lo(e,r,1),t.stopPropagation(),t.preventDefault()},mu=t=>{const e=Be(),n=tt(),o=ct();if(![e,n,o].includes(document.activeElement))return;const r=Fr.includes(t)?"nextElementSibling":"previousElementSibling";let i=document.activeElement;for(let c=0;c<zt().children.length;c++){if(i=i[r],!i)return;if(Se(i)&&i instanceof HTMLButtonElement)break}i instanceof HTMLButtonElement&&i.focus()},pu=(t,e,n)=>{bn(e.allowEscapeKey)&&(t.preventDefault(),n(vt.esc))};function Kr(t,e,n,o){_n()?zr(t,o):(Dl(n).then(()=>zr(t,o)),jr(D)),/^((?!chrome|android).)*safari/i.test(navigator.userAgent)?(e.setAttribute("style","display:none !important"),e.removeAttribute("class"),e.innerHTML=""):e.remove(),to()&&(Mc(),Fc(),Br()),hu()}function hu(){Ue([document.documentElement,document.body],[g.shown,g["height-auto"],g["no-backdrop"],g["toast-shown"]])}function Cn(t){t=vu(t);const e=Yt.swalPromiseResolve.get(this),n=yu(this);this.isAwaitingPromise()?t.isDismissed||(Xt(this),e(t)):n&&e(t)}function gu(){return!!R.awaitingPromise.get(this)}const yu=t=>{const e=q();if(!e)return!1;const n=R.innerParams.get(t);if(!n||qe(e,n.hideClass.popup))return!1;Ue(e,n.showClass.popup),z(e,n.hideClass.popup);const o=re();return Ue(o,n.showClass.backdrop),z(o,n.hideClass.backdrop),wu(t,e,n),!0};function bu(t){const e=Yt.swalPromiseReject.get(this);Xt(this),e&&e(t)}const Xt=t=>{t.isAwaitingPromise()&&(R.awaitingPromise.delete(t),R.innerParams.get(t)||t._destroy())},vu=t=>typeof t>"u"?{isConfirmed:!1,isDenied:!1,isDismissed:!0}:Object.assign({isConfirmed:!1,isDenied:!1,isDismissed:!1},t),wu=(t,e,n)=>{const o=re(),r=Gt&&Er(e);typeof n.willClose=="function"&&n.willClose(e),r?ku(t,e,o,n.returnFocus,n.didClose):Kr(t,o,n.returnFocus,n.didClose)},ku=(t,e,n,o,r)=>{D.swalCloseEventFinishedCallback=Kr.bind(null,t,n,o,r),e.addEventListener(Gt,function(i){i.target===e&&(D.swalCloseEventFinishedCallback(),delete D.swalCloseEventFinishedCallback)})},zr=(t,e)=>{setTimeout(()=>{typeof e=="function"&&e.bind(t.params)(),t._destroy()})};function Wr(t,e,n){const o=R.domCache.get(t);e.forEach(r=>{o[r].disabled=n})}function Gr(t,e){if(!t)return!1;if(t.type==="radio"){const o=t.parentNode.parentNode.querySelectorAll("input");for(let r=0;r<o.length;r++)o[r].disabled=e}else t.disabled=e}function _u(){Wr(this,["confirmButton","denyButton","cancelButton"],!1)}function Su(){Wr(this,["confirmButton","denyButton","cancelButton"],!0)}function Cu(){return Gr(this.getInput(),!1)}function Iu(){return Gr(this.getInput(),!0)}function Tu(t){const e=R.domCache.get(this),n=R.innerParams.get(this);ie(e.validationMessage,t),e.validationMessage.className=g["validation-message"],n.customClass&&n.customClass.validationMessage&&z(e.validationMessage,n.customClass.validationMessage),ne(e.validationMessage);const o=this.getInput();o&&(o.setAttribute("aria-invalid",!0),o.setAttribute("aria-describedby",g["validation-message"]),Sr(o),z(o,g.inputerror))}function Eu(){const t=R.domCache.get(this);t.validationMessage&&se(t.validationMessage);const e=this.getInput();e&&(e.removeAttribute("aria-invalid"),e.removeAttribute("aria-describedby"),Ue(e,g.inputerror))}function Pu(){return R.domCache.get(this).progressSteps}function Au(t){const e=q(),n=R.innerParams.get(this);if(!e||qe(e,n.hideClass.popup))return he("You're trying to update the closed or closing popup, that won't work. Use the update() method in preConfirm parameter or show a new popup.");const o=xu(t),r=Object.assign({},n,o);$r(this,r),R.innerParams.set(this,r),Object.defineProperties(this,{params:{value:Object.assign({},this.params,t),writable:!1,enumerable:!0}})}const xu=t=>{const e={};return Object.keys(t).forEach(n=>{yr(n)?e[n]=t[n]:he(`Invalid parameter to update: "${n}". Updatable params are listed here: https://github.com/sweetalert2/sweetalert2/blob/master/src/utils/params.js
|
|
401
|
+
https://sweetalert2.github.io/#ajax-request`),Pc(t),typeof t.title=="string"&&(t.title=t.title.split(`
|
|
402
|
+
`).join("<br />")),Hl(t)}class Oc{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 Lc=()=>{wt.previousBodyPadding===null&&document.body.scrollHeight>window.innerHeight&&(wt.previousBodyPadding=parseInt(window.getComputedStyle(document.body).getPropertyValue("padding-right")),document.body.style.paddingRight=`${wt.previousBodyPadding+zl()}px`)},$c=()=>{wt.previousBodyPadding!==null&&(document.body.style.paddingRight=`${wt.previousBodyPadding}px`,wt.previousBodyPadding=null)},Bc=()=>{if((/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream||navigator.platform==="MacIntel"&&navigator.maxTouchPoints>1)&&!Ye(document.body,g.iosfix)){const e=document.body.scrollTop;document.body.style.top=`${e*-1}px`,K(document.body,g.iosfix),Mc(),Nc()}},Nc=()=>{const t=navigator.userAgent,e=!!t.match(/iPad/i)||!!t.match(/iPhone/i),n=!!t.match(/WebKit/i);e&&n&&!t.match(/CriOS/i)&&q().scrollHeight>window.innerHeight-44&&(oe().style.paddingBottom="44px")},Mc=()=>{const t=oe();let e;t.ontouchstart=n=>{e=Dc(n)},t.ontouchmove=n=>{e&&(n.preventDefault(),n.stopPropagation())}},Dc=t=>{const e=t.target,n=oe();return Rc(t)||Uc(t)?!1:e===n||!xo(n)&&e.tagName!=="INPUT"&&e.tagName!=="TEXTAREA"&&!(xo(wn())&&wn().contains(e))},Rc=t=>t.touches&&t.touches.length&&t.touches[0].touchType==="stylus",Uc=t=>t.touches&&t.touches.length>1,Vc=()=>{if(Ye(document.body,g.iosfix)){const t=parseInt(document.body.style.top,10);Ue(document.body,g.iosfix),document.body.style.top="",document.body.scrollTop=t*-1}},Ho=10,Hc=t=>{const e=oe(),n=q();typeof t.willOpen=="function"&&t.willOpen(n);const o=window.getComputedStyle(document.body).overflowY;zc(e,n,t),setTimeout(()=>{jc(e,n)},Ho),tr()&&(Fc(e,t.scrollbarPadding,o),vc()),!Sn()&&!D.previousActiveElement&&(D.previousActiveElement=document.activeElement),typeof t.didOpen=="function"&&setTimeout(()=>t.didOpen(n)),Ue(e,g["no-transition"])},jo=t=>{const e=q();if(t.target!==e)return;const n=oe();e.removeEventListener(Zt,jo),n.style.overflowY="auto"},jc=(t,e)=>{Zt&&Oo(e)?(t.style.overflowY="hidden",e.addEventListener(Zt,jo)):t.style.overflowY="auto"},Fc=(t,e,n)=>{Bc(),e&&n!=="hidden"&&Lc(),setTimeout(()=>{t.scrollTop=0})},zc=(t,e,n)=>{K(t,n.showClass.backdrop),e.style.setProperty("opacity","0","important"),ne(e,"grid"),setTimeout(()=>{K(e,n.showClass.popup),e.style.removeProperty("opacity")},Ho),K([document.documentElement,document.body],g.shown),n.heightAuto&&n.backdrop&&!n.toast&&K([document.documentElement,document.body],g["height-auto"])},_t=t=>{let e=q();e||new ft,e=q();const n=vt();Sn()?se(qt()):Kc(e,t),ne(n),e.setAttribute("data-loading",!0),e.setAttribute("aria-busy",!0),e.focus()},Kc=(t,e)=>{const n=Yt(),r=vt();!e&&Se(Ne())&&(e=Ne()),ne(n),e&&(se(e),r.setAttribute("data-button-to-replace",e.className)),r.parentNode.insertBefore(r,e),K([t,n],g.loading)},Wc=(t,e)=>{e.input==="select"||e.input==="radio"?Zc(t,e):["text","email","number","tel","textarea"].includes(e.input)&&(Xn(e.inputValue)||Zn(e.inputValue))&&(_t(Ne()),Jc(t,e))},Gc=(t,e)=>{const n=t.getInput();if(!n)return null;switch(e.input){case"checkbox":return qc(n);case"radio":return Yc(n);case"file":return Xc(n);default:return e.inputAutoTrim?n.value.trim():n.value}},qc=t=>t.checked?1:0,Yc=t=>t.checked?t.value:null,Xc=t=>t.files.length?t.getAttribute("multiple")!==null?t.files:t.files[0]:null,Zc=(t,e)=>{const n=q(),r=o=>Qc[e.input](n,ar(o),e);Xn(e.inputOptions)||Zn(e.inputOptions)?(_t(Ne()),Kt(e.inputOptions).then(o=>{t.hideLoading(),r(o)})):typeof e.inputOptions=="object"?r(e.inputOptions):lt(`Unexpected type of inputOptions! Expected object, Map or Promise, got ${typeof e.inputOptions}`)},Jc=(t,e)=>{const n=t.getInput();se(n),Kt(e.inputValue).then(r=>{n.value=e.input==="number"?parseFloat(r)||0:`${r}`,ne(n),n.focus(),t.hideLoading()}).catch(r=>{lt(`Error in inputValue promise: ${r}`),n.value="",ne(n),n.focus(),t.hideLoading()})},Qc={select:(t,e,n)=>{const r=rt(t,g.select),o=(i,c,a)=>{const l=document.createElement("option");l.value=a,ie(l,c),l.selected=Fo(a,n.inputValue),i.appendChild(l)};e.forEach(i=>{const c=i[0],a=i[1];if(Array.isArray(a)){const l=document.createElement("optgroup");l.label=c,l.disabled=!1,r.appendChild(l),a.forEach(d=>o(l,d[1],d[0]))}else o(r,a,c)}),r.focus()},radio:(t,e,n)=>{const r=rt(t,g.radio);e.forEach(i=>{const c=i[0],a=i[1],l=document.createElement("input"),d=document.createElement("label");l.type="radio",l.name=g.radio,l.value=c,Fo(c,n.inputValue)&&(l.checked=!0);const m=document.createElement("span");ie(m,a),m.className=g.label,d.appendChild(l),d.appendChild(m),r.appendChild(d)});const o=r.querySelectorAll("input");o.length&&o[0].focus()}},ar=t=>{const e=[];return typeof Map<"u"&&t instanceof Map?t.forEach((n,r)=>{let o=n;typeof o=="object"&&(o=ar(o)),e.push([r,o])}):Object.keys(t).forEach(n=>{let r=t[n];typeof r=="object"&&(r=ar(r)),e.push([n,r])}),e},Fo=(t,e)=>e&&e.toString()===t.toString();function zo(){const t=U.innerParams.get(this);if(!t)return;const e=U.domCache.get(this);se(e.loader),Sn()?t.icon&&ne(qt()):eu(e),Ue([e.popup,e.actions],g.loading),e.popup.removeAttribute("aria-busy"),e.popup.removeAttribute("data-loading"),e.confirmButton.disabled=!1,e.denyButton.disabled=!1,e.cancelButton.disabled=!1}const eu=t=>{const e=t.popup.getElementsByClassName(t.loader.getAttribute("data-button-to-replace"));e.length?ne(e[0],"inline-block"):xl()&&se(t.actions)};function tu(t){const e=U.innerParams.get(t||this),n=U.domCache.get(t||this);return n?nr(n.popup,e.input):null}const Qt={swalPromiseResolve:new WeakMap,swalPromiseReject:new WeakMap},nu=()=>Se(q()),Ko=()=>Ne()&&Ne().click(),ru=()=>nt()&&nt().click(),ou=()=>ct()&&ct().click(),Wo=t=>{t.keydownTarget&&t.keydownHandlerAdded&&(t.keydownTarget.removeEventListener("keydown",t.keydownHandler,{capture:t.keydownListenerCapture}),t.keydownHandlerAdded=!1)},iu=(t,e,n,r)=>{Wo(e),n.toast||(e.keydownHandler=o=>au(t,o,r),e.keydownTarget=n.keydownListenerCapture?window:q(),e.keydownListenerCapture=n.keydownListenerCapture,e.keydownTarget.addEventListener("keydown",e.keydownHandler,{capture:e.keydownListenerCapture}),e.keydownHandlerAdded=!0)},lr=(t,e,n)=>{const r=er();if(r.length)return e=e+n,e===r.length?e=0:e===-1&&(e=r.length-1),r[e].focus();q().focus()},Go=["ArrowRight","ArrowDown"],su=["ArrowLeft","ArrowUp"],au=(t,e,n)=>{const r=U.innerParams.get(t);r&&(e.isComposing||e.keyCode===229||(r.stopKeydownPropagation&&e.stopPropagation(),e.key==="Enter"?lu(t,e,r):e.key==="Tab"?cu(e,r):[...Go,...su].includes(e.key)?uu(e.key):e.key==="Escape"&&du(e,r,n)))},lu=(t,e,n)=>{if(vn(n.allowEnterKey)&&e.target&&t.getInput()&&e.target.outerHTML===t.getInput().outerHTML){if(["textarea","file"].includes(n.input))return;Ko(),e.preventDefault()}},cu=(t,e)=>{const n=t.target,r=er();let o=-1;for(let i=0;i<r.length;i++)if(n===r[i]){o=i;break}t.shiftKey?lr(e,o,-1):lr(e,o,1),t.stopPropagation(),t.preventDefault()},uu=t=>{const e=Ne(),n=nt(),r=ct();if(![e,n,r].includes(document.activeElement))return;const o=Go.includes(t)?"nextElementSibling":"previousElementSibling";let i=document.activeElement;for(let c=0;c<Yt().children.length;c++){if(i=i[o],!i)return;if(Se(i)&&i instanceof HTMLButtonElement)break}i instanceof HTMLButtonElement&&i.focus()},du=(t,e,n)=>{vn(e.allowEscapeKey)&&(t.preventDefault(),n(kt.esc))};function qo(t,e,n,r){Sn()?Yo(t,r):(Bl(n).then(()=>Yo(t,r)),Wo(D)),/^((?!chrome|android).)*safari/i.test(navigator.userAgent)?(e.setAttribute("style","display:none !important"),e.removeAttribute("class"),e.innerHTML=""):e.remove(),tr()&&($c(),Vc(),Ro()),fu()}function fu(){Ue([document.documentElement,document.body],[g.shown,g["height-auto"],g["no-backdrop"],g["toast-shown"]])}function In(t){t=gu(t);const e=Qt.swalPromiseResolve.get(this),n=pu(this);this.isAwaitingPromise()?t.isDismissed||(en(this),e(t)):n&&e(t)}function mu(){return!!U.awaitingPromise.get(this)}const pu=t=>{const e=q();if(!e)return!1;const n=U.innerParams.get(t);if(!n||Ye(e,n.hideClass.popup))return!1;Ue(e,n.showClass.popup),K(e,n.hideClass.popup);const r=oe();return Ue(r,n.showClass.backdrop),K(r,n.hideClass.backdrop),yu(t,e,n),!0};function hu(t){const e=Qt.swalPromiseReject.get(this);en(this),e&&e(t)}const en=t=>{t.isAwaitingPromise()&&(U.awaitingPromise.delete(t),U.innerParams.get(t)||t._destroy())},gu=t=>typeof t>"u"?{isConfirmed:!1,isDenied:!1,isDismissed:!0}:Object.assign({isConfirmed:!1,isDenied:!1,isDismissed:!1},t),yu=(t,e,n)=>{const r=oe(),o=Zt&&Oo(e);typeof n.willClose=="function"&&n.willClose(e),o?bu(t,e,r,n.returnFocus,n.didClose):qo(t,r,n.returnFocus,n.didClose)},bu=(t,e,n,r,o)=>{D.swalCloseEventFinishedCallback=qo.bind(null,t,n,r,o),e.addEventListener(Zt,function(i){i.target===e&&(D.swalCloseEventFinishedCallback(),delete D.swalCloseEventFinishedCallback)})},Yo=(t,e)=>{setTimeout(()=>{typeof e=="function"&&e.bind(t.params)(),t._destroy()})};function Xo(t,e,n){const r=U.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 vu(){Xo(this,["confirmButton","denyButton","cancelButton"],!1)}function wu(){Xo(this,["confirmButton","denyButton","cancelButton"],!0)}function ku(){return Zo(this.getInput(),!1)}function _u(){return Zo(this.getInput(),!0)}function Su(t){const e=U.domCache.get(this),n=U.innerParams.get(this);ie(e.validationMessage,t),e.validationMessage.className=g["validation-message"],n.customClass&&n.customClass.validationMessage&&K(e.validationMessage,n.customClass.validationMessage),ne(e.validationMessage);const r=this.getInput();r&&(r.setAttribute("aria-invalid",!0),r.setAttribute("aria-describedby",g["validation-message"]),To(r),K(r,g.inputerror))}function Cu(){const t=U.domCache.get(this);t.validationMessage&&se(t.validationMessage);const e=this.getInput();e&&(e.removeAttribute("aria-invalid"),e.removeAttribute("aria-describedby"),Ue(e,g.inputerror))}function Iu(){return U.domCache.get(this).progressSteps}function Eu(t){const e=q(),n=U.innerParams.get(this);if(!e||Ye(e,n.hideClass.popup))return he("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=Tu(t),o=Object.assign({},n,r);Do(this,o),U.innerParams.set(this,o),Object.defineProperties(this,{params:{value:Object.assign({},this.params,t),writable:!1,enumerable:!0}})}const Tu=t=>{const e={};return Object.keys(t).forEach(n=>{ko(n)?e[n]=t[n]:he(`Invalid parameter to update: "${n}". Updatable params are listed here: https://github.com/sweetalert2/sweetalert2/blob/master/src/utils/params.js
|
|
403
403
|
|
|
404
|
-
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 Ou(){const t=R.domCache.get(this),e=R.innerParams.get(this);if(!e){qr(this);return}t.popup&&D.swalCloseEventFinishedCallback&&(D.swalCloseEventFinishedCallback(),delete D.swalCloseEventFinishedCallback),D.deferDisposalTimer&&(clearTimeout(D.deferDisposalTimer),delete D.deferDisposalTimer),typeof e.didDestroy=="function"&&e.didDestroy(),Lu(this)}const Lu=t=>{qr(t),delete t.params,delete D.keydownHandler,delete D.keydownTarget,delete D.currentInstance},qr=t=>{t.isAwaitingPromise()?(co(R,t),R.awaitingPromise.set(t,!0)):(co(Yt,t),co(R,t))},co=(t,e)=>{for(const n in t)t[n].delete(e)},Yr=Object.freeze(Object.defineProperty({__proto__:null,_destroy:Ou,close:Cn,closeModal:Cn,closePopup:Cn,closeToast:Cn,disableButtons:Su,disableInput:Iu,disableLoading:Vr,enableButtons:_u,enableInput:Cu,getInput:ru,getProgressSteps:Pu,handleAwaitingPromise:Xt,hideLoading:Vr,isAwaitingPromise:gu,rejectPromise:bu,resetValidationMessage:Eu,showValidationMessage:Tu,update:Au},Symbol.toStringTag,{value:"Module"})),$u=t=>{const e=R.innerParams.get(t);t.disableButtons(),e.input?Xr(t,"confirm"):fo(t,!0)},Bu=t=>{const e=R.innerParams.get(t);t.disableButtons(),e.returnInputValueOnDeny?Xr(t,"deny"):uo(t,!1)},Nu=(t,e)=>{t.disableButtons(),e(vt.cancel)},Xr=(t,e)=>{const n=R.innerParams.get(t);if(!n.input)return lt(`The "input" parameter is needed to be set when using returnInputValueOn${Yn(e)}`);const o=Xc(t,n);n.inputValidator?Mu(t,o,e):t.getInput().checkValidity()?e==="deny"?uo(t,o):fo(t,o):(t.enableButtons(),t.showValidationMessage(n.validationMessage))},Mu=(t,e,n)=>{const o=R.innerParams.get(t);t.disableInput(),Promise.resolve().then(()=>Ht(o.inputValidator(e,o.validationMessage))).then(i=>{t.enableButtons(),t.enableInput(),i?t.showValidationMessage(i):n==="deny"?uo(t,e):fo(t,e)})},uo=(t,e)=>{const n=R.innerParams.get(t||void 0);n.showLoaderOnDeny&&wt(tt()),n.preDeny?(R.awaitingPromise.set(t||void 0,!0),Promise.resolve().then(()=>Ht(n.preDeny(e,n.validationMessage))).then(r=>{r===!1?(t.hideLoading(),Xt(t)):t.closePopup({isDenied:!0,value:typeof r>"u"?e:r})}).catch(r=>Jr(t||void 0,r))):t.closePopup({isDenied:!0,value:e})},Zr=(t,e)=>{t.closePopup({isConfirmed:!0,value:e})},Jr=(t,e)=>{t.rejectPromise(e)},fo=(t,e)=>{const n=R.innerParams.get(t||void 0);n.showLoaderOnConfirm&&wt(),n.preConfirm?(t.resetValidationMessage(),R.awaitingPromise.set(t||void 0,!0),Promise.resolve().then(()=>Ht(n.preConfirm(e,n.validationMessage))).then(r=>{Se(wn())||r===!1?(t.hideLoading(),Xt(t)):Zr(t,typeof r>"u"?e:r)}).catch(r=>Jr(t||void 0,r))):Zr(t,e)},Du=(t,e,n)=>{R.innerParams.get(t).toast?Ru(t,e,n):(Vu(e),Hu(e),ju(t,e,n))},Ru=(t,e,n)=>{e.popup.onclick=()=>{const o=R.innerParams.get(t);o&&(Uu(o)||o.timer||o.input)||n(vt.close)}},Uu=t=>t.showConfirmButton||t.showDenyButton||t.showCancelButton||t.showCloseButton;let In=!1;const Vu=t=>{t.popup.onmousedown=()=>{t.container.onmouseup=function(e){t.container.onmouseup=void 0,e.target===t.container&&(In=!0)}}},Hu=t=>{t.container.onmousedown=()=>{t.popup.onmouseup=function(e){t.popup.onmouseup=void 0,(e.target===t.popup||t.popup.contains(e.target))&&(In=!0)}}},ju=(t,e,n)=>{e.container.onclick=o=>{const r=R.innerParams.get(t);if(In){In=!1;return}o.target===e.container&&bn(r.allowOutsideClick)&&n(vt.backdrop)}},Fu=t=>typeof t=="object"&&t.jquery,Qr=t=>t instanceof Element||Fu(t),Ku=t=>{const e={};return typeof t[0]=="object"&&!Qr(t[0])?Object.assign(e,t[0]):["title","html","icon"].forEach((n,o)=>{const r=t[o];typeof r=="string"||Qr(r)?e[n]=r:r!==void 0&<(`Unexpected type of ${n}! Expected "string" or "Element", got ${typeof r}`)}),e};function zu(...t){const e=this;return new e(...t)}function Wu(t){class e extends this{_main(o,r){return super._main(o,Object.assign({},t,r))}}return e}const Gu=()=>D.timeout&&D.timeout.getTimerLeft(),ei=()=>{if(D.timeout)return Bl(),D.timeout.stop()},ti=()=>{if(D.timeout){const t=D.timeout.start();return oo(t),t}},qu=()=>{const t=D.timeout;return t&&(t.running?ei():ti())},Yu=t=>{if(D.timeout){const e=D.timeout.increase(t);return oo(e,!0),e}},Xu=()=>D.timeout&&D.timeout.isRunning();let ni=!1;const mo={};function Zu(t="data-swal-template"){mo[t]=this,ni||(document.body.addEventListener("click",Ju),ni=!0)}const Ju=t=>{for(let e=t.target;e&&e!==document;e=e.parentNode)for(const n in mo){const o=e.getAttribute(n);if(o){mo[n].fire({template:o});return}}},Qu=Object.freeze(Object.defineProperty({__proto__:null,argsToParams:Ku,bindClickHandler:Zu,clickCancel:au,clickConfirm:Hr,clickDeny:su,enableLoading:wt,fire:zu,getActions:zt,getCancelButton:ct,getCloseButton:Qn,getConfirmButton:Be,getContainer:re,getDenyButton:tt,getFocusableElements:eo,getFooter:_r,getHtmlContainer:vn,getIcon:Kt,getImage:wr,getInputLabel:Al,getLoader:yt,getPopup:q,getTimerLeft:Gu,getTimerProgressBar:kn,getTitle:vr,getValidationMessage:wn,increaseTimer:Yu,isDeprecatedParameter:Jn,isLoading:Ol,isTimerRunning:Xu,isUpdatableParameter:yr,isValidParameter:gr,isVisible:iu,mixin:Wu,resumeTimer:ti,showLoading:wt,stopTimer:ei,toggleTimer:qu},Symbol.toStringTag,{value:"Module"}));let po;class kt{constructor(...e){if(typeof window>"u")return;po=this;const n=Object.freeze(this.constructor.argsToParams(e));Object.defineProperties(this,{params:{value:n,writable:!1,enumerable:!0,configurable:!0}});const o=this._main(this.params);R.promise.set(this,o)}_main(e,n={}){El(Object.assign({},n,e)),D.currentInstance&&(D.currentInstance._destroy(),to()&&Br()),D.currentInstance=this;const o=td(e,n);$c(o),Object.freeze(o),D.timeout&&(D.timeout.stop(),delete D.timeout),clearTimeout(D.restoreFocusTimeout);const r=nd(this);return $r(this,o),R.innerParams.set(this,o),ed(this,r,o)}then(e){return R.promise.get(this).then(e)}finally(e){return R.promise.get(this).finally(e)}}const ed=(t,e,n)=>new Promise((o,r)=>{const i=c=>{t.closePopup({isDismissed:!0,dismiss:c})};Yt.swalPromiseResolve.set(t,o),Yt.swalPromiseReject.set(t,r),e.confirmButton.onclick=()=>$u(t),e.denyButton.onclick=()=>Bu(t),e.cancelButton.onclick=()=>Nu(t,i),e.closeButton.onclick=()=>i(vt.close),Du(t,e,i),lu(t,D,n,i),Yc(t,n),Kc(n),od(D,n,i),rd(e,n),setTimeout(()=>{e.container.scrollTop=0})}),td=(t,e)=>{const n=Sc(t),o=Object.assign({},gt,e,n,t);return o.showClass=Object.assign({},gt.showClass,o.showClass),o.hideClass=Object.assign({},gt.hideClass,o.hideClass),o},nd=t=>{const e={popup:q(),container:re(),actions:zt(),confirmButton:Be(),denyButton:tt(),cancelButton:ct(),loader:yt(),closeButton:Qn(),validationMessage:wn(),progressSteps:kr()};return R.domCache.set(t,e),e},od=(t,e,n)=>{const o=kn();se(o),e.timer&&(t.timeout=new Bc(()=>{n("timer"),delete t.timeout},e.timer),e.timerProgressBar&&(ne(o),Pe(o,e,"timerProgressBar"),setTimeout(()=>{t.timeout&&t.timeout.running&&oo(e.timer)})))},rd=(t,e)=>{if(!e.toast){if(!bn(e.allowEnterKey))return sd();id(t,e)||lo(e,-1,1)}},id=(t,e)=>e.focusDeny&&Se(t.denyButton)?(t.denyButton.focus(),!0):e.focusCancel&&Se(t.cancelButton)?(t.cancelButton.focus(),!0):e.focusConfirm&&Se(t.confirmButton)?(t.confirmButton.focus(),!0):!1,sd=()=>{document.activeElement instanceof HTMLElement&&typeof document.activeElement.blur=="function"&&document.activeElement.blur()};Object.assign(kt.prototype,Yr),Object.assign(kt,Qu),Object.keys(Yr).forEach(t=>{kt[t]=function(...e){if(po)return po[t](...e)}}),kt.DismissReason=vt,kt.version="11.4.8";const _t=kt;_t.default=_t;/*! @license DOMPurify 3.1.6 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.1.6/LICENSE */const{entries:oi,setPrototypeOf:ri,isFrozen:ad,getPrototypeOf:ld,getOwnPropertyDescriptor:cd}=Object;let{freeze:de,seal:Ae,create:ii}=Object,{apply:ho,construct:go}=typeof Reflect<"u"&&Reflect;de||(de=function(e){return e}),Ae||(Ae=function(e){return e}),ho||(ho=function(e,n,o){return e.apply(n,o)}),go||(go=function(e,n){return new e(...n)});const Tn=Ce(Array.prototype.forEach),si=Ce(Array.prototype.pop),Zt=Ce(Array.prototype.push),En=Ce(String.prototype.toLowerCase),yo=Ce(String.prototype.toString),ai=Ce(String.prototype.match),Jt=Ce(String.prototype.replace),ud=Ce(String.prototype.indexOf),dd=Ce(String.prototype.trim),Ne=Ce(Object.prototype.hasOwnProperty),fe=Ce(RegExp.prototype.test),Qt=fd(TypeError);function Ce(t){return function(e){for(var n=arguments.length,o=new Array(n>1?n-1:0),r=1;r<n;r++)o[r-1]=arguments[r];return ho(t,e,o)}}function fd(t){return function(){for(var e=arguments.length,n=new Array(e),o=0;o<e;o++)n[o]=arguments[o];return go(t,n)}}function j(t,e){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:En;ri&&ri(t,null);let o=e.length;for(;o--;){let r=e[o];if(typeof r=="string"){const i=n(r);i!==r&&(ad(e)||(e[o]=i),r=i)}t[r]=!0}return t}function md(t){for(let e=0;e<t.length;e++)Ne(t,e)||(t[e]=null);return t}function ft(t){const e=ii(null);for(const[n,o]of oi(t))Ne(t,n)&&(Array.isArray(o)?e[n]=md(o):o&&typeof o=="object"&&o.constructor===Object?e[n]=ft(o):e[n]=o);return e}function en(t,e){for(;t!==null;){const o=cd(t,e);if(o){if(o.get)return Ce(o.get);if(typeof o.value=="function")return Ce(o.value)}t=ld(t)}function n(){return null}return n}const li=de(["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"]),bo=de(["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"]),vo=de(["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"]),pd=de(["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"]),wo=de(["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"]),hd=de(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),ci=de(["#text"]),ui=de(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","face","for","headers","height","hidden","high","href","hreflang","id","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","pattern","placeholder","playsinline","popover","popovertarget","popovertargetaction","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","wrap","xmlns","slot"]),ko=de(["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"]),di=de(["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"]),Pn=de(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),gd=Ae(/\{\{[\w\W]*|[\w\W]*\}\}/gm),yd=Ae(/<%[\w\W]*|[\w\W]*%>/gm),bd=Ae(/\${[\w\W]*}/gm),vd=Ae(/^data-[\-\w.\u00B7-\uFFFF]/),wd=Ae(/^aria-[\-\w]+$/),fi=Ae(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),kd=Ae(/^(?:\w+script|data):/i),_d=Ae(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),mi=Ae(/^html$/i),Sd=Ae(/^[a-z][.\w]*(-[.\w]+)+$/i);var pi=Object.freeze({__proto__:null,MUSTACHE_EXPR:gd,ERB_EXPR:yd,TMPLIT_EXPR:bd,DATA_ATTR:vd,ARIA_ATTR:wd,IS_ALLOWED_URI:fi,IS_SCRIPT_OR_DATA:kd,ATTR_WHITESPACE:_d,DOCTYPE_NAME:mi,CUSTOM_ELEMENT:Sd});const tn={element:1,attribute:2,text:3,cdataSection:4,entityReference:5,entityNode:6,progressingInstruction:7,comment:8,document:9,documentType:10,documentFragment:11,notation:12},Cd=function(){return typeof window>"u"?null:window},Id=function(e,n){if(typeof e!="object"||typeof e.createPolicy!="function")return null;let o=null;const r="data-tt-policy-suffix";n&&n.hasAttribute(r)&&(o=n.getAttribute(r));const i="dompurify"+(o?"#"+o:"");try{return e.createPolicy(i,{createHTML(c){return c},createScriptURL(c){return c}})}catch{return console.warn("TrustedTypes policy "+i+" could not be created."),null}};function hi(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Cd();const e=O=>hi(O);if(e.version="3.1.6",e.removed=[],!t||!t.document||t.document.nodeType!==tn.document)return e.isSupported=!1,e;let{document:n}=t;const o=n,r=o.currentScript,{DocumentFragment:i,HTMLTemplateElement:c,Node:a,Element:l,NodeFilter:d,NamedNodeMap:m=t.NamedNodeMap||t.MozNamedAttrMap,HTMLFormElement:h,DOMParser:v,trustedTypes:I}=t,T=l.prototype,$=en(T,"cloneNode"),B=en(T,"remove"),L=en(T,"nextSibling"),k=en(T,"childNodes"),N=en(T,"parentNode");if(typeof c=="function"){const O=n.createElement("template");O.content&&O.content.ownerDocument&&(n=O.content.ownerDocument)}let F,J="";const{implementation:ye,createNodeIterator:ee,createDocumentFragment:Me,getElementsByTagName:Ie}=n,{importNode:Y}=o;let Q={};e.isSupported=typeof oi=="function"&&typeof N=="function"&&ye&&ye.createHTMLDocument!==void 0;const{MUSTACHE_EXPR:be,ERB_EXPR:De,TMPLIT_EXPR:Te,DATA_ATTR:it,ARIA_ATTR:Ye,IS_SCRIPT_OR_DATA:He,ATTR_WHITESPACE:je,CUSTOM_ELEMENT:mt}=pi;let{IS_ALLOWED_URI:xe}=pi,u=null;const p=j({},[...li,...bo,...vo,...wo,...ci]);let b=null;const C=j({},[...ui,...ko,...di,...Pn]);let y=Object.seal(ii(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}})),E=null,w=null,_=!0,A=!0,P=!1,M=!0,H=!1,ve=!0,ae=!1,le=!1,Xe=!1,St=!1,An=!1,xn=!1,Ci=!0,Ii=!1;const ef="user-content-";let Co=!0,rn=!1,Ct={},It=null;const Ti=j({},["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 Ei=null;const Pi=j({},["audio","video","img","source","image","track"]);let Io=null;const Ai=j({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),On="http://www.w3.org/1998/Math/MathML",Ln="http://www.w3.org/2000/svg",Ze="http://www.w3.org/1999/xhtml";let Tt=Ze,To=!1,Eo=null;const tf=j({},[On,Ln,Ze],yo);let sn=null;const nf=["application/xhtml+xml","text/html"],of="text/html";let te=null,Et=null;const rf=n.createElement("form"),xi=function(f){return f instanceof RegExp||f instanceof Function},Po=function(){let f=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(!(Et&&Et===f)){if((!f||typeof f!="object")&&(f={}),f=ft(f),sn=nf.indexOf(f.PARSER_MEDIA_TYPE)===-1?of:f.PARSER_MEDIA_TYPE,te=sn==="application/xhtml+xml"?yo:En,u=Ne(f,"ALLOWED_TAGS")?j({},f.ALLOWED_TAGS,te):p,b=Ne(f,"ALLOWED_ATTR")?j({},f.ALLOWED_ATTR,te):C,Eo=Ne(f,"ALLOWED_NAMESPACES")?j({},f.ALLOWED_NAMESPACES,yo):tf,Io=Ne(f,"ADD_URI_SAFE_ATTR")?j(ft(Ai),f.ADD_URI_SAFE_ATTR,te):Ai,Ei=Ne(f,"ADD_DATA_URI_TAGS")?j(ft(Pi),f.ADD_DATA_URI_TAGS,te):Pi,It=Ne(f,"FORBID_CONTENTS")?j({},f.FORBID_CONTENTS,te):Ti,E=Ne(f,"FORBID_TAGS")?j({},f.FORBID_TAGS,te):{},w=Ne(f,"FORBID_ATTR")?j({},f.FORBID_ATTR,te):{},Ct=Ne(f,"USE_PROFILES")?f.USE_PROFILES:!1,_=f.ALLOW_ARIA_ATTR!==!1,A=f.ALLOW_DATA_ATTR!==!1,P=f.ALLOW_UNKNOWN_PROTOCOLS||!1,M=f.ALLOW_SELF_CLOSE_IN_ATTR!==!1,H=f.SAFE_FOR_TEMPLATES||!1,ve=f.SAFE_FOR_XML!==!1,ae=f.WHOLE_DOCUMENT||!1,St=f.RETURN_DOM||!1,An=f.RETURN_DOM_FRAGMENT||!1,xn=f.RETURN_TRUSTED_TYPE||!1,Xe=f.FORCE_BODY||!1,Ci=f.SANITIZE_DOM!==!1,Ii=f.SANITIZE_NAMED_PROPS||!1,Co=f.KEEP_CONTENT!==!1,rn=f.IN_PLACE||!1,xe=f.ALLOWED_URI_REGEXP||fi,Tt=f.NAMESPACE||Ze,y=f.CUSTOM_ELEMENT_HANDLING||{},f.CUSTOM_ELEMENT_HANDLING&&xi(f.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(y.tagNameCheck=f.CUSTOM_ELEMENT_HANDLING.tagNameCheck),f.CUSTOM_ELEMENT_HANDLING&&xi(f.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(y.attributeNameCheck=f.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),f.CUSTOM_ELEMENT_HANDLING&&typeof f.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements=="boolean"&&(y.allowCustomizedBuiltInElements=f.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),H&&(A=!1),An&&(St=!0),Ct&&(u=j({},ci),b=[],Ct.html===!0&&(j(u,li),j(b,ui)),Ct.svg===!0&&(j(u,bo),j(b,ko),j(b,Pn)),Ct.svgFilters===!0&&(j(u,vo),j(b,ko),j(b,Pn)),Ct.mathMl===!0&&(j(u,wo),j(b,di),j(b,Pn))),f.ADD_TAGS&&(u===p&&(u=ft(u)),j(u,f.ADD_TAGS,te)),f.ADD_ATTR&&(b===C&&(b=ft(b)),j(b,f.ADD_ATTR,te)),f.ADD_URI_SAFE_ATTR&&j(Io,f.ADD_URI_SAFE_ATTR,te),f.FORBID_CONTENTS&&(It===Ti&&(It=ft(It)),j(It,f.FORBID_CONTENTS,te)),Co&&(u["#text"]=!0),ae&&j(u,["html","head","body"]),u.table&&(j(u,["tbody"]),delete E.tbody),f.TRUSTED_TYPES_POLICY){if(typeof f.TRUSTED_TYPES_POLICY.createHTML!="function")throw Qt('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof f.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw Qt('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');F=f.TRUSTED_TYPES_POLICY,J=F.createHTML("")}else F===void 0&&(F=Id(I,r)),F!==null&&typeof J=="string"&&(J=F.createHTML(""));de&&de(f),Et=f}},Oi=j({},["mi","mo","mn","ms","mtext"]),Li=j({},["foreignobject","annotation-xml"]),sf=j({},["title","style","font","a","script"]),$i=j({},[...bo,...vo,...pd]),Bi=j({},[...wo,...hd]),af=function(f){let S=N(f);(!S||!S.tagName)&&(S={namespaceURI:Tt,tagName:"template"});const x=En(f.tagName),X=En(S.tagName);return Eo[f.namespaceURI]?f.namespaceURI===Ln?S.namespaceURI===Ze?x==="svg":S.namespaceURI===On?x==="svg"&&(X==="annotation-xml"||Oi[X]):!!$i[x]:f.namespaceURI===On?S.namespaceURI===Ze?x==="math":S.namespaceURI===Ln?x==="math"&&Li[X]:!!Bi[x]:f.namespaceURI===Ze?S.namespaceURI===Ln&&!Li[X]||S.namespaceURI===On&&!Oi[X]?!1:!Bi[x]&&(sf[x]||!$i[x]):!!(sn==="application/xhtml+xml"&&Eo[f.namespaceURI]):!1},Fe=function(f){Zt(e.removed,{element:f});try{N(f).removeChild(f)}catch{B(f)}},$n=function(f,S){try{Zt(e.removed,{attribute:S.getAttributeNode(f),from:S})}catch{Zt(e.removed,{attribute:null,from:S})}if(S.removeAttribute(f),f==="is"&&!b[f])if(St||An)try{Fe(S)}catch{}else try{S.setAttribute(f,"")}catch{}},Ni=function(f){let S=null,x=null;if(Xe)f="<remove></remove>"+f;else{const oe=ai(f,/^[\r\n\t ]+/);x=oe&&oe[0]}sn==="application/xhtml+xml"&&Tt===Ze&&(f='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+f+"</body></html>");const X=F?F.createHTML(f):f;if(Tt===Ze)try{S=new v().parseFromString(X,sn)}catch{}if(!S||!S.documentElement){S=ye.createDocument(Tt,"template",null);try{S.documentElement.innerHTML=To?J:X}catch{}}const ce=S.body||S.documentElement;return f&&x&&ce.insertBefore(n.createTextNode(x),ce.childNodes[0]||null),Tt===Ze?Ie.call(S,ae?"html":"body")[0]:ae?S.documentElement:ce},Mi=function(f){return ee.call(f.ownerDocument||f,f,d.SHOW_ELEMENT|d.SHOW_COMMENT|d.SHOW_TEXT|d.SHOW_PROCESSING_INSTRUCTION|d.SHOW_CDATA_SECTION,null)},Di=function(f){return f instanceof h&&(typeof f.nodeName!="string"||typeof f.textContent!="string"||typeof f.removeChild!="function"||!(f.attributes instanceof m)||typeof f.removeAttribute!="function"||typeof f.setAttribute!="function"||typeof f.namespaceURI!="string"||typeof f.insertBefore!="function"||typeof f.hasChildNodes!="function")},Ri=function(f){return typeof a=="function"&&f instanceof a},Je=function(f,S,x){Q[f]&&Tn(Q[f],X=>{X.call(e,S,x,Et)})},Ui=function(f){let S=null;if(Je("beforeSanitizeElements",f,null),Di(f))return Fe(f),!0;const x=te(f.nodeName);if(Je("uponSanitizeElement",f,{tagName:x,allowedTags:u}),f.hasChildNodes()&&!Ri(f.firstElementChild)&&fe(/<[/\w]/g,f.innerHTML)&&fe(/<[/\w]/g,f.textContent)||f.nodeType===tn.progressingInstruction||ve&&f.nodeType===tn.comment&&fe(/<[/\w]/g,f.data))return Fe(f),!0;if(!u[x]||E[x]){if(!E[x]&&Hi(x)&&(y.tagNameCheck instanceof RegExp&&fe(y.tagNameCheck,x)||y.tagNameCheck instanceof Function&&y.tagNameCheck(x)))return!1;if(Co&&!It[x]){const X=N(f)||f.parentNode,ce=k(f)||f.childNodes;if(ce&&X){const oe=ce.length;for(let we=oe-1;we>=0;--we){const Ke=$(ce[we],!0);Ke.__removalCount=(f.__removalCount||0)+1,X.insertBefore(Ke,L(f))}}}return Fe(f),!0}return f instanceof l&&!af(f)||(x==="noscript"||x==="noembed"||x==="noframes")&&fe(/<\/no(script|embed|frames)/i,f.innerHTML)?(Fe(f),!0):(H&&f.nodeType===tn.text&&(S=f.textContent,Tn([be,De,Te],X=>{S=Jt(S,X," ")}),f.textContent!==S&&(Zt(e.removed,{element:f.cloneNode()}),f.textContent=S)),Je("afterSanitizeElements",f,null),!1)},Vi=function(f,S,x){if(Ci&&(S==="id"||S==="name")&&(x in n||x in rf))return!1;if(!(A&&!w[S]&&fe(it,S))){if(!(_&&fe(Ye,S))){if(!b[S]||w[S]){if(!(Hi(f)&&(y.tagNameCheck instanceof RegExp&&fe(y.tagNameCheck,f)||y.tagNameCheck instanceof Function&&y.tagNameCheck(f))&&(y.attributeNameCheck instanceof RegExp&&fe(y.attributeNameCheck,S)||y.attributeNameCheck instanceof Function&&y.attributeNameCheck(S))||S==="is"&&y.allowCustomizedBuiltInElements&&(y.tagNameCheck instanceof RegExp&&fe(y.tagNameCheck,x)||y.tagNameCheck instanceof Function&&y.tagNameCheck(x))))return!1}else if(!Io[S]){if(!fe(xe,Jt(x,je,""))){if(!((S==="src"||S==="xlink:href"||S==="href")&&f!=="script"&&ud(x,"data:")===0&&Ei[f])){if(!(P&&!fe(He,Jt(x,je,"")))){if(x)return!1}}}}}}return!0},Hi=function(f){return f!=="annotation-xml"&&ai(f,mt)},ji=function(f){Je("beforeSanitizeAttributes",f,null);const{attributes:S}=f;if(!S)return;const x={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:b};let X=S.length;for(;X--;){const ce=S[X],{name:oe,namespaceURI:we,value:Ke}=ce,an=te(oe);let me=oe==="value"?Ke:dd(Ke);if(x.attrName=an,x.attrValue=me,x.keepAttr=!0,x.forceKeepAttr=void 0,Je("uponSanitizeAttribute",f,x),me=x.attrValue,ve&&fe(/((--!?|])>)|<\/(style|title)/i,me)){$n(oe,f);continue}if(x.forceKeepAttr||($n(oe,f),!x.keepAttr))continue;if(!M&&fe(/\/>/i,me)){$n(oe,f);continue}H&&Tn([be,De,Te],Ki=>{me=Jt(me,Ki," ")});const Fi=te(f.nodeName);if(Vi(Fi,an,me)){if(Ii&&(an==="id"||an==="name")&&($n(oe,f),me=ef+me),F&&typeof I=="object"&&typeof I.getAttributeType=="function"&&!we)switch(I.getAttributeType(Fi,an)){case"TrustedHTML":{me=F.createHTML(me);break}case"TrustedScriptURL":{me=F.createScriptURL(me);break}}try{we?f.setAttributeNS(we,oe,me):f.setAttribute(oe,me),Di(f)?Fe(f):si(e.removed)}catch{}}}Je("afterSanitizeAttributes",f,null)},lf=function O(f){let S=null;const x=Mi(f);for(Je("beforeSanitizeShadowDOM",f,null);S=x.nextNode();)Je("uponSanitizeShadowNode",S,null),!Ui(S)&&(S.content instanceof i&&O(S.content),ji(S));Je("afterSanitizeShadowDOM",f,null)};return e.sanitize=function(O){let f=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},S=null,x=null,X=null,ce=null;if(To=!O,To&&(O="<!-->"),typeof O!="string"&&!Ri(O))if(typeof O.toString=="function"){if(O=O.toString(),typeof O!="string")throw Qt("dirty is not a string, aborting")}else throw Qt("toString is not a function");if(!e.isSupported)return O;if(le||Po(f),e.removed=[],typeof O=="string"&&(rn=!1),rn){if(O.nodeName){const Ke=te(O.nodeName);if(!u[Ke]||E[Ke])throw Qt("root node is forbidden and cannot be sanitized in-place")}}else if(O instanceof a)S=Ni("<!---->"),x=S.ownerDocument.importNode(O,!0),x.nodeType===tn.element&&x.nodeName==="BODY"||x.nodeName==="HTML"?S=x:S.appendChild(x);else{if(!St&&!H&&!ae&&O.indexOf("<")===-1)return F&&xn?F.createHTML(O):O;if(S=Ni(O),!S)return St?null:xn?J:""}S&&Xe&&Fe(S.firstChild);const oe=Mi(rn?O:S);for(;X=oe.nextNode();)Ui(X)||(X.content instanceof i&&lf(X.content),ji(X));if(rn)return O;if(St){if(An)for(ce=Me.call(S.ownerDocument);S.firstChild;)ce.appendChild(S.firstChild);else ce=S;return(b.shadowroot||b.shadowrootmode)&&(ce=Y.call(o,ce,!0)),ce}let we=ae?S.outerHTML:S.innerHTML;return ae&&u["!doctype"]&&S.ownerDocument&&S.ownerDocument.doctype&&S.ownerDocument.doctype.name&&fe(mi,S.ownerDocument.doctype.name)&&(we="<!DOCTYPE "+S.ownerDocument.doctype.name+`>
|
|
405
|
-
`+we),H&&Tn([be,De,Te],Ke=>{we=Jt(we,Ke," ")}),F&&xn?F.createHTML(we):we},e.setConfig=function(){let O=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};Po(O),le=!0},e.clearConfig=function(){Et=null,le=!1},e.isValidAttribute=function(O,f,S){Et||Po({});const x=te(O),X=te(f);return Vi(x,X,S)},e.addHook=function(O,f){typeof f=="function"&&(Q[O]=Q[O]||[],Zt(Q[O],f))},e.removeHook=function(O){if(Q[O])return si(Q[O])},e.removeHooks=function(O){Q[O]&&(Q[O]=[])},e.removeAllHooks=function(){Q={}},e}var gi=hi();class yi{get IsVisible(){return _t.isVisible()}}class Td extends yi{constructor(){super()}async CreateAlertAsync(e){let n="info",o,r;return typeof e=="string"||Array.isArray(e)?o=Array.isArray(e)?e.join("<br />"):e:(n=e.icon??"info",r=e.title??"",o=Array.isArray(e.text)?e.text.join("<br />"):e.text),new Promise(i=>{_t.fire({allowEscapeKey:!1,allowOutsideClick:!1,icon:n,title:r,html:`<div style="max-height: 50vh; overflow: auto">${gi.sanitize(o)}</div>`}).then(()=>i(!0))})}async AlertAsync(e){return this.CreateAlertAsync({text:e,icon:"info"})}async AlertErrorAsync(e){return this.CreateAlertAsync({text:e,icon:"error"})}async AlertSuccessAsync(e){return this.CreateAlertAsync({text:e,icon:"success"})}}class Ed extends yi{async CreateConfirmAsync(e){return new Promise(n=>{_t.fire({showCancelButton:!0,allowEscapeKey:!1,allowOutsideClick:!1,icon:"question",title:e.title,html:gi.sanitize(e.text),confirmButtonText:e.confirmLabel??"confirmar",cancelButtonText:e.rejectLabel??"cancelar"}).then(o=>{n(o.isConfirmed===!0)})})}async ConfirmAsync(e){return this.CreateConfirmAsync({text:e})}}const Pd=()=>new Td,Ad=()=>new Ed;function xd(t){return t instanceof Uint8Array||t!=null&&typeof t=="object"&&t.constructor.name==="Uint8Array"}function bi(t,...e){if(!xd(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 vi(t,e=!0){if(t.destroyed)throw new Error("Hash instance has been destroyed");if(e&&t.finished)throw new Error("Hash#digest() has already been called")}function Od(t,e){bi(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 _o=t=>new DataView(t.buffer,t.byteOffset,t.byteLength),Ve=(t,e)=>t<<32-e|t>>>e;new Uint8Array(new Uint32Array([287454020]).buffer)[0];function Ld(t){if(typeof t!="string")throw new Error(`utf8ToBytes expected string, got ${typeof t}`);return new Uint8Array(new TextEncoder().encode(t))}function wi(t){return typeof t=="string"&&(t=Ld(t)),bi(t),t}class $d{clone(){return this._cloneInto()}}function Bd(t){const e=o=>t().update(wi(o)).digest(),n=t();return e.outputLen=n.outputLen,e.blockLen=n.blockLen,e.create=()=>t(),e}function Nd(t,e,n,o){if(typeof t.setBigUint64=="function")return t.setBigUint64(e,n,o);const r=BigInt(32),i=BigInt(4294967295),c=Number(n>>r&i),a=Number(n&i),l=o?4:0,d=o?0:4;t.setUint32(e+l,c,o),t.setUint32(e+d,a,o)}const Md=(t,e,n)=>t&e^~t&n,Dd=(t,e,n)=>t&e^t&n^e&n;class Rd extends $d{constructor(e,n,o,r){super(),this.blockLen=e,this.outputLen=n,this.padOffset=o,this.isLE=r,this.finished=!1,this.length=0,this.pos=0,this.destroyed=!1,this.buffer=new Uint8Array(e),this.view=_o(this.buffer)}update(e){vi(this);const{view:n,buffer:o,blockLen:r}=this;e=wi(e);const i=e.length;for(let c=0;c<i;){const a=Math.min(r-this.pos,i-c);if(a===r){const l=_o(e);for(;r<=i-c;c+=r)this.process(l,c);continue}o.set(e.subarray(c,c+a),this.pos),this.pos+=a,c+=a,this.pos===r&&(this.process(n,0),this.pos=0)}return this.length+=e.length,this.roundClean(),this}digestInto(e){vi(this),Od(e,this),this.finished=!0;const{buffer:n,view:o,blockLen:r,isLE:i}=this;let{pos:c}=this;n[c++]=128,this.buffer.subarray(c).fill(0),this.padOffset>r-c&&(this.process(o,0),c=0);for(let h=c;h<r;h++)n[h]=0;Nd(o,r-8,BigInt(this.length*8),i),this.process(o,0);const a=_o(e),l=this.outputLen;if(l%4)throw new Error("_sha2: outputLen should be aligned to 32bit");const d=l/4,m=this.get();if(d>m.length)throw new Error("_sha2: outputLen bigger than state");for(let h=0;h<d;h++)a.setUint32(4*h,m[h],i)}digest(){const{buffer:e,outputLen:n}=this;this.digestInto(e);const o=e.slice(0,n);return this.destroy(),o}_cloneInto(e){e||(e=new this.constructor),e.set(...this.get());const{blockLen:n,buffer:o,length:r,finished:i,destroyed:c,pos:a}=this;return e.length=r,e.pos=a,e.finished=i,e.destroyed=c,r%n&&e.buffer.set(o),e}}const Ud=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]),ot=new Uint32Array([1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225]),rt=new Uint32Array(64);class Vd extends Rd{constructor(){super(64,32,8,!1),this.A=ot[0]|0,this.B=ot[1]|0,this.C=ot[2]|0,this.D=ot[3]|0,this.E=ot[4]|0,this.F=ot[5]|0,this.G=ot[6]|0,this.H=ot[7]|0}get(){const{A:e,B:n,C:o,D:r,E:i,F:c,G:a,H:l}=this;return[e,n,o,r,i,c,a,l]}set(e,n,o,r,i,c,a,l){this.A=e|0,this.B=n|0,this.C=o|0,this.D=r|0,this.E=i|0,this.F=c|0,this.G=a|0,this.H=l|0}process(e,n){for(let h=0;h<16;h++,n+=4)rt[h]=e.getUint32(n,!1);for(let h=16;h<64;h++){const v=rt[h-15],I=rt[h-2],T=Ve(v,7)^Ve(v,18)^v>>>3,$=Ve(I,17)^Ve(I,19)^I>>>10;rt[h]=$+rt[h-7]+T+rt[h-16]|0}let{A:o,B:r,C:i,D:c,E:a,F:l,G:d,H:m}=this;for(let h=0;h<64;h++){const v=Ve(a,6)^Ve(a,11)^Ve(a,25),I=m+v+Md(a,l,d)+Ud[h]+rt[h]|0,$=(Ve(o,2)^Ve(o,13)^Ve(o,22))+Dd(o,r,i)|0;m=d,d=l,l=a,a=c+I|0,c=i,i=r,r=o,o=I+$|0}o=o+this.A|0,r=r+this.B|0,i=i+this.C|0,c=c+this.D|0,a=a+this.E|0,l=l+this.F|0,d=d+this.G|0,m=m+this.H|0,this.set(o,r,i,c,a,l,d,m)}roundClean(){rt.fill(0)}destroy(){this.set(0,0,0,0,0,0,0,0),this.buffer.fill(0)}}const Hd=Bd(()=>new Vd);class nn extends Error{}nn.prototype.name="InvalidTokenError";function jd(t){return decodeURIComponent(atob(t).replace(/(.)/g,(e,n)=>{let o=n.charCodeAt(0).toString(16).toUpperCase();return o.length<2&&(o="0"+o),"%"+o}))}function Fd(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 jd(e)}catch{return atob(e)}}function So(t,e){if(typeof t!="string")throw new nn("Invalid token specified: must be a string");e||(e={});const n=e.header===!0?0:1,o=t.split(".")[n];if(typeof o!="string")throw new nn(`Invalid token specified: missing part #${n+1}`);let r;try{r=Fd(o)}catch(i){throw new nn(`Invalid token specified: invalid base64 for part #${n+1} (${i.message})`)}try{return JSON.parse(r)}catch(i){throw new nn(`Invalid token specified: invalid json for part #${n+1} (${i.message})`)}}if(typeof Promise>"u")throw Error("Keycloak requires an environment that supports Promises. Make sure that you include the appropriate polyfill.");function ki(t){if(!(this instanceof ki))throw new Error("The 'Keycloak' constructor must be invoked with 'new'.");var e=this,n,o=[],r,i={enable:!0,callbackList:[],interval:5};e.didInitialize=!1;for(var c=document.getElementsByTagName("script"),a=0;a<c.length;a++)(c[a].src.indexOf("keycloak.js")!==-1||c[a].src.indexOf("keycloak.min.js")!==-1)&&c[a].src.indexOf("version=")!==-1&&(e.iframeVersion=c[a].src.substring(c[a].src.indexOf("version=")+8).split("&")[0]);var l=!0,d=xe(console.info),m=xe(console.warn);e.init=function(u){if(e.didInitialize)throw new Error("A 'Keycloak' instance can only be initialized once.");e.didInitialize=!0,e.authenticated=!1,r=mt();var p=["default","cordova","cordova-native"];if(u&&p.indexOf(u.adapter)>-1?n=Ye(u.adapter):u&&typeof u.adapter=="object"?n=u.adapter:window.Cordova||window.cordova?n=Ye("cordova"):n=Ye(),u){if(typeof u.useNonce<"u"&&(l=u.useNonce),typeof u.checkLoginIframe<"u"&&(i.enable=u.checkLoginIframe),u.checkLoginIframeInterval&&(i.interval=u.checkLoginIframeInterval),u.onLoad==="login-required"&&(e.loginRequired=!0),u.responseMode)if(u.responseMode==="query"||u.responseMode==="fragment")e.responseMode=u.responseMode;else throw"Invalid value for responseMode";if(u.flow){switch(u.flow){case"standard":e.responseType="code";break;case"implicit":e.responseType="id_token token";break;case"hybrid":e.responseType="code id_token token";break;default:throw"Invalid value for flow"}e.flow=u.flow}if(u.timeSkew!=null&&(e.timeSkew=u.timeSkew),u.redirectUri&&(e.redirectUri=u.redirectUri),u.silentCheckSsoRedirectUri&&(e.silentCheckSsoRedirectUri=u.silentCheckSsoRedirectUri),typeof u.silentCheckSsoFallback=="boolean"?e.silentCheckSsoFallback=u.silentCheckSsoFallback:e.silentCheckSsoFallback=!0,typeof u.pkceMethod<"u"){if(u.pkceMethod!=="S256"&&u.pkceMethod!==!1)throw new TypeError(`Invalid value for pkceMethod', expected 'S256' or false but got ${u.pkceMethod}.`);e.pkceMethod=u.pkceMethod}else e.pkceMethod="S256";typeof u.enableLogging=="boolean"?e.enableLogging=u.enableLogging:e.enableLogging=!1,u.logoutMethod==="POST"?e.logoutMethod="POST":e.logoutMethod="GET",typeof u.scope=="string"&&(e.scope=u.scope),typeof u.acrValues=="string"&&(e.acrValues=u.acrValues),typeof u.messageReceiveTimeout=="number"&&u.messageReceiveTimeout>0?e.messageReceiveTimeout=u.messageReceiveTimeout:e.messageReceiveTimeout=1e4}e.responseMode||(e.responseMode="fragment"),e.responseType||(e.responseType="code",e.flow="standard");var b=Y(),C=Y();C.promise.then(function(){e.onReady&&e.onReady(e.authenticated),b.setSuccess(e.authenticated)}).catch(function(A){b.setError(A)});var y=N();function E(){var A=function(H){H||(M.prompt="none"),u&&u.locale&&(M.locale=u.locale),e.login(M).then(function(){C.setSuccess()}).catch(function(ve){C.setError(ve)})},P=function(){var H=document.createElement("iframe"),ve=e.createLoginUrl({prompt:"none",redirectUri:e.silentCheckSsoRedirectUri});H.setAttribute("src",ve),H.setAttribute("sandbox","allow-storage-access-by-user-activation allow-scripts allow-same-origin"),H.setAttribute("title","keycloak-silent-check-sso"),H.style.display="none",document.body.appendChild(H);var ae=function(le){if(!(le.origin!==window.location.origin||H.contentWindow!==le.source)){var Xe=ee(le.data);k(Xe,C),document.body.removeChild(H),window.removeEventListener("message",ae)}};window.addEventListener("message",ae)},M={};switch(u.onLoad){case"check-sso":i.enable?be().then(function(){Te().then(function(H){H?C.setSuccess():e.silentCheckSsoRedirectUri?P():A(!1)}).catch(function(H){C.setError(H)})}):e.silentCheckSsoRedirectUri?P():A(!1);break;case"login-required":A(!0);break;default:throw"Invalid value for onLoad"}}function w(){var A=ee(window.location.href);if(A&&window.history.replaceState(window.history.state,null,A.newUrl),A&&A.valid)return be().then(function(){k(A,C)}).catch(function(P){C.setError(P)});u?u.token&&u.refreshToken?(J(u.token,u.refreshToken,u.idToken),i.enable?be().then(function(){Te().then(function(P){P?(e.onAuthSuccess&&e.onAuthSuccess(),C.setSuccess(),De()):C.setSuccess()}).catch(function(P){C.setError(P)})}):e.updateToken(-1).then(function(){e.onAuthSuccess&&e.onAuthSuccess(),C.setSuccess()}).catch(function(P){e.onAuthError&&e.onAuthError(),u.onLoad?E():C.setError(P)})):u.onLoad?E():C.setSuccess():C.setSuccess()}function _(){var A=Y(),P=function(){(document.readyState==="interactive"||document.readyState==="complete")&&(document.removeEventListener("readystatechange",P),A.setSuccess())};return document.addEventListener("readystatechange",P),P(),A.promise}return y.then(function(){_().then(it).then(w).catch(function(A){b.setError(A)})}),y.catch(function(A){b.setError(A)}),b.promise},e.login=function(u){return n.login(u)};function h(u){var p=null,b=window.crypto||window.msCrypto;if(b&&b.getRandomValues&&window.Uint8Array)return p=new Uint8Array(u),b.getRandomValues(p),p;p=new Array(u);for(var C=0;C<p.length;C++)p[C]=Math.floor(256*Math.random());return p}function v(u){return I(u,"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789")}function I(u,p){for(var b=h(u),C=new Array(u),y=0;y<u;y++)C[y]=p.charCodeAt(b[y]%p.length);return String.fromCharCode.apply(null,C)}function T(u,p){if(u!=="S256")throw new TypeError(`Invalid value for 'pkceMethod', expected 'S256' but got '${u}'.`);const b=Hd(p);return Kd(b).replace(/\+/g,"-").replace(/\//g,"_").replace(/\=/g,"")}function $(u){var p={id_token:{acr:u}};return JSON.stringify(p)}e.createLoginUrl=function(u){var p=ye(),b=ye(),C=n.redirectUri(u),y={state:p,nonce:b,redirectUri:encodeURIComponent(C),loginOptions:u};u&&u.prompt&&(y.prompt=u.prompt);var E;u&&u.action=="register"?E=e.endpoints.register():E=e.endpoints.authorize();var w=u&&u.scope||e.scope;w?w.indexOf("openid")===-1&&(w="openid "+w):w="openid";var _=E+"?client_id="+encodeURIComponent(e.clientId)+"&redirect_uri="+encodeURIComponent(C)+"&state="+encodeURIComponent(p)+"&response_mode="+encodeURIComponent(e.responseMode)+"&response_type="+encodeURIComponent(e.responseType)+"&scope="+encodeURIComponent(w);if(l&&(_=_+"&nonce="+encodeURIComponent(b)),u&&u.prompt&&(_+="&prompt="+encodeURIComponent(u.prompt)),u&&u.maxAge&&(_+="&max_age="+encodeURIComponent(u.maxAge)),u&&u.loginHint&&(_+="&login_hint="+encodeURIComponent(u.loginHint)),u&&u.idpHint&&(_+="&kc_idp_hint="+encodeURIComponent(u.idpHint)),u&&u.action&&u.action!="register"&&(_+="&kc_action="+encodeURIComponent(u.action)),u&&u.locale&&(_+="&ui_locales="+encodeURIComponent(u.locale)),u&&u.acr){var A=$(u.acr);_+="&claims="+encodeURIComponent(A)}if((u&&u.acrValues||e.acrValues)&&(_+="&acr_values="+encodeURIComponent(u.acrValues||e.acrValues)),e.pkceMethod){var P=v(96);y.pkceCodeVerifier=P;var M=T(e.pkceMethod,P);_+="&code_challenge="+M,_+="&code_challenge_method="+e.pkceMethod}return r.add(y),_},e.logout=function(u){return n.logout(u)},e.createLogoutUrl=function(u){if(((u==null?void 0:u.logoutMethod)??e.logoutMethod)==="POST")return e.endpoints.logout();var b=e.endpoints.logout()+"?client_id="+encodeURIComponent(e.clientId)+"&post_logout_redirect_uri="+encodeURIComponent(n.redirectUri(u,!1));return e.idToken&&(b+="&id_token_hint="+encodeURIComponent(e.idToken)),b},e.register=function(u){return n.register(u)},e.createRegisterUrl=function(u){return u||(u={}),u.action="register",e.createLoginUrl(u)},e.createAccountUrl=function(u){var p=B(),b=void 0;return typeof p<"u"&&(b=p+"/account?referrer="+encodeURIComponent(e.clientId)+"&referrer_uri="+encodeURIComponent(n.redirectUri(u))),b},e.accountManagement=function(){return n.accountManagement()},e.hasRealmRole=function(u){var p=e.realmAccess;return!!p&&p.roles.indexOf(u)>=0},e.hasResourceRole=function(u,p){if(!e.resourceAccess)return!1;var b=e.resourceAccess[p||e.clientId];return!!b&&b.roles.indexOf(u)>=0},e.loadUserProfile=function(){var u=B()+"/account",p=new XMLHttpRequest;p.open("GET",u,!0),p.setRequestHeader("Accept","application/json"),p.setRequestHeader("Authorization","bearer "+e.token);var b=Y();return p.onreadystatechange=function(){p.readyState==4&&(p.status==200?(e.profile=JSON.parse(p.responseText),b.setSuccess(e.profile)):b.setError())},p.send(),b.promise},e.loadUserInfo=function(){var u=e.endpoints.userinfo(),p=new XMLHttpRequest;p.open("GET",u,!0),p.setRequestHeader("Accept","application/json"),p.setRequestHeader("Authorization","bearer "+e.token);var b=Y();return p.onreadystatechange=function(){p.readyState==4&&(p.status==200?(e.userInfo=JSON.parse(p.responseText),b.setSuccess(e.userInfo)):b.setError())},p.send(),b.promise},e.isTokenExpired=function(u){if(!e.tokenParsed||!e.refreshToken&&e.flow!="implicit")throw"Not authenticated";if(e.timeSkew==null)return d("[KEYCLOAK] Unable to determine if token is expired as timeskew is not set"),!0;var p=e.tokenParsed.exp-Math.ceil(new Date().getTime()/1e3)+e.timeSkew;if(u){if(isNaN(u))throw"Invalid minValidity";p-=u}return p<0},e.updateToken=function(u){var p=Y();if(!e.refreshToken)return p.setError(),p.promise;u=u||5;var b=function(){var y=!1;if(u==-1?(y=!0,d("[KEYCLOAK] Refreshing token: forced refresh")):(!e.tokenParsed||e.isTokenExpired(u))&&(y=!0,d("[KEYCLOAK] Refreshing token: token expired")),!y)p.setSuccess(!1);else{var E="grant_type=refresh_token&refresh_token="+e.refreshToken,w=e.endpoints.token();if(o.push(p),o.length==1){var _=new XMLHttpRequest;_.open("POST",w,!0),_.setRequestHeader("Content-type","application/x-www-form-urlencoded"),_.withCredentials=!0,E+="&client_id="+encodeURIComponent(e.clientId);var A=new Date().getTime();_.onreadystatechange=function(){if(_.readyState==4)if(_.status==200){d("[KEYCLOAK] Token refreshed"),A=(A+new Date().getTime())/2;var P=JSON.parse(_.responseText);J(P.access_token,P.refresh_token,P.id_token,A),e.onAuthRefreshSuccess&&e.onAuthRefreshSuccess();for(var M=o.pop();M!=null;M=o.pop())M.setSuccess(!0)}else{m("[KEYCLOAK] Failed to refresh token"),_.status==400&&e.clearToken(),e.onAuthRefreshError&&e.onAuthRefreshError();for(var M=o.pop();M!=null;M=o.pop())M.setError(!0)}},_.send(E)}}};if(i.enable){var C=Te();C.then(function(){b()}).catch(function(y){p.setError(y)})}else b();return p.promise},e.clearToken=function(){e.token&&(J(null,null,null),e.onAuthLogout&&e.onAuthLogout(),e.loginRequired&&e.login())};function B(){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 L(){return window.location.origin?window.location.origin:window.location.protocol+"//"+window.location.hostname+(window.location.port?":"+window.location.port:"")}function k(u,p){var b=u.code,C=u.error,y=u.prompt,E=new Date().getTime();if(u.kc_action_status&&e.onActionUpdate&&e.onActionUpdate(u.kc_action_status,u.kc_action),C){if(y!="none")if(u.error_description&&u.error_description==="authentication_expired")e.login(u.loginOptions);else{var w={error:C,error_description:u.error_description};e.onAuthError&&e.onAuthError(w),p&&p.setError(w)}else p&&p.setSuccess();return}else e.flow!="standard"&&(u.access_token||u.id_token)&&M(u.access_token,null,u.id_token,!0);if(e.flow!="implicit"&&b){var _="code="+b+"&grant_type=authorization_code",A=e.endpoints.token(),P=new XMLHttpRequest;P.open("POST",A,!0),P.setRequestHeader("Content-type","application/x-www-form-urlencoded"),_+="&client_id="+encodeURIComponent(e.clientId),_+="&redirect_uri="+u.redirectUri,u.pkceCodeVerifier&&(_+="&code_verifier="+u.pkceCodeVerifier),P.withCredentials=!0,P.onreadystatechange=function(){if(P.readyState==4)if(P.status==200){var H=JSON.parse(P.responseText);M(H.access_token,H.refresh_token,H.id_token,e.flow==="standard"),De()}else e.onAuthError&&e.onAuthError(),p&&p.setError()},P.send(_)}function M(H,ve,ae,le){E=(E+new Date().getTime())/2,J(H,ve,ae,E),l&&e.idTokenParsed&&e.idTokenParsed.nonce!=u.storedNonce?(d("[KEYCLOAK] Invalid nonce, clearing token"),e.clearToken(),p&&p.setError()):le&&(e.onAuthSuccess&&e.onAuthSuccess(),p&&p.setSuccess())}}function N(u){var p=Y(),b;t?typeof t=="string"&&(b=t):b="keycloak.json";function C(P){P?e.endpoints={authorize:function(){return P.authorization_endpoint},token:function(){return P.token_endpoint},logout:function(){if(!P.end_session_endpoint)throw"Not supported by the OIDC server";return P.end_session_endpoint},checkSessionIframe:function(){if(!P.check_session_iframe)throw"Not supported by the OIDC server";return P.check_session_iframe},register:function(){throw'Redirection to "Register user" page not supported in standard OIDC mode'},userinfo:function(){if(!P.userinfo_endpoint)throw"Not supported by the OIDC server";return P.userinfo_endpoint}}:e.endpoints={authorize:function(){return B()+"/protocol/openid-connect/auth"},token:function(){return B()+"/protocol/openid-connect/token"},logout:function(){return B()+"/protocol/openid-connect/logout"},checkSessionIframe:function(){var M=B()+"/protocol/openid-connect/login-status-iframe.html";return e.iframeVersion&&(M=M+"?version="+e.iframeVersion),M},thirdPartyCookiesIframe:function(){var M=B()+"/protocol/openid-connect/3p-cookies/step1.html";return e.iframeVersion&&(M=M+"?version="+e.iframeVersion),M},register:function(){return B()+"/protocol/openid-connect/registrations"},userinfo:function(){return B()+"/protocol/openid-connect/userinfo"}}}if(b){var y=new XMLHttpRequest;y.open("GET",b,!0),y.setRequestHeader("Accept","application/json"),y.onreadystatechange=function(){if(y.readyState==4)if(y.status==200||F(y)){var P=JSON.parse(y.responseText);e.authServerUrl=P["auth-server-url"],e.realm=P.realm,e.clientId=P.resource,C(null),p.setSuccess()}else p.setError()},y.send()}else{if(!t.clientId)throw"clientId missing";e.clientId=t.clientId;var E=t.oidcProvider;if(E)if(typeof E=="string"){var A;E.charAt(E.length-1)=="/"?A=E+".well-known/openid-configuration":A=E+"/.well-known/openid-configuration";var y=new XMLHttpRequest;y.open("GET",A,!0),y.setRequestHeader("Accept","application/json"),y.onreadystatechange=function(){if(y.readyState==4)if(y.status==200||F(y)){var M=JSON.parse(y.responseText);C(M),p.setSuccess()}else p.setError()},y.send()}else C(E),p.setSuccess();else{if(!t.url){for(var w=document.getElementsByTagName("script"),_=0;_<w.length;_++)if(w[_].src.match(/.*keycloak\.js/)){t.url=w[_].src.substr(0,w[_].src.indexOf("/js/keycloak.js"));break}}if(!t.realm)throw"realm missing";e.authServerUrl=t.url,e.realm=t.realm,C(null),p.setSuccess()}}return p.promise}function F(u){return u.status==0&&u.responseText&&u.responseURL.startsWith("file:")}function J(u,p,b,C){if(e.tokenTimeoutHandle&&(clearTimeout(e.tokenTimeoutHandle),e.tokenTimeoutHandle=null),p?(e.refreshToken=p,e.refreshTokenParsed=So(p)):(delete e.refreshToken,delete e.refreshTokenParsed),b?(e.idToken=b,e.idTokenParsed=So(b)):(delete e.idToken,delete e.idTokenParsed),u){if(e.token=u,e.tokenParsed=So(u),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,C&&(e.timeSkew=Math.floor(C/1e3)-e.tokenParsed.iat),e.timeSkew!=null&&(d("[KEYCLOAK] Estimated time difference between browser and server is "+e.timeSkew+" seconds"),e.onTokenExpired)){var y=(e.tokenParsed.exp-new Date().getTime()/1e3+e.timeSkew)*1e3;d("[KEYCLOAK] Token expires in "+Math.round(y/1e3)+" s"),y<=0?e.onTokenExpired():e.tokenTimeoutHandle=setTimeout(e.onTokenExpired,y)}}else delete e.token,delete e.tokenParsed,delete e.subject,delete e.realmAccess,delete e.resourceAccess,e.authenticated=!1}function ye(){var u="0123456789abcdef",p=I(36,u).split("");p[14]="4",p[19]=u.substr(p[19]&3|8,1),p[8]=p[13]=p[18]=p[23]="-";var b=p.join("");return b}function ee(u){var p=Me(u);if(p){var b=r.get(p.state);return b&&(p.valid=!0,p.redirectUri=b.redirectUri,p.storedNonce=b.nonce,p.prompt=b.prompt,p.pkceCodeVerifier=b.pkceCodeVerifier,p.loginOptions=b.loginOptions),p}}function Me(u){var p;switch(e.flow){case"standard":p=["code","state","session_state","kc_action_status","kc_action","iss"];break;case"implicit":p=["access_token","token_type","id_token","state","session_state","expires_in","kc_action_status","kc_action","iss"];break;case"hybrid":p=["access_token","token_type","id_token","code","state","session_state","expires_in","kc_action_status","kc_action","iss"];break}p.push("error"),p.push("error_description"),p.push("error_uri");var b=u.indexOf("?"),C=u.indexOf("#"),y,E;if(e.responseMode==="query"&&b!==-1?(y=u.substring(0,b),E=Ie(u.substring(b+1,C!==-1?C:u.length),p),E.paramsString!==""&&(y+="?"+E.paramsString),C!==-1&&(y+=u.substring(C))):e.responseMode==="fragment"&&C!==-1&&(y=u.substring(0,C),E=Ie(u.substring(C+1),p),E.paramsString!==""&&(y+="#"+E.paramsString)),E&&E.oauthParams){if(e.flow==="standard"||e.flow==="hybrid"){if((E.oauthParams.code||E.oauthParams.error)&&E.oauthParams.state)return E.oauthParams.newUrl=y,E.oauthParams}else if(e.flow==="implicit"&&(E.oauthParams.access_token||E.oauthParams.error)&&E.oauthParams.state)return E.oauthParams.newUrl=y,E.oauthParams}}function Ie(u,p){for(var b=u.split("&"),C={paramsString:"",oauthParams:{}},y=0;y<b.length;y++){var E=b[y].indexOf("="),w=b[y].slice(0,E);p.indexOf(w)!==-1?C.oauthParams[w]=b[y].slice(E+1):(C.paramsString!==""&&(C.paramsString+="&"),C.paramsString+=b[y])}return C}function Y(){var u={setSuccess:function(p){u.resolve(p)},setError:function(p){u.reject(p)}};return u.promise=new Promise(function(p,b){u.resolve=p,u.reject=b}),u}function Q(u,p,b){var C=null,y=new Promise(function(E,w){C=setTimeout(function(){w({error:b})},p)});return Promise.race([u,y]).finally(function(){clearTimeout(C)})}function be(){var u=Y();if(!i.enable||i.iframe)return u.setSuccess(),u.promise;var p=document.createElement("iframe");i.iframe=p,p.onload=function(){var y=e.endpoints.authorize();y.charAt(0)==="/"?i.iframeOrigin=L():i.iframeOrigin=y.substring(0,y.indexOf("/",8)),u.setSuccess()};var b=e.endpoints.checkSessionIframe();p.setAttribute("src",b),p.setAttribute("sandbox","allow-storage-access-by-user-activation allow-scripts allow-same-origin"),p.setAttribute("title","keycloak-session-iframe"),p.style.display="none",document.body.appendChild(p);var C=function(y){if(!(y.origin!==i.iframeOrigin||i.iframe.contentWindow!==y.source)&&(y.data=="unchanged"||y.data=="changed"||y.data=="error")){y.data!="unchanged"&&e.clearToken();for(var E=i.callbackList.splice(0,i.callbackList.length),w=E.length-1;w>=0;--w){var _=E[w];y.data=="error"?_.setError():_.setSuccess(y.data=="unchanged")}}};return window.addEventListener("message",C,!1),u.promise}function De(){i.enable&&e.token&&setTimeout(function(){Te().then(function(u){u&&De()})},i.interval*1e3)}function Te(){var u=Y();if(i.iframe&&i.iframeOrigin){var p=e.clientId+" "+(e.sessionId?e.sessionId:"");i.callbackList.push(u);var b=i.iframeOrigin;i.callbackList.length==1&&i.iframe.contentWindow.postMessage(p,b)}else u.setSuccess();return u.promise}function it(){var u=Y();if(i.enable||e.silentCheckSsoRedirectUri){var p=document.createElement("iframe");p.setAttribute("src",e.endpoints.thirdPartyCookiesIframe()),p.setAttribute("sandbox","allow-storage-access-by-user-activation allow-scripts allow-same-origin"),p.setAttribute("title","keycloak-3p-check-iframe"),p.style.display="none",document.body.appendChild(p);var b=function(C){p.contentWindow===C.source&&(C.data!=="supported"&&C.data!=="unsupported"||(C.data==="unsupported"&&(m(`[KEYCLOAK] Your browser is blocking access to 3rd-party cookies, this means:
|
|
404
|
+
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 Au(){const t=U.domCache.get(this),e=U.innerParams.get(this);if(!e){Jo(this);return}t.popup&&D.swalCloseEventFinishedCallback&&(D.swalCloseEventFinishedCallback(),delete D.swalCloseEventFinishedCallback),D.deferDisposalTimer&&(clearTimeout(D.deferDisposalTimer),delete D.deferDisposalTimer),typeof e.didDestroy=="function"&&e.didDestroy(),Pu(this)}const Pu=t=>{Jo(t),delete t.params,delete D.keydownHandler,delete D.keydownTarget,delete D.currentInstance},Jo=t=>{t.isAwaitingPromise()?(cr(U,t),U.awaitingPromise.set(t,!0)):(cr(Qt,t),cr(U,t))},cr=(t,e)=>{for(const n in t)t[n].delete(e)},Qo=Object.freeze(Object.defineProperty({__proto__:null,_destroy:Au,close:In,closeModal:In,closePopup:In,closeToast:In,disableButtons:wu,disableInput:_u,disableLoading:zo,enableButtons:vu,enableInput:ku,getInput:tu,getProgressSteps:Iu,handleAwaitingPromise:en,hideLoading:zo,isAwaitingPromise:mu,rejectPromise:hu,resetValidationMessage:Cu,showValidationMessage:Su,update:Eu},Symbol.toStringTag,{value:"Module"})),xu=t=>{const e=U.innerParams.get(t);t.disableButtons(),e.input?ei(t,"confirm"):dr(t,!0)},Ou=t=>{const e=U.innerParams.get(t);t.disableButtons(),e.returnInputValueOnDeny?ei(t,"deny"):ur(t,!1)},Lu=(t,e)=>{t.disableButtons(),e(kt.cancel)},ei=(t,e)=>{const n=U.innerParams.get(t);if(!n.input)return lt(`The "input" parameter is needed to be set when using returnInputValueOn${Yn(e)}`);const r=Gc(t,n);n.inputValidator?$u(t,r,e):t.getInput().checkValidity()?e==="deny"?ur(t,r):dr(t,r):(t.enableButtons(),t.showValidationMessage(n.validationMessage))},$u=(t,e,n)=>{const r=U.innerParams.get(t);t.disableInput(),Promise.resolve().then(()=>Kt(r.inputValidator(e,r.validationMessage))).then(i=>{t.enableButtons(),t.enableInput(),i?t.showValidationMessage(i):n==="deny"?ur(t,e):dr(t,e)})},ur=(t,e)=>{const n=U.innerParams.get(t||void 0);n.showLoaderOnDeny&&_t(nt()),n.preDeny?(U.awaitingPromise.set(t||void 0,!0),Promise.resolve().then(()=>Kt(n.preDeny(e,n.validationMessage))).then(o=>{o===!1?(t.hideLoading(),en(t)):t.closePopup({isDenied:!0,value:typeof o>"u"?e:o})}).catch(o=>ni(t||void 0,o))):t.closePopup({isDenied:!0,value:e})},ti=(t,e)=>{t.closePopup({isConfirmed:!0,value:e})},ni=(t,e)=>{t.rejectPromise(e)},dr=(t,e)=>{const n=U.innerParams.get(t||void 0);n.showLoaderOnConfirm&&_t(),n.preConfirm?(t.resetValidationMessage(),U.awaitingPromise.set(t||void 0,!0),Promise.resolve().then(()=>Kt(n.preConfirm(e,n.validationMessage))).then(o=>{Se(kn())||o===!1?(t.hideLoading(),en(t)):ti(t,typeof o>"u"?e:o)}).catch(o=>ni(t||void 0,o))):ti(t,e)},Bu=(t,e,n)=>{U.innerParams.get(t).toast?Nu(t,e,n):(Du(e),Ru(e),Uu(t,e,n))},Nu=(t,e,n)=>{e.popup.onclick=()=>{const r=U.innerParams.get(t);r&&(Mu(r)||r.timer||r.input)||n(kt.close)}},Mu=t=>t.showConfirmButton||t.showDenyButton||t.showCancelButton||t.showCloseButton;let En=!1;const Du=t=>{t.popup.onmousedown=()=>{t.container.onmouseup=function(e){t.container.onmouseup=void 0,e.target===t.container&&(En=!0)}}},Ru=t=>{t.container.onmousedown=()=>{t.popup.onmouseup=function(e){t.popup.onmouseup=void 0,(e.target===t.popup||t.popup.contains(e.target))&&(En=!0)}}},Uu=(t,e,n)=>{e.container.onclick=r=>{const o=U.innerParams.get(t);if(En){En=!1;return}r.target===e.container&&vn(o.allowOutsideClick)&&n(kt.backdrop)}},Vu=t=>typeof t=="object"&&t.jquery,ri=t=>t instanceof Element||Vu(t),Hu=t=>{const e={};return typeof t[0]=="object"&&!ri(t[0])?Object.assign(e,t[0]):["title","html","icon"].forEach((n,r)=>{const o=t[r];typeof o=="string"||ri(o)?e[n]=o:o!==void 0&<(`Unexpected type of ${n}! Expected "string" or "Element", got ${typeof o}`)}),e};function ju(...t){const e=this;return new e(...t)}function Fu(t){class e extends this{_main(r,o){return super._main(r,Object.assign({},t,o))}}return e}const zu=()=>D.timeout&&D.timeout.getTimerLeft(),oi=()=>{if(D.timeout)return Ol(),D.timeout.stop()},ii=()=>{if(D.timeout){const t=D.timeout.start();return rr(t),t}},Ku=()=>{const t=D.timeout;return t&&(t.running?oi():ii())},Wu=t=>{if(D.timeout){const e=D.timeout.increase(t);return rr(e,!0),e}},Gu=()=>D.timeout&&D.timeout.isRunning();let si=!1;const fr={};function qu(t="data-swal-template"){fr[t]=this,si||(document.body.addEventListener("click",Yu),si=!0)}const Yu=t=>{for(let e=t.target;e&&e!==document;e=e.parentNode)for(const n in fr){const r=e.getAttribute(n);if(r){fr[n].fire({template:r});return}}},Xu=Object.freeze(Object.defineProperty({__proto__:null,argsToParams:Hu,bindClickHandler:qu,clickCancel:ou,clickConfirm:Ko,clickDeny:ru,enableLoading:_t,fire:ju,getActions:Yt,getCancelButton:ct,getCloseButton:Qn,getConfirmButton:Ne,getContainer:oe,getDenyButton:nt,getFocusableElements:er,getFooter:Eo,getHtmlContainer:wn,getIcon:qt,getImage:Co,getInputLabel:El,getLoader:vt,getPopup:q,getTimerLeft:zu,getTimerProgressBar:_n,getTitle:So,getValidationMessage:kn,increaseTimer:Wu,isDeprecatedParameter:Jn,isLoading:Al,isTimerRunning:Gu,isUpdatableParameter:ko,isValidParameter:wo,isVisible:nu,mixin:Fu,resumeTimer:ii,showLoading:_t,stopTimer:oi,toggleTimer:Ku},Symbol.toStringTag,{value:"Module"}));let mr;class St{constructor(...e){if(typeof window>"u")return;mr=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);U.promise.set(this,r)}_main(e,n={}){Cl(Object.assign({},n,e)),D.currentInstance&&(D.currentInstance._destroy(),tr()&&Ro()),D.currentInstance=this;const r=Ju(e,n);xc(r),Object.freeze(r),D.timeout&&(D.timeout.stop(),delete D.timeout),clearTimeout(D.restoreFocusTimeout);const o=Qu(this);return Do(this,r),U.innerParams.set(this,r),Zu(this,o,r)}then(e){return U.promise.get(this).then(e)}finally(e){return U.promise.get(this).finally(e)}}const Zu=(t,e,n)=>new Promise((r,o)=>{const i=c=>{t.closePopup({isDismissed:!0,dismiss:c})};Qt.swalPromiseResolve.set(t,r),Qt.swalPromiseReject.set(t,o),e.confirmButton.onclick=()=>xu(t),e.denyButton.onclick=()=>Ou(t),e.cancelButton.onclick=()=>Lu(t,i),e.closeButton.onclick=()=>i(kt.close),Bu(t,e,i),iu(t,D,n,i),Wc(t,n),Hc(n),ed(D,n,i),td(e,n),setTimeout(()=>{e.container.scrollTop=0})}),Ju=(t,e)=>{const n=wc(t),r=Object.assign({},bt,e,n,t);return r.showClass=Object.assign({},bt.showClass,r.showClass),r.hideClass=Object.assign({},bt.hideClass,r.hideClass),r},Qu=t=>{const e={popup:q(),container:oe(),actions:Yt(),confirmButton:Ne(),denyButton:nt(),cancelButton:ct(),loader:vt(),closeButton:Qn(),validationMessage:kn(),progressSteps:Io()};return U.domCache.set(t,e),e},ed=(t,e,n)=>{const r=_n();se(r),e.timer&&(t.timeout=new Oc(()=>{n("timer"),delete t.timeout},e.timer),e.timerProgressBar&&(ne(r),Pe(r,e,"timerProgressBar"),setTimeout(()=>{t.timeout&&t.timeout.running&&rr(e.timer)})))},td=(t,e)=>{if(!e.toast){if(!vn(e.allowEnterKey))return rd();nd(t,e)||lr(e,-1,1)}},nd=(t,e)=>e.focusDeny&&Se(t.denyButton)?(t.denyButton.focus(),!0):e.focusCancel&&Se(t.cancelButton)?(t.cancelButton.focus(),!0):e.focusConfirm&&Se(t.confirmButton)?(t.confirmButton.focus(),!0):!1,rd=()=>{document.activeElement instanceof HTMLElement&&typeof document.activeElement.blur=="function"&&document.activeElement.blur()};Object.assign(St.prototype,Qo),Object.assign(St,Xu),Object.keys(Qo).forEach(t=>{St[t]=function(...e){if(mr)return mr[t](...e)}}),St.DismissReason=kt,St.version="11.4.8";const ft=St;ft.default=ft;/*! @license DOMPurify 3.1.6 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.1.6/LICENSE */const{entries:ai,setPrototypeOf:li,isFrozen:od,getPrototypeOf:id,getOwnPropertyDescriptor:sd}=Object;let{freeze:de,seal:xe,create:ci}=Object,{apply:pr,construct:hr}=typeof Reflect<"u"&&Reflect;de||(de=function(e){return e}),xe||(xe=function(e){return e}),pr||(pr=function(e,n,r){return e.apply(n,r)}),hr||(hr=function(e,n){return new e(...n)});const Tn=Ce(Array.prototype.forEach),ui=Ce(Array.prototype.pop),tn=Ce(Array.prototype.push),An=Ce(String.prototype.toLowerCase),gr=Ce(String.prototype.toString),di=Ce(String.prototype.match),nn=Ce(String.prototype.replace),ad=Ce(String.prototype.indexOf),ld=Ce(String.prototype.trim),Me=Ce(Object.prototype.hasOwnProperty),fe=Ce(RegExp.prototype.test),rn=cd(TypeError);function Ce(t){return function(e){for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];return pr(t,e,r)}}function cd(t){return function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return hr(t,n)}}function j(t,e){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:An;li&&li(t,null);let r=e.length;for(;r--;){let o=e[r];if(typeof o=="string"){const i=n(o);i!==o&&(od(e)||(e[r]=i),o=i)}t[o]=!0}return t}function ud(t){for(let e=0;e<t.length;e++)Me(t,e)||(t[e]=null);return t}function mt(t){const e=ci(null);for(const[n,r]of ai(t))Me(t,n)&&(Array.isArray(r)?e[n]=ud(r):r&&typeof r=="object"&&r.constructor===Object?e[n]=mt(r):e[n]=r);return e}function on(t,e){for(;t!==null;){const r=sd(t,e);if(r){if(r.get)return Ce(r.get);if(typeof r.value=="function")return Ce(r.value)}t=id(t)}function n(){return null}return n}const fi=de(["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"]),yr=de(["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"]),br=de(["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"]),dd=de(["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"]),vr=de(["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"]),fd=de(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),mi=de(["#text"]),pi=de(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","face","for","headers","height","hidden","high","href","hreflang","id","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","pattern","placeholder","playsinline","popover","popovertarget","popovertargetaction","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","wrap","xmlns","slot"]),wr=de(["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"]),hi=de(["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"]),Pn=de(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),md=xe(/\{\{[\w\W]*|[\w\W]*\}\}/gm),pd=xe(/<%[\w\W]*|[\w\W]*%>/gm),hd=xe(/\${[\w\W]*}/gm),gd=xe(/^data-[\-\w.\u00B7-\uFFFF]/),yd=xe(/^aria-[\-\w]+$/),gi=xe(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),bd=xe(/^(?:\w+script|data):/i),vd=xe(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),yi=xe(/^html$/i),wd=xe(/^[a-z][.\w]*(-[.\w]+)+$/i);var bi=Object.freeze({__proto__:null,MUSTACHE_EXPR:md,ERB_EXPR:pd,TMPLIT_EXPR:hd,DATA_ATTR:gd,ARIA_ATTR:yd,IS_ALLOWED_URI:gi,IS_SCRIPT_OR_DATA:bd,ATTR_WHITESPACE:vd,DOCTYPE_NAME:yi,CUSTOM_ELEMENT:wd});const sn={element:1,attribute:2,text:3,cdataSection:4,entityReference:5,entityNode:6,progressingInstruction:7,comment:8,document:9,documentType:10,documentFragment:11,notation:12},kd=function(){return typeof window>"u"?null:window},_d=function(e,n){if(typeof e!="object"||typeof e.createPolicy!="function")return null;let r=null;const o="data-tt-policy-suffix";n&&n.hasAttribute(o)&&(r=n.getAttribute(o));const i="dompurify"+(r?"#"+r:"");try{return e.createPolicy(i,{createHTML(c){return c},createScriptURL(c){return c}})}catch{return console.warn("TrustedTypes policy "+i+" could not be created."),null}};function vi(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:kd();const e=L=>vi(L);if(e.version="3.1.6",e.removed=[],!t||!t.document||t.document.nodeType!==sn.document)return e.isSupported=!1,e;let{document:n}=t;const r=n,o=r.currentScript,{DocumentFragment:i,HTMLTemplateElement:c,Node:a,Element:l,NodeFilter:d,NamedNodeMap:m=t.NamedNodeMap||t.MozNamedAttrMap,HTMLFormElement:p,DOMParser:y,trustedTypes:k}=t,_=l.prototype,$=on(_,"cloneNode"),B=on(_,"remove"),A=on(_,"nextSibling"),S=on(_,"childNodes"),N=on(_,"parentNode");if(typeof c=="function"){const L=n.createElement("template");L.content&&L.content.ownerDocument&&(n=L.content.ownerDocument)}let F,J="";const{implementation:ye,createNodeIterator:ee,createDocumentFragment:De,getElementsByTagName:Ie}=n,{importNode:Y}=r;let Q={};e.isSupported=typeof ai=="function"&&typeof N=="function"&&ye&&ye.createHTMLDocument!==void 0;const{MUSTACHE_EXPR:be,ERB_EXPR:Re,TMPLIT_EXPR:Ee,DATA_ATTR:st,ARIA_ATTR:Xe,IS_SCRIPT_OR_DATA:He,ATTR_WHITESPACE:je,CUSTOM_ELEMENT:pt}=bi;let{IS_ALLOWED_URI:Oe}=bi,u=null;const h=j({},[...fi,...yr,...br,...vr,...mi]);let v=null;const E=j({},[...pi,...wr,...hi,...Pn]);let b=Object.seal(ci(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}})),T=null,w=null,C=!0,x=!0,P=!1,M=!0,H=!1,ve=!0,ae=!1,le=!1,Ze=!1,It=!1,xn=!1,On=!1,Li=!0,$i=!1;const wf="user-content-";let Ir=!0,ln=!1,Et={},Tt=null;const Bi=j({},["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 Ni=null;const Mi=j({},["audio","video","img","source","image","track"]);let Er=null;const Di=j({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),Ln="http://www.w3.org/1998/Math/MathML",$n="http://www.w3.org/2000/svg",Je="http://www.w3.org/1999/xhtml";let At=Je,Tr=!1,Ar=null;const kf=j({},[Ln,$n,Je],gr);let cn=null;const _f=["application/xhtml+xml","text/html"],Sf="text/html";let te=null,Pt=null;const Cf=n.createElement("form"),Ri=function(f){return f instanceof RegExp||f instanceof Function},Pr=function(){let f=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(!(Pt&&Pt===f)){if((!f||typeof f!="object")&&(f={}),f=mt(f),cn=_f.indexOf(f.PARSER_MEDIA_TYPE)===-1?Sf:f.PARSER_MEDIA_TYPE,te=cn==="application/xhtml+xml"?gr:An,u=Me(f,"ALLOWED_TAGS")?j({},f.ALLOWED_TAGS,te):h,v=Me(f,"ALLOWED_ATTR")?j({},f.ALLOWED_ATTR,te):E,Ar=Me(f,"ALLOWED_NAMESPACES")?j({},f.ALLOWED_NAMESPACES,gr):kf,Er=Me(f,"ADD_URI_SAFE_ATTR")?j(mt(Di),f.ADD_URI_SAFE_ATTR,te):Di,Ni=Me(f,"ADD_DATA_URI_TAGS")?j(mt(Mi),f.ADD_DATA_URI_TAGS,te):Mi,Tt=Me(f,"FORBID_CONTENTS")?j({},f.FORBID_CONTENTS,te):Bi,T=Me(f,"FORBID_TAGS")?j({},f.FORBID_TAGS,te):{},w=Me(f,"FORBID_ATTR")?j({},f.FORBID_ATTR,te):{},Et=Me(f,"USE_PROFILES")?f.USE_PROFILES:!1,C=f.ALLOW_ARIA_ATTR!==!1,x=f.ALLOW_DATA_ATTR!==!1,P=f.ALLOW_UNKNOWN_PROTOCOLS||!1,M=f.ALLOW_SELF_CLOSE_IN_ATTR!==!1,H=f.SAFE_FOR_TEMPLATES||!1,ve=f.SAFE_FOR_XML!==!1,ae=f.WHOLE_DOCUMENT||!1,It=f.RETURN_DOM||!1,xn=f.RETURN_DOM_FRAGMENT||!1,On=f.RETURN_TRUSTED_TYPE||!1,Ze=f.FORCE_BODY||!1,Li=f.SANITIZE_DOM!==!1,$i=f.SANITIZE_NAMED_PROPS||!1,Ir=f.KEEP_CONTENT!==!1,ln=f.IN_PLACE||!1,Oe=f.ALLOWED_URI_REGEXP||gi,At=f.NAMESPACE||Je,b=f.CUSTOM_ELEMENT_HANDLING||{},f.CUSTOM_ELEMENT_HANDLING&&Ri(f.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(b.tagNameCheck=f.CUSTOM_ELEMENT_HANDLING.tagNameCheck),f.CUSTOM_ELEMENT_HANDLING&&Ri(f.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(b.attributeNameCheck=f.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),f.CUSTOM_ELEMENT_HANDLING&&typeof f.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements=="boolean"&&(b.allowCustomizedBuiltInElements=f.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),H&&(x=!1),xn&&(It=!0),Et&&(u=j({},mi),v=[],Et.html===!0&&(j(u,fi),j(v,pi)),Et.svg===!0&&(j(u,yr),j(v,wr),j(v,Pn)),Et.svgFilters===!0&&(j(u,br),j(v,wr),j(v,Pn)),Et.mathMl===!0&&(j(u,vr),j(v,hi),j(v,Pn))),f.ADD_TAGS&&(u===h&&(u=mt(u)),j(u,f.ADD_TAGS,te)),f.ADD_ATTR&&(v===E&&(v=mt(v)),j(v,f.ADD_ATTR,te)),f.ADD_URI_SAFE_ATTR&&j(Er,f.ADD_URI_SAFE_ATTR,te),f.FORBID_CONTENTS&&(Tt===Bi&&(Tt=mt(Tt)),j(Tt,f.FORBID_CONTENTS,te)),Ir&&(u["#text"]=!0),ae&&j(u,["html","head","body"]),u.table&&(j(u,["tbody"]),delete T.tbody),f.TRUSTED_TYPES_POLICY){if(typeof f.TRUSTED_TYPES_POLICY.createHTML!="function")throw rn('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof f.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw rn('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');F=f.TRUSTED_TYPES_POLICY,J=F.createHTML("")}else F===void 0&&(F=_d(k,o)),F!==null&&typeof J=="string"&&(J=F.createHTML(""));de&&de(f),Pt=f}},Ui=j({},["mi","mo","mn","ms","mtext"]),Vi=j({},["foreignobject","annotation-xml"]),If=j({},["title","style","font","a","script"]),Hi=j({},[...yr,...br,...dd]),ji=j({},[...vr,...fd]),Ef=function(f){let I=N(f);(!I||!I.tagName)&&(I={namespaceURI:At,tagName:"template"});const O=An(f.tagName),X=An(I.tagName);return Ar[f.namespaceURI]?f.namespaceURI===$n?I.namespaceURI===Je?O==="svg":I.namespaceURI===Ln?O==="svg"&&(X==="annotation-xml"||Ui[X]):!!Hi[O]:f.namespaceURI===Ln?I.namespaceURI===Je?O==="math":I.namespaceURI===$n?O==="math"&&Vi[X]:!!ji[O]:f.namespaceURI===Je?I.namespaceURI===$n&&!Vi[X]||I.namespaceURI===Ln&&!Ui[X]?!1:!ji[O]&&(If[O]||!Hi[O]):!!(cn==="application/xhtml+xml"&&Ar[f.namespaceURI]):!1},Fe=function(f){tn(e.removed,{element:f});try{N(f).removeChild(f)}catch{B(f)}},Bn=function(f,I){try{tn(e.removed,{attribute:I.getAttributeNode(f),from:I})}catch{tn(e.removed,{attribute:null,from:I})}if(I.removeAttribute(f),f==="is"&&!v[f])if(It||xn)try{Fe(I)}catch{}else try{I.setAttribute(f,"")}catch{}},Fi=function(f){let I=null,O=null;if(Ze)f="<remove></remove>"+f;else{const re=di(f,/^[\r\n\t ]+/);O=re&&re[0]}cn==="application/xhtml+xml"&&At===Je&&(f='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+f+"</body></html>");const X=F?F.createHTML(f):f;if(At===Je)try{I=new y().parseFromString(X,cn)}catch{}if(!I||!I.documentElement){I=ye.createDocument(At,"template",null);try{I.documentElement.innerHTML=Tr?J:X}catch{}}const ce=I.body||I.documentElement;return f&&O&&ce.insertBefore(n.createTextNode(O),ce.childNodes[0]||null),At===Je?Ie.call(I,ae?"html":"body")[0]:ae?I.documentElement:ce},zi=function(f){return ee.call(f.ownerDocument||f,f,d.SHOW_ELEMENT|d.SHOW_COMMENT|d.SHOW_TEXT|d.SHOW_PROCESSING_INSTRUCTION|d.SHOW_CDATA_SECTION,null)},Ki=function(f){return f instanceof p&&(typeof f.nodeName!="string"||typeof f.textContent!="string"||typeof f.removeChild!="function"||!(f.attributes instanceof m)||typeof f.removeAttribute!="function"||typeof f.setAttribute!="function"||typeof f.namespaceURI!="string"||typeof f.insertBefore!="function"||typeof f.hasChildNodes!="function")},Wi=function(f){return typeof a=="function"&&f instanceof a},Qe=function(f,I,O){Q[f]&&Tn(Q[f],X=>{X.call(e,I,O,Pt)})},Gi=function(f){let I=null;if(Qe("beforeSanitizeElements",f,null),Ki(f))return Fe(f),!0;const O=te(f.nodeName);if(Qe("uponSanitizeElement",f,{tagName:O,allowedTags:u}),f.hasChildNodes()&&!Wi(f.firstElementChild)&&fe(/<[/\w]/g,f.innerHTML)&&fe(/<[/\w]/g,f.textContent)||f.nodeType===sn.progressingInstruction||ve&&f.nodeType===sn.comment&&fe(/<[/\w]/g,f.data))return Fe(f),!0;if(!u[O]||T[O]){if(!T[O]&&Yi(O)&&(b.tagNameCheck instanceof RegExp&&fe(b.tagNameCheck,O)||b.tagNameCheck instanceof Function&&b.tagNameCheck(O)))return!1;if(Ir&&!Tt[O]){const X=N(f)||f.parentNode,ce=S(f)||f.childNodes;if(ce&&X){const re=ce.length;for(let we=re-1;we>=0;--we){const ze=$(ce[we],!0);ze.__removalCount=(f.__removalCount||0)+1,X.insertBefore(ze,A(f))}}}return Fe(f),!0}return f instanceof l&&!Ef(f)||(O==="noscript"||O==="noembed"||O==="noframes")&&fe(/<\/no(script|embed|frames)/i,f.innerHTML)?(Fe(f),!0):(H&&f.nodeType===sn.text&&(I=f.textContent,Tn([be,Re,Ee],X=>{I=nn(I,X," ")}),f.textContent!==I&&(tn(e.removed,{element:f.cloneNode()}),f.textContent=I)),Qe("afterSanitizeElements",f,null),!1)},qi=function(f,I,O){if(Li&&(I==="id"||I==="name")&&(O in n||O in Cf))return!1;if(!(x&&!w[I]&&fe(st,I))){if(!(C&&fe(Xe,I))){if(!v[I]||w[I]){if(!(Yi(f)&&(b.tagNameCheck instanceof RegExp&&fe(b.tagNameCheck,f)||b.tagNameCheck instanceof Function&&b.tagNameCheck(f))&&(b.attributeNameCheck instanceof RegExp&&fe(b.attributeNameCheck,I)||b.attributeNameCheck instanceof Function&&b.attributeNameCheck(I))||I==="is"&&b.allowCustomizedBuiltInElements&&(b.tagNameCheck instanceof RegExp&&fe(b.tagNameCheck,O)||b.tagNameCheck instanceof Function&&b.tagNameCheck(O))))return!1}else if(!Er[I]){if(!fe(Oe,nn(O,je,""))){if(!((I==="src"||I==="xlink:href"||I==="href")&&f!=="script"&&ad(O,"data:")===0&&Ni[f])){if(!(P&&!fe(He,nn(O,je,"")))){if(O)return!1}}}}}}return!0},Yi=function(f){return f!=="annotation-xml"&&di(f,pt)},Xi=function(f){Qe("beforeSanitizeAttributes",f,null);const{attributes:I}=f;if(!I)return;const O={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:v};let X=I.length;for(;X--;){const ce=I[X],{name:re,namespaceURI:we,value:ze}=ce,un=te(re);let me=re==="value"?ze:ld(ze);if(O.attrName=un,O.attrValue=me,O.keepAttr=!0,O.forceKeepAttr=void 0,Qe("uponSanitizeAttribute",f,O),me=O.attrValue,ve&&fe(/((--!?|])>)|<\/(style|title)/i,me)){Bn(re,f);continue}if(O.forceKeepAttr||(Bn(re,f),!O.keepAttr))continue;if(!M&&fe(/\/>/i,me)){Bn(re,f);continue}H&&Tn([be,Re,Ee],Ji=>{me=nn(me,Ji," ")});const Zi=te(f.nodeName);if(qi(Zi,un,me)){if($i&&(un==="id"||un==="name")&&(Bn(re,f),me=wf+me),F&&typeof k=="object"&&typeof k.getAttributeType=="function"&&!we)switch(k.getAttributeType(Zi,un)){case"TrustedHTML":{me=F.createHTML(me);break}case"TrustedScriptURL":{me=F.createScriptURL(me);break}}try{we?f.setAttributeNS(we,re,me):f.setAttribute(re,me),Ki(f)?Fe(f):ui(e.removed)}catch{}}}Qe("afterSanitizeAttributes",f,null)},Tf=function L(f){let I=null;const O=zi(f);for(Qe("beforeSanitizeShadowDOM",f,null);I=O.nextNode();)Qe("uponSanitizeShadowNode",I,null),!Gi(I)&&(I.content instanceof i&&L(I.content),Xi(I));Qe("afterSanitizeShadowDOM",f,null)};return e.sanitize=function(L){let f=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},I=null,O=null,X=null,ce=null;if(Tr=!L,Tr&&(L="<!-->"),typeof L!="string"&&!Wi(L))if(typeof L.toString=="function"){if(L=L.toString(),typeof L!="string")throw rn("dirty is not a string, aborting")}else throw rn("toString is not a function");if(!e.isSupported)return L;if(le||Pr(f),e.removed=[],typeof L=="string"&&(ln=!1),ln){if(L.nodeName){const ze=te(L.nodeName);if(!u[ze]||T[ze])throw rn("root node is forbidden and cannot be sanitized in-place")}}else if(L instanceof a)I=Fi("<!---->"),O=I.ownerDocument.importNode(L,!0),O.nodeType===sn.element&&O.nodeName==="BODY"||O.nodeName==="HTML"?I=O:I.appendChild(O);else{if(!It&&!H&&!ae&&L.indexOf("<")===-1)return F&&On?F.createHTML(L):L;if(I=Fi(L),!I)return It?null:On?J:""}I&&Ze&&Fe(I.firstChild);const re=zi(ln?L:I);for(;X=re.nextNode();)Gi(X)||(X.content instanceof i&&Tf(X.content),Xi(X));if(ln)return L;if(It){if(xn)for(ce=De.call(I.ownerDocument);I.firstChild;)ce.appendChild(I.firstChild);else ce=I;return(v.shadowroot||v.shadowrootmode)&&(ce=Y.call(r,ce,!0)),ce}let we=ae?I.outerHTML:I.innerHTML;return ae&&u["!doctype"]&&I.ownerDocument&&I.ownerDocument.doctype&&I.ownerDocument.doctype.name&&fe(yi,I.ownerDocument.doctype.name)&&(we="<!DOCTYPE "+I.ownerDocument.doctype.name+`>
|
|
405
|
+
`+we),H&&Tn([be,Re,Ee],ze=>{we=nn(we,ze," ")}),F&&On?F.createHTML(we):we},e.setConfig=function(){let L=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};Pr(L),le=!0},e.clearConfig=function(){Pt=null,le=!1},e.isValidAttribute=function(L,f,I){Pt||Pr({});const O=te(L),X=te(f);return qi(O,X,I)},e.addHook=function(L,f){typeof f=="function"&&(Q[L]=Q[L]||[],tn(Q[L],f))},e.removeHook=function(L){if(Q[L])return ui(Q[L])},e.removeHooks=function(L){Q[L]&&(Q[L]=[])},e.removeAllHooks=function(){Q={}},e}var wi=vi();class ki{get IsVisible(){return ft.isVisible()}async CreateConfirmAsync(e){return new Promise(n=>{ft.fire({showCancelButton:!0,allowEscapeKey:!1,allowOutsideClick:!1,icon:"question",title:e.title,html:wi.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 _i=()=>new ki,Sd=()=>new ki;function Cd(t){return t instanceof Uint8Array||t!=null&&typeof t=="object"&&t.constructor.name==="Uint8Array"}function Si(t,...e){if(!Cd(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 Ci(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 Id(t,e){Si(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 kr=t=>new DataView(t.buffer,t.byteOffset,t.byteLength),Ve=(t,e)=>t<<32-e|t>>>e;new Uint8Array(new Uint32Array([287454020]).buffer)[0];function Ed(t){if(typeof t!="string")throw new Error(`utf8ToBytes expected string, got ${typeof t}`);return new Uint8Array(new TextEncoder().encode(t))}function Ii(t){return typeof t=="string"&&(t=Ed(t)),Si(t),t}class Td{clone(){return this._cloneInto()}}function Ad(t){const e=r=>t().update(Ii(r)).digest(),n=t();return e.outputLen=n.outputLen,e.blockLen=n.blockLen,e.create=()=>t(),e}function Pd(t,e,n,r){if(typeof t.setBigUint64=="function")return t.setBigUint64(e,n,r);const o=BigInt(32),i=BigInt(4294967295),c=Number(n>>o&i),a=Number(n&i),l=r?4:0,d=r?0:4;t.setUint32(e+l,c,r),t.setUint32(e+d,a,r)}const xd=(t,e,n)=>t&e^~t&n,Od=(t,e,n)=>t&e^t&n^e&n;class Ld extends Td{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=kr(this.buffer)}update(e){Ci(this);const{view:n,buffer:r,blockLen:o}=this;e=Ii(e);const i=e.length;for(let c=0;c<i;){const a=Math.min(o-this.pos,i-c);if(a===o){const l=kr(e);for(;o<=i-c;c+=o)this.process(l,c);continue}r.set(e.subarray(c,c+a),this.pos),this.pos+=a,c+=a,this.pos===o&&(this.process(n,0),this.pos=0)}return this.length+=e.length,this.roundClean(),this}digestInto(e){Ci(this),Id(e,this),this.finished=!0;const{buffer:n,view:r,blockLen:o,isLE:i}=this;let{pos:c}=this;n[c++]=128,this.buffer.subarray(c).fill(0),this.padOffset>o-c&&(this.process(r,0),c=0);for(let p=c;p<o;p++)n[p]=0;Pd(r,o-8,BigInt(this.length*8),i),this.process(r,0);const a=kr(e),l=this.outputLen;if(l%4)throw new Error("_sha2: outputLen should be aligned to 32bit");const d=l/4,m=this.get();if(d>m.length)throw new Error("_sha2: outputLen bigger than state");for(let p=0;p<d;p++)a.setUint32(4*p,m[p],i)}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:i,destroyed:c,pos:a}=this;return e.length=o,e.pos=a,e.finished=i,e.destroyed=c,o%n&&e.buffer.set(r),e}}const $d=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]),ot=new Uint32Array([1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225]),it=new Uint32Array(64);class Bd extends Ld{constructor(){super(64,32,8,!1),this.A=ot[0]|0,this.B=ot[1]|0,this.C=ot[2]|0,this.D=ot[3]|0,this.E=ot[4]|0,this.F=ot[5]|0,this.G=ot[6]|0,this.H=ot[7]|0}get(){const{A:e,B:n,C:r,D:o,E:i,F:c,G:a,H:l}=this;return[e,n,r,o,i,c,a,l]}set(e,n,r,o,i,c,a,l){this.A=e|0,this.B=n|0,this.C=r|0,this.D=o|0,this.E=i|0,this.F=c|0,this.G=a|0,this.H=l|0}process(e,n){for(let p=0;p<16;p++,n+=4)it[p]=e.getUint32(n,!1);for(let p=16;p<64;p++){const y=it[p-15],k=it[p-2],_=Ve(y,7)^Ve(y,18)^y>>>3,$=Ve(k,17)^Ve(k,19)^k>>>10;it[p]=$+it[p-7]+_+it[p-16]|0}let{A:r,B:o,C:i,D:c,E:a,F:l,G:d,H:m}=this;for(let p=0;p<64;p++){const y=Ve(a,6)^Ve(a,11)^Ve(a,25),k=m+y+xd(a,l,d)+$d[p]+it[p]|0,$=(Ve(r,2)^Ve(r,13)^Ve(r,22))+Od(r,o,i)|0;m=d,d=l,l=a,a=c+k|0,c=i,i=o,o=r,r=k+$|0}r=r+this.A|0,o=o+this.B|0,i=i+this.C|0,c=c+this.D|0,a=a+this.E|0,l=l+this.F|0,d=d+this.G|0,m=m+this.H|0,this.set(r,o,i,c,a,l,d,m)}roundClean(){it.fill(0)}destroy(){this.set(0,0,0,0,0,0,0,0),this.buffer.fill(0)}}const Nd=Ad(()=>new Bd);class an extends Error{}an.prototype.name="InvalidTokenError";function Md(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 Dd(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 Md(e)}catch{return atob(e)}}function _r(t,e){if(typeof t!="string")throw new an("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 an(`Invalid token specified: missing part #${n+1}`);let o;try{o=Dd(r)}catch(i){throw new an(`Invalid token specified: invalid base64 for part #${n+1} (${i.message})`)}try{return JSON.parse(o)}catch(i){throw new an(`Invalid token specified: invalid json for part #${n+1} (${i.message})`)}}if(typeof Promise>"u")throw Error("Keycloak requires an environment that supports Promises. Make sure that you include the appropriate polyfill.");function Ei(t){if(!(this instanceof Ei))throw new Error("The 'Keycloak' constructor must be invoked with 'new'.");var e=this,n,r=[],o,i={enable:!0,callbackList:[],interval:5};e.didInitialize=!1;for(var c=document.getElementsByTagName("script"),a=0;a<c.length;a++)(c[a].src.indexOf("keycloak.js")!==-1||c[a].src.indexOf("keycloak.min.js")!==-1)&&c[a].src.indexOf("version=")!==-1&&(e.iframeVersion=c[a].src.substring(c[a].src.indexOf("version=")+8).split("&")[0]);var l=!0,d=Oe(console.info),m=Oe(console.warn);e.init=function(u){if(e.didInitialize)throw new Error("A 'Keycloak' instance can only be initialized once.");e.didInitialize=!0,e.authenticated=!1,o=pt();var h=["default","cordova","cordova-native"];if(u&&h.indexOf(u.adapter)>-1?n=Xe(u.adapter):u&&typeof u.adapter=="object"?n=u.adapter:window.Cordova||window.cordova?n=Xe("cordova"):n=Xe(),u){if(typeof u.useNonce<"u"&&(l=u.useNonce),typeof u.checkLoginIframe<"u"&&(i.enable=u.checkLoginIframe),u.checkLoginIframeInterval&&(i.interval=u.checkLoginIframeInterval),u.onLoad==="login-required"&&(e.loginRequired=!0),u.responseMode)if(u.responseMode==="query"||u.responseMode==="fragment")e.responseMode=u.responseMode;else throw"Invalid value for responseMode";if(u.flow){switch(u.flow){case"standard":e.responseType="code";break;case"implicit":e.responseType="id_token token";break;case"hybrid":e.responseType="code id_token token";break;default:throw"Invalid value for flow"}e.flow=u.flow}if(u.timeSkew!=null&&(e.timeSkew=u.timeSkew),u.redirectUri&&(e.redirectUri=u.redirectUri),u.silentCheckSsoRedirectUri&&(e.silentCheckSsoRedirectUri=u.silentCheckSsoRedirectUri),typeof u.silentCheckSsoFallback=="boolean"?e.silentCheckSsoFallback=u.silentCheckSsoFallback:e.silentCheckSsoFallback=!0,typeof u.pkceMethod<"u"){if(u.pkceMethod!=="S256"&&u.pkceMethod!==!1)throw new TypeError(`Invalid value for pkceMethod', expected 'S256' or false but got ${u.pkceMethod}.`);e.pkceMethod=u.pkceMethod}else e.pkceMethod="S256";typeof u.enableLogging=="boolean"?e.enableLogging=u.enableLogging:e.enableLogging=!1,u.logoutMethod==="POST"?e.logoutMethod="POST":e.logoutMethod="GET",typeof u.scope=="string"&&(e.scope=u.scope),typeof u.acrValues=="string"&&(e.acrValues=u.acrValues),typeof u.messageReceiveTimeout=="number"&&u.messageReceiveTimeout>0?e.messageReceiveTimeout=u.messageReceiveTimeout:e.messageReceiveTimeout=1e4}e.responseMode||(e.responseMode="fragment"),e.responseType||(e.responseType="code",e.flow="standard");var v=Y(),E=Y();E.promise.then(function(){e.onReady&&e.onReady(e.authenticated),v.setSuccess(e.authenticated)}).catch(function(x){v.setError(x)});var b=N();function T(){var x=function(H){H||(M.prompt="none"),u&&u.locale&&(M.locale=u.locale),e.login(M).then(function(){E.setSuccess()}).catch(function(ve){E.setError(ve)})},P=function(){var H=document.createElement("iframe"),ve=e.createLoginUrl({prompt:"none",redirectUri:e.silentCheckSsoRedirectUri});H.setAttribute("src",ve),H.setAttribute("sandbox","allow-storage-access-by-user-activation allow-scripts allow-same-origin"),H.setAttribute("title","keycloak-silent-check-sso"),H.style.display="none",document.body.appendChild(H);var ae=function(le){if(!(le.origin!==window.location.origin||H.contentWindow!==le.source)){var Ze=ee(le.data);S(Ze,E),document.body.removeChild(H),window.removeEventListener("message",ae)}};window.addEventListener("message",ae)},M={};switch(u.onLoad){case"check-sso":i.enable?be().then(function(){Ee().then(function(H){H?E.setSuccess():e.silentCheckSsoRedirectUri?P():x(!1)}).catch(function(H){E.setError(H)})}):e.silentCheckSsoRedirectUri?P():x(!1);break;case"login-required":x(!0);break;default:throw"Invalid value for onLoad"}}function w(){var x=ee(window.location.href);if(x&&window.history.replaceState(window.history.state,null,x.newUrl),x&&x.valid)return be().then(function(){S(x,E)}).catch(function(P){E.setError(P)});u?u.token&&u.refreshToken?(J(u.token,u.refreshToken,u.idToken),i.enable?be().then(function(){Ee().then(function(P){P?(e.onAuthSuccess&&e.onAuthSuccess(),E.setSuccess(),Re()):E.setSuccess()}).catch(function(P){E.setError(P)})}):e.updateToken(-1).then(function(){e.onAuthSuccess&&e.onAuthSuccess(),E.setSuccess()}).catch(function(P){e.onAuthError&&e.onAuthError(),u.onLoad?T():E.setError(P)})):u.onLoad?T():E.setSuccess():E.setSuccess()}function C(){var x=Y(),P=function(){(document.readyState==="interactive"||document.readyState==="complete")&&(document.removeEventListener("readystatechange",P),x.setSuccess())};return document.addEventListener("readystatechange",P),P(),x.promise}return b.then(function(){C().then(st).then(w).catch(function(x){v.setError(x)})}),b.catch(function(x){v.setError(x)}),v.promise},e.login=function(u){return n.login(u)};function p(u){var h=null,v=window.crypto||window.msCrypto;if(v&&v.getRandomValues&&window.Uint8Array)return h=new Uint8Array(u),v.getRandomValues(h),h;h=new Array(u);for(var E=0;E<h.length;E++)h[E]=Math.floor(256*Math.random());return h}function y(u){return k(u,"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789")}function k(u,h){for(var v=p(u),E=new Array(u),b=0;b<u;b++)E[b]=h.charCodeAt(v[b]%h.length);return String.fromCharCode.apply(null,E)}function _(u,h){if(u!=="S256")throw new TypeError(`Invalid value for 'pkceMethod', expected 'S256' but got '${u}'.`);const v=Nd(h);return Rd(v).replace(/\+/g,"-").replace(/\//g,"_").replace(/\=/g,"")}function $(u){var h={id_token:{acr:u}};return JSON.stringify(h)}e.createLoginUrl=function(u){var h=ye(),v=ye(),E=n.redirectUri(u),b={state:h,nonce:v,redirectUri:encodeURIComponent(E),loginOptions:u};u&&u.prompt&&(b.prompt=u.prompt);var T;u&&u.action=="register"?T=e.endpoints.register():T=e.endpoints.authorize();var w=u&&u.scope||e.scope;w?w.indexOf("openid")===-1&&(w="openid "+w):w="openid";var C=T+"?client_id="+encodeURIComponent(e.clientId)+"&redirect_uri="+encodeURIComponent(E)+"&state="+encodeURIComponent(h)+"&response_mode="+encodeURIComponent(e.responseMode)+"&response_type="+encodeURIComponent(e.responseType)+"&scope="+encodeURIComponent(w);if(l&&(C=C+"&nonce="+encodeURIComponent(v)),u&&u.prompt&&(C+="&prompt="+encodeURIComponent(u.prompt)),u&&u.maxAge&&(C+="&max_age="+encodeURIComponent(u.maxAge)),u&&u.loginHint&&(C+="&login_hint="+encodeURIComponent(u.loginHint)),u&&u.idpHint&&(C+="&kc_idp_hint="+encodeURIComponent(u.idpHint)),u&&u.action&&u.action!="register"&&(C+="&kc_action="+encodeURIComponent(u.action)),u&&u.locale&&(C+="&ui_locales="+encodeURIComponent(u.locale)),u&&u.acr){var x=$(u.acr);C+="&claims="+encodeURIComponent(x)}if((u&&u.acrValues||e.acrValues)&&(C+="&acr_values="+encodeURIComponent(u.acrValues||e.acrValues)),e.pkceMethod){var P=y(96);b.pkceCodeVerifier=P;var M=_(e.pkceMethod,P);C+="&code_challenge="+M,C+="&code_challenge_method="+e.pkceMethod}return o.add(b),C},e.logout=function(u){return n.logout(u)},e.createLogoutUrl=function(u){if(((u==null?void 0:u.logoutMethod)??e.logoutMethod)==="POST")return e.endpoints.logout();var v=e.endpoints.logout()+"?client_id="+encodeURIComponent(e.clientId)+"&post_logout_redirect_uri="+encodeURIComponent(n.redirectUri(u,!1));return e.idToken&&(v+="&id_token_hint="+encodeURIComponent(e.idToken)),v},e.register=function(u){return n.register(u)},e.createRegisterUrl=function(u){return u||(u={}),u.action="register",e.createLoginUrl(u)},e.createAccountUrl=function(u){var h=B(),v=void 0;return typeof h<"u"&&(v=h+"/account?referrer="+encodeURIComponent(e.clientId)+"&referrer_uri="+encodeURIComponent(n.redirectUri(u))),v},e.accountManagement=function(){return n.accountManagement()},e.hasRealmRole=function(u){var h=e.realmAccess;return!!h&&h.roles.indexOf(u)>=0},e.hasResourceRole=function(u,h){if(!e.resourceAccess)return!1;var v=e.resourceAccess[h||e.clientId];return!!v&&v.roles.indexOf(u)>=0},e.loadUserProfile=function(){var u=B()+"/account",h=new XMLHttpRequest;h.open("GET",u,!0),h.setRequestHeader("Accept","application/json"),h.setRequestHeader("Authorization","bearer "+e.token);var v=Y();return h.onreadystatechange=function(){h.readyState==4&&(h.status==200?(e.profile=JSON.parse(h.responseText),v.setSuccess(e.profile)):v.setError())},h.send(),v.promise},e.loadUserInfo=function(){var u=e.endpoints.userinfo(),h=new XMLHttpRequest;h.open("GET",u,!0),h.setRequestHeader("Accept","application/json"),h.setRequestHeader("Authorization","bearer "+e.token);var v=Y();return h.onreadystatechange=function(){h.readyState==4&&(h.status==200?(e.userInfo=JSON.parse(h.responseText),v.setSuccess(e.userInfo)):v.setError())},h.send(),v.promise},e.isTokenExpired=function(u){if(!e.tokenParsed||!e.refreshToken&&e.flow!="implicit")throw"Not authenticated";if(e.timeSkew==null)return d("[KEYCLOAK] Unable to determine if token is expired as timeskew is not set"),!0;var h=e.tokenParsed.exp-Math.ceil(new Date().getTime()/1e3)+e.timeSkew;if(u){if(isNaN(u))throw"Invalid minValidity";h-=u}return h<0},e.updateToken=function(u){var h=Y();if(!e.refreshToken)return h.setError(),h.promise;u=u||5;var v=function(){var b=!1;if(u==-1?(b=!0,d("[KEYCLOAK] Refreshing token: forced refresh")):(!e.tokenParsed||e.isTokenExpired(u))&&(b=!0,d("[KEYCLOAK] Refreshing token: token expired")),!b)h.setSuccess(!1);else{var T="grant_type=refresh_token&refresh_token="+e.refreshToken,w=e.endpoints.token();if(r.push(h),r.length==1){var C=new XMLHttpRequest;C.open("POST",w,!0),C.setRequestHeader("Content-type","application/x-www-form-urlencoded"),C.withCredentials=!0,T+="&client_id="+encodeURIComponent(e.clientId);var x=new Date().getTime();C.onreadystatechange=function(){if(C.readyState==4)if(C.status==200){d("[KEYCLOAK] Token refreshed"),x=(x+new Date().getTime())/2;var P=JSON.parse(C.responseText);J(P.access_token,P.refresh_token,P.id_token,x),e.onAuthRefreshSuccess&&e.onAuthRefreshSuccess();for(var M=r.pop();M!=null;M=r.pop())M.setSuccess(!0)}else{m("[KEYCLOAK] Failed to refresh token"),C.status==400&&e.clearToken(),e.onAuthRefreshError&&e.onAuthRefreshError();for(var M=r.pop();M!=null;M=r.pop())M.setError(!0)}},C.send(T)}}};if(i.enable){var E=Ee();E.then(function(){v()}).catch(function(b){h.setError(b)})}else v();return h.promise},e.clearToken=function(){e.token&&(J(null,null,null),e.onAuthLogout&&e.onAuthLogout(),e.loginRequired&&e.login())};function B(){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 A(){return window.location.origin?window.location.origin:window.location.protocol+"//"+window.location.hostname+(window.location.port?":"+window.location.port:"")}function S(u,h){var v=u.code,E=u.error,b=u.prompt,T=new Date().getTime();if(u.kc_action_status&&e.onActionUpdate&&e.onActionUpdate(u.kc_action_status,u.kc_action),E){if(b!="none")if(u.error_description&&u.error_description==="authentication_expired")e.login(u.loginOptions);else{var w={error:E,error_description:u.error_description};e.onAuthError&&e.onAuthError(w),h&&h.setError(w)}else h&&h.setSuccess();return}else e.flow!="standard"&&(u.access_token||u.id_token)&&M(u.access_token,null,u.id_token,!0);if(e.flow!="implicit"&&v){var C="code="+v+"&grant_type=authorization_code",x=e.endpoints.token(),P=new XMLHttpRequest;P.open("POST",x,!0),P.setRequestHeader("Content-type","application/x-www-form-urlencoded"),C+="&client_id="+encodeURIComponent(e.clientId),C+="&redirect_uri="+u.redirectUri,u.pkceCodeVerifier&&(C+="&code_verifier="+u.pkceCodeVerifier),P.withCredentials=!0,P.onreadystatechange=function(){if(P.readyState==4)if(P.status==200){var H=JSON.parse(P.responseText);M(H.access_token,H.refresh_token,H.id_token,e.flow==="standard"),Re()}else e.onAuthError&&e.onAuthError(),h&&h.setError()},P.send(C)}function M(H,ve,ae,le){T=(T+new Date().getTime())/2,J(H,ve,ae,T),l&&e.idTokenParsed&&e.idTokenParsed.nonce!=u.storedNonce?(d("[KEYCLOAK] Invalid nonce, clearing token"),e.clearToken(),h&&h.setError()):le&&(e.onAuthSuccess&&e.onAuthSuccess(),h&&h.setSuccess())}}function N(u){var h=Y(),v;t?typeof t=="string"&&(v=t):v="keycloak.json";function E(P){P?e.endpoints={authorize:function(){return P.authorization_endpoint},token:function(){return P.token_endpoint},logout:function(){if(!P.end_session_endpoint)throw"Not supported by the OIDC server";return P.end_session_endpoint},checkSessionIframe:function(){if(!P.check_session_iframe)throw"Not supported by the OIDC server";return P.check_session_iframe},register:function(){throw'Redirection to "Register user" page not supported in standard OIDC mode'},userinfo:function(){if(!P.userinfo_endpoint)throw"Not supported by the OIDC server";return P.userinfo_endpoint}}:e.endpoints={authorize:function(){return B()+"/protocol/openid-connect/auth"},token:function(){return B()+"/protocol/openid-connect/token"},logout:function(){return B()+"/protocol/openid-connect/logout"},checkSessionIframe:function(){var M=B()+"/protocol/openid-connect/login-status-iframe.html";return e.iframeVersion&&(M=M+"?version="+e.iframeVersion),M},thirdPartyCookiesIframe:function(){var M=B()+"/protocol/openid-connect/3p-cookies/step1.html";return e.iframeVersion&&(M=M+"?version="+e.iframeVersion),M},register:function(){return B()+"/protocol/openid-connect/registrations"},userinfo:function(){return B()+"/protocol/openid-connect/userinfo"}}}if(v){var b=new XMLHttpRequest;b.open("GET",v,!0),b.setRequestHeader("Accept","application/json"),b.onreadystatechange=function(){if(b.readyState==4)if(b.status==200||F(b)){var P=JSON.parse(b.responseText);e.authServerUrl=P["auth-server-url"],e.realm=P.realm,e.clientId=P.resource,E(null),h.setSuccess()}else h.setError()},b.send()}else{if(!t.clientId)throw"clientId missing";e.clientId=t.clientId;var T=t.oidcProvider;if(T)if(typeof T=="string"){var x;T.charAt(T.length-1)=="/"?x=T+".well-known/openid-configuration":x=T+"/.well-known/openid-configuration";var b=new XMLHttpRequest;b.open("GET",x,!0),b.setRequestHeader("Accept","application/json"),b.onreadystatechange=function(){if(b.readyState==4)if(b.status==200||F(b)){var M=JSON.parse(b.responseText);E(M),h.setSuccess()}else h.setError()},b.send()}else E(T),h.setSuccess();else{if(!t.url){for(var w=document.getElementsByTagName("script"),C=0;C<w.length;C++)if(w[C].src.match(/.*keycloak\.js/)){t.url=w[C].src.substr(0,w[C].src.indexOf("/js/keycloak.js"));break}}if(!t.realm)throw"realm missing";e.authServerUrl=t.url,e.realm=t.realm,E(null),h.setSuccess()}}return h.promise}function F(u){return u.status==0&&u.responseText&&u.responseURL.startsWith("file:")}function J(u,h,v,E){if(e.tokenTimeoutHandle&&(clearTimeout(e.tokenTimeoutHandle),e.tokenTimeoutHandle=null),h?(e.refreshToken=h,e.refreshTokenParsed=_r(h)):(delete e.refreshToken,delete e.refreshTokenParsed),v?(e.idToken=v,e.idTokenParsed=_r(v)):(delete e.idToken,delete e.idTokenParsed),u){if(e.token=u,e.tokenParsed=_r(u),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,E&&(e.timeSkew=Math.floor(E/1e3)-e.tokenParsed.iat),e.timeSkew!=null&&(d("[KEYCLOAK] Estimated time difference between browser and server is "+e.timeSkew+" seconds"),e.onTokenExpired)){var b=(e.tokenParsed.exp-new Date().getTime()/1e3+e.timeSkew)*1e3;d("[KEYCLOAK] Token expires in "+Math.round(b/1e3)+" s"),b<=0?e.onTokenExpired():e.tokenTimeoutHandle=setTimeout(e.onTokenExpired,b)}}else delete e.token,delete e.tokenParsed,delete e.subject,delete e.realmAccess,delete e.resourceAccess,e.authenticated=!1}function ye(){var u="0123456789abcdef",h=k(36,u).split("");h[14]="4",h[19]=u.substr(h[19]&3|8,1),h[8]=h[13]=h[18]=h[23]="-";var v=h.join("");return v}function ee(u){var h=De(u);if(h){var v=o.get(h.state);return v&&(h.valid=!0,h.redirectUri=v.redirectUri,h.storedNonce=v.nonce,h.prompt=v.prompt,h.pkceCodeVerifier=v.pkceCodeVerifier,h.loginOptions=v.loginOptions),h}}function De(u){var h;switch(e.flow){case"standard":h=["code","state","session_state","kc_action_status","kc_action","iss"];break;case"implicit":h=["access_token","token_type","id_token","state","session_state","expires_in","kc_action_status","kc_action","iss"];break;case"hybrid":h=["access_token","token_type","id_token","code","state","session_state","expires_in","kc_action_status","kc_action","iss"];break}h.push("error"),h.push("error_description"),h.push("error_uri");var v=u.indexOf("?"),E=u.indexOf("#"),b,T;if(e.responseMode==="query"&&v!==-1?(b=u.substring(0,v),T=Ie(u.substring(v+1,E!==-1?E:u.length),h),T.paramsString!==""&&(b+="?"+T.paramsString),E!==-1&&(b+=u.substring(E))):e.responseMode==="fragment"&&E!==-1&&(b=u.substring(0,E),T=Ie(u.substring(E+1),h),T.paramsString!==""&&(b+="#"+T.paramsString)),T&&T.oauthParams){if(e.flow==="standard"||e.flow==="hybrid"){if((T.oauthParams.code||T.oauthParams.error)&&T.oauthParams.state)return T.oauthParams.newUrl=b,T.oauthParams}else if(e.flow==="implicit"&&(T.oauthParams.access_token||T.oauthParams.error)&&T.oauthParams.state)return T.oauthParams.newUrl=b,T.oauthParams}}function Ie(u,h){for(var v=u.split("&"),E={paramsString:"",oauthParams:{}},b=0;b<v.length;b++){var T=v[b].indexOf("="),w=v[b].slice(0,T);h.indexOf(w)!==-1?E.oauthParams[w]=v[b].slice(T+1):(E.paramsString!==""&&(E.paramsString+="&"),E.paramsString+=v[b])}return E}function Y(){var u={setSuccess:function(h){u.resolve(h)},setError:function(h){u.reject(h)}};return u.promise=new Promise(function(h,v){u.resolve=h,u.reject=v}),u}function Q(u,h,v){var E=null,b=new Promise(function(T,w){E=setTimeout(function(){w({error:v})},h)});return Promise.race([u,b]).finally(function(){clearTimeout(E)})}function be(){var u=Y();if(!i.enable||i.iframe)return u.setSuccess(),u.promise;var h=document.createElement("iframe");i.iframe=h,h.onload=function(){var b=e.endpoints.authorize();b.charAt(0)==="/"?i.iframeOrigin=A():i.iframeOrigin=b.substring(0,b.indexOf("/",8)),u.setSuccess()};var v=e.endpoints.checkSessionIframe();h.setAttribute("src",v),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 E=function(b){if(!(b.origin!==i.iframeOrigin||i.iframe.contentWindow!==b.source)&&(b.data=="unchanged"||b.data=="changed"||b.data=="error")){b.data!="unchanged"&&e.clearToken();for(var T=i.callbackList.splice(0,i.callbackList.length),w=T.length-1;w>=0;--w){var C=T[w];b.data=="error"?C.setError():C.setSuccess(b.data=="unchanged")}}};return window.addEventListener("message",E,!1),u.promise}function Re(){i.enable&&e.token&&setTimeout(function(){Ee().then(function(u){u&&Re()})},i.interval*1e3)}function Ee(){var u=Y();if(i.iframe&&i.iframeOrigin){var h=e.clientId+" "+(e.sessionId?e.sessionId:"");i.callbackList.push(u);var v=i.iframeOrigin;i.callbackList.length==1&&i.iframe.contentWindow.postMessage(h,v)}else u.setSuccess();return u.promise}function st(){var u=Y();if(i.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 v=function(E){h.contentWindow===E.source&&(E.data!=="supported"&&E.data!=="unsupported"||(E.data==="unsupported"&&(m(`[KEYCLOAK] Your browser is blocking access to 3rd-party cookies, this means:
|
|
406
406
|
|
|
407
407
|
- It is not possible to retrieve tokens without redirecting to the Keycloak server (a.k.a. no support for silent authentication).
|
|
408
408
|
- It is not possible to automatically detect changes to the session status (such as the user logging out in another tab).
|
|
409
409
|
|
|
410
|
-
For more information see: https://www.keycloak.org/docs/latest/securing_apps/#_modern_browsers`),i.enable=!1,e.silentCheckSsoFallback&&(e.silentCheckSsoRedirectUri=!1)),document.body.removeChild(p),window.removeEventListener("message",b),u.setSuccess()))};window.addEventListener("message",b,!1)}else u.setSuccess();return Q(u.promise,e.messageReceiveTimeout,"Timeout when waiting for 3rd party check iframe message.")}function Ye(u){if(!u||u=="default")return{login:function(w){return window.location.assign(e.createLoginUrl(w)),Y().promise},logout:async function(w){if(((w==null?void 0:w.logoutMethod)??e.logoutMethod)==="GET"){window.location.replace(e.createLogoutUrl(w));return}const A=e.createLogoutUrl(w),P=await fetch(A,{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(w,!1)})});if(P.redirected){window.location.href=P.url;return}if(P.ok){window.location.reload();return}throw new Error("Logout failed, request returned an error code.")},register:function(w){return window.location.assign(e.createRegisterUrl(w)),Y().promise},accountManagement:function(){var w=e.createAccountUrl();if(typeof w<"u")window.location.href=w;else throw"Not supported by the OIDC server";return Y().promise},redirectUri:function(w,_){return w&&w.redirectUri?w.redirectUri:e.redirectUri?e.redirectUri:location.href}};if(u=="cordova"){i.enable=!1;var p=function(w,_,A){return window.cordova&&window.cordova.InAppBrowser?window.cordova.InAppBrowser.open(w,_,A):window.open(w,_,A)},b=function(w){return w&&w.cordovaOptions?Object.keys(w.cordovaOptions).reduce(function(_,A){return _[A]=w.cordovaOptions[A],_},{}):{}},C=function(w){return Object.keys(w).reduce(function(_,A){return _.push(A+"="+w[A]),_},[]).join(",")},y=function(w){var _=b(w);return _.location="no",w&&w.prompt=="none"&&(_.hidden="yes"),C(_)},E=function(){return e.redirectUri||"http://localhost"};return{login:function(w){var _=Y(),A=y(w),P=e.createLoginUrl(w),M=p(P,"_blank",A),H=!1,ve=!1,ae=function(){ve=!0,M.close()};return M.addEventListener("loadstart",function(le){if(le.url.indexOf(E())==0){var Xe=ee(le.url);k(Xe,_),ae(),H=!0}}),M.addEventListener("loaderror",function(le){if(!H)if(le.url.indexOf(E())==0){var Xe=ee(le.url);k(Xe,_),ae(),H=!0}else _.setError(),ae()}),M.addEventListener("exit",function(le){ve||_.setError({reason:"closed_by_user"})}),_.promise},logout:function(w){var _=Y(),A=e.createLogoutUrl(w),P=p(A,"_blank","location=no,hidden=yes,clearcache=yes"),M;return P.addEventListener("loadstart",function(H){H.url.indexOf(E())==0&&P.close()}),P.addEventListener("loaderror",function(H){H.url.indexOf(E())==0||(M=!0),P.close()}),P.addEventListener("exit",function(H){M?_.setError():(e.clearToken(),_.setSuccess())}),_.promise},register:function(w){var _=Y(),A=e.createRegisterUrl(),P=y(w),M=p(A,"_blank",P);return M.addEventListener("loadstart",function(H){if(H.url.indexOf(E())==0){M.close();var ve=ee(H.url);k(ve,_)}}),_.promise},accountManagement:function(){var w=e.createAccountUrl();if(typeof w<"u"){var _=p(w,"_blank","location=no");_.addEventListener("loadstart",function(A){A.url.indexOf(E())==0&&_.close()})}else throw"Not supported by the OIDC server"},redirectUri:function(w){return E()}}}if(u=="cordova-native")return i.enable=!1,{login:function(w){var _=Y(),A=e.createLoginUrl(w);return universalLinks.subscribe("keycloak",function(P){universalLinks.unsubscribe("keycloak"),window.cordova.plugins.browsertab.close();var M=ee(P.url);k(M,_)}),window.cordova.plugins.browsertab.openUrl(A),_.promise},logout:function(w){var _=Y(),A=e.createLogoutUrl(w);return universalLinks.subscribe("keycloak",function(P){universalLinks.unsubscribe("keycloak"),window.cordova.plugins.browsertab.close(),e.clearToken(),_.setSuccess()}),window.cordova.plugins.browsertab.openUrl(A),_.promise},register:function(w){var _=Y(),A=e.createRegisterUrl(w);return universalLinks.subscribe("keycloak",function(P){universalLinks.unsubscribe("keycloak"),window.cordova.plugins.browsertab.close();var M=ee(P.url);k(M,_)}),window.cordova.plugins.browsertab.openUrl(A),_.promise},accountManagement:function(){var w=e.createAccountUrl();if(typeof w<"u")window.cordova.plugins.browsertab.openUrl(w);else throw"Not supported by the OIDC server"},redirectUri:function(w){return w&&w.redirectUri?w.redirectUri:e.redirectUri?e.redirectUri:"http://localhost"}};throw"invalid adapter type: "+u}var He=function(){if(!(this instanceof He))return new He;localStorage.setItem("kc-test","test"),localStorage.removeItem("kc-test");var u=this;function p(){for(var b=new Date().getTime(),C=0;C<localStorage.length;C++){var y=localStorage.key(C);if(y&&y.indexOf("kc-callback-")==0){var E=localStorage.getItem(y);if(E)try{var w=JSON.parse(E).expires;(!w||w<b)&&localStorage.removeItem(y)}catch{localStorage.removeItem(y)}}}}u.get=function(b){if(b){var C="kc-callback-"+b,y=localStorage.getItem(C);return y&&(localStorage.removeItem(C),y=JSON.parse(y)),p(),y}},u.add=function(b){p();var C="kc-callback-"+b.state;b.expires=new Date().getTime()+60*60*1e3,localStorage.setItem(C,JSON.stringify(b))}},je=function(){if(!(this instanceof je))return new je;var u=this;u.get=function(y){if(y){var E=b("kc-callback-"+y);if(C("kc-callback-"+y,"",p(-100)),E)return JSON.parse(E)}},u.add=function(y){C("kc-callback-"+y.state,JSON.stringify(y),p(60))},u.removeItem=function(y){C(y,"",p(-100))};var p=function(y){var E=new Date;return E.setTime(E.getTime()+y*60*1e3),E},b=function(y){for(var E=y+"=",w=document.cookie.split(";"),_=0;_<w.length;_++){for(var A=w[_];A.charAt(0)==" ";)A=A.substring(1);if(A.indexOf(E)==0)return A.substring(E.length,A.length)}return""},C=function(y,E,w){var _=y+"="+E+"; expires="+w.toUTCString()+"; ";document.cookie=_}};function mt(){try{return new He}catch{}return new je}function xe(u){return function(){e.enableLogging&&u.apply(console,Array.prototype.slice.call(arguments))}}}function Kd(t){const e=String.fromCodePoint(...t);return btoa(e)}class zd{constructor(e){Re(this,"oidc");Re(this,"isAuthenticated",!1);Re(this,"authenticatedWith",null);this.oidc=new ki(e)}async InitAsync(e={}){return await this.oidc.init(e).then(async n=>(this.isAuthenticated=n,this.authenticatedWith=this.AuthenticatedWith(),n)).catch(n=>(console.info("Ocorreu um erro na inicialização. Verifique o console para mais detalhes."),console.error(n),!1))}LoginGovBr(){this.oidc.login({idpHint:"GOV.BR"})}LoginSenhaweb(){var n;const e=(n=this.oidc.authServerUrl)!=null&&n.startsWith("https://keycloak.dev.apps.sf.prefeitura.sp.gov.br")?"senhawebdev":"senhaweb";this.oidc.login({idpHint:e})}AuthenticatedWith(){var n,o;const e=this.oidc.tokenParsed;return e?(n=e.identity_provider)!=null&&n.startsWith("GOV.BR")?"govbr":(o=e.identity_provider)!=null&&o.startsWith("senhaweb")?"senhaweb":"ad":null}}let _i;function Wd(t){_i=new zd(t)}const Gd=()=>_i;class qd{constructor(e=null){Re(this,"errors",[]);Re(this,"_value",null);Re(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))}}class on{static get IsTouch(){return window.matchMedia("(pointer: coarse)").matches}static GetMaxZindex(e=[]){let n="body > *:not(script):not(style)";for(const r of e)n+=`, ${r}`;const o=Math.max(...Array.from(document.querySelectorAll(n)).map(r=>{const i=getComputedStyle(r).zIndex;return+i==+i?+i:0}));return o>=100?o:100}static AjustarFuso(e){const n=e.getTimezoneOffset()/60;e.setHours(e.getHours()-n)}static Mask(e,n){let o=0,r=e.toString();return n.replace(/#/g,()=>r[o++]||"")}static MaskCpf(e){return on.Mask(e.padStart(11,"0"),"###.###.###-##")}static MaskCnpj(e){return on.Mask(e.padStart(14,"0"),"##.###.###/####-##")}static MaskCcm(e){return on.Mask(e.padStart(8,"0"),"#.###.###-#")}static async DelayAsync(e){return new Promise(n=>setTimeout(n,e))}}function Yd(){document.documentElement.classList.add("app-mounted")}function Si(){st.SetInitialTheme()}function Xd(){st.Toggle()}function Zd(){st.EnableDarkMode()}function Jd(){st.EnableLightMode()}function Qd(){st.ClearStoredTheme()}Si(),U.AppResult=qd,U.ClearStoredTheme=Qd,U.ConfigAuth=Wd,U.EnableDarkMode=Zd,U.EnableLightMode=Jd,U.RemovePreloader=Yd,U.SetInitialTheme=Si,U.SfButton=ys,U.SfContent=us,U.SfDrawer=ws,U.SfIcon=cn,U.SfLayout=ns,U.SfMessage=_s,U.SfNavMenu=yl,U.SfTabNavigation=ps,U.SfTooltip=Nn,U.ToggleTheme=Xd,U.UseAlertService=Pd,U.UseAuth=Gd,U.UseConfirmService=Ad,U.UseNavMenuService=Bn,U.Utilities=on,Object.defineProperty(U,Symbol.toStringTag,{value:"Module"})});
|
|
410
|
+
For more information see: https://www.keycloak.org/docs/latest/securing_apps/#_modern_browsers`),i.enable=!1,e.silentCheckSsoFallback&&(e.silentCheckSsoRedirectUri=!1)),document.body.removeChild(h),window.removeEventListener("message",v),u.setSuccess()))};window.addEventListener("message",v,!1)}else u.setSuccess();return Q(u.promise,e.messageReceiveTimeout,"Timeout when waiting for 3rd party check iframe message.")}function Xe(u){if(!u||u=="default")return{login:function(w){return window.location.assign(e.createLoginUrl(w)),Y().promise},logout:async function(w){if(((w==null?void 0:w.logoutMethod)??e.logoutMethod)==="GET"){window.location.replace(e.createLogoutUrl(w));return}const x=e.createLogoutUrl(w),P=await fetch(x,{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(w,!1)})});if(P.redirected){window.location.href=P.url;return}if(P.ok){window.location.reload();return}throw new Error("Logout failed, request returned an error code.")},register:function(w){return window.location.assign(e.createRegisterUrl(w)),Y().promise},accountManagement:function(){var w=e.createAccountUrl();if(typeof w<"u")window.location.href=w;else throw"Not supported by the OIDC server";return Y().promise},redirectUri:function(w,C){return w&&w.redirectUri?w.redirectUri:e.redirectUri?e.redirectUri:location.href}};if(u=="cordova"){i.enable=!1;var h=function(w,C,x){return window.cordova&&window.cordova.InAppBrowser?window.cordova.InAppBrowser.open(w,C,x):window.open(w,C,x)},v=function(w){return w&&w.cordovaOptions?Object.keys(w.cordovaOptions).reduce(function(C,x){return C[x]=w.cordovaOptions[x],C},{}):{}},E=function(w){return Object.keys(w).reduce(function(C,x){return C.push(x+"="+w[x]),C},[]).join(",")},b=function(w){var C=v(w);return C.location="no",w&&w.prompt=="none"&&(C.hidden="yes"),E(C)},T=function(){return e.redirectUri||"http://localhost"};return{login:function(w){var C=Y(),x=b(w),P=e.createLoginUrl(w),M=h(P,"_blank",x),H=!1,ve=!1,ae=function(){ve=!0,M.close()};return M.addEventListener("loadstart",function(le){if(le.url.indexOf(T())==0){var Ze=ee(le.url);S(Ze,C),ae(),H=!0}}),M.addEventListener("loaderror",function(le){if(!H)if(le.url.indexOf(T())==0){var Ze=ee(le.url);S(Ze,C),ae(),H=!0}else C.setError(),ae()}),M.addEventListener("exit",function(le){ve||C.setError({reason:"closed_by_user"})}),C.promise},logout:function(w){var C=Y(),x=e.createLogoutUrl(w),P=h(x,"_blank","location=no,hidden=yes,clearcache=yes"),M;return P.addEventListener("loadstart",function(H){H.url.indexOf(T())==0&&P.close()}),P.addEventListener("loaderror",function(H){H.url.indexOf(T())==0||(M=!0),P.close()}),P.addEventListener("exit",function(H){M?C.setError():(e.clearToken(),C.setSuccess())}),C.promise},register:function(w){var C=Y(),x=e.createRegisterUrl(),P=b(w),M=h(x,"_blank",P);return M.addEventListener("loadstart",function(H){if(H.url.indexOf(T())==0){M.close();var ve=ee(H.url);S(ve,C)}}),C.promise},accountManagement:function(){var w=e.createAccountUrl();if(typeof w<"u"){var C=h(w,"_blank","location=no");C.addEventListener("loadstart",function(x){x.url.indexOf(T())==0&&C.close()})}else throw"Not supported by the OIDC server"},redirectUri:function(w){return T()}}}if(u=="cordova-native")return i.enable=!1,{login:function(w){var C=Y(),x=e.createLoginUrl(w);return universalLinks.subscribe("keycloak",function(P){universalLinks.unsubscribe("keycloak"),window.cordova.plugins.browsertab.close();var M=ee(P.url);S(M,C)}),window.cordova.plugins.browsertab.openUrl(x),C.promise},logout:function(w){var C=Y(),x=e.createLogoutUrl(w);return universalLinks.subscribe("keycloak",function(P){universalLinks.unsubscribe("keycloak"),window.cordova.plugins.browsertab.close(),e.clearToken(),C.setSuccess()}),window.cordova.plugins.browsertab.openUrl(x),C.promise},register:function(w){var C=Y(),x=e.createRegisterUrl(w);return universalLinks.subscribe("keycloak",function(P){universalLinks.unsubscribe("keycloak"),window.cordova.plugins.browsertab.close();var M=ee(P.url);S(M,C)}),window.cordova.plugins.browsertab.openUrl(x),C.promise},accountManagement:function(){var w=e.createAccountUrl();if(typeof w<"u")window.cordova.plugins.browsertab.openUrl(w);else throw"Not supported by the OIDC server"},redirectUri:function(w){return w&&w.redirectUri?w.redirectUri:e.redirectUri?e.redirectUri:"http://localhost"}};throw"invalid adapter type: "+u}var He=function(){if(!(this instanceof He))return new He;localStorage.setItem("kc-test","test"),localStorage.removeItem("kc-test");var u=this;function h(){for(var v=new Date().getTime(),E=0;E<localStorage.length;E++){var b=localStorage.key(E);if(b&&b.indexOf("kc-callback-")==0){var T=localStorage.getItem(b);if(T)try{var w=JSON.parse(T).expires;(!w||w<v)&&localStorage.removeItem(b)}catch{localStorage.removeItem(b)}}}}u.get=function(v){if(v){var E="kc-callback-"+v,b=localStorage.getItem(E);return b&&(localStorage.removeItem(E),b=JSON.parse(b)),h(),b}},u.add=function(v){h();var E="kc-callback-"+v.state;v.expires=new Date().getTime()+60*60*1e3,localStorage.setItem(E,JSON.stringify(v))}},je=function(){if(!(this instanceof je))return new je;var u=this;u.get=function(b){if(b){var T=v("kc-callback-"+b);if(E("kc-callback-"+b,"",h(-100)),T)return JSON.parse(T)}},u.add=function(b){E("kc-callback-"+b.state,JSON.stringify(b),h(60))},u.removeItem=function(b){E(b,"",h(-100))};var h=function(b){var T=new Date;return T.setTime(T.getTime()+b*60*1e3),T},v=function(b){for(var T=b+"=",w=document.cookie.split(";"),C=0;C<w.length;C++){for(var x=w[C];x.charAt(0)==" ";)x=x.substring(1);if(x.indexOf(T)==0)return x.substring(T.length,x.length)}return""},E=function(b,T,w){var C=b+"="+T+"; expires="+w.toUTCString()+"; ";document.cookie=C}};function pt(){try{return new He}catch{}return new je}function Oe(u){return function(){e.enableLogging&&u.apply(console,Array.prototype.slice.call(arguments))}}}function Rd(t){const e=String.fromCodePoint(...t);return btoa(e)}class Ud{constructor(e){Ke(this,"oidc");Ke(this,"isAuthenticated",!1);Ke(this,"authenticatedWith",null);this.oidc=new Ei(e)}async InitAsync(e={}){return await this.oidc.init(e).then(async n=>(this.isAuthenticated=n,this.authenticatedWith=this.AuthenticatedWith(),n)).catch(n=>(console.info("Ocorreu um erro na inicialização. Verifique o console para mais detalhes."),console.error(n),!1))}LoginGovBr(){this.oidc.login({idpHint:"GOV.BR"})}LoginSenhaweb(){var n;const e=(n=this.oidc.authServerUrl)!=null&&n.startsWith("https://keycloak.dev.apps.sf.prefeitura.sp.gov.br")?"senhawebdev":"senhaweb";this.oidc.login({idpHint:e})}AuthenticatedWith(){var n,r;const e=this.oidc.tokenParsed;return e?(n=e.identity_provider)!=null&&n.startsWith("GOV.BR")?"govbr":(r=e.identity_provider)!=null&&r.startsWith("senhaweb")?"senhaweb":"ad":null}}let Ti;function Vd(t){Ti=new Ud(t)}const Sr=()=>Ti;function Hd(t){return s.getCurrentScope()?(s.onScopeDispose(t),!0):!1}const jd=typeof window<"u"&&typeof document<"u";typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;function Fd(t){return s.getCurrentInstance()}function zd(t){return Array.isArray(t)?t:[t]}function Kd(t,e=!0,n){Fd()?s.onMounted(t,n):e?t():s.nextTick(t)}const Ai=jd?window:void 0;function Ct(t){var e;const n=s.toValue(t);return(e=n==null?void 0:n.$el)!=null?e:n}function Wd(){const t=s.ref(!1),e=s.getCurrentInstance();return e&&s.onMounted(()=>{t.value=!0},e),t}function Gd(t){const e=Wd();return s.computed(()=>(e.value,!!t()))}function qd(t,e,n={}){const{window:r=Ai,...o}=n;let i;const c=Gd(()=>r&&"ResizeObserver"in r),a=()=>{i&&(i.disconnect(),i=void 0)},l=s.computed(()=>{const p=s.toValue(t);return Array.isArray(p)?p.map(y=>Ct(y)):[Ct(p)]}),d=s.watch(l,p=>{if(a(),c.value&&r){i=new ResizeObserver(e);for(const y of p)y&&i.observe(y,o)}},{immediate:!0,flush:"post"}),m=()=>{a(),d()};return Hd(m),{isSupported:c,stop:m}}function Yd(t,e={width:0,height:0},n={}){const{window:r=Ai,box:o="content-box"}=n,i=s.computed(()=>{var p,y;return(y=(p=Ct(t))==null?void 0:p.namespaceURI)==null?void 0:y.includes("svg")}),c=s.ref(e.width),a=s.ref(e.height),{stop:l}=qd(t,([p])=>{const y=o==="border-box"?p.borderBoxSize:o==="content-box"?p.contentBoxSize:p.devicePixelContentBoxSize;if(r&&i.value){const k=Ct(t);if(k){const _=k.getBoundingClientRect();c.value=_.width,a.value=_.height}}else if(y){const k=zd(y);c.value=k.reduce((_,{inlineSize:$})=>_+$,0),a.value=k.reduce((_,{blockSize:$})=>_+$,0)}else c.value=p.contentRect.width,a.value=p.contentRect.height},n);Kd(()=>{const p=Ct(t);p&&(c.value="offsetWidth"in p?p.offsetWidth:e.width,a.value="offsetHeight"in p?p.offsetHeight:e.height)});const d=s.watch(()=>Ct(t),p=>{c.value=p?e.width:0,a.value=p?e.height:0});function m(){l(),d()}return{width:c,height:a,stop:m}}const Xd={install(t,e){document.documentElement.style.setProperty("--nav-menu-width","240px");const r=s.ref(!0),o=s.ref(0),i=s.ref(!1),c=s.ref(!1),a=s.ref(""),l=s.ref(null),{width:d}=Yd(l);t.provide(yo,{navMenuWidth:240,isMenuOpened:r,ToggleMenu:()=>{r.value=!r.value},OpenMenu:()=>{r.value=!0},CloseMenu:()=>{r.value=!1},scrollY:o,pageTitle:a,isDarkMode:i,ToggleTheme:()=>zt.Toggle(),EnableDarkMode:()=>zt.EnableDarkMode(),EnableLightMode:()=>zt.EnableLightMode(),ClearStoredTheme:()=>zt.ClearStoredTheme(),LogoutAsync:async()=>{const p=_i(),{oidc:y}=Sr();await p.ConfirmAsync("Deseja realmente sair da sua conta?")&&(c.value=!0,await new Promise(_=>setTimeout(_,1e3)),y.logout({redirectUri:window.location.origin}))},Login:()=>{const{oidc:p}=Sr();p.login()},isLoggingOut:c,mainRef:l,mainWidth:d,isMainXs:s.computed(()=>d.value<=348),isMainSm:s.computed(()=>d.value>348),isMainMd:s.computed(()=>d.value>768),isMainLg:s.computed(()=>d.value>992),isMainXl:s.computed(()=>d.value>1200),isMainXxl:s.computed(()=>d.value>1400)}),new MutationObserver(()=>{i.value=document.documentElement.classList.contains("dark")}).observe(document.documentElement,{attributes:!0,attributeFilter:["class"]}),document.addEventListener("scroll",()=>{o.value=document.documentElement.scrollTop}),zt.SetInitialTheme()}};function Zd(){return s.inject(yo)}const Cr=()=>Zd(),Jd={class:"font-percentage"},Pi="--font-size-increment",Qd="tamanho-fonte",ef=gt(s.defineComponent({__name:"FontSize",setup(t){const e=s.ref(!1),n=s.ref(0),r=()=>{n.value=Nn(),e.value=!0},o=()=>{e.value=!1},i=()=>document.documentElement,c=()=>parseInt(getComputedStyle(i()).getPropertyValue(Pi)||"1"),a=y=>{y<.5||y>1.6||(i().style.setProperty(Pi,y.toString()),p.value=y)},l=()=>{a(p.value+.1)},d=()=>{a(p.value-.1)},m=()=>{a(1)},p=s.ref(1);return s.onBeforeMount(()=>{localStorage.removeItem(Qd)}),s.onMounted(()=>{p.value=c()}),(y,k)=>(s.openBlock(),s.createElementBlock(s.Fragment,null,[s.createVNode(Te,{button:!0,size:"sm",icon:"text_increase",tooltip:"Tamanho da fonte",onClick:r}),e.value?(s.openBlock(),s.createElementBlock(s.Fragment,{key:0},[s.createElementVNode("div",{class:s.normalizeClass(["border","fadein","font-size-wrapper"]),style:s.normalizeStyle({zIndex:n.value+1})},[s.createVNode(Te,{button:!0,icon:"remove",size:"sm",onClick:d}),s.createElementVNode("span",Jd,s.toDisplayString(p.value.toLocaleString("pt-br",{style:"percent",maximumFractionDigits:0})),1),s.createVNode(Te,{button:!0,icon:"add",size:"sm",onClick:l}),s.createElementVNode("span",{class:"redefinir",onClick:m}," Redefinir ")],4),s.createElementVNode("div",{class:"font-size-mask",style:s.normalizeStyle({zIndex:n.value}),onClick:o},null,4)],64)):s.createCommentVNode("",!0)],64))}}),[["__scopeId","data-v-d0fb8241"]]),tf={class:"nav-menu-header"},nf={class:"nav-menu-inner-close"},rf={class:"main-content"},of={class:"menu-button"},sf={class:"page-title"},af={class:"action"},lf={id:"content"},cf={key:0,id:"logging-out"},uf={class:"info-fazenda"},df={class:"font-bold"},ff={class:"info-endereco text-muted"},mf=gt(s.defineComponent({__name:"Main",props:{auth:{}},setup(t){const e=t,{navMenuWidth:n,isMenuOpened:r,pageTitle:o,scrollY:i,ToggleMenu:c,isDarkMode:a,ToggleTheme:l,CloseMenu:d,LogoutAsync:m,Login:p,isLoggingOut:y,mainRef:k}=Cr(),_=s.ref(null),$=()=>{if(!_.value||!r.value)return!1;_.value.offsetWidth!==n&&d()};return s.onMounted(()=>{ht.useRouter().afterEach(()=>{$()})}),(B,A)=>(s.openBlock(),s.createElementBlock("main",{ref_key:"mainRef",ref:k,class:s.normalizeClass({"select-none":!0,disabled:s.unref(y),"nav-menu-visible":s.unref(r)})},[s.createElementVNode("aside",{id:"nav-menu",ref_key:"navMenuRef",ref:_,class:s.normalizeClass({"nav-menu-hidden":!s.unref(r)})},[s.createElementVNode("div",tf,[A[0]||(A[0]=s.createElementVNode("span",null,"Menu",-1)),s.createElementVNode("div",nf,[s.createVNode(Te,{button:!0,icon:"close",onClick:s.unref(c)},null,8,["onClick"])])]),s.renderSlot(B.$slots,"nav-menu",{},void 0,!0)],2),s.createElementVNode("div",rf,[s.createElementVNode("div",{id:"top-bar",class:s.normalizeClass({"shadow-bottom":s.unref(i)>72})},[s.createElementVNode("div",of,[s.createVNode(Te,{button:!0,icon:s.unref(r)?"menu_open":"menu",tooltip:"Menu",onClick:s.unref(c)},null,8,["icon","onClick"])]),s.createElementVNode("div",sf,s.toDisplayString(s.unref(y)?"Saindo...":s.unref(o)),1),A[1]||(A[1]=s.createElementVNode("span",{class:"sep"},null,-1)),s.createElementVNode("div",af,[s.createVNode(Te,{button:!0,size:"sm",icon:s.unref(a)?"light_mode":"dark_mode",tooltip:s.unref(a)?"Modo claro":"Modo escuro",onClick:s.unref(l)},null,8,["icon","tooltip","onClick"]),s.createVNode(ef),e.auth?(s.openBlock(),s.createElementBlock(s.Fragment,{key:0},[e.auth.isAuthenticated?(s.openBlock(),s.createBlock(Te,{key:0,button:!0,size:"sm",icon:"logout",tooltip:"Sair",onClick:s.unref(m)},null,8,["onClick"])):(s.openBlock(),s.createBlock(Te,{key:1,button:!0,size:"sm",icon:"login",tooltip:"Entrar",onClick:s.unref(p)},null,8,["onClick"]))],64)):s.createCommentVNode("",!0)])],2),s.createElementVNode("div",lf,[s.unref(y)?(s.openBlock(),s.createElementBlock("div",cf,[s.createVNode(xr)])):s.renderSlot(B.$slots,"content",{key:1},void 0,!0)])]),s.createElementVNode("footer",null,[A[4]||(A[4]=s.createElementVNode("div",{class:"logo-fazenda"},null,-1)),s.createElementVNode("div",uf,[s.createElementVNode("span",df,[s.renderSlot(B.$slots,"footer-nome-fazenda",{},()=>[A[2]||(A[2]=s.createTextVNode(" SECRETARIA MUNICIPAL DA FAZENDA "))],!0)]),s.createElementVNode("span",ff,[s.renderSlot(B.$slots,"footer-endereco-fazenda",{},()=>[A[3]||(A[3]=s.createTextVNode(" Rua Líbero Badaró, 190 - Centro - São Paulo - SP - CEP 01008-000 "))],!0)])])])],2))}}),[["__scopeId","data-v-8b72b78a"]]),pf=s.defineComponent({__name:"PageTitle",props:{title:{}},setup(t){const{pageTitle:e}=Cr(),n=t;return s.watchEffect(()=>{document.title=n.title,e.value=n.title}),(r,o)=>null}}),xi={surface:{0:"{surface.0.color}",50:"{surface.100.color}",100:"{surface.100.color}",200:"{surface.200.color}",300:"{surface.300.color}",400:"{surface.400.color}",500:"{surface.1000.color}",600:"{surface.600.color}",700:"{surface.700.color}",800:"{surface.800.color}",900:"{surface.900.color}",950:"{surface.1000.color}"},primary:{color:"{primary.color}",contrastColor:"{bg.color}",hoverColor:"{primary.hover.color}",activeColor:"{primary.color}"},highlight:{background:"{primary.color}",color:"{bg.color}"},formField:{background:"{surface.0.color}",disabledBackground:"{surface.0.color}",filledBackground:"{surface.100.color}",filledFocusBackground:"{surface.100.color}",borderColor:"{surface.1000.color}",hoverBorderColor:"{primary.color}",focusBorderColor:"{primary.color}",invalidBorderColor:"{error.color}",color:"{text.color}",disabledColor:"{disabled.color}",placeholderColor:"{muted.color}",floatLabelColor:"{secondary.color}",floatLabelFocusColor:"{secondary.color}",floatLabelInvalidColor:"{error.color}",iconColor:"{primary.color}"},text:{color:"{text.color}",hoverColor:"{primary.color}",mutedColor:"{muted.color}",hoverMutedColor:"{muted.color}"},mask:{background:"{maskbg.color}",color:"{surface.200.color}"},content:{background:"{bg.color}",color:"{text.color}",border:{color:"{surface.1000.color}",radius:"6px"},hover:{background:"{primary.hover.color}",color:"{primary.color}"}}},hf={semantic:{disabled:{opacity:"1"},transitionDuration:"0",primary:{50:"{primary.color}",100:"{primary.color}",200:"{primary.color}",300:"{primary.color}",400:"{primary.color}",500:"{primary.color}",600:"{primary.color}",700:"{primary.color}",800:"{primary.color}",900:"{primary.color}",950:"{primary.color}"},colorScheme:{light:{...xi},dark:{...xi}}},components:{blockui:{border:{radius:"0px"}},button:{padding:{x:"1rem",y:"0.5rem"},primary:{hover:{background:"{primary.color} !important",border:{color:"{primary.color} !important"}}},text:{secondary:{color:"{secondary.color} !important",hover:{background:"{surface.200.color} !important"}}},icon:{only:{width:"2rem"}}},checkbox:{background:"{surface.100.color} !important",border:{color:"{border.color} !important"},checked:{background:"{primary.color} !important",hover:{background:"{primary.color} !important"}},sm:{width:"1rem",height:"1rem"},lg:{width:"1.5rem",height:"1.5rem"}},datatable:{header:{border:{color:"{border.color} !important"},cell:{border:{color:"{border.color} !important"},hover:{background:"{primary.hover.color} !important",color:"{primary.color} !important"}}},body:{cell:{border:{color:"{border.color} !important"}}},row:{striped:{background:"{surface.100.color} !important"}},footer:{border:{color:"transparent !important"}}},datepicker:{today:{background:"{primary.hover.color} !important",color:"{primary.color} !important"}},dialog:{background:"{bg.color} !important",color:"{text.color} !important",border:{color:"{surface.0.color} !important",radius:"{border.radius} !important"},title:{font:{size:"{font.size} !important",weight:"700 !important"}},header:{padding:"0.75rem 0.75rem 0 1rem !important",gap:"{inline.spacing} !important"},content:{padding:"{content.spacing} !important"},footer:{padding:"0.75rem 0.75rem 0 1rem !important",gap:"{inline.spacing} !important"}},inputtext:{background:"{bg.color}",color:"{text.color}",border:{color:"{border.color}"},hover:{border:{color:"{primary.color}"}},placeholder:{color:"{muted.color}"}},inputmask:{background:"{bg.color}",color:"{text.color}",border:{color:"{border.color}"},hover:{border:{color:"{primary.color}"}},placeholder:{color:"{muted.color}"}},select:{background:"{bg.color}",color:"{primary.color}",option:{focus:{background:"{primary.hover.color}",color:"{primary.color}"},selected:{focus:{background:"{primary.color}",color:"{bg.color}"}}},overlay:{background:"{bg.color}",border:{color:"{border.color}"}},dropdown:{color:"{primary.color}"},hover:{border:{color:"{primary.color}"}},placeholder:{color:"{disabled.color}"},disabled:{color:"{disabled.color}"}},skeleton:{background:"{surface.100.color} !important",animation:{background:"{surface.100.color} !important"}}}};class Oi{get IsVisible(){return ft.isVisible()}async CreateAlertAsync(e){let n="info",r,o;return typeof e=="string"||Array.isArray(e)?r=Array.isArray(e)?e.join("<br />"):e:(n=e.icon??"info",o=e.title??"",r=Array.isArray(e.text)?e.text.join("<br />"):e.text),new Promise(i=>{ft.fire({allowEscapeKey:!1,allowOutsideClick:!1,icon:n,title:o,html:`<div style="max-height: 50vh; overflow: auto">${wi.sanitize(r)}</div>`}).then(()=>i(!0))})}async AlertAsync(e){return this.CreateAlertAsync({text:e,icon:"info"})}async AlertErrorAsync(e){return this.CreateAlertAsync({text:e,icon:"error"})}async AlertSuccessAsync(e){return this.CreateAlertAsync({text:e,icon:"success"})}}const gf=()=>new Oi,yf=()=>new Oi;class bf{constructor(e=null){Ke(this,"errors",[]);Ke(this,"_value",null);Ke(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 vf(){document.documentElement.classList.add("app-mounted")}R.AppResult=bf,R.ConfigAuth=Vd,R.RemovePreloader=vf,R.SfButton=ds,R.SfContent=is,R.SfDrawer=ps,R.SfIcon=Te,R.SfMain=mf,R.SfMessage=gs,R.SfNavMenu=ml,R.SfPageTitle=pf,R.SfTabNavigation=cs,R.SfTooltip=Or,R.UseAlert=gf,R.UseAlertService=yf,R.UseAppInject=Cr,R.UseAuth=Sr,R.UseConfirm=_i,R.UseConfirmService=Sd,R.Utilities=Ft,R.configSF=Xd,R.themePreset=hf,Object.defineProperty(R,Symbol.toStringTag,{value:"Module"})});
|
|
411
411
|
//# sourceMappingURL=sf.prefeiturasp.vuecomponents.umd.cjs.map
|