@luizleon/sf.prefeiturasp.vuecomponents 4.1.17 → 4.1.19
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.ts +1 -2
- package/dist/sf.prefeiturasp.vuecomponents.cjs +44 -49
- package/dist/sf.prefeiturasp.vuecomponents.cjs.map +1 -1
- package/dist/sf.prefeiturasp.vuecomponents.js +2874 -4578
- package/dist/sf.prefeiturasp.vuecomponents.js.map +1 -1
- package/dist/sf.prefeiturasp.vuecomponents.umd.cjs +44 -49
- package/dist/sf.prefeiturasp.vuecomponents.umd.cjs.map +1 -1
- package/dist/style.css +1 -1
- package/package.json +2 -7
- package/dist/http-client/apiClient.d.ts +0 -30
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
"use strict";var wa=Object.defineProperty;var Sa=(t,e,n)=>e in t?wa(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n;var Re=(t,e,n)=>Sa(t,typeof e!="symbol"?e+"":e,n);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const l=require("vue");class _a{constructor(){Re(this,"_visible",l.ref(!1))}get IsVisible(){return this._visible.value===!0}Toggle(){this._visible.value=!this._visible.value}Close(){this._visible.value=!1}Open(){this._visible.value=!0}}const ka=new _a,jr=()=>ka,Hn=(t,e)=>{const n=t.__vccOpts||t;for(const[r,o]of e)n[r]=o;return n},Ca={},Ea={xmlns:"http://www.w3.org/2000/svg",height:"48",viewBox:"0 -960 960 960",width:"48",class:"sf-svg-icon"};function Ta(t,e){return l.openBlock(),l.createElementBlock("svg",Ea,e[0]||(e[0]=[l.createElementVNode("path",{d:"m307.231-83.463-54.999-55.23 343.923-343.922-343.923-343.539 54.999-54.614 398.153 398.153L307.231-83.462Z"},null,-1)]))}const Aa=Hn(Ca,[["render",Ta]]);class Pa{get storedTheme(){return localStorage.getItem("color-scheme")}get IsDark(){return document.documentElement.classList.contains("dark")}Toggle(){this.IsDark?this.EnableLightMode():this.EnableDarkMode()}EnableDarkMode(){document.documentElement.classList.add("dark"),document.documentElement.classList.remove("light"),localStorage.setItem("color-scheme","dark")}EnableLightMode(){document.documentElement.classList.remove("dark"),document.documentElement.classList.add("light"),localStorage.setItem("color-scheme","light")}SetInitialTheme(){if(this.storedTheme==="light")return this.EnableLightMode();if(this.storedTheme==="dark")return this.EnableDarkMode();if(window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches)return this.EnableDarkMode();this.EnableLightMode()}ClearStoredTheme(){localStorage.removeItem("color-scheme")}}const bt=new Pa,Ia=l.defineComponent({__name:"ThemeToggle",setup(t){return(e,n)=>(l.openBlock(),l.createElementBlock("button",{id:"sf-theme-toggle",onClick:n[0]||(n[0]=(...r)=>l.unref(bt).Toggle&&l.unref(bt).Toggle(...r))},n[1]||(n[1]=[l.createStaticVNode('<svg xmlns="http://www.w3.org/2000/svg" width="472.39" height="472.39" viewBox="0 0 472.39 472.39"><g class="toggle-sun"><path d="M403.21,167V69.18H305.38L236.2,0,167,69.18H69.18V167L0,236.2l69.18,69.18v97.83H167l69.18,69.18,69.18-69.18h97.83V305.38l69.18-69.18Zm-167,198.17a129,129,0,1,1,129-129A129,129,0,0,1,236.2,365.19Z"></path></g><g class="toggle-circle"><circle class="cls-1" cx="236.2" cy="236.2" r="103.78"></circle></g></svg>',1)])))}});function Di(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 Vr=l.defineComponent({__name:"Tooltip",props:{text:{}},setup(t){const e=t;class n{constructor(){Re(this,"zIndex");Re(this,"wrapper");Re(this,"inner");this.zIndex=Di()+1,this.Render()}Render(){this.wrapper=document.createElement("div"),this.wrapper.classList.add("sf-tooltip-wrapper"),this.wrapper.style.zIndex=`${this.zIndex??0}`,this.inner=document.createElement("div"),this.inner.classList.add("sf-tooltip-inner"),this.wrapper.appendChild(this.inner)}Show(i){this.inner.textContent=e.text,document.body.appendChild(this.wrapper),this.Position(i),this.wrapper.classList.add("visible")}Hide(){this.wrapper.classList.remove("visible"),this.wrapper.remove()}Position(i){const a=i.currentTarget.getBoundingClientRect();this.FixWidth();const c=this.wrapper,u=10;c.style.top=`${a.bottom-u}px`,c.style.left=`${a.right-u}px`,this.OutOfBottom()&&(c.style.top=`${a.top-c.clientHeight+u}px`),this.OutOfRight()&&(c.style.left=`${a.left-c.clientWidth+u}px`)}FixWidth(){this.wrapper.style.width="fit-content",this.wrapper.style.wordBreak="normal",this.wrapper.style.whiteSpace="nowrap";const i=window.innerWidth/2;this.wrapper.clientWidth>i&&(this.wrapper.style.width=`${i}px`,this.wrapper.style.wordBreak="break-word",this.wrapper.style.whiteSpace="normal")}OutOfBottom(){return this.wrapper.getBoundingClientRect().bottom>(window.innerHeight||document.documentElement.clientHeight)}OutOfRight(){return this.wrapper.getBoundingClientRect().right>(window.innerWidth||document.documentElement.clientWidth)-10}}const r=new n;return l.onBeforeUnmount(()=>{r.Hide()}),(o,i)=>(l.openBlock(),l.createElementBlock("div",{class:"sf-tooltip-anchor",onMouseenter:i[0]||(i[0]=(...s)=>l.unref(r).Show&&l.unref(r).Show(...s)),onMouseleave:i[1]||(i[1]=(...s)=>l.unref(r).Hide&&l.unref(r).Hide(...s)),onMousedown:i[2]||(i[2]=(...s)=>l.unref(r).Hide&&l.unref(r).Hide(...s))},[l.renderSlot(o.$slots,"default")],32))}}),xa={id:"sf-layout"},Oa={class:"title"},La={class:"sf-layout-nav-content"},Ra={id:"sf-layout-content"},$a=l.defineComponent({__name:"Layout",emits:["mounted","logout"],setup(t,{emit:e}){const n=jr(),r=e;return l.onMounted(()=>{r("mounted")}),(o,i)=>(l.openBlock(),l.createElementBlock("div",xa,[l.createElementVNode("header",null,[l.createElementVNode("div",{class:l.normalizeClass(["sf-layout-menu-toggler",{invert:l.unref(n).IsVisible}]),onClick:i[0]||(i[0]=s=>l.unref(n).Toggle())},[i[1]||(i[1]=l.createElementVNode("div",{class:"sf-layout-menu-toggler-logo"},null,-1)),l.createVNode(Aa)],2),l.createElementVNode("div",Oa,[l.renderSlot(o.$slots,"title")]),l.renderSlot(o.$slots,"action"),l.createVNode(Vr,{text:"Tema"},{default:l.withCtx(()=>[l.createVNode(Ia)]),_:1})]),l.createElementVNode("nav",{class:l.normalizeClass({visible:l.unref(n).IsVisible})},[l.createElementVNode("div",La,[l.renderSlot(o.$slots,"menu")]),i[2]||(i[2]=l.createElementVNode("div",{class:"sf-layout-nav-footer"},[l.createElementVNode("div",{class:"sf-layout-nav-footer-logo"})],-1))],2),l.createElementVNode("main",{class:l.normalizeClass({"menu-visible":l.unref(n).IsVisible})},[i[3]||(i[3]=l.createElementVNode("section",{id:"sf-layout-page-title"},null,-1)),l.createElementVNode("section",Ra,[l.renderSlot(o.$slots,"content")])],2)]))}}),Ba={},Na={class:"sf-loading-circle"};function Da(t,e){return l.openBlock(),l.createElementBlock("div",Na,e[0]||(e[0]=[l.createElementVNode("div",null,[l.createElementVNode("svg",{viewBox:"25 25 50 50"},[l.createElementVNode("circle",{cx:"50",cy:"50",r:"20",fill:"none","stroke-width":"4","stroke-miterlimit":"10"})])],-1)]))}const Ma=Hn(Ba,[["render",Da]]);class tt{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 Ua=["disabled","tabindex"],Ha=["data-color"],ja=l.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=l.computed(()=>e.tooltip?Vr:"div"),r=l.computed(()=>new tt(e.tooltip?"":"display-content").AddClass("sf-component-loading",e.loading).AddClass("sf-component-disabled",e.disabled).Build()),o=l.computed(()=>new tt(`${e.class} sf-icon`).AddClass("sf-component-loading",e.loading).AddClass("sf-component-disabled",e.disabled).AddClass("sf-icon-button",e.button).AddClass("sf-icon-small",e.size==="sm").AddClass("sf-icon-medium",e.size==="md").AddClass("sf-icon-large",e.size==="lg").AddClass("sf-icon-xlarge",e.size==="xl").AddClass("sf-icon-2xlarge",e.size==="2xl").AddClass("sf-icon-3xlarge",e.size==="3xl").AddClass("sf-ripple",e.button===!0).AddClass(`${e.color}-color`,!!e.color&&e.color!=="inherit").Build());return(i,s)=>(l.openBlock(),l.createBlock(l.resolveDynamicComponent(n.value),{text:e.tooltip,class:l.normalizeClass(r.value)},{default:l.withCtx(()=>[e.visible?(l.openBlock(),l.createElementBlock("div",{key:0,style:l.normalizeStyle(e.style),class:l.normalizeClass(o.value)},[l.createElementVNode("button",l.mergeProps({class:["material-symbols-outlined",{"icon-filled":!!e.filled}],disabled:e.disabled||e.loading},e.buttonProps,{tabindex:e.button?void 0:-1}),[e.loading?(l.openBlock(),l.createBlock(Ma,{key:0})):(l.openBlock(),l.createElementBlock(l.Fragment,{key:1},[l.createTextVNode(l.toDisplayString(e.icon),1)],64))],16,Ua),e.dot?(l.openBlock(),l.createElementBlock("span",{key:0,"data-color":e.dotColor},null,8,Ha)):l.createCommentVNode("",!0)],6)):l.createCommentVNode("",!0)]),_:1},8,["text","class"]))}}),On=Hn(ja,[["__scopeId","data-v-7ffc3790"]]),Va=l.defineComponent({__name:"ScrollToTop",setup(t){const e=l.ref(!1),n=`--${+new Date}`;let r=null;function o(){r==null||r.scrollTo(0,0)}return l.onMounted(()=>{var i;r=((i=document.getElementById(n))==null?void 0:i.parentElement)??null,r&&r.addEventListener("scroll",function(){e.value=this.scrollTop-this.clientHeight>0})}),(i,s)=>(l.openBlock(),l.createElementBlock("button",{id:n,class:l.normalizeClass(["sf-scrollToTop",{"sf-scrollToTop-visible":e.value}]),onClick:o},null,2))}}),Fa=l.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 tt("sf-content").AddClass(e.class,!!e.class).Build()}function r(){return new tt("sf-content-body").AddClass("sf-content-no-padding",e.disableBodyPadding).Build()}function o(){return new tt("sf-content-header").AddClass("sf-content-no-padding",e.disableHeaderPadding).Build()}function i(){return new tt("sf-content-footer").AddClass("sf-content-no-padding",e.disableFooterPadding).Build()}return(s,a)=>(l.openBlock(),l.createElementBlock("div",{class:l.normalizeClass(n()),style:l.normalizeStyle(e.style)},[l.createElementVNode("div",{class:l.normalizeClass(o())},[l.renderSlot(s.$slots,"header")],2),l.createElementVNode("div",{class:l.normalizeClass(r())},[l.renderSlot(s.$slots,"default"),l.createVNode(Va)],2),l.createElementVNode("div",{class:l.normalizeClass(i())},[l.renderSlot(s.$slots,"footer")],2)],6))}}),za={class:"sf-tab-navigation"},Ka=["data-active"],Wa=["href","onClick"],qa=l.defineComponent({__name:"TabNavigation",props:{tabs:{}},setup(t){const e=t,n=l.ref(null),r=new ResizeObserver(c=>{a()}),o=l.ref(!1),i=l.ref(!1);function s(c=!1){const u=n.value.clientWidth;n.value.scrollLeft+=c?-u:u}function a(){const c=n.value.scrollWidth-n.value.clientWidth;o.value=n.value.scrollLeft>10,i.value=n.value.scrollLeft<c-10}return l.onMounted(()=>{n.value.addEventListener("scroll",a),r.observe(n.value)}),l.onBeforeUnmount(()=>{var c;try{(c=n.value)==null||c.removeEventListener("scroll",a),r.unobserve(n.value),r.disconnect()}catch{}}),(c,u)=>{const f=l.resolveComponent("RouterLink");return l.openBlock(),l.createElementBlock("div",za,[l.createElementVNode("div",{class:l.normalizeClass(["left-arrow",{active:o.value}]),onClick:u[0]||(u[0]=m=>s(!0))},u[2]||(u[2]=[l.createElementVNode("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor",class:"w-6 h-6"},[l.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M15.75 19.5L8.25 12l7.5-7.5"})],-1)]),2),l.createElementVNode("ul",{ref_key:"trackerContainer",ref:n},[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(e.tabs,m=>(l.openBlock(),l.createBlock(f,{to:m.route,custom:!0},{default:l.withCtx(({navigate:b,isActive:_})=>[l.createElementVNode("li",{"data-active":_},[l.renderSlot(c.$slots,"item",{item:m,navigate:b,isActive:_},()=>[l.createElementVNode("a",{href:m.route,class:l.normalizeClass({active:_}),onClick:b},l.toDisplayString(m.text),11,Wa)])],8,Ka)]),_:2},1032,["to"]))),256))],512),l.createElementVNode("div",{class:l.normalizeClass(["right-arrow",{active:i.value}]),onClick:u[1]||(u[1]=m=>s())},u[3]||(u[3]=[l.createElementVNode("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor",class:"w-6 h-6"},[l.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M8.25 4.5l7.5 7.5-7.5 7.5"})],-1)]),2)])}}}),Ga=["id","name","disabled","data-color","form","type"],Ya={class:"sf-button-label"},Ja=l.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 tt(`${e.class??""} sf-button`).AddClass("sf-component-loading",e.loading).AddClass("sf-component-disabled",e.disabled).AddClass("sf-button-small",e.size==="sm").AddClass("sf-button-medium",e.size==="md").AddClass("sf-button-large",e.size==="lg").AddClass("sf-button-filled",e.variant==="filled").AddClass("sf-button-text",e.variant==="text").AddClass("sf-button-outlined",e.variant==="outlined").AddClass("sf-button-with-icon",!!e.icon).AddClass("sf-ripple").Build()}return(r,o)=>e.visible?(l.openBlock(),l.createElementBlock("button",{key:0,id:e.id,name:e.name,class:l.normalizeClass(n()),style:l.normalizeStyle(e.style),disabled:e.disabled||e.loading,"data-color":e.color,form:e.form,type:e.type},[e.icon?(l.openBlock(),l.createBlock(On,{key:0,icon:e.icon,loading:e.loading,size:e.size,color:void 0,"button-props":{tabindex:-1},filled:e.iconFilled},null,8,["icon","loading","size","filled"])):e.loading?(l.openBlock(),l.createBlock(On,{key:1,loading:!0,size:e.size,"button-props":{tabindex:-1}},null,8,["size"])):l.createCommentVNode("",!0),l.createElementVNode("span",Ya,[l.renderSlot(r.$slots,"default")])],14,Ga)):l.createCommentVNode("",!0)}});let Xa=(t=21)=>crypto.getRandomValues(new Uint8Array(t)).reduce((e,n)=>(n&=63,n<36?e+=n.toString(36):n<62?e+=(n-26).toString(36).toUpperCase():n>62?e+="-":e+="_",e),"");const Za=["id"],Qa={class:"sf-drawer-header"},el={class:"sf-drawer-title"},tl={class:"sf-drawer-content"},nl={key:0,class:"sf-drawer-footer"},rl=l.defineComponent({__name:"Drawer",props:{visible:{type:Boolean,default:!1},position:{default:"left"},style:{type:[Boolean,null,String,Object,Array]}},emits:["update:visible","open","before-close"],setup(t,{emit:e}){const n=t,r=e,o=l.useSlots(),i=l.ref(n.visible),s=l.ref(!1),a=l.ref(0),c=Xa();function u(){i.value=!1}function f(w){(w.key==="Escape"||w.code==="Escape")&&u()}function m(){r("open"),window.document.addEventListener("keydown",f,!0)}function b(w){a.value=Di(),w.style.zIndex=`${a.value}`}function _(w){var N;r("before-close"),(N=w==null?void 0:w.parentElement)==null||N.classList.add("sf-mask-overlay-leave")}function v(){window.document.removeEventListener("keydown",f,!0),s.value=!1}function x(){return new tt("sf-mask sf-mask-overlay").AddClass("right",n.position==="right").AddClass("bottom",n.position==="bottom").AddClass("full",n.position==="full").AddClass("sf-mask-overlay-enter",n.visible===!0).Build()}return l.watch(()=>n.visible,w=>{i.value=w}),l.watch(()=>i.value,w=>{r("update:visible",w),w&&(s.value=!0)}),(w,N)=>(l.openBlock(),l.createBlock(l.Teleport,{to:"body"},[s.value?(l.openBlock(),l.createElementBlock("div",{key:0,id:l.unref(c),class:l.normalizeClass(x()),style:l.normalizeStyle({zIndex:a.value-1}),onClick:l.withModifiers(u,["stop"])},[l.createVNode(l.Transition,{name:"sf-drawer",appear:"",onBeforeEnter:b,onEnter:m,onBeforeLeave:_,onAfterLeave:v},{default:l.withCtx(()=>[i.value?(l.openBlock(),l.createElementBlock("div",{key:0,class:l.normalizeClass(["sf-drawer",{"sf-drawer-with-footer":!!l.unref(o).footer}]),style:l.normalizeStyle(n.style),role:"dialog",onClick:N[0]||(N[0]=l.withModifiers(C=>w.void,["stop"]))},[l.createElementVNode("div",Qa,[l.createElementVNode("span",el,[l.renderSlot(w.$slots,"title")]),l.createVNode(On,{button:!0,icon:"close",onClick:l.withModifiers(u,["stop"])})]),l.createElementVNode("div",tl,[l.renderSlot(w.$slots,"default")]),l.unref(o).footer?(l.openBlock(),l.createElementBlock("div",nl,[l.renderSlot(w.$slots,"footer")])):l.createCommentVNode("",!0)],6)):l.createCommentVNode("",!0)]),_:3})],14,Za)):l.createCommentVNode("",!0)]))}}),ol=["data-icon"],il=l.defineComponent({__name:"Message",props:{color:{default:"info"},class:{},style:{type:[Boolean,null,String,Object,Array]},icon:{}},setup(t){const e=t,n=l.computed(()=>{if(e.icon)return e.icon;switch(e.color){case"error":return"cancel";case"info":return"info";case"warn":return"warning";case"success":return"check";case"help":return"help";default:return null}}),r=l.computed(()=>new tt("sf-message").AddClass("sf-message-error",e.color==="error").AddClass("sf-message-info",e.color==="info").AddClass("sf-message-warning",e.color==="warn").AddClass("sf-message-success",e.color==="success").AddClass("sf-message-help",e.color==="help").AddClass("sf-message-primary",e.color==="primary").AddClass("sf-message-secondary",e.color==="secondary").AddClass(e.class).Build());return(o,i)=>(l.openBlock(),l.createElementBlock("div",{class:l.normalizeClass(r.value),"data-icon":n.value},[l.renderSlot(o.$slots,"default")],10,ol))}});function sl(t,e){return t?t.classList?t.classList.contains(e):new RegExp("(^| )"+e+"( |$)","gi").test(t.className):!1}function al(t,e){if(t&&e){const n=r=>{sl(t,r)||(t.classList?t.classList.add(r):t.className+=" "+r)};[e].flat().filter(Boolean).forEach(r=>r.split(" ").forEach(n))}}function ir(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 ll(t,e){return t instanceof HTMLElement?t.offsetWidth:0}function jn(t){return typeof HTMLElement=="object"?t instanceof HTMLElement:t&&typeof t=="object"&&t!==null&&t.nodeType===1&&typeof t.nodeName=="string"}function Ln(t,e={}){if(jn(t)){const n=(r,o)=>{var i,s;const a=(i=t==null?void 0:t.$attrs)!=null&&i[r]?[(s=t==null?void 0:t.$attrs)==null?void 0:s[r]]:[];return[o].flat().reduce((c,u)=>{if(u!=null){const f=typeof u;if(f==="string"||f==="number")c.push(u);else if(f==="object"){const m=Array.isArray(u)?n(r,u):Object.entries(u).map(([b,_])=>r==="style"&&(_||_===0)?`${b.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()}:${_}`:_?b:void 0);c=m.length?c.concat(m.filter(b=>!!b)):c}}return c},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"?Ln(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 cl(t,e={},...n){{const r=document.createElement(t);return Ln(r,e),r.append(...n),r}}function je(t,e){return jn(t)?t.matches(e)?t:t.querySelector(e):null}function qt(t,e){t&&document.activeElement!==t&&t.focus(e)}function Gt(t,e){if(jn(t)){const n=t.getAttribute(e);return isNaN(n)?n==="true"||n==="false"?n==="true":n:+n}}function Lo(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 ul(t){if(t){let e=t.parentNode;return e&&e instanceof ShadowRoot&&e.host&&(e=e.host),e}return null}function dl(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 fl(t,e){return t?t.offsetHeight:0}function ml(t){return!!(t!==null&&typeof t<"u"&&t.nodeName&&ul(t))}function Ro(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 pl(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}function hl(t,e="",n){jn(t)&&n!==null&&n!==void 0&&t.setAttribute(e,n)}function Mi(){const t=new Map;return{on(e,n){let r=t.get(e);return r?r.push(n):r=[n],t.set(e,r),this},off(e,n){let r=t.get(e);return r&&r.splice(r.indexOf(n)>>>0,1),this},emit(e,n){let r=t.get(e);r&&r.slice().map(o=>{o(n)})},clear(){t.clear()}}}function yt(t){return t==null||t===""||Array.isArray(t)&&t.length===0||!(t instanceof Date)&&typeof t=="object"&&Object.keys(t).length===0}function _r(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,s;if(n&&r){if(i=t.length,i!=e.length)return!1;for(o=i;o--!==0;)if(!_r(t[o],e[o]))return!1;return!0}if(n!=r)return!1;var a=t instanceof Date,c=e instanceof Date;if(a!=c)return!1;if(a&&c)return t.getTime()==e.getTime();var u=t instanceof RegExp,f=e instanceof RegExp;if(u!=f)return!1;if(u&&f)return t.toString()==e.toString();var m=Object.keys(t);if(i=m.length,i!==Object.keys(e).length)return!1;for(o=i;o--!==0;)if(!Object.prototype.hasOwnProperty.call(e,m[o]))return!1;for(o=i;o--!==0;)if(s=m[o],!_r(t[s],e[s]))return!1;return!0}return t!==t&&e!==e}function Fr(t){return!!(t&&t.constructor&&t.call&&t.apply)}function Y(t){return!yt(t)}function Pt(t,e,n){return _r(t,e)}function $o(t,e){let n;if(Y(t))try{n=t.findLast(e)}catch{n=[...t].reverse().find(e)}return n}function ut(t,e=!0){return t instanceof Object&&t.constructor===Object&&(e||Object.keys(t).length!==0)}function Ae(t,...e){return Fr(t)?t(...e):t}function _e(t,e=!0){return typeof t=="string"&&(e||t!=="")}function Ve(t){return _e(t)?t.replace(/(-|_)/g,"").toLowerCase():t}function zr(t,e="",n={}){const r=Ve(e).split("."),o=r.shift();return o?ut(t)?zr(Ae(t[Object.keys(t).find(i=>Ve(i)===o)||""],n),r.join("."),n):void 0:Ae(t,n)}function Kr(t,e=!0){return Array.isArray(t)&&(e||t.length!==0)}function Ui(t){return Y(t)&&!isNaN(t)}function gl(t=""){return Y(t)&&t.length===1&&!!t.match(/\S| /)}function nt(t,e){if(e){const n=e.test(t);return e.lastIndex=0,n}return!1}function 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 yl(t){return _e(t,!1)?t[0].toUpperCase()+t.slice(1):t}function Hi(t){return _e(t)?t.replace(/(_)/g,"-").replace(/[A-Z]/g,(e,n)=>n===0?e:"-"+e.toLowerCase()).toLowerCase():t}function Bo(t){return _e(t)?t.replace(/[A-Z]/g,(e,n)=>n===0?e:"."+e.toLowerCase()).toLowerCase():t}var Sn={};function vl(t="pui_id_"){return Sn.hasOwnProperty(t)||(Sn[t]=0),Sn[t]++,`${t}${Sn[t]}`}function Rn(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"pv_id_";return vl(t)}var bl=Object.defineProperty,wl=Object.defineProperties,Sl=Object.getOwnPropertyDescriptors,$n=Object.getOwnPropertySymbols,ji=Object.prototype.hasOwnProperty,Vi=Object.prototype.propertyIsEnumerable,No=(t,e,n)=>e in t?bl(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,jt=(t,e)=>{for(var n in e||(e={}))ji.call(e,n)&&No(t,n,e[n]);if($n)for(var n of $n(e))Vi.call(e,n)&&No(t,n,e[n]);return t},sr=(t,e)=>wl(t,Sl(e)),Vt=(t,e)=>{var n={};for(var r in t)ji.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&$n)for(var r of $n(t))e.indexOf(r)<0&&Vi.call(t,r)&&(n[r]=t[r]);return n},_l=Mi(),et=_l;function Do(t,e){Kr(t)?t.push(...e||[]):ut(t)&&Object.assign(t,e)}function kl(t){return ut(t)&&t.hasOwnProperty("value")&&t.hasOwnProperty("type")?t.value:t}function Mo(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=>Ui(i)?`${i}px`:i).join(" ")}function Cl(t){return t.replaceAll(/ /g,"").replace(/[^\w]/g,"-")}function kr(t="",e=""){return Cl(`${_e(t,!1)&&_e(e,!1)?`${t}-`:t}${e}`)}function Fi(t="",e=""){return`--${kr(t,e)}`}function zi(t,e="",n="",r=[],o){if(_e(t)){const i=/{([^}]*)}/g,s=t.trim();if(nt(s,i)){const a=s.replaceAll(i,f=>{const b=f.replace(/{|}/g,"").split(".").filter(_=>!r.some(v=>nt(_,v)));return`var(${Fi(n,Hi(b.join("-")))}${Y(o)?`, ${o}`:""})`}),c=/(\d+\s+[\+\-\*\/]\s+\d+)/g,u=/var\([^)]+\)/g;return nt(a.replace(u,"0"),c)?`calc(${a})`:a}return Mo(s,e)}else if(Ui(t))return Mo(t,e)}function El(t,e,n){_e(e,!1)&&t.push(`${e}:${n};`)}function Yt(t,e){return t?`${t}{${e}}`:""}var ar=(...t)=>Tl(ee.getTheme(),...t),Tl=(t={},e,n,r="variable")=>{if(e){const{variable:o,options:i}=ee.defaults||{},{prefix:s,transform:a}=(t==null?void 0:t.options)||i||{},u=nt(e,/{([^}]*)}/g)?e:`{${e}}`;return r==="value"||a==="strict"?ee.getTokenValue(e):zi(u,void 0,s,[o.excludedKeyRegex],n)}return""};function Al(t,e={}){const n=ee.defaults.variable,{prefix:r=n.prefix,selector:o=n.selector,excludedKeyRegex:i=n.excludedKeyRegex}=e,s=(u,f="")=>Object.entries(u).reduce((m,[b,_])=>{const v=nt(b,i)?kr(f):kr(f,Hi(b)),x=kl(_);if(ut(x)){const{variables:w,tokens:N}=s(x,v);Do(m.tokens,N),Do(m.variables,w)}else m.tokens.push((r?v.replace(`${r}-`,""):v).replaceAll("-",".")),El(m.variables,Fi(v),zi(x,v,r,[i]));return m},{variables:[],tokens:[]}),{variables:a,tokens:c}=s(t,r);return{value:a,tokens:c,declarations:a.join(""),css:Yt(o,a.join(""))}}var Ue={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 Al(t,{prefix:e==null?void 0:e.prefix})},getCommon({name:t="",theme:e={},params:n,set:r,defaults:o}){var i,s,a,c;const{preset:u,options:f}=e;let m,b,_,v;if(Y(u)){const{primitive:x,semantic:w}=u,N=w||{},{colorScheme:C}=N,T=Vt(N,["colorScheme"]),V=C||{},{dark:Z}=V,ne=Vt(V,["dark"]),X=Y(x)?this._toVariables({primitive:x},f):{},me=Y(T)?this._toVariables({semantic:T},f):{},oe=Y(ne)?this._toVariables({light:ne},f):{},U=Y(Z)?this._toVariables({dark:Z},f):{},[Ee,ye]=[(i=X.declarations)!=null?i:"",X.tokens],[Ne,De]=[(s=me.declarations)!=null?s:"",me.tokens||[]],[ot,Xe]=[(a=oe.declarations)!=null?a:"",oe.tokens||[]],[Me,qe]=[(c=U.declarations)!=null?c:"",U.tokens||[]];m=this.transformCSS(t,Ee,"light","variable",f,r,o),b=ye;const te=this.transformCSS(t,`${Ne}${ot}color-scheme:light`,"light","variable",f,r,o),Le=this.transformCSS(t,`${Me}color-scheme:dark`,"dark","variable",f,r,o);_=`${te}${Le}`,v=[...new Set([...De,...Xe,...qe])]}return{primitive:{css:m,tokens:b},semantic:{css:_,tokens:v}}},getPreset({name:t="",preset:e={},options:n,params:r,set:o,defaults:i,selector:s}){var a,c,u;const f=t.replace("-directive",""),m=e,{colorScheme:b}=m,_=Vt(m,["colorScheme"]),v=b||{},{dark:x}=v,w=Vt(v,["dark"]),N=Y(_)?this._toVariables({[f]:_},n):{},C=Y(w)?this._toVariables({[f]:w},n):{},T=Y(x)?this._toVariables({[f]:x},n):{},[V,Z]=[(a=N.declarations)!=null?a:"",N.tokens||[]],[ne,X]=[(c=C.declarations)!=null?c:"",C.tokens||[]],[me,oe]=[(u=T.declarations)!=null?u:"",T.tokens||[]],U=[...new Set([...Z,...X,...oe])],Ee=this.transformCSS(f,`${V}${ne}`,"light","variable",n,o,i,s),ye=this.transformCSS(f,me,"dark","variable",n,o,i,s);return{css:`${Ee}${ye}`,tokens:U}},getPresetC({name:t="",theme:e={},params:n,set:r,defaults:o}){var i;const{preset:s,options:a}=e,c=(i=s==null?void 0:s.components)==null?void 0:i[t];return this.getPreset({name:t,preset:c,options:a,params:n,set:r,defaults:o})},getPresetD({name:t="",theme:e={},params:n,set:r,defaults:o}){var i;const s=t.replace("-directive",""),{preset:a,options:c}=e,u=(i=a==null?void 0:a.directives)==null?void 0:i[s];return this.getPreset({name:s,preset:u,options:c,params:n,set:r,defaults:o})},getColorSchemeOption(t,e){var n;return this.regex.resolve((n=t.darkModeSelector)!=null?n:e.options.darkModeSelector)},getLayerOrder(t,e={},n,r){const{cssLayer:o}=e;return o?`@layer ${Ae(o.order||"primeui",n)}`:""},getCommonStyleSheet({name:t="",theme:e={},params:n,props:r={},set:o,defaults:i}){const s=this.getCommon({name:t,theme:e,params:n,set:o,defaults:i}),a=Object.entries(r).reduce((c,[u,f])=>c.push(`${u}="${f}"`)&&c,[]).join(" ");return Object.entries(s||{}).reduce((c,[u,f])=>{if(f!=null&&f.css){const m=Xt(f==null?void 0:f.css),b=`${u}-variables`;c.push(`<style type="text/css" data-primevue-style-id="${b}" ${a}>${m}</style>`)}return c},[]).join("")},getStyleSheet({name:t="",theme:e={},params:n,props:r={},set:o,defaults:i}){var s;const a={name:t,theme:e,params:n,set:o,defaults:i},c=(s=t.includes("-directive")?this.getPresetD(a):this.getPresetC(a))==null?void 0:s.css,u=Object.entries(r).reduce((f,[m,b])=>f.push(`${m}="${b}"`)&&f,[]).join(" ");return c?`<style type="text/css" data-primevue-style-id="${t}-variables" ${u}>${Xt(c)}</style>`:""},createTokens(t={},e,n="",r="",o={}){return Object.entries(t).forEach(([i,s])=>{const a=nt(i,e.variable.excludedKeyRegex)?n:n?`${n}.${Bo(i)}`:Bo(i),c=r?`${r}.${i}`:i;ut(s)?this.createTokens(s,e,a,c,o):(o[a]||(o[a]={paths:[],computed(u,f={}){if(u){const m=this.paths.find(b=>b.scheme===u)||this.paths.find(b=>b.scheme==="none");return m==null?void 0:m.computed(u,f.binding)}return this.paths.map(m=>m.computed(m.scheme,f[m.scheme]))}}),o[a].paths.push({path:c,value:s,scheme:c.includes("colorScheme.light")?"light":c.includes("colorScheme.dark")?"dark":"none",computed(u,f={}){const m=/{([^}]*)}/g;let b=s;if(f.name=this.path,f.binding||(f.binding={}),nt(s,m)){const v=s.trim().replaceAll(m,N=>{var C,T;const V=N.replace(/{|}/g,"");return(T=(C=o[V])==null?void 0:C.computed(u,f))==null?void 0:T.value}),x=/(\d+\w*\s+[\+\-\*\/]\s+\d+\w*)/g,w=/var\([^)]+\)/g;b=nt(v.replace(w,"0"),x)?`calc(${v})`:v}return yt(f.binding)&&delete f.binding,{colorScheme:u,path:this.path,paths:f,value:b.includes("undefined")?void 0:b}}}))}),o},getTokenValue(t,e,n){var r;const i=(c=>c.split(".").filter(f=>!nt(f.toLowerCase(),n.variable.excludedKeyRegex)).join("."))(e),s=e.includes("colorScheme.light")?"light":e.includes("colorScheme.dark")?"dark":void 0,a=[(r=t[i])==null?void 0:r.computed(s)].flat().filter(c=>c);return a.length===1?a[0].value:a.reduce((c={},u)=>{const f=u,{colorScheme:m}=f,b=Vt(f,["colorScheme"]);return c[m]=b,c},void 0)},transformCSS(t,e,n,r,o={},i,s,a){if(Y(e)){const{cssLayer:c}=o;if(r!=="style"){const u=this.getColorSchemeOption(o,s),f=a?Yt(a,e):e;e=n==="dark"?u.reduce((m,{selector:b})=>(Y(b)&&(m+=b.includes("[CSS]")?b.replace("[CSS]",f):Yt(b,f)),m),""):Yt(a??":root",e)}if(c){const u={name:"primeui",order:"primeui"};ut(c)&&(u.name=Ae(c.name,{name:t,type:r})),Y(u.name)&&(e=Yt(`@layer ${u.name}`,e),i==null||i.layerNames(u.name))}return e}return""}},ee={defaults:{variable:{prefix:"p",selector:":root",excludedKeyRegex:/^(primitive|semantic|components|directives|variables|colorscheme|light|dark|common|root|states)$/gi},options:{prefix:"p",darkModeSelector:"system",cssLayer:!1}},_theme:void 0,_layerNames:new Set,_loadedStyleNames:new Set,_loadingStyles:new Set,_tokens:{},update(t={}){const{theme:e}=t;e&&(this._theme=sr(jt({},e),{options:jt(jt({},this.defaults.options),e.options)}),this._tokens=Ue.createTokens(this.preset,this.defaults),this.clearLoadedStyleNames())},get theme(){return this._theme},get preset(){var t;return((t=this.theme)==null?void 0:t.preset)||{}},get options(){var t;return((t=this.theme)==null?void 0:t.options)||{}},get tokens(){return this._tokens},getTheme(){return this.theme},setTheme(t){this.update({theme:t}),et.emit("theme:change",t)},getPreset(){return this.preset},setPreset(t){this._theme=sr(jt({},this.theme),{preset:t}),this._tokens=Ue.createTokens(t,this.defaults),this.clearLoadedStyleNames(),et.emit("preset:change",t),et.emit("theme:change",this.theme)},getOptions(){return this.options},setOptions(t){this._theme=sr(jt({},this.theme),{options:t}),this.clearLoadedStyleNames(),et.emit("options:change",t),et.emit("theme:change",this.theme)},getLayerNames(){return[...this._layerNames]},setLayerNames(t){this._layerNames.add(t)},getLoadedStyleNames(){return this._loadedStyleNames},isStyleNameLoaded(t){return this._loadedStyleNames.has(t)},setLoadedStyleName(t){this._loadedStyleNames.add(t)},deleteLoadedStyleName(t){this._loadedStyleNames.delete(t)},clearLoadedStyleNames(){this._loadedStyleNames.clear()},getTokenValue(t){return Ue.getTokenValue(this.tokens,t,this.defaults)},getCommon(t="",e){return Ue.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 Ue.getPresetC(n)},getDirective(t="",e){const n={name:t,theme:this.theme,params:e,defaults:this.defaults,set:{layerNames:this.setLayerNames.bind(this)}};return Ue.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 Ue.getPreset(o)},getLayerOrderCSS(t=""){return Ue.getLayerOrder(t,this.options,{names:this.getLayerNames()},this.defaults)},transformCSS(t="",e,n="style",r){return Ue.transformCSS(t,e,r,n,this.options,{layerNames:this.setLayerNames.bind(this)},this.defaults)},getCommonStyleSheet(t="",e,n={}){return Ue.getCommonStyleSheet({name:t,theme:this.theme,params:e,props:n,defaults:this.defaults,set:{layerNames:this.setLayerNames.bind(this)}})},getStyleSheet(t,e,n={}){return Ue.getStyleSheet({name:t,theme:this.theme,params:e,props:n,defaults:this.defaults,set:{layerNames:this.setLayerNames.bind(this)}})},onStyleMounted(t){this._loadingStyles.add(t)},onStyleUpdated(t){this._loadingStyles.add(t)},onStyleLoaded(t,{name:e}){this._loadingStyles.size&&(this._loadingStyles.delete(e),et.emit(`theme:${e}:load`,t),!this._loadingStyles.size&&et.emit("theme:load"))}},lt={_loadedStyleNames:new Set,getLoadedStyleNames:function(){return this._loadedStyleNames},isStyleNameLoaded:function(e){return this._loadedStyleNames.has(e)},setLoadedStyleName:function(e){this._loadedStyleNames.add(e)},deleteLoadedStyleName:function(e){this._loadedStyleNames.delete(e)},clearLoadedStyleNames:function(){this._loadedStyleNames.clear()}};function en(t){"@babel/helpers - typeof";return en=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},en(t)}function Uo(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 Ho(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?Uo(Object(n),!0).forEach(function(r){Pl(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Uo(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function Pl(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=xl(t,"string");return en(e)=="symbol"?e:e+""}function xl(t,e){if(en(t)!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e||"default");if(en(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function Ol(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;l.getCurrentInstance()?l.onMounted(t):e?t():l.nextTick(t)}var Ll=0;function Rl(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=l.ref(!1),r=l.ref(t),o=l.ref(null),i=pl()?window.document:void 0,s=e.document,a=s===void 0?i:s,c=e.immediate,u=c===void 0?!0:c,f=e.manual,m=f===void 0?!1:f,b=e.name,_=b===void 0?"style_".concat(++Ll):b,v=e.id,x=v===void 0?void 0:v,w=e.media,N=w===void 0?void 0:w,C=e.nonce,T=C===void 0?void 0:C,V=e.first,Z=V===void 0?!1:V,ne=e.onMounted,X=ne===void 0?void 0:ne,me=e.onUpdated,oe=me===void 0?void 0:me,U=e.onLoad,Ee=U===void 0?void 0:U,ye=e.props,Ne=ye===void 0?{}:ye,De=function(){},ot=function(qe){var te=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(a){var Le=Ho(Ho({},Ne),te),d=Le.name||_,h=Le.id||x,S=Le.nonce||T;o.value=a.querySelector('style[data-primevue-style-id="'.concat(d,'"]'))||a.getElementById(h)||a.createElement("style"),o.value.isConnected||(r.value=qe||t,Ln(o.value,{type:"text/css",id:h,media:N,nonce:S}),Z?a.head.prepend(o.value):a.head.appendChild(o.value),hl(o.value,"data-primevue-style-id",d),Ln(o.value,Le),o.value.onload=function(P){return Ee==null?void 0:Ee(P,{name:d})},X==null||X(d)),!n.value&&(De=l.watch(r,function(P){o.value.textContent=P,oe==null||oe(d)},{immediate:!0}),n.value=!0)}},Xe=function(){!a||!n.value||(De(),ml(o.value)&&a.head.removeChild(o.value),n.value=!1)};return u&&!m&&Ol(ot),{id:x,name:_,el:o,css:r,unload:Xe,load:ot,isLoaded:l.readonly(n)}}function tn(t){"@babel/helpers - typeof";return tn=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},tn(t)}function jo(t,e){return Dl(t)||Nl(t,e)||Bl(t,e)||$l()}function $l(){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
|
+
"use strict";var Zi=Object.defineProperty;var Ji=(t,e,n)=>e in t?Zi(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n;var He=(t,e,n)=>Ji(t,typeof e!="symbol"?e+"":e,n);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const s=require("vue");class Qi{constructor(){He(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 es=new Qi,ao=()=>es,Cn=(t,e)=>{const n=t.__vccOpts||t;for(const[o,r]of e)n[o]=r;return n},ts={},ns={xmlns:"http://www.w3.org/2000/svg",height:"48",viewBox:"0 -960 960 960",width:"48",class:"sf-svg-icon"};function os(t,e){return s.openBlock(),s.createElementBlock("svg",ns,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 rs=Cn(ts,[["render",os]]);class is{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 ct=new is,ss=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(ct).Toggle&&s.unref(ct).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 Vr(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 lo=s.defineComponent({__name:"Tooltip",props:{text:{}},setup(t){const e=t;class n{constructor(){He(this,"wrapper",null);He(this,"inner",null)}Render(){this.wrapper=document.createElement("div"),this.wrapper.classList.add("sf-tooltip-wrapper"),this.wrapper.style.zIndex=`${Vr()??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(){this.wrapper.classList.remove("visible"),document.body.removeChild(this.wrapper),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))}}),as={id:"sf-layout"},ls={class:"title"},cs={class:"sf-layout-nav-content"},us={id:"sf-layout-content"},ds=s.defineComponent({__name:"Layout",emits:["mounted","logout"],setup(t,{emit:e}){const n=ao(),o=e;return s.onMounted(()=>{o("mounted")}),(r,i)=>(s.openBlock(),s.createElementBlock("div",as,[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(rs)],2),s.createElementVNode("div",ls,[s.renderSlot(r.$slots,"title")]),s.renderSlot(r.$slots,"action"),s.createVNode(lo,{text:"Tema"},{default:s.withCtx(()=>[s.createVNode(ss)]),_:1})]),s.createElementVNode("nav",{class:s.normalizeClass({visible:s.unref(n).IsVisible})},[s.createElementVNode("div",cs,[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",us,[s.renderSlot(r.$slots,"content")])],2)]))}}),fs={},ms={class:"sf-loading-circle"};function ps(t,e){return s.openBlock(),s.createElementBlock("div",ms,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 hs=Cn(fs,[["render",ps]]);class Ye{constructor(e){He(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 gs=["disabled","tabindex"],vs=["data-color"],ys=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?lo:"div"),o=s.computed(()=>new Ye(e.tooltip?"":"display-content").AddClass("sf-component-loading",e.loading).AddClass("sf-component-disabled",e.disabled).Build()),r=s.computed(()=>new Ye(`${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(hs,{key:0})):(s.openBlock(),s.createElementBlock(s.Fragment,{key:1},[s.createTextVNode(s.toDisplayString(e.icon),1)],64))],16,gs),e.dot?(s.openBlock(),s.createElementBlock("span",{key:0,"data-color":e.dotColor},null,8,vs)):s.createCommentVNode("",!0)],6)):s.createCommentVNode("",!0)]),_:1},8,["text","class"]))}}),vn=Cn(ys,[["__scopeId","data-v-7ffc3790"]]),bs=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))}}),ws=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 Ye("sf-content").AddClass(e.class,!!e.class).Build()}function o(){return new Ye("sf-content-body").AddClass("sf-content-no-padding",e.disableBodyPadding).Build()}function r(){return new Ye("sf-content-header").AddClass("sf-content-no-padding",e.disableHeaderPadding).Build()}function i(){return new Ye("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(bs)],2),s.createElementVNode("div",{class:s.normalizeClass(i())},[s.renderSlot(c.$slots,"footer")],2)],6))}}),_s={class:"sf-tab-navigation"},ks=["data-active"],Ss=["href","onClick"],Cs=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",_s,[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:b,isActive:C})=>[s.createElementVNode("li",{"data-active":C},[s.renderSlot(l.$slots,"item",{item:h,navigate:b,isActive:C},()=>[s.createElementVNode("a",{href:h.route,class:s.normalizeClass({active:C}),onClick:b},s.toDisplayString(h.text),11,Ss)])],8,ks)]),_: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)])}}}),Is=["id","name","disabled","data-color","form","type"],Ts={class:"sf-button-label"},Es=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 Ye(`${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(vn,{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(vn,{key:1,loading:!0,size:e.size,"button-props":{tabindex:-1}},null,8,["size"])):s.createCommentVNode("",!0),s.createElementVNode("span",Ts,[s.renderSlot(o.$slots,"default")])],14,Is)):s.createCommentVNode("",!0)}}),Ps={class:"sf-drawer-header"},As={class:"sf-drawer-title"},xs={class:"sf-drawer-content"},Ls={key:0,class:"sf-drawer-footer"},Os=s.defineComponent({__name:"Drawer",props:{visible:{type:Boolean,default:!1},position:{default:"left"},style:{type:[Boolean,null,String,Object,Array]}},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(x){(x.key==="Escape"||x.code==="Escape")&&d()}function h(){o("open"),window.document.addEventListener("keydown",m,!0)}function b(x){a.value=Vr(),x.style.zIndex=`${a.value}`}function C(x){var M;o("before-close"),(M=x==null?void 0:x.parentElement)==null||M.classList.add("sf-mask-overlay-leave")}function T(){window.document.removeEventListener("keydown",m,!0),c.value=!1}function $(){return new Ye("sf-mask sf-mask-overlay").AddClass("right",n.position==="right").AddClass("bottom",n.position==="bottom").AddClass("full",n.position==="full").AddClass("sf-mask-overlay-enter",n.visible===!0).Build()}return s.watch(()=>n.visible,x=>{i.value=x}),s.watch(()=>i.value,x=>{o("update:visible",x),x&&(c.value=!0)}),(x,M)=>(s.openBlock(),s.createBlock(s.Teleport,{to:"body"},[c.value?(s.openBlock(),s.createElementBlock("div",{key:0,id:l,class:s.normalizeClass($()),style:s.normalizeStyle({zIndex:a.value-1}),onClick:s.withModifiers(d,["stop"])},[s.createVNode(s.Transition,{name:"sf-drawer",appear:"",onBeforeEnter:b,onEnter:h,onBeforeLeave:C,onAfterLeave:T},{default:s.withCtx(()=>[i.value?(s.openBlock(),s.createElementBlock("div",{key:0,class:s.normalizeClass(["sf-drawer",{"sf-drawer-with-footer":!!s.unref(r).footer}]),style:s.normalizeStyle(n.style),role:"dialog",onClick:M[0]||(M[0]=s.withModifiers(I=>x.void,["stop"]))},[s.createElementVNode("div",Ps,[s.createElementVNode("span",As,[s.renderSlot(x.$slots,"title")]),s.createVNode(vn,{button:!0,icon:"close",onClick:s.withModifiers(d,["stop"])})]),s.createElementVNode("div",xs,[s.renderSlot(x.$slots,"default")]),s.unref(r).footer?(s.openBlock(),s.createElementBlock("div",Ls,[s.renderSlot(x.$slots,"footer")])):s.createCommentVNode("",!0)],6)):s.createCommentVNode("",!0)]),_:3})],6)):s.createCommentVNode("",!0)]))}}),$s=["data-icon"],Bs=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 Ye("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,$s))}});function Ns(t,e){return t?t.classList?t.classList.contains(e):new RegExp("(^| )"+e+"( |$)","gi").test(t.className):!1}function Ds(t,e){if(t&&e){const n=o=>{Ns(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 Ms(t,e){return t instanceof HTMLElement?t.offsetWidth:0}function In(t){return typeof HTMLElement=="object"?t instanceof HTMLElement:t&&typeof t=="object"&&t!==null&&t.nodeType===1&&typeof t.nodeName=="string"}function yn(t,e={}){if(In(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(([b,C])=>o==="style"&&(C||C===0)?`${b.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()}:${C}`:C?b:void 0);l=h.length?l.concat(h.filter(b=>!!b)):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"?yn(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 Rs(t,e={},...n){{const o=document.createElement(t);return yn(o,e),o.append(...n),o}}function Be(t,e){return In(t)?t.matches(e)?t:t.querySelector(e):null}function Dt(t,e){t&&document.activeElement!==t&&t.focus(e)}function Mt(t,e){if(In(t)){const n=t.getAttribute(e);return isNaN(n)?n==="true"||n==="false"?n==="true":n:+n}}function qo(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 Us(t){if(t){let e=t.parentNode;return e&&e instanceof ShadowRoot&&e.host&&(e=e.host),e}return null}function Vs(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 Hs(t,e){return t?t.offsetHeight:0}function js(t){return!!(t!==null&&typeof t<"u"&&t.nodeName&&Us(t))}function Yo(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 Fs(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}function Ks(t,e="",n){In(t)&&n!==null&&n!==void 0&&t.setAttribute(e,n)}function Hr(){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 lt(t){return t==null||t===""||Array.isArray(t)&&t.length===0||!(t instanceof Date)&&typeof t=="object"&&Object.keys(t).length===0}function Xn(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(!Xn(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],!Xn(t[c],e[c]))return!1;return!0}return t!==t&&e!==e}function co(t){return!!(t&&t.constructor&&t.call&&t.apply)}function W(t){return!lt(t)}function yt(t,e,n){return Xn(t,e)}function Xo(t,e){let n;if(W(t))try{n=t.findLast(e)}catch{n=[...t].reverse().find(e)}return n}function ot(t,e=!0){return t instanceof Object&&t.constructor===Object&&(e||Object.keys(t).length!==0)}function ke(t,...e){return co(t)?t(...e):t}function ye(t,e=!0){return typeof t=="string"&&(e||t!=="")}function Ne(t){return ye(t)?t.replace(/(-|_)/g,"").toLowerCase():t}function uo(t,e="",n={}){const o=Ne(e).split("."),r=o.shift();return r?ot(t)?uo(ke(t[Object.keys(t).find(i=>Ne(i)===r)||""],n),o.join("."),n):void 0:ke(t,n)}function fo(t,e=!0){return Array.isArray(t)&&(e||t.length!==0)}function jr(t){return W(t)&&!isNaN(t)}function zs(t=""){return W(t)&&t.length===1&&!!t.match(/\S| /)}function Xe(t,e){if(e){const n=e.test(t);return e.lastIndex=0,n}return!1}function Vt(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 Ws(t){return ye(t,!1)?t[0].toUpperCase()+t.slice(1):t}function Fr(t){return ye(t)?t.replace(/(_)/g,"-").replace(/[A-Z]/g,(e,n)=>n===0?e:"-"+e.toLowerCase()).toLowerCase():t}function Zo(t){return ye(t)?t.replace(/[A-Z]/g,(e,n)=>n===0?e:"."+e.toLowerCase()).toLowerCase():t}var un={};function Gs(t="pui_id_"){return un.hasOwnProperty(t)||(un[t]=0),un[t]++,`${t}${un[t]}`}function bn(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"pv_id_";return Gs(t)}var qs=Object.defineProperty,Ys=Object.defineProperties,Xs=Object.getOwnPropertyDescriptors,wn=Object.getOwnPropertySymbols,Kr=Object.prototype.hasOwnProperty,zr=Object.prototype.propertyIsEnumerable,Jo=(t,e,n)=>e in t?qs(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,At=(t,e)=>{for(var n in e||(e={}))Kr.call(e,n)&&Jo(t,n,e[n]);if(wn)for(var n of wn(e))zr.call(e,n)&&Jo(t,n,e[n]);return t},Rn=(t,e)=>Ys(t,Xs(e)),xt=(t,e)=>{var n={};for(var o in t)Kr.call(t,o)&&e.indexOf(o)<0&&(n[o]=t[o]);if(t!=null&&wn)for(var o of wn(t))e.indexOf(o)<0&&zr.call(t,o)&&(n[o]=t[o]);return n},Zs=Hr(),qe=Zs;function Qo(t,e){fo(t)?t.push(...e||[]):ot(t)&&Object.assign(t,e)}function Js(t){return ot(t)&&t.hasOwnProperty("value")&&t.hasOwnProperty("type")?t.value:t}function er(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=>jr(i)?`${i}px`:i).join(" ")}function Qs(t){return t.replaceAll(/ /g,"").replace(/[^\w]/g,"-")}function Zn(t="",e=""){return Qs(`${ye(t,!1)&&ye(e,!1)?`${t}-`:t}${e}`)}function Wr(t="",e=""){return`--${Zn(t,e)}`}function Gr(t,e="",n="",o=[],r){if(ye(t)){const i=/{([^}]*)}/g,c=t.trim();if(Xe(c,i)){const a=c.replaceAll(i,m=>{const b=m.replace(/{|}/g,"").split(".").filter(C=>!o.some(T=>Xe(C,T)));return`var(${Wr(n,Fr(b.join("-")))}${W(r)?`, ${r}`:""})`}),l=/(\d+\s+[\+\-\*\/]\s+\d+)/g,d=/var\([^)]+\)/g;return Xe(a.replace(d,"0"),l)?`calc(${a})`:a}return er(c,e)}else if(jr(t))return er(t,e)}function ea(t,e,n){ye(e,!1)&&t.push(`${e}:${n};`)}function Rt(t,e){return t?`${t}{${e}}`:""}var Un=(...t)=>ta(X.getTheme(),...t),ta=(t={},e,n,o="variable")=>{if(e){const{variable:r,options:i}=X.defaults||{},{prefix:c,transform:a}=(t==null?void 0:t.options)||i||{},d=Xe(e,/{([^}]*)}/g)?e:`{${e}}`;return o==="value"||a==="strict"?X.getTokenValue(e):Gr(d,void 0,c,[r.excludedKeyRegex],n)}return""};function na(t,e={}){const n=X.defaults.variable,{prefix:o=n.prefix,selector:r=n.selector,excludedKeyRegex:i=n.excludedKeyRegex}=e,c=(d,m="")=>Object.entries(d).reduce((h,[b,C])=>{const T=Xe(b,i)?Zn(m):Zn(m,Fr(b)),$=Js(C);if(ot($)){const{variables:x,tokens:M}=c($,T);Qo(h.tokens,M),Qo(h.variables,x)}else h.tokens.push((o?T.replace(`${o}-`,""):T).replaceAll("-",".")),ea(h.variables,Wr(T),Gr($,T,o,[i]));return h},{variables:[],tokens:[]}),{variables:a,tokens:l}=c(t,o);return{value:a,tokens:l,declarations:a.join(""),css:Rt(r,a.join(""))}}var Oe={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 na(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,b,C,T;if(W(d)){const{primitive:$,semantic:x}=d,M=x||{},{colorScheme:I}=M,B=xt(M,["colorScheme"]),j=I||{},{dark:Z}=j,me=xt(j,["dark"]),Q=W($)?this._toVariables({primitive:$},m):{},xe=W(B)?this._toVariables({semantic:B},m):{},we=W(me)?this._toVariables({light:me},m):{},q=W(Z)?this._toVariables({dark:Z},m):{},[J,pe]=[(i=Q.declarations)!=null?i:"",Q.tokens],[Le,_e]=[(c=xe.declarations)!=null?c:"",xe.tokens||[]],[Je,Ke]=[(a=we.declarations)!=null?a:"",we.tokens||[]],[Me,Re]=[(l=q.declarations)!=null?l:"",q.tokens||[]];h=this.transformCSS(t,J,"light","variable",m,o,r),b=pe;const it=this.transformCSS(t,`${Le}${Je}color-scheme:light`,"light","variable",m,o,r),Te=this.transformCSS(t,`${Me}color-scheme:dark`,"dark","variable",m,o,r);C=`${it}${Te}`,T=[...new Set([..._e,...Ke,...Re])]}return{primitive:{css:h,tokens:b},semantic:{css:C,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:b}=h,C=xt(h,["colorScheme"]),T=b||{},{dark:$}=T,x=xt(T,["dark"]),M=W(C)?this._toVariables({[m]:C},n):{},I=W(x)?this._toVariables({[m]:x},n):{},B=W($)?this._toVariables({[m]:$},n):{},[j,Z]=[(a=M.declarations)!=null?a:"",M.tokens||[]],[me,Q]=[(l=I.declarations)!=null?l:"",I.tokens||[]],[xe,we]=[(d=B.declarations)!=null?d:"",B.tokens||[]],q=[...new Set([...Z,...Q,...we])],J=this.transformCSS(m,`${j}${me}`,"light","variable",n,r,i,c),pe=this.transformCSS(m,xe,"dark","variable",n,r,i,c);return{css:`${J}${pe}`,tokens:q}},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=Vt(m==null?void 0:m.css),b=`${d}-variables`;l.push(`<style type="text/css" data-primevue-style-id="${b}" ${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,b])=>m.push(`${h}="${b}"`)&&m,[]).join(" ");return l?`<style type="text/css" data-primevue-style-id="${t}-variables" ${d}>${Vt(l)}</style>`:""},createTokens(t={},e,n="",o="",r={}){return Object.entries(t).forEach(([i,c])=>{const a=Xe(i,e.variable.excludedKeyRegex)?n:n?`${n}.${Zo(i)}`:Zo(i),l=o?`${o}.${i}`:i;ot(c)?this.createTokens(c,e,a,l,r):(r[a]||(r[a]={paths:[],computed(d,m={}){if(d){const h=this.paths.find(b=>b.scheme===d)||this.paths.find(b=>b.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 b=c;if(m.name=this.path,m.binding||(m.binding={}),Xe(c,h)){const T=c.trim().replaceAll(h,M=>{var I,B;const j=M.replace(/{|}/g,"");return(B=(I=r[j])==null?void 0:I.computed(d,m))==null?void 0:B.value}),$=/(\d+\w*\s+[\+\-\*\/]\s+\d+\w*)/g,x=/var\([^)]+\)/g;b=Xe(T.replace(x,"0"),$)?`calc(${T})`:T}return lt(m.binding)&&delete m.binding,{colorScheme:d,path:this.path,paths:m,value:b.includes("undefined")?void 0:b}}}))}),r},getTokenValue(t,e,n){var o;const i=(l=>l.split(".").filter(m=>!Xe(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,b=xt(m,["colorScheme"]);return l[h]=b,l},void 0)},transformCSS(t,e,n,o,r={},i,c,a){if(W(e)){const{cssLayer:l}=r;if(o!=="style"){const d=this.getColorSchemeOption(r,c),m=a?Rt(a,e):e;e=n==="dark"?d.reduce((h,{selector:b})=>(W(b)&&(h+=b.includes("[CSS]")?b.replace("[CSS]",m):Rt(b,m)),h),""):Rt(a??":root",e)}if(l){const d={name:"primeui",order:"primeui"};ot(l)&&(d.name=ke(l.name,{name:t,type:o})),W(d.name)&&(e=Rt(`@layer ${d.name}`,e),i==null||i.layerNames(d.name))}return e}return""}},X={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=Rn(At({},e),{options:At(At({},this.defaults.options),e.options)}),this._tokens=Oe.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=Rn(At({},this.theme),{preset:t}),this._tokens=Oe.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=Rn(At({},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 Oe.getTokenValue(this.tokens,t,this.defaults)},getCommon(t="",e){return Oe.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 Oe.getPresetC(n)},getDirective(t="",e){const n={name:t,theme:this.theme,params:e,defaults:this.defaults,set:{layerNames:this.setLayerNames.bind(this)}};return Oe.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 Oe.getPreset(r)},getLayerOrderCSS(t=""){return Oe.getLayerOrder(t,this.options,{names:this.getLayerNames()},this.defaults)},transformCSS(t="",e,n="style",o){return Oe.transformCSS(t,e,o,n,this.options,{layerNames:this.setLayerNames.bind(this)},this.defaults)},getCommonStyleSheet(t="",e,n={}){return Oe.getCommonStyleSheet({name:t,theme:this.theme,params:e,props:n,defaults:this.defaults,set:{layerNames:this.setLayerNames.bind(this)}})},getStyleSheet(t,e,n={}){return Oe.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 Ft(t){"@babel/helpers - typeof";return Ft=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Ft(t)}function tr(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 nr(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?tr(Object(n),!0).forEach(function(o){oa(t,o,n[o])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):tr(Object(n)).forEach(function(o){Object.defineProperty(t,o,Object.getOwnPropertyDescriptor(n,o))})}return t}function oa(t,e,n){return(e=ra(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function ra(t){var e=ia(t,"string");return Ft(e)=="symbol"?e:e+""}function ia(t,e){if(Ft(t)!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var o=n.call(t,e||"default");if(Ft(o)!="object")return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function sa(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;s.getCurrentInstance()?s.onMounted(t):e?t():s.nextTick(t)}var aa=0;function la(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=Fs()?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,b=e.name,C=b===void 0?"style_".concat(++aa):b,T=e.id,$=T===void 0?void 0:T,x=e.media,M=x===void 0?void 0:x,I=e.nonce,B=I===void 0?void 0:I,j=e.first,Z=j===void 0?!1:j,me=e.onMounted,Q=me===void 0?void 0:me,xe=e.onUpdated,we=xe===void 0?void 0:xe,q=e.onLoad,J=q===void 0?void 0:q,pe=e.props,Le=pe===void 0?{}:pe,_e=function(){},Je=function(Re){var it=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(a){var Te=nr(nr({},Le),it),u=Te.name||C,p=Te.id||$,y=Te.nonce||B;r.value=a.querySelector('style[data-primevue-style-id="'.concat(u,'"]'))||a.getElementById(p)||a.createElement("style"),r.value.isConnected||(o.value=Re||t,yn(r.value,{type:"text/css",id:p,media:M,nonce:y}),Z?a.head.prepend(r.value):a.head.appendChild(r.value),Ks(r.value,"data-primevue-style-id",u),yn(r.value,Te),r.value.onload=function(S){return J==null?void 0:J(S,{name:u})},Q==null||Q(u)),!n.value&&(_e=s.watch(o,function(S){r.value.textContent=S,we==null||we(u)},{immediate:!0}),n.value=!0)}},Ke=function(){!a||!n.value||(_e(),js(r.value)&&a.head.removeChild(r.value),n.value=!1)};return d&&!h&&sa(Je),{id:$,name:C,el:r,css:o,unload:Ke,load:Je,isLoaded:s.readonly(n)}}function Kt(t){"@babel/helpers - typeof";return Kt=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Kt(t)}function or(t,e){return fa(t)||da(t,e)||ua(t,e)||ca()}function ca(){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 ua(t,e){if(t){if(typeof t=="string")return rr(t,e);var n={}.toString.call(t).slice(8,-1);return n==="Object"&&t.constructor&&(n=t.constructor.name),n==="Map"||n==="Set"?Array.from(t):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?rr(t,e):void 0}}function rr(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 da(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 fa(t){if(Array.isArray(t))return t}function ir(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 Vn(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?ir(Object(n),!0).forEach(function(o){ma(t,o,n[o])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):ir(Object(n)).forEach(function(o){Object.defineProperty(t,o,Object.getOwnPropertyDescriptor(n,o))})}return t}function ma(t,e,n){return(e=pa(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function pa(t){var e=ha(t,"string");return Kt(e)=="symbol"?e:e+""}function ha(t,e){if(Kt(t)!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var o=n.call(t,e||"default");if(Kt(o)!="object")return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}var ga=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
|
+
`)},va=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 Wi(t,e){if(t){if(typeof t=="string")return Ko(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)?Ko(t,e):void 0}}function Ko(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 ql(t,e){var n=t==null?null:typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(n!=null){var r,o,i,s,a=[],c=!0,u=!1;try{if(i=(n=n.call(t)).next,e===0){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=i.call(n)).done)&&(a.push(r.value),a.length!==e);c=!0);}catch(f){u=!0,o=f}finally{try{if(!c&&n.return!=null&&(s=n.return(),Object(s)!==s))return}finally{if(u)throw o}}return a}}function qi(t){if(Array.isArray(t))return t}function Wo(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?Wo(Object(n),!0).forEach(function(r){An(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Wo(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function An(t,e,n){return(e=Gl(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function Gl(t){var e=Yl(t,"string");return nn(e)=="symbol"?e:e+""}function Yl(t,e){if(nn(t)!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e||"default");if(nn(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}var Vn={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,s,a,c,u,f,m,b=(e=this.pt)===null||e===void 0?void 0:e._usept,_=b?(n=this.pt)===null||n===void 0||(n=n.originalValue)===null||n===void 0?void 0:n[this.$.type.name]:void 0,v=b?(r=this.pt)===null||r===void 0||(r=r.value)===null||r===void 0?void 0:r[this.$.type.name]:this.pt;(o=v||_)===null||o===void 0||(o=o.hooks)===null||o===void 0||(i=o.onBeforeCreate)===null||i===void 0||i.call(o);var x=(s=this.$primevueConfig)===null||s===void 0||(s=s.pt)===null||s===void 0?void 0:s._usept,w=x?(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,N=x?(c=this.$primevue)===null||c===void 0||(c=c.config)===null||c===void 0||(c=c.pt)===null||c===void 0?void 0:c.value:(u=this.$primevue)===null||u===void 0||(u=u.config)===null||u===void 0?void 0:u.pt;(f=N||w)===null||f===void 0||(f=f[this.$.type.name])===null||f===void 0||(f=f.hooks)===null||f===void 0||(m=f.onBeforeCreate)===null||m===void 0||m.call(f)},created:function(){this._hook("onCreated")},beforeMount:function(){this._loadStyles(),this._hook("onBeforeMount")},mounted:function(){this.rootEl=je(this.$el,'[data-pc-name="'.concat(Ve(this.$.type.name),'"]')),this.rootEl&&(this.rootEl.setAttribute(this.$attrSelector,""),this.rootEl.$pc=W({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 Fr(e)?e.apply(void 0,r):l.mergeProps.apply(void 0,r)},_loadStyles:function(){var e=this,n=function(){lt.isStyleNameLoaded("base")||(he.loadCSS(e.$styleOptions),e._loadGlobalStyles(),lt.setLoadedStyleName("base")),e._loadThemeStyles()};n(),this._themeChangeListener(n)},_loadCoreStyles:function(){var e,n;!lt.isStyleNameLoaded((e=this.$style)===null||e===void 0?void 0:e.name)&&(n=this.$style)!==null&&n!==void 0&&n.name&&(zo.loadCSS(this.$styleOptions),this.$options.style&&this.$style.loadCSS(this.$styleOptions),lt.setLoadedStyleName(this.$style.name))},_loadGlobalStyles:function(){var e=this._useGlobalPT(this._getOptionValue,"global.css",this.$params);Y(e)&&he.load(e,W({name:"global"},this.$styleOptions))},_loadThemeStyles:function(){var e,n;if(!this.isUnstyled){if(!ee.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))||{},s=i.primitive,a=i.semantic;he.load(s==null?void 0:s.css,W({name:"primitive-variables"},this.$styleOptions)),he.load(a==null?void 0:a.css,W({name:"semantic-variables"},this.$styleOptions)),he.loadTheme(W({name:"global-style"},this.$styleOptions)),ee.setLoadedStyleName("common")}if(!ee.isStyleNameLoaded((e=this.$style)===null||e===void 0?void 0:e.name)&&(n=this.$style)!==null&&n!==void 0&&n.name){var c,u,f,m,b=((c=this.$style)===null||c===void 0||(u=c.getComponentTheme)===null||u===void 0?void 0:u.call(c))||{},_=b.css;(f=this.$style)===null||f===void 0||f.load(_,W({name:"".concat(this.$style.name,"-variables")},this.$styleOptions)),(m=this.$style)===null||m===void 0||m.loadTheme(W({name:"".concat(this.$style.name,"-style")},this.$styleOptions)),ee.setLoadedStyleName(this.$style.name)}if(!ee.isStyleNameLoaded("layer-order")){var v,x,w=(v=this.$style)===null||v===void 0||(x=v.getLayerOrderThemeCSS)===null||x===void 0?void 0:x.call(v);he.load(w,W({name:"layer-order",first:!0},this.$styleOptions)),ee.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,"]")))||{},s=i.css,a=(o=this.$style)===null||o===void 0?void 0:o.load(s,W({name:"".concat(this.$attrSelector,"-").concat(this.$style.name)},this.$styleOptions));this.scopedStyleEl=a.el},_unloadScopedThemeStyles:function(){var e;(e=this.scopedStyleEl)===null||e===void 0||(e=e.value)===null||e===void 0||e.remove()},_themeChangeListener:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:function(){};lt.clearLoadedStyleNames(),et.on("theme:change",e)},_getHostInstance:function(e){return e?this.$options.hostName?e.$.type.name===this.$options.hostName?e:this._getHostInstance(e.$parentInstance):e.$parentInstance:void 0},_getPropValue:function(e){var n;return this[e]||((n=this._getHostInstance(this))===null||n===void 0?void 0:n[e])},_getOptionValue:function(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"",r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return zr(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,s=/./g.test(r)&&!!o[r.split(".")[0]],a=this._getPropValue("ptOptions")||((e=this.$primevueConfig)===null||e===void 0?void 0:e.ptOptions)||{},c=a.mergeSections,u=c===void 0?!0:c,f=a.mergeProps,m=f===void 0?!1:f,b=i?s?this._useGlobalPT(this._getPTClassValue,r,o):this._useDefaultPT(this._getPTClassValue,r,o):void 0,_=s?void 0:this._getPTSelf(n,this._getPTClassValue,r,W(W({},o),{},{global:b||{}})),v=this._getPTDatasets(r);return u||!u&&_?m?this._mergeProps(m,b,_,v):W(W(W({},b),_),v):W(W({},_),v)},_getPTSelf:function(){for(var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];return l.mergeProps(this._usePT.apply(this,[this._getPT(e,this.$name)].concat(r)),this._usePT.apply(this,[this.$_attrsPT].concat(r)))},_getPTDatasets:function(){var e,n,r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",o="data-pc-",i=r==="root"&&Y((e=this.pt)===null||e===void 0?void 0:e["data-pc-section"]);return r!=="transition"&&W(W({},r==="root"&&W(An({},"".concat(o,"name"),Ve(i?(n=this.pt)===null||n===void 0?void 0:n["data-pc-section"]:this.$.type.name)),i&&An({},"".concat(o,"extend"),Ve(this.$.type.name)))),{},An({},"".concat(o,"section"),Ve(r)))},_getPTClassValue:function(){var e=this._getOptionValue.apply(this,arguments);return _e(e)||Kr(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 c,u=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,f=o?o(a):a,m=Ve(r),b=Ve(n.$name);return(c=u?m!==b?f==null?void 0:f[m]:void 0:f==null?void 0:f[m])!==null&&c!==void 0?c:f};return e!=null&&e.hasOwnProperty("_usept")?{_usept:e._usept,originalValue:i(e.originalValue),value:i(e.value)}:i(e,!0)},_usePT:function(e,n,r,o){var i=function(x){return n(x,r,o)};if(e!=null&&e.hasOwnProperty("_usept")){var s,a=e._usept||((s=this.$primevueConfig)===null||s===void 0?void 0:s.ptOptions)||{},c=a.mergeSections,u=c===void 0?!0:c,f=a.mergeProps,m=f===void 0?!1:f,b=i(e.originalValue),_=i(e.value);return b===void 0&&_===void 0?void 0:_e(_)?_:_e(b)?b:u||!u&&_?m?this._mergeProps(m,b,_):W(W({},b),_):_}return i(e)},_useGlobalPT:function(e,n,r){return this._usePT(this.globalPT,e,n,r)},_useDefaultPT:function(e,n,r){return this._usePT(this.defaultPT,e,n,r)},ptm:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return this._getPTValue(this.pt,e,W(W({},this.$params),n))},ptmi:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return l.mergeProps(this.$_attrsWithoutPT,this.ptm(e,n))},ptmo:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"",r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return this._getPTValue(e,n,W({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,W(W({},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,W(W({},this.$params),r)),i=this._getOptionValue(zo.inlineStyles,e,W(W({},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 Ae(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,W({},n.$params))||Ae(r,W({},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 W(W({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=_n(e,1),r=n[0];return r==null?void 0:r.startsWith("pt:")}).reduce(function(e,n){var r=_n(n,2),o=r[0],i=r[1],s=o.split(":"),a=Kl(s),c=a.slice(1);return c==null||c.reduce(function(u,f,m,b){return!u[f]&&(u[f]=m===b.length-1?i:{}),u[f]},e),e},{})},$_attrsWithoutPT:function(){return Object.entries(this.$attrs||{}).filter(function(e){var n=_n(e,1),r=n[0];return!(r!=null&&r.startsWith("pt:"))}).reduce(function(e,n){var r=_n(n,2),o=r[0],i=r[1];return e[o]=i,e},{})},$attrSelector:function(){return Rn("pc")}}},Jl=`
|
|
142
|
+
`)},ya={},ba={},de={name:"base",css:va,theme:ga,classes:ya,inlineStyles:ba,load:function(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:function(i){return i},r=o(ke(e,{dt:Un}));return r?la(Vt(r),Vn({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(o){return X.transformCSS(n.name||e.name,o)})},getCommonTheme:function(e){return X.getCommon(this.name,e)},getComponentTheme:function(e){return X.getComponent(this.name,e)},getDirectiveTheme:function(e){return X.getDirective(this.name,e)},getPresetTheme:function(e,n,o){return X.getCustomPreset(this.name,e,n,o)},getLayerOrderThemeCSS:function(){return X.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 o=ke(this.css,{dt:Un}),r=Vt("".concat(o).concat(e)),i=Object.entries(n).reduce(function(c,a){var l=or(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(r,"</style>")}return""},getCommonThemeStyleSheet:function(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return X.getCommonStyleSheet(this.name,e,n)},getThemeStyleSheet:function(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},o=[X.getStyleSheet(this.name,e,n)];if(this.theme){var r=this.name==="base"?"global-style":"".concat(this.name,"-style"),i=ke(this.theme,{dt:Un}),c=Vt(X.transformCSS(r,i)),a=Object.entries(n).reduce(function(l,d){var m=or(d,2),h=m[0],b=m[1];return l.push("".concat(h,'="').concat(b,'"'))&&l},[]).join(" ");o.push('<style type="text/css" data-primevue-style-id="'.concat(r,'" ').concat(a,">").concat(c,"</style>"))}return o.join("")},extend:function(e){return Vn(Vn({},this),{},{css:void 0,theme:void 0},e)}},sr=de.extend({name:"common"});function zt(t){"@babel/helpers - typeof";return zt=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},zt(t)}function wa(t){return Xr(t)||_a(t)||Yr(t)||qr()}function _a(t){if(typeof Symbol<"u"&&t[Symbol.iterator]!=null||t["@@iterator"]!=null)return Array.from(t)}function dn(t,e){return Xr(t)||ka(t,e)||Yr(t,e)||qr()}function qr(){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 Yr(t,e){if(t){if(typeof t=="string")return ar(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)?ar(t,e):void 0}}function ar(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 ka(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 Xr(t){if(Array.isArray(t))return t}function lr(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 F(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?lr(Object(n),!0).forEach(function(o){hn(t,o,n[o])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):lr(Object(n)).forEach(function(o){Object.defineProperty(t,o,Object.getOwnPropertyDescriptor(n,o))})}return t}function hn(t,e,n){return(e=Sa(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function Sa(t){var e=Ca(t,"string");return zt(e)=="symbol"?e:e+""}function Ca(t,e){if(zt(t)!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var o=n.call(t,e||"default");if(zt(o)!="object")return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}var Tn={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,b=(e=this.pt)===null||e===void 0?void 0:e._usept,C=b?(n=this.pt)===null||n===void 0||(n=n.originalValue)===null||n===void 0?void 0:n[this.$.type.name]:void 0,T=b?(o=this.pt)===null||o===void 0||(o=o.value)===null||o===void 0?void 0:o[this.$.type.name]:this.pt;(r=T||C)===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,x=$?(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,M=$?(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=M||x)===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=Be(this.$el,'[data-pc-name="'.concat(Ne(this.$.type.name),'"]')),this.rootEl&&(this.rootEl.setAttribute(this.$attrSelector,""),this.rootEl.$pc=F({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 co(e)?e.apply(void 0,o):s.mergeProps.apply(void 0,o)},_loadStyles:function(){var e=this,n=function(){tt.isStyleNameLoaded("base")||(de.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&&(sr.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);W(e)&&de.load(e,F({name:"global"},this.$styleOptions))},_loadThemeStyles:function(){var e,n;if(!this.isUnstyled){if(!X.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;de.load(c==null?void 0:c.css,F({name:"primitive-variables"},this.$styleOptions)),de.load(a==null?void 0:a.css,F({name:"semantic-variables"},this.$styleOptions)),de.loadTheme(F({name:"global-style"},this.$styleOptions)),X.setLoadedStyleName("common")}if(!X.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,b=((l=this.$style)===null||l===void 0||(d=l.getComponentTheme)===null||d===void 0?void 0:d.call(l))||{},C=b.css;(m=this.$style)===null||m===void 0||m.load(C,F({name:"".concat(this.$style.name,"-variables")},this.$styleOptions)),(h=this.$style)===null||h===void 0||h.loadTheme(F({name:"".concat(this.$style.name,"-style")},this.$styleOptions)),X.setLoadedStyleName(this.$style.name)}if(!X.isStyleNameLoaded("layer-order")){var T,$,x=(T=this.$style)===null||T===void 0||($=T.getLayerOrderThemeCSS)===null||$===void 0?void 0:$.call(T);de.load(x,F({name:"layer-order",first:!0},this.$styleOptions)),X.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,F({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]:"",o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return uo(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,b=i?c?this._useGlobalPT(this._getPTClassValue,o,r):this._useDefaultPT(this._getPTClassValue,o,r):void 0,C=c?void 0:this._getPTSelf(n,this._getPTClassValue,o,F(F({},r),{},{global:b||{}})),T=this._getPTDatasets(o);return d||!d&&C?h?this._mergeProps(h,b,C,T):F(F(F({},b),C),T):F(F({},C),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"&&W((e=this.pt)===null||e===void 0?void 0:e["data-pc-section"]);return o!=="transition"&&F(F({},o==="root"&&F(hn({},"".concat(r,"name"),Ne(i?(n=this.pt)===null||n===void 0?void 0:n["data-pc-section"]:this.$.type.name)),i&&hn({},"".concat(r,"extend"),Ne(this.$.type.name)))),{},hn({},"".concat(r,"section"),Ne(o)))},_getPTClassValue:function(){var e=this._getOptionValue.apply(this,arguments);return ye(e)||fo(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=Ne(o),b=Ne(n.$name);return(l=d?h!==b?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,b=i(e.originalValue),C=i(e.value);return b===void 0&&C===void 0?void 0:ye(C)?C:ye(b)?b:d||!d&&C?h?this._mergeProps(h,b,C):F(F({},b),C):C}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,F(F({},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,F({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,F(F({},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,F(F({},this.$params),o)),i=this._getOptionValue(sr.inlineStyles,e,F(F({},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,F({},n.$params))||ke(o,F({},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 F(F({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=dn(e,1),o=n[0];return o==null?void 0:o.startsWith("pt:")}).reduce(function(e,n){var o=dn(n,2),r=o[0],i=o[1],c=r.split(":"),a=wa(c),l=a.slice(1);return l==null||l.reduce(function(d,m,h,b){return!d[m]&&(d[m]=h===b.length-1?i:{}),d[m]},e),e},{})},$_attrsWithoutPT:function(){return Object.entries(this.$attrs||{}).filter(function(e){var n=dn(e,1),o=n[0];return!(o!=null&&o.startsWith("pt:"))}).reduce(function(e,n){var o=dn(n,2),r=o[0],i=o[1];return e[r]=i,e},{})},$attrSelector:function(){return bn("pc")}}},Ia=`
|
|
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
|
+
`,Ta=de.extend({name:"baseicon",css:Ia});function Wt(t){"@babel/helpers - typeof";return Wt=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Wt(t)}function cr(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 ur(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?cr(Object(n),!0).forEach(function(o){Ea(t,o,n[o])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):cr(Object(n)).forEach(function(o){Object.defineProperty(t,o,Object.getOwnPropertyDescriptor(n,o))})}return t}function Ea(t,e,n){return(e=Pa(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function Pa(t){var e=Aa(t,"string");return Wt(e)=="symbol"?e:e+""}function Aa(t,e){if(Wt(t)!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var o=n.call(t,e||"default");if(Wt(o)!="object")return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}var Zr={name:"BaseIcon",extends:Tn,props:{label:{type:String,default:void 0},spin:{type:Boolean,default:!1}},style:Ta,provide:function(){return{$pcIcon:this,$parentInstance:this}},methods:{pti:function(){var e=lt(this.label);return ur(ur({},!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})}}},mo={name:"ChevronDownIcon",extends:Zr},xa=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),La=[xa];function Oa(t,e,n,o,r,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()),La,16)}mo.render=Oa;var po={name:"ChevronRightIcon",extends:Zr},$a=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),Ba=[$a];function Na(t,e,n,o,r,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()),Ba,16)}po.render=Na;var Da=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 dc(t,e){if(t){if(typeof t=="string")return Xo(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)?Xo(t,e):void 0}}function Xo(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 fc(t,e){var n=t==null?null:typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(n!=null){var r,o,i,s,a=[],c=!0,u=!1;try{if(i=(n=n.call(t)).next,e!==0)for(;!(c=(r=i.call(n)).done)&&(a.push(r.value),a.length!==e);c=!0);}catch(f){u=!0,o=f}finally{try{if(!c&&n.return!=null&&(s=n.return(),Object(s)!==s))return}finally{if(u)throw o}}return a}}function mc(t){if(Array.isArray(t))return t}function Zo(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(t,o).enumerable})),n.push.apply(n,r)}return n}function G(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?Zo(Object(n),!0).forEach(function(r){Cr(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Zo(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function Cr(t,e,n){return(e=pc(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function pc(t){var e=hc(t,"string");return on(e)=="symbol"?e:e+""}function hc(t,e){if(on(t)!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e||"default");if(on(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}var F={_getMeta:function(){return[ut(arguments.length<=0?void 0:arguments[0])||arguments.length<=0?void 0:arguments[0],Ae(ut(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:zr,_getPTValue:function(){var e,n,r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"",s=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},a=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!0,c=function(){var C=F._getOptionValue.apply(F,arguments);return _e(C)||Kr(C)?{class:C}:C},u=((e=r.binding)===null||e===void 0||(e=e.value)===null||e===void 0?void 0:e.ptOptions)||((n=r.$primevueConfig)===null||n===void 0?void 0:n.ptOptions)||{},f=u.mergeSections,m=f===void 0?!0:f,b=u.mergeProps,_=b===void 0?!1:b,v=a?F._useDefaultPT(r,r.defaultPT(),c,i,s):void 0,x=F._usePT(r,F._getPT(o,r.$name),c,i,G(G({},s),{},{global:v||{}})),w=F._getPTDatasets(r,i);return m||!m&&x?_?F._mergeProps(r,_,v,x,w):G(G(G({},v),x),w):G(G({},x),w)},_getPTDatasets:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"",r="data-pc-";return G(G({},n==="root"&&Cr({},"".concat(r,"name"),Ve(e.$name))),{},Cr({},"".concat(r,"section"),Ve(n)))},_getPT:function(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"",r=arguments.length>2?arguments[2]:void 0,o=function(s){var a,c=r?r(s):s,u=Ve(n);return(a=c==null?void 0:c[u])!==null&&a!==void 0?a:c};return e!=null&&e.hasOwnProperty("_usept")?{_usept:e._usept,originalValue:o(e.originalValue),value:o(e.value)}:o(e)},_usePT:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0,r=arguments.length>2?arguments[2]:void 0,o=arguments.length>3?arguments[3]:void 0,i=arguments.length>4?arguments[4]:void 0,s=function(w){return r(w,o,i)};if(n!=null&&n.hasOwnProperty("_usept")){var a,c=n._usept||((a=e.$primevueConfig)===null||a===void 0?void 0:a.ptOptions)||{},u=c.mergeSections,f=u===void 0?!0:u,m=c.mergeProps,b=m===void 0?!1:m,_=s(n.originalValue),v=s(n.value);return _===void 0&&v===void 0?void 0:_e(v)?v:_e(_)?_:f||!f&&v?b?F._mergeProps(e,b,_,v):G(G({},_),v):v}return s(n)},_useDefaultPT:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=arguments.length>2?arguments[2]:void 0,o=arguments.length>3?arguments[3]:void 0,i=arguments.length>4?arguments[4]:void 0;return F._usePT(e,n,r,o,i)},_loadStyles:function(e,n,r){var o,i=F._getConfig(n,r),s={nonce:i==null||(o=i.csp)===null||o===void 0?void 0:o.nonce};F._loadCoreStyles(e.$instance,s),F._loadThemeStyles(e.$instance,s),F._loadScopedThemeStyles(e.$instance,s),F._themeChangeListener(function(){return F._loadThemeStyles(e.$instance,s)})},_loadCoreStyles:function(){var e,n,r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},o=arguments.length>1?arguments[1]:void 0;if(!lt.isStyleNameLoaded((e=r.$style)===null||e===void 0?void 0:e.name)&&(n=r.$style)!==null&&n!==void 0&&n.name){var i;he.loadCSS(o),r.isUnstyled()&&((i=r.$style)===null||i===void 0||i.loadCSS(o)),lt.setLoadedStyleName(r.$style.name)}},_loadThemeStyles:function(){var e,n,r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},o=arguments.length>1?arguments[1]:void 0;if(!(r!=null&&r.isUnstyled())){if(!ee.isStyleNameLoaded("common")){var i,s,a=((i=r.$style)===null||i===void 0||(s=i.getCommonTheme)===null||s===void 0?void 0:s.call(i))||{},c=a.primitive,u=a.semantic;he.load(c==null?void 0:c.css,G({name:"primitive-variables"},o)),he.load(u==null?void 0:u.css,G({name:"semantic-variables"},o)),he.loadTheme(G({name:"global-style"},o)),ee.setLoadedStyleName("common")}if(!ee.isStyleNameLoaded((e=r.$style)===null||e===void 0?void 0:e.name)&&(n=r.$style)!==null&&n!==void 0&&n.name){var f,m,b,_,v=((f=r.$style)===null||f===void 0||(m=f.getDirectiveTheme)===null||m===void 0?void 0:m.call(f))||{},x=v.css;(b=r.$style)===null||b===void 0||b.load(x,G({name:"".concat(r.$style.name,"-variables")},o)),(_=r.$style)===null||_===void 0||_.loadTheme(G({name:"".concat(r.$style.name,"-style")},o)),ee.setLoadedStyleName(r.$style.name)}if(!ee.isStyleNameLoaded("layer-order")){var w,N,C=(w=r.$style)===null||w===void 0||(N=w.getLayerOrderThemeCSS)===null||N===void 0?void 0:N.call(w);he.load(C,G({name:"layer-order",first:!0},o)),ee.setLoadedStyleName("layer-order")}}},_loadScopedThemeStyles:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0,r=e.preset();if(r&&e.$attrSelector){var o,i,s,a=((o=e.$style)===null||o===void 0||(i=o.getPresetTheme)===null||i===void 0?void 0:i.call(o,r,"[".concat(e.$attrSelector,"]")))||{},c=a.css,u=(s=e.$style)===null||s===void 0?void 0:s.load(c,G({name:"".concat(e.$attrSelector,"-").concat(e.$style.name)},n));e.scopedStyleEl=u.el}},_themeChangeListener:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:function(){};lt.clearLoadedStyleNames(),et.on("theme:change",e)},_hook:function(e,n,r,o,i,s){var a,c,u="on".concat(yl(n)),f=F._getConfig(o,i),m=r==null?void 0:r.$instance,b=F._usePT(m,F._getPT(o==null||(a=o.value)===null||a===void 0?void 0:a.pt,e),F._getOptionValue,"hooks.".concat(u)),_=F._useDefaultPT(m,f==null||(c=f.pt)===null||c===void 0||(c=c.directives)===null||c===void 0?void 0:c[e],F._getOptionValue,"hooks.".concat(u)),v={el:r,binding:o,vnode:i,prevVnode:s};b==null||b(m,v),_==null||_(m,v)},_mergeProps:function(){for(var e=arguments.length>1?arguments[1]:void 0,n=arguments.length,r=new Array(n>2?n-2:0),o=2;o<n;o++)r[o-2]=arguments[o];return Fr(e)?e.apply(void 0,r):l.mergeProps.apply(void 0,r)},_extend:function(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=function(s,a,c,u,f){var m,b,_;a._$instances=a._$instances||{};var v=F._getConfig(c,u),x=a._$instances[e]||{},w=yt(x)?G(G({},n),n==null?void 0:n.methods):{};a._$instances[e]=G(G({},x),{},{$name:e,$host:a,$binding:c,$modifiers:c==null?void 0:c.modifiers,$value:c==null?void 0:c.value,$el:x.$el||a||void 0,$style:G({classes:void 0,inlineStyles:void 0,load:function(){},loadCSS:function(){},loadTheme:function(){}},n==null?void 0:n.style),$primevueConfig:v,$attrSelector:a.$attrSelector,defaultPT:function(){return F._getPT(v==null?void 0:v.pt,void 0,function(C){var T;return C==null||(T=C.directives)===null||T===void 0?void 0:T[e]})},isUnstyled:function(){var C,T;return((C=a.$instance)===null||C===void 0||(C=C.$binding)===null||C===void 0||(C=C.value)===null||C===void 0?void 0:C.unstyled)!==void 0?(T=a.$instance)===null||T===void 0||(T=T.$binding)===null||T===void 0||(T=T.value)===null||T===void 0?void 0:T.unstyled:v==null?void 0:v.unstyled},theme:function(){var C;return(C=a.$instance)===null||C===void 0||(C=C.$primevueConfig)===null||C===void 0?void 0:C.theme},preset:function(){var C;return(C=a.$instance)===null||C===void 0||(C=C.$binding)===null||C===void 0||(C=C.value)===null||C===void 0?void 0:C.dt},ptm:function(){var C,T=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",V=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return F._getPTValue(a.$instance,(C=a.$instance)===null||C===void 0||(C=C.$binding)===null||C===void 0||(C=C.value)===null||C===void 0?void 0:C.pt,T,G({},V))},ptmo:function(){var C=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},T=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"",V=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return F._getPTValue(a.$instance,C,T,V,!1)},cx:function(){var C,T,V=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",Z=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return(C=a.$instance)!==null&&C!==void 0&&C.isUnstyled()?void 0:F._getOptionValue((T=a.$instance)===null||T===void 0||(T=T.$style)===null||T===void 0?void 0:T.classes,V,G({},Z))},sx:function(){var C,T=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",V=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0,Z=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return V?F._getOptionValue((C=a.$instance)===null||C===void 0||(C=C.$style)===null||C===void 0?void 0:C.inlineStyles,T,G({},Z)):void 0}},w),a.$instance=a._$instances[e],(m=(b=a.$instance)[s])===null||m===void 0||m.call(b,a,c,u,f),a["$".concat(e)]=a.$instance,F._hook(e,s,a,c,u,f),a.$pd||(a.$pd={}),a.$pd[e]=G(G({},(_=a.$pd)===null||_===void 0?void 0:_[e]),{},{name:e,instance:a.$instance})},o=function(s){var a,c,u,f,m,b=(a=s.$instance)===null||a===void 0?void 0:a.watch;b==null||(c=b.config)===null||c===void 0||c.call(s.$instance,(u=s.$instance)===null||u===void 0?void 0:u.$primevueConfig),Yo.on("config:change",function(_){var v,x=_.newValue,w=_.oldValue;return b==null||(v=b.config)===null||v===void 0?void 0:v.call(s.$instance,x,w)}),b==null||(f=b["config.ripple"])===null||f===void 0||f.call(s.$instance,(m=s.$instance)===null||m===void 0||(m=m.$primevueConfig)===null||m===void 0?void 0:m.ripple),Yo.on("config:ripple:change",function(_){var v,x=_.newValue,w=_.oldValue;return b==null||(v=b["config.ripple"])===null||v===void 0?void 0:v.call(s.$instance,x,w)})};return{created:function(s,a,c,u){r("created",s,a,c,u)},beforeMount:function(s,a,c,u){s.$attrSelector=Rn("pd"),F._loadStyles(s,a,c),r("beforeMount",s,a,c,u),o(s)},mounted:function(s,a,c,u){F._loadStyles(s,a,c),r("mounted",s,a,c,u)},beforeUpdate:function(s,a,c,u){r("beforeUpdate",s,a,c,u)},updated:function(s,a,c,u){F._loadStyles(s,a,c),r("updated",s,a,c,u)},beforeUnmount:function(s,a,c,u){r("beforeUnmount",s,a,c,u)},unmounted:function(s,a,c,u){var f;(f=s.$instance)===null||f===void 0||(f=f.scopedStyleEl)===null||f===void 0||(f=f.value)===null||f===void 0||f.remove(),r("unmounted",s,a,c,u)}}},extend:function(){var e=F._getMeta.apply(F,arguments),n=Jo(e,2),r=n[0],o=n[1];return G({extend:function(){var s=F._getMeta.apply(F,arguments),a=Jo(s,2),c=a[0],u=a[1];return F.extend(c,G(G(G({},o),o==null?void 0:o.methods),u))}},F._extend(r,o))}},gc=function(e){var n=e.dt;return`
|
|
318
|
+
`)},Ma={root:"p-panelmenu p-component",panel:"p-panelmenu-panel",header:function(e){var n=e.instance,o=e.item;return["p-panelmenu-header",{"p-panelmenu-header-active":n.isItemActive(o)&&!!o.items,"p-disabled":n.isItemDisabled(o)}]},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,o=e.processedItem;return["p-panelmenu-item",{"p-focus":n.isItemFocused(o),"p-disabled":n.isItemDisabled(o)}]},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"},Ra=de.extend({name:"panelmenu",theme:Da,classes:Ma}),dr=Hr();function Gt(t){"@babel/helpers - typeof";return Gt=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},Gt(t)}function fr(t,e){return ja(t)||Ha(t,e)||Va(t,e)||Ua()}function Ua(){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 Va(t,e){if(t){if(typeof t=="string")return mr(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)?mr(t,e):void 0}}function mr(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 Ha(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 ja(t){if(Array.isArray(t))return t}function pr(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 z(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?pr(Object(n),!0).forEach(function(o){Jn(t,o,n[o])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):pr(Object(n)).forEach(function(o){Object.defineProperty(t,o,Object.getOwnPropertyDescriptor(n,o))})}return t}function Jn(t,e,n){return(e=Fa(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function Fa(t){var e=Ka(t,"string");return Gt(e)=="symbol"?e:e+""}function Ka(t,e){if(Gt(t)!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var o=n.call(t,e||"default");if(Gt(o)!="object")return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}var V={_getMeta:function(){return[ot(arguments.length<=0?void 0:arguments[0])||arguments.length<=0?void 0:arguments[0],ke(ot(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:uo,_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 I=V._getOptionValue.apply(V,arguments);return ye(I)||fo(I)?{class:I}:I},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,b=d.mergeProps,C=b===void 0?!1:b,T=a?V._useDefaultPT(o,o.defaultPT(),l,i,c):void 0,$=V._usePT(o,V._getPT(r,o.$name),l,i,z(z({},c),{},{global:T||{}})),x=V._getPTDatasets(o,i);return h||!h&&$?C?V._mergeProps(o,C,T,$,x):z(z(z({},T),$),x):z(z({},$),x)},_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 z(z({},n==="root"&&Jn({},"".concat(o,"name"),Ne(e.$name))),{},Jn({},"".concat(o,"section"),Ne(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=Ne(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(x){return o(x,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,b=h===void 0?!1:h,C=c(n.originalValue),T=c(n.value);return C===void 0&&T===void 0?void 0:ye(T)?T:ye(C)?C:m||!m&&T?b?V._mergeProps(e,b,C,T):z(z({},C),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(!tt.isStyleNameLoaded((e=o.$style)===null||e===void 0?void 0:e.name)&&(n=o.$style)!==null&&n!==void 0&&n.name){var i;de.loadCSS(r),o.isUnstyled()&&((i=o.$style)===null||i===void 0||i.loadCSS(r)),tt.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(!X.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;de.load(l==null?void 0:l.css,z({name:"primitive-variables"},r)),de.load(d==null?void 0:d.css,z({name:"semantic-variables"},r)),de.loadTheme(z({name:"global-style"},r)),X.setLoadedStyleName("common")}if(!X.isStyleNameLoaded((e=o.$style)===null||e===void 0?void 0:e.name)&&(n=o.$style)!==null&&n!==void 0&&n.name){var m,h,b,C,T=((m=o.$style)===null||m===void 0||(h=m.getDirectiveTheme)===null||h===void 0?void 0:h.call(m))||{},$=T.css;(b=o.$style)===null||b===void 0||b.load($,z({name:"".concat(o.$style.name,"-variables")},r)),(C=o.$style)===null||C===void 0||C.loadTheme(z({name:"".concat(o.$style.name,"-style")},r)),X.setLoadedStyleName(o.$style.name)}if(!X.isStyleNameLoaded("layer-order")){var x,M,I=(x=o.$style)===null||x===void 0||(M=x.getLayerOrderThemeCSS)===null||M===void 0?void 0:M.call(x);de.load(I,z({name:"layer-order",first:!0},r)),X.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,z({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,o,r,i,c){var a,l,d="on".concat(Ws(n)),m=V._getConfig(r,i),h=o==null?void 0:o.$instance,b=V._usePT(h,V._getPT(r==null||(a=r.value)===null||a===void 0?void 0:a.pt,e),V._getOptionValue,"hooks.".concat(d)),C=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};b==null||b(h,T),C==null||C(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 co(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,b,C;a._$instances=a._$instances||{};var T=V._getConfig(l,d),$=a._$instances[e]||{},x=lt($)?z(z({},n),n==null?void 0:n.methods):{};a._$instances[e]=z(z({},$),{},{$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:z({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(I){var B;return I==null||(B=I.directives)===null||B===void 0?void 0:B[e]})},isUnstyled:function(){var I,B;return((I=a.$instance)===null||I===void 0||(I=I.$binding)===null||I===void 0||(I=I.value)===null||I===void 0?void 0:I.unstyled)!==void 0?(B=a.$instance)===null||B===void 0||(B=B.$binding)===null||B===void 0||(B=B.value)===null||B===void 0?void 0:B.unstyled:T==null?void 0:T.unstyled},theme:function(){var I;return(I=a.$instance)===null||I===void 0||(I=I.$primevueConfig)===null||I===void 0?void 0:I.theme},preset:function(){var I;return(I=a.$instance)===null||I===void 0||(I=I.$binding)===null||I===void 0||(I=I.value)===null||I===void 0?void 0:I.dt},ptm:function(){var I,B=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",j=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return V._getPTValue(a.$instance,(I=a.$instance)===null||I===void 0||(I=I.$binding)===null||I===void 0||(I=I.value)===null||I===void 0?void 0:I.pt,B,z({},j))},ptmo:function(){var I=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},B=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"",j=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return V._getPTValue(a.$instance,I,B,j,!1)},cx:function(){var I,B,j=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",Z=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return(I=a.$instance)!==null&&I!==void 0&&I.isUnstyled()?void 0:V._getOptionValue((B=a.$instance)===null||B===void 0||(B=B.$style)===null||B===void 0?void 0:B.classes,j,z({},Z))},sx:function(){var I,B=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",j=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0,Z=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return j?V._getOptionValue((I=a.$instance)===null||I===void 0||(I=I.$style)===null||I===void 0?void 0:I.inlineStyles,B,z({},Z)):void 0}},x),a.$instance=a._$instances[e],(h=(b=a.$instance)[c])===null||h===void 0||h.call(b,a,l,d,m),a["$".concat(e)]=a.$instance,V._hook(e,c,a,l,d,m),a.$pd||(a.$pd={}),a.$pd[e]=z(z({},(C=a.$pd)===null||C===void 0?void 0:C[e]),{},{name:e,instance:a.$instance})},r=function(c){var a,l,d,m,h,b=(a=c.$instance)===null||a===void 0?void 0:a.watch;b==null||(l=b.config)===null||l===void 0||l.call(c.$instance,(d=c.$instance)===null||d===void 0?void 0:d.$primevueConfig),dr.on("config:change",function(C){var T,$=C.newValue,x=C.oldValue;return b==null||(T=b.config)===null||T===void 0?void 0:T.call(c.$instance,$,x)}),b==null||(m=b["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),dr.on("config:ripple:change",function(C){var T,$=C.newValue,x=C.oldValue;return b==null||(T=b["config.ripple"])===null||T===void 0?void 0:T.call(c.$instance,$,x)})};return{created:function(c,a,l,d){o("created",c,a,l,d)},beforeMount:function(c,a,l,d){c.$attrSelector=bn("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=fr(e,2),o=n[0],r=n[1];return z({extend:function(){var c=V._getMeta.apply(V,arguments),a=fr(c,2),l=a[0],d=a[1];return V.extend(l,z(z(z({},r),r==null?void 0:r.methods),d))}},V._extend(o,r))}},za=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 Nc(t,e){if(t){if(typeof t=="string")return ei(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)?ei(t,e):void 0}}function ei(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 Dc(t,e){var n=t==null?null:typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(n!=null){var r,o,i,s,a=[],c=!0,u=!1;try{if(i=(n=n.call(t)).next,e!==0)for(;!(c=(r=i.call(n)).done)&&(a.push(r.value),a.length!==e);c=!0);}catch(f){u=!0,o=f}finally{try{if(!c&&n.return!=null&&(s=n.return(),Object(s)!==s))return}finally{if(u)throw o}}return a}}function Mc(t){if(Array.isArray(t))return t}var Ji={name:"PanelMenuList",hostName:"PanelMenu",extends:Vn,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?Ae(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 Y(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&&gl(e.key)&&this.searchItems(e,e.key);break}},onArrowDownKey:function(e){var n=Y(this.focusedItem)?this.findNextItem(this.focusedItem):this.findFirstItem();this.changeFocusedItem({originalEvent:e,processedItem:n,focusOnNext:!0}),e.preventDefault()},onArrowUpKey:function(e){var n=Y(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(Y(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=Y(this.focusedItem.parent)?this.focusedItem.parent:this.focusedItem,e.preventDefault()}},onArrowRightKey:function(e){var n=this;if(Y(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(Y(this.focusedItem)){var n=je(this.$el,'li[id="'.concat("".concat(this.focusedItemId),'"]')),r=n&&(je(n,'[data-pc-section="itemlink"]')||je(n,"a,button"));r?r.click():n&&n.click()}e.preventDefault()},onSpaceKey:function(e){this.onEnterKey(e)},onItemToggle:function(e){var n=e.processedItem,r=e.expanded;this.expandedKeys?this.$emit("item-toggle",{item:n.item,expanded:r}):(this.activeItemPath=this.activeItemPath.filter(function(o){return o.parentKey!==n.parentKey}),r&&this.activeItemPath.push(n)),this.focusedItem=n,qt(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 $o(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?$o(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(Y(this.focusedItem)){var s=this.visibleItems.findIndex(function(a){return a.key===r.focusedItem.key});o=this.visibleItems.slice(s).find(function(a){return r.isItemMatched(a)}),o=yt(o)?this.visibleItems.slice(0,s).find(function(a){return r.isItemMatched(a)}):o}else o=this.visibleItems.find(function(a){return r.isItemMatched(a)});return Y(o)&&(i=!0),yt(o)&&yt(this.focusedItem)&&(o=this.findFirstItem()),Y(o)&&this.changeFocusedItem({originalEvent:e,processedItem:o,allowHeaderFocus:!1}),this.searchTimeout&&clearTimeout(this.searchTimeout),this.searchTimeout=setTimeout(function(){r.searchValue="",r.searchTimeout=null},500),i},changeFocusedItem:function(e){var n=e.originalEvent,r=e.processedItem,o=e.focusOnNext,i=e.selfCheck,s=e.allowHeaderFocus,a=s===void 0?!0:s;Y(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=je(this.$el,'li[id="'.concat("".concat(this.focusedItemId),'"]'));e&&e.scrollIntoView&&e.scrollIntoView({block:"nearest",inline:"start"})},autoUpdateActiveItemPath:function(e){var n=this;this.activeItemPath=Object.entries(e||{}).reduce(function(r,o){var i=$c(o,2),s=i[0],a=i[1];if(a){var c=n.findProcessedItemByItemKey(s);c&&r.push(c)}return r},[])},findProcessedItemByItemKey:function(e,n){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0;if(n=n||r===0&&this.processedItems,!n)return null;for(var o=0;o<n.length;o++){var i=n[o];if(this.getItemProp(i,"key")===e)return i;var s=this.findProcessedItemByItemKey(e,i.items,r+1);if(s)return s}},createProcessedItems:function(e){var n=this,r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:"",s=[];return e&&e.forEach(function(a,c){var u=(i!==""?i+"_":"")+c,f={item:a,index:c,level:r,key:u,parent:o,parentKey:i};f.items=n.createProcessedItems(a.items,r+1,f,u),s.push(f)}),s},flatItems:function(e){var n=this,r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[];return e&&e.forEach(function(o){n.isVisibleItem(o)&&(r.push(o),n.flatItems(o.items,r))}),r}},computed:{processedItems:function(){return this.createProcessedItems(this.items||[])},visibleItems:function(){return this.flatItems(this.processedItems)},focusedItemId:function(){return Y(this.focusedItem)?"".concat(this.panelId,"_").concat(this.focusedItem.key):null}},components:{PanelMenuSub:Yi}};function Uc(t,e,n,r,o,i){var s=l.resolveComponent("PanelMenuSub");return l.openBlock(),l.createBlock(s,l.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"])}Ji.render=Uc;function an(t){"@babel/helpers - typeof";return an=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},an(t)}function ti(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(t,o).enumerable})),n.push.apply(n,r)}return n}function Hc(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?ti(Object(n),!0).forEach(function(r){jc(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):ti(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function jc(t,e,n){return(e=Vc(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function Vc(t){var e=Fc(t,"string");return an(e)=="symbol"?e:e+""}function Fc(t,e){if(an(t)!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e||"default");if(an(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}var Xi={name:"PanelMenu",extends:Pc,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||Rn()}},mounted:function(){this.id=this.id||Rn()},methods:{getItemProp:function(e,n){return e?Ae(e[n]):void 0},getItemLabel:function(e){return this.getItemProp(e,"label")},getPTOptions:function(e,n,r){return this.ptm(e,{context:{index:r,active:this.isItemActive(n),focused:this.isItemFocused(n),disabled:this.isItemDisabled(n)}})},isItemActive:function(e){return this.expandedKeys?this.expandedKeys[this.getItemProp(e,"key")]:this.multiple?this.activeItems.some(function(n){return Pt(e,n)}):Pt(e,this.activeItem)},isItemVisible:function(e){return this.getItemProp(e,"visible")!==!1},isItemDisabled:function(e){return this.getItemProp(e,"disabled")},isItemFocused:function(e){return Pt(e,this.activeItem)},getPanelId:function(e){return"".concat(this.id,"_").concat(e)},getPanelKey:function(e){return this.getPanelId(e)},getHeaderId:function(e){return"".concat(this.getPanelId(e),"_header")},getContentId:function(e){return"".concat(this.getPanelId(e),"_content")},onHeaderClick:function(e,n){if(this.isItemDisabled(n)){e.preventDefault();return}n.command&&n.command({originalEvent:e,item:n}),this.changeActiveItem(e,n),qt(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=Gt(e.currentTarget,"data-p-active")===!0?je(e.currentTarget.nextElementSibling,'[data-pc-section="rootlist"]'):null;n?qt(n):this.updateFocusedHeader({originalEvent:e,focusOnNext:!0}),e.preventDefault()},onHeaderArrowUpKey:function(e){var n=this.findPrevHeader(e.currentTarget.parentElement)||this.findLastHeader(),r=Gt(n,"data-p-active")===!0?je(n.nextElementSibling,'[data-pc-section="rootlist"]'):null;r?qt(r):this.updateFocusedHeader({originalEvent:e,focusOnNext:!1}),e.preventDefault()},onHeaderHomeKey:function(e){this.changeFocusedHeader(e,this.findFirstHeader()),e.preventDefault()},onHeaderEndKey:function(e){this.changeFocusedHeader(e,this.findLastHeader()),e.preventDefault()},onHeaderEnterKey:function(e,n){var r=je(e.currentTarget,'[data-pc-section="headerlink"]');r?r.click():this.onHeaderClick(e,n),e.preventDefault()},findNextHeader:function(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,r=n?e:e.nextElementSibling,o=je(r,'[data-pc-section="header"]');return o?Gt(o,"data-p-disabled")?this.findNextHeader(o.parentElement):o:null},findPrevHeader:function(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,r=n?e:e.previousElementSibling,o=je(r,'[data-pc-section="header"]');return o?Gt(o,"data-p-disabled")?this.findPrevHeader(o.parentElement):o:null},findFirstHeader:function(){return this.findNextHeader(this.$el.firstElementChild,!0)},findLastHeader:function(){return this.findPrevHeader(this.$el.lastElementChild,!0)},updateFocusedHeader:function(e){var n=e.originalEvent,r=e.focusOnNext,o=e.selfCheck,i=n.currentTarget.closest('[data-pc-section="panel"]'),s=o?je(i,'[data-pc-section="header"]'):r?this.findNextHeader(i):this.findPrevHeader(i);s?this.changeFocusedHeader(n,s):r?this.onHeaderHomeKey(n):this.onHeaderEndKey(n)},changeActiveItem:function(e,n){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;if(!this.isItemDisabled(n)){var o=this.isItemActive(n),i=o?"panel-close":"panel-open";this.activeItem=r?n:this.activeItem&&Pt(n,this.activeItem)?null:n,this.multiple&&(this.activeItems.some(function(s){return Pt(n,s)})?this.activeItems=this.activeItems.filter(function(s){return!Pt(n,s)}):this.activeItems.push(n)),this.changeExpandedKeys({item:n,expanded:!o}),this.$emit(i,{originalEvent:e,item:n})}},changeExpandedKeys:function(e){var n=e.item,r=e.expanded,o=r===void 0?!1:r;if(this.expandedKeys){var i=Hc({},this.expandedKeys);o?i[n.key]=!0:delete i[n.key],this.$emit("update:expandedKeys",i)}},changeFocusedHeader:function(e,n){n&&qt(n)},getMenuItemProps:function(e,n){return{icon:l.mergeProps({class:[this.cx("headerIcon"),this.getItemProp(e,"icon")]},this.getPTOptions("headerIcon",e,n)),label:l.mergeProps({class:this.cx("headerLabel")},this.getPTOptions("headerLabel",e,n))}}},components:{PanelMenuList:Ji,ChevronRightIcon:qr,ChevronDownIcon:Wr}},zc=["id"],Kc=["id","tabindex","aria-label","aria-expanded","aria-controls","aria-disabled","onClick","onKeydown","data-p-active","data-p-disabled"],Wc=["href"],qc=["id","aria-labelledby"];function Gc(t,e,n,r,o,i){var s=l.resolveComponent("PanelMenuList");return l.openBlock(),l.createElementBlock("div",l.mergeProps({id:o.id,class:t.cx("root")},t.ptmi("root")),[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(t.model,function(a,c){return l.openBlock(),l.createElementBlock(l.Fragment,{key:i.getPanelKey(c)},[i.isItemVisible(a)?(l.openBlock(),l.createElementBlock("div",l.mergeProps({key:0,style:i.getItemProp(a,"style"),class:[t.cx("panel"),i.getItemProp(a,"class")],ref_for:!0},t.ptm("panel")),[l.createElementVNode("div",l.mergeProps({id:i.getHeaderId(c),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(c),"aria-disabled":i.isItemDisabled(a),onClick:function(f){return i.onHeaderClick(f,a)},onKeydown:function(f){return i.onHeaderKeyDown(f,a)},ref_for:!0},i.getPTOptions("header",a,c),{"data-p-active":i.isItemActive(a),"data-p-disabled":i.isItemDisabled(a)}),[l.createElementVNode("div",l.mergeProps({class:t.cx("headerContent"),ref_for:!0},i.getPTOptions("headerContent",a,c)),[t.$slots.item?(l.openBlock(),l.createBlock(l.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,c)},null,8,["item","active","hasSubmenu","label","props"])):(l.openBlock(),l.createElementBlock("a",l.mergeProps({key:0,href:i.getItemProp(a,"url"),class:t.cx("headerLink"),tabindex:-1,ref_for:!0},i.getPTOptions("headerLink",a,c)),[i.getItemProp(a,"items")?l.renderSlot(t.$slots,"submenuicon",{key:0,active:i.isItemActive(a)},function(){return[(l.openBlock(),l.createBlock(l.resolveDynamicComponent(i.isItemActive(a)?"ChevronDownIcon":"ChevronRightIcon"),l.mergeProps({class:t.cx("submenuIcon"),ref_for:!0},i.getPTOptions("submenuIcon",a,c)),null,16,["class"]))]}):l.createCommentVNode("",!0),t.$slots.headericon?(l.openBlock(),l.createBlock(l.resolveDynamicComponent(t.$slots.headericon),{key:1,item:a,class:l.normalizeClass([t.cx("headerIcon"),i.getItemProp(a,"icon")])},null,8,["item","class"])):i.getItemProp(a,"icon")?(l.openBlock(),l.createElementBlock("span",l.mergeProps({key:2,class:[t.cx("headerIcon"),i.getItemProp(a,"icon")],ref_for:!0},i.getPTOptions("headerIcon",a,c)),null,16)):l.createCommentVNode("",!0),l.createElementVNode("span",l.mergeProps({class:t.cx("headerLabel"),ref_for:!0},i.getPTOptions("headerLabel",a,c)),l.toDisplayString(i.getItemLabel(a)),17)],16,Wc))],16)],16,Kc),l.createVNode(l.Transition,l.mergeProps({name:"p-toggleable-content",ref_for:!0},t.ptm("transition")),{default:l.withCtx(function(){return[l.withDirectives(l.createElementVNode("div",l.mergeProps({id:i.getContentId(c),class:t.cx("contentContainer"),role:"region","aria-labelledby":i.getHeaderId(c),ref_for:!0},t.ptm("contentContainer")),[i.getItemProp(a,"items")?(l.openBlock(),l.createElementBlock("div",l.mergeProps({key:0,class:t.cx("content"),ref_for:!0},t.ptm("content")),[l.createVNode(s,{panelId:i.getPanelId(c),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)):l.createCommentVNode("",!0)],16,qc),[[l.vShow,i.isItemActive(a)]])]}),_:2},1040)],16)):l.createCommentVNode("",!0)],64)}),128))],16,zc)}Xi.render=Gc;const Yc={class:"panel-menu-wrapper"},Jc=["data-active","href","onClick"],Xc={class:"material-symbols-outlined item-menu-icon-left"},Zc={key:1,class:"item-menu sf-ripple"},Qc={key:0,class:"material-symbols-outlined item-menu-icon-left"},eu=l.defineComponent({__name:"NavMenu",props:{items:{}},setup(t){const e=t,n=jr();function r(o,i){o.preventDefault();const a=o.target.closest(".panel-menu-wrapper");a&&a.clientWidth+10>document.body.clientWidth&&n.Close(),i()}return(o,i)=>{const s=l.resolveComponent("router-link");return l.openBlock(),l.createElementBlock("div",Yc,[l.createVNode(l.unref(Xi),{model:e.items,unstyled:!0},{item:l.withCtx(({item:a,active:c})=>[a.href?(l.openBlock(),l.createBlock(s,{key:0,to:{path:a.href,params:a.params??{},query:a.query??{}},custom:""},{default:l.withCtx(({navigate:u,isActive:f})=>[l.createElementVNode("a",{class:"item-menu sf-ripple","data-active":f,href:a.href,onClick:m=>r(m,u)},[l.createElementVNode("span",Xc,l.toDisplayString(a.icon??"chevron_right"),1),l.createElementVNode("span",null,l.toDisplayString(a.text),1)],8,Jc)]),_:2},1032,["to"])):(l.openBlock(),l.createElementBlock("a",Zc,[a.icon?(l.openBlock(),l.createElementBlock("span",Qc,l.toDisplayString(a.icon),1)):l.createCommentVNode("",!0),l.createElementVNode("span",null,l.toDisplayString(a.text),1),i[0]||(i[0]=l.createElementVNode("div",{class:"sf-flex-grow-1"},null,-1)),l.createElementVNode("span",{class:l.normalizeClass(["material-symbols-outlined arrow",{"--expand":c}])}," chevron_right ",2)]))]),_:1},8,["model"])])}}}),tu=Hn(eu,[["__scopeId","data-v-74bc83ee"]]),Zi="SweetAlert2:",nu=t=>{const e=[];for(let n=0;n<t.length;n++)e.indexOf(t[n])===-1&&e.push(t[n]);return e},Gr=t=>t.charAt(0).toUpperCase()+t.slice(1),xe=t=>Array.prototype.slice.call(t),Ce=t=>{console.warn(`${Zi} ${typeof t=="object"?t.join(" "):t}`)},kt=t=>{console.error(`${Zi} ${t}`)},ni=[],ru=t=>{ni.includes(t)||(ni.push(t),Ce(t))},ou=(t,e)=>{ru(`"${t}" is deprecated and will be removed in the next major release. Please use "${e}" instead.`)},Fn=t=>typeof t=="function"?t():t,Yr=t=>t&&typeof t.toPromise=="function",dn=t=>Yr(t)?t.toPromise():Promise.resolve(t),Jr=t=>t&&Promise.resolve(t)===t,It={title:"",titleText:"",text:"",html:"",footer:"",icon:void 0,iconColor:void 0,iconHtml:void 0,template:void 0,toast:!1,showClass:{popup:"swal2-show",backdrop:"swal2-backdrop-show",icon:"swal2-icon-show"},hideClass:{popup:"swal2-hide",backdrop:"swal2-backdrop-hide",icon:"swal2-icon-hide"},customClass:{},target:"body",color:void 0,backdrop:!0,heightAuto:!0,allowOutsideClick:!0,allowEscapeKey:!0,allowEnterKey:!0,stopKeydownPropagation:!0,keydownListenerCapture:!1,showConfirmButton:!0,showDenyButton:!1,showCancelButton:!1,preConfirm:void 0,preDeny:void 0,confirmButtonText:"OK",confirmButtonAriaLabel:"",confirmButtonColor:void 0,denyButtonText:"No",denyButtonAriaLabel:"",denyButtonColor:void 0,cancelButtonText:"Cancel",cancelButtonAriaLabel:"",cancelButtonColor:void 0,buttonsStyling:!0,reverseButtons:!1,focusConfirm:!0,focusDeny:!1,focusCancel:!1,returnFocus:!0,showCloseButton:!1,closeButtonHtml:"×",closeButtonAriaLabel:"Close this dialog",loaderHtml:"",showLoaderOnConfirm:!1,showLoaderOnDeny:!1,imageUrl:void 0,imageWidth:void 0,imageHeight:void 0,imageAlt:"",timer:void 0,timerProgressBar:!1,width:void 0,padding:void 0,background:void 0,input:void 0,inputPlaceholder:"",inputLabel:"",inputValue:"",inputOptions:{},inputAutoTrim:!0,inputAttributes:{},inputValidator:void 0,returnInputValueOnDeny:!1,validationMessage:void 0,grow:!1,position:"center",progressSteps:[],currentProgressStep:void 0,progressStepsDistance:void 0,willOpen:void 0,didOpen:void 0,didRender:void 0,willClose:void 0,didClose:void 0,didDestroy:void 0,scrollbarPadding:!0},iu=["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"],su={},au=["allowOutsideClick","allowEnterKey","backdrop","focusConfirm","focusDeny","focusCancel","returnFocus","heightAuto","keydownListenerCapture"],Qi=t=>Object.prototype.hasOwnProperty.call(It,t),es=t=>iu.indexOf(t)!==-1,Tr=t=>su[t],lu=t=>{Qi(t)||Ce(`Unknown parameter "${t}"`)},cu=t=>{au.includes(t)&&Ce(`The parameter "${t}" is incompatible with toasts`)},uu=t=>{Tr(t)&&ou(t,Tr(t))},du=t=>{!t.backdrop&&t.allowOutsideClick&&Ce('"allowOutsideClick" parameter requires `backdrop` parameter to be set to `true`');for(const e in t)lu(e),t.toast&&cu(e),uu(e)},fu="swal2-",ts=t=>{const e={};for(const n in t)e[t[n]]=fu+t[n];return e},y=ts(["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"]),Zt=ts(["success","warning","info","question","error"]),de=()=>document.body.querySelector(`.${y.container}`),fn=t=>{const e=de();return e?e.querySelector(t):null},Be=t=>fn(`.${t}`),J=()=>Be(y.popup),mn=()=>Be(y.icon),ns=()=>Be(y.title),Bn=()=>Be(y["html-container"]),rs=()=>Be(y.image),os=()=>Be(y["progress-steps"]),zn=()=>Be(y["validation-message"]),ze=()=>fn(`.${y.actions} .${y.confirm}`),dt=()=>fn(`.${y.actions} .${y.deny}`),mu=()=>Be(y["input-label"]),Rt=()=>fn(`.${y.loader}`),wt=()=>fn(`.${y.actions} .${y.cancel}`),pn=()=>Be(y.actions),is=()=>Be(y.footer),Kn=()=>Be(y["timer-progress-bar"]),Xr=()=>Be(y.close),pu=`
|
|
339
|
+
`)},Wa={root:"p-ink"},Ga=de.extend({name:"ripple-directive",theme:za,classes:Wa}),qa=V.extend({style:Ga});function qt(t){"@babel/helpers - typeof";return qt=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},qt(t)}function Ya(t){return Qa(t)||Ja(t)||Za(t)||Xa()}function Xa(){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 Za(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 Ja(t){if(typeof Symbol<"u"&&t[Symbol.iterator]!=null||t["@@iterator"]!=null)return Array.from(t)}function Qa(t){if(Array.isArray(t))return Qn(t)}function Qn(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 hr(t,e,n){return(e=el(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function el(t){var e=tl(t,"string");return qt(e)=="symbol"?e:e+""}function tl(t,e){if(qt(t)!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var o=n.call(t,e||"default");if(qt(o)!="object")return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}var nl=qa.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=Rs("span",hr(hr({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,o=e.currentTarget,r=this.getInk(o);if(!(!r||getComputedStyle(r,null).display==="none")){if(!this.isUnstyled()&&Mn(r,"p-ink-active"),r.setAttribute("data-p-ink-active","false"),!qo(r)&&!Yo(r)){var i=Math.max(Ms(o),Hs(o));r.style.height=i+"px",r.style.width=i+"px"}var c=Vs(o),a=e.pageX-c.left+document.body.scrollTop-Yo(r)/2,l=e.pageY-c.top+document.body.scrollLeft-qo(r)/2;r.style.top=l+"px",r.style.left=a+"px",!this.isUnstyled()&&Ds(r,"p-ink-active"),r.setAttribute("data-p-ink-active","true"),this.timeout=setTimeout(function(){r&&(!n.isUnstyled()&&Mn(r,"p-ink-active"),r.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?Ya(e.children).find(function(n){return Mt(n,"data-pc-name")==="ripple"}):void 0}}}),ol={name:"BasePanelMenu",extends:Tn,props:{model:{type:Array,default:null},expandedKeys:{type:Object,default:null},multiple:{type:Boolean,default:!1},tabindex:{type:Number,default:0}},style:Ra,provide:function(){return{$pcPanelMenu:this,$parentInstance:this}}},Jr={name:"PanelMenuSub",hostName:"PanelMenu",extends:Tn,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,o){return e&&e.item?ke(e.item[n],o):void 0},getItemLabel:function(e){return this.getItemProp(e,"label")},getPTOptions:function(e,n,o){return this.ptm(e,{context:{item:n.item,index:o,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 W(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(o){return n.isItemVisible(o)&&n.getItemProp(o,"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:po,ChevronDownIcon:mo},directives:{ripple:nl}},rl=["tabindex"],il=["id","aria-label","aria-expanded","aria-level","aria-setsize","aria-posinset","data-p-focused","data-p-disabled"],sl=["onClick","onMousemove"],al=["href","target"];function ll(t,e,n,o,r,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(h){return i.onItemClick(h,l)},onMousemove:function(h){return i.onItemMouseMove(h,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,al)),[[a]])],16,sl),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,il)):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,rl)}Jr.render=ll;function cl(t,e){return ml(t)||fl(t,e)||dl(t,e)||ul()}function ul(){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 dl(t,e){if(t){if(typeof t=="string")return gr(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)?gr(t,e):void 0}}function gr(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 fl(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 ml(t){if(Array.isArray(t))return t}var Qr={name:"PanelMenuList",hostName:"PanelMenu",extends:Tn,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 W(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&&zs(e.key)&&this.searchItems(e,e.key);break}},onArrowDownKey:function(e){var n=W(this.focusedItem)?this.findNextItem(this.focusedItem):this.findFirstItem();this.changeFocusedItem({originalEvent:e,processedItem:n,focusOnNext:!0}),e.preventDefault()},onArrowUpKey:function(e){var n=W(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(W(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=W(this.focusedItem.parent)?this.focusedItem.parent:this.focusedItem,e.preventDefault()}},onArrowRightKey:function(e){var n=this;if(W(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(W(this.focusedItem)){var n=Be(this.$el,'li[id="'.concat("".concat(this.focusedItemId),'"]')),o=n&&(Be(n,'[data-pc-section="itemlink"]')||Be(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,Dt(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 Xo(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?Xo(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(W(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=lt(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 W(r)&&(i=!0),lt(r)&<(this.focusedItem)&&(r=this.findFirstItem()),W(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;W(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=Be(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=cl(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 W(this.focusedItem)?"".concat(this.panelId,"_").concat(this.focusedItem.key):null}},components:{PanelMenuSub:Jr}};function pl(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"])}Qr.render=pl;function Yt(t){"@babel/helpers - typeof";return Yt=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},Yt(t)}function vr(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 hl(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?vr(Object(n),!0).forEach(function(o){gl(t,o,n[o])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):vr(Object(n)).forEach(function(o){Object.defineProperty(t,o,Object.getOwnPropertyDescriptor(n,o))})}return t}function gl(t,e,n){return(e=vl(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function vl(t){var e=yl(t,"string");return Yt(e)=="symbol"?e:e+""}function yl(t,e){if(Yt(t)!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var o=n.call(t,e||"default");if(Yt(o)!="object")return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}var ei={name:"PanelMenu",extends:ol,inheritAttrs:!1,emits:["update:expandedKeys","panel-open","panel-close"],data:function(){return{id:this.$attrs.id,activeItem:null,activeItems:[]}},watch:{"$attrs.id":function(e){this.id=e||bn()}},mounted:function(){this.id=this.id||bn()},methods:{getItemProp:function(e,n){return e?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 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),Dt(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=Mt(e.currentTarget,"data-p-active")===!0?Be(e.currentTarget.nextElementSibling,'[data-pc-section="rootlist"]'):null;n?Dt(n):this.updateFocusedHeader({originalEvent:e,focusOnNext:!0}),e.preventDefault()},onHeaderArrowUpKey:function(e){var n=this.findPrevHeader(e.currentTarget.parentElement)||this.findLastHeader(),o=Mt(n,"data-p-active")===!0?Be(n.nextElementSibling,'[data-pc-section="rootlist"]'):null;o?Dt(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=Be(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=Be(o,'[data-pc-section="header"]');return r?Mt(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=Be(o,'[data-pc-section="header"]');return r?Mt(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?Be(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&&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:!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=hl({},this.expandedKeys);r?i[n.key]=!0:delete i[n.key],this.$emit("update:expandedKeys",i)}},changeFocusedHeader:function(e,n){n&&Dt(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:Qr,ChevronRightIcon:po,ChevronDownIcon:mo}},bl=["id"],wl=["id","tabindex","aria-label","aria-expanded","aria-controls","aria-disabled","onClick","onKeydown","data-p-active","data-p-disabled"],_l=["href"],kl=["id","aria-labelledby"];function Sl(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,_l))],16)],16,wl),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,kl),[[s.vShow,i.isItemActive(a)]])]}),_:2},1040)],16)):s.createCommentVNode("",!0)],64)}),128))],16,bl)}ei.render=Sl;const Cl={class:"panel-menu-wrapper"},Il=["data-active","href","onClick"],Tl={class:"material-symbols-outlined item-menu-icon-left"},El={key:1,class:"item-menu sf-ripple"},Pl={key:0,class:"material-symbols-outlined item-menu-icon-left"},Al=s.defineComponent({__name:"NavMenu",props:{items:{}},setup(t){const e=t,n=ao();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",Cl,[s.createVNode(s.unref(ei),{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",Tl,s.toDisplayString(a.icon??"chevron_right"),1),s.createElementVNode("span",null,s.toDisplayString(a.text),1)],8,Il)]),_:2},1032,["to"])):(s.openBlock(),s.createElementBlock("a",El,[a.icon?(s.openBlock(),s.createElementBlock("span",Pl,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"])])}}}),xl=Cn(Al,[["__scopeId","data-v-74bc83ee"]]),ti="SweetAlert2:",Ll=t=>{const e=[];for(let n=0;n<t.length;n++)e.indexOf(t[n])===-1&&e.push(t[n]);return e},ho=t=>t.charAt(0).toUpperCase()+t.slice(1),Ce=t=>Array.prototype.slice.call(t),be=t=>{console.warn(`${ti} ${typeof t=="object"?t.join(" "):t}`)},ft=t=>{console.error(`${ti} ${t}`)},yr=[],Ol=t=>{yr.includes(t)||(yr.push(t),be(t))},$l=(t,e)=>{Ol(`"${t}" is deprecated and will be removed in the next major release. Please use "${e}" instead.`)},En=t=>typeof t=="function"?t():t,go=t=>t&&typeof t.toPromise=="function",Jt=t=>go(t)?t.toPromise():Promise.resolve(t),vo=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"],Nl={},Dl=["allowOutsideClick","allowEnterKey","backdrop","focusConfirm","focusDeny","focusCancel","returnFocus","heightAuto","keydownListenerCapture"],ni=t=>Object.prototype.hasOwnProperty.call(bt,t),oi=t=>Bl.indexOf(t)!==-1,eo=t=>Nl[t],Ml=t=>{ni(t)||be(`Unknown parameter "${t}"`)},Rl=t=>{Dl.includes(t)&&be(`The parameter "${t}" is incompatible with toasts`)},Ul=t=>{eo(t)&&$l(t,eo(t))},Vl=t=>{!t.backdrop&&t.allowOutsideClick&&be('"allowOutsideClick" parameter requires `backdrop` parameter to be set to `true`');for(const e in t)Ml(e),t.toast&&Rl(e),Ul(e)},Hl="swal2-",ri=t=>{const e={};for(const n in t)e[t[n]]=Hl+t[n];return e},g=ri(["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"]),Ht=ri(["success","warning","info","question","error"]),ae=()=>document.body.querySelector(`.${g.container}`),Qt=t=>{const e=ae();return e?e.querySelector(t):null},Ae=t=>Qt(`.${t}`),G=()=>Ae(g.popup),en=()=>Ae(g.icon),ii=()=>Ae(g.title),_n=()=>Ae(g["html-container"]),si=()=>Ae(g.image),ai=()=>Ae(g["progress-steps"]),Pn=()=>Ae(g["validation-message"]),De=()=>Qt(`.${g.actions} .${g.confirm}`),rt=()=>Qt(`.${g.actions} .${g.deny}`),jl=()=>Ae(g["input-label"]),St=()=>Qt(`.${g.loader}`),ut=()=>Qt(`.${g.actions} .${g.cancel}`),tn=()=>Ae(g.actions),li=()=>Ae(g.footer),An=()=>Ae(g["timer-progress-bar"]),yo=()=>Ae(g.close),Fl=`
|
|
342
342
|
a[href],
|
|
343
343
|
area[href],
|
|
344
344
|
input:not([disabled]),
|
|
@@ -353,64 +353,59 @@ 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
|
-
`,
|
|
357
|
-
<div aria-labelledby="${
|
|
358
|
-
<button type="button" class="${
|
|
359
|
-
<ul class="${
|
|
360
|
-
<div class="${
|
|
361
|
-
<img class="${
|
|
362
|
-
<h2 class="${
|
|
363
|
-
<div class="${
|
|
364
|
-
<input class="${
|
|
365
|
-
<input type="file" class="${
|
|
366
|
-
<div class="${
|
|
356
|
+
`,bo=()=>{const t=Ce(G().querySelectorAll('[tabindex]:not([tabindex="-1"]):not([tabindex="0"])')).sort((n,o)=>{const r=parseInt(n.getAttribute("tabindex")),i=parseInt(o.getAttribute("tabindex"));return r>i?1:r<i?-1:0}),e=Ce(G().querySelectorAll(Fl)).filter(n=>n.getAttribute("tabindex")!=="-1");return Ll(t.concat(e)).filter(n=>Se(n))},wo=()=>Ze(document.body,g.shown)&&!Ze(document.body,g["toast-shown"])&&!Ze(document.body,g["no-backdrop"]),xn=()=>G()&&Ze(G(),g.toast),Kl=()=>G().hasAttribute("data-loading"),wt={previousBodyPadding:null},se=(t,e)=>{if(t.textContent="",e){const o=new DOMParser().parseFromString(e,"text/html");Ce(o.querySelector("head").childNodes).forEach(r=>{t.appendChild(r)}),Ce(o.querySelector("body").childNodes).forEach(r=>{t.appendChild(r)})}},Ze=(t,e)=>{if(!e)return!1;const n=e.split(/\s+/);for(let o=0;o<n.length;o++)if(!t.classList.contains(n[o]))return!1;return!0},zl=(t,e)=>{Ce(t.classList).forEach(n=>{!Object.values(g).includes(n)&&!Object.values(Ht).includes(n)&&!Object.values(e.showClass).includes(n)&&t.classList.remove(n)})},Ee=(t,e,n)=>{if(zl(t,e),e.customClass&&e.customClass[n]){if(typeof e.customClass[n]!="string"&&!e.customClass[n].forEach)return be(`Invalid type of customClass.${n}! Expected string or iterable object, got "${typeof e.customClass[n]}"`);K(t,e.customClass[n])}},_o=(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}`)}},ci=t=>{if(t.focus(),t.type!=="file"){const e=t.value;t.value="",t.value=e}},ui=(t,e,n)=>{!t||!e||(typeof e=="string"&&(e=e.split(/\s+/).filter(Boolean)),e.forEach(o=>{Array.isArray(t)?t.forEach(r=>{n?r.classList.add(o):r.classList.remove(o)}):n?t.classList.add(o):t.classList.remove(o)}))},K=(t,e)=>{ui(t,e,!0)},Fe=(t,e)=>{ui(t,e,!1)},nt=(t,e)=>{const n=Ce(t.childNodes);for(let o=0;o<n.length;o++)if(Ze(n[o],e))return n[o]},jt=(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},le=t=>{t.style.display="none"},br=(t,e,n,o)=>{const r=t.querySelector(e);r&&(r.style[n]=o)},Ln=(t,e,n)=>{e?ne(t,n):le(t)},Se=t=>!!(t&&(t.offsetWidth||t.offsetHeight||t.getClientRects().length)),Wl=()=>!Se(De())&&!Se(rt())&&!Se(ut()),wr=t=>t.scrollHeight>t.clientHeight,di=t=>{const e=window.getComputedStyle(t),n=parseFloat(e.getPropertyValue("animation-duration")||"0"),o=parseFloat(e.getPropertyValue("transition-duration")||"0");return n>0||o>0},ko=(t,e=!1)=>{const n=An();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))},Gl=()=>{const t=An(),e=parseInt(window.getComputedStyle(t).width);t.style.removeProperty("transition"),t.style.width="100%";const n=parseInt(window.getComputedStyle(t).width),o=e/n*100;t.style.removeProperty("transition"),t.style.width=`${o}%`},fi=()=>typeof window>"u"||typeof document>"u",ql=100,D={},Yl=()=>{D.previousActiveElement&&D.previousActiveElement.focus?(D.previousActiveElement.focus(),D.previousActiveElement=null):document.body&&document.body.focus()},Xl=t=>new Promise(e=>{if(!t)return e();const n=window.scrollX,o=window.scrollY;D.restoreFocusTimeout=setTimeout(()=>{Yl(),e()},ql),window.scrollTo(n,o)}),Zl=`
|
|
357
|
+
<div aria-labelledby="${g.title}" aria-describedby="${g["html-container"]}" class="${g.popup}" tabindex="-1">
|
|
358
|
+
<button type="button" class="${g.close}"></button>
|
|
359
|
+
<ul class="${g["progress-steps"]}"></ul>
|
|
360
|
+
<div class="${g.icon}"></div>
|
|
361
|
+
<img class="${g.image}" />
|
|
362
|
+
<h2 class="${g.title}" id="${g.title}"></h2>
|
|
363
|
+
<div class="${g["html-container"]}" id="${g["html-container"]}"></div>
|
|
364
|
+
<input class="${g.input}" />
|
|
365
|
+
<input type="file" class="${g.file}" />
|
|
366
|
+
<div class="${g.range}">
|
|
367
367
|
<input type="range" />
|
|
368
368
|
<output></output>
|
|
369
369
|
</div>
|
|
370
|
-
<select class="${
|
|
371
|
-
<div class="${
|
|
372
|
-
<label for="${
|
|
370
|
+
<select class="${g.select}"></select>
|
|
371
|
+
<div class="${g.radio}"></div>
|
|
372
|
+
<label for="${g.checkbox}" class="${g.checkbox}">
|
|
373
373
|
<input type="checkbox" />
|
|
374
|
-
<span class="${
|
|
374
|
+
<span class="${g.label}"></span>
|
|
375
375
|
</label>
|
|
376
|
-
<textarea class="${
|
|
377
|
-
<div class="${
|
|
378
|
-
<div class="${
|
|
379
|
-
<div class="${
|
|
380
|
-
<button type="button" class="${
|
|
381
|
-
<button type="button" class="${
|
|
382
|
-
<button type="button" class="${
|
|
376
|
+
<textarea class="${g.textarea}"></textarea>
|
|
377
|
+
<div class="${g["validation-message"]}" id="${g["validation-message"]}"></div>
|
|
378
|
+
<div class="${g.actions}">
|
|
379
|
+
<div class="${g.loader}"></div>
|
|
380
|
+
<button type="button" class="${g.confirm}"></button>
|
|
381
|
+
<button type="button" class="${g.deny}"></button>
|
|
382
|
+
<button type="button" class="${g.cancel}"></button>
|
|
383
383
|
</div>
|
|
384
|
-
<div class="${
|
|
385
|
-
<div class="${
|
|
386
|
-
<div class="${
|
|
384
|
+
<div class="${g.footer}"></div>
|
|
385
|
+
<div class="${g["timer-progress-bar-container"]}">
|
|
386
|
+
<div class="${g["timer-progress-bar"]}"></div>
|
|
387
387
|
</div>
|
|
388
388
|
</div>
|
|
389
|
-
`.replace(/(^|\n)\s*/g,""),
|
|
389
|
+
`.replace(/(^|\n)\s*/g,""),Jl=()=>{const t=ae();return t?(t.remove(),Fe([document.documentElement,document.body],[g["no-backdrop"],g["toast-shown"],g["has-column"]]),!0):!1},st=()=>{D.currentInstance.resetValidationMessage()},Ql=()=>{const t=G(),e=nt(t,g.input),n=nt(t,g.file),o=t.querySelector(`.${g.range} input`),r=t.querySelector(`.${g.range} output`),i=nt(t,g.select),c=t.querySelector(`.${g.checkbox} input`),a=nt(t,g.textarea);e.oninput=st,n.onchange=st,i.onchange=st,c.onchange=st,a.oninput=st,o.oninput=()=>{st(),r.value=o.value},o.onchange=()=>{st(),o.nextSibling.value=o.value}},ec=t=>typeof t=="string"?document.querySelector(t):t,tc=t=>{const e=G();e.setAttribute("role",t.toast?"alert":"dialog"),e.setAttribute("aria-live",t.toast?"polite":"assertive"),t.toast||e.setAttribute("aria-modal","true")},nc=t=>{window.getComputedStyle(t).direction==="rtl"&&K(ae(),g.rtl)},oc=t=>{const e=Jl();if(fi()){ft("SweetAlert2 requires document to initialize");return}const n=document.createElement("div");n.className=g.container,e&&K(n,g["no-transition"]),se(n,Zl);const o=ec(t.target);o.appendChild(n),tc(t),nc(o),Ql()},So=(t,e)=>{t instanceof HTMLElement?e.appendChild(t):typeof t=="object"?rc(t,e):t&&se(e,t)},rc=(t,e)=>{t.jquery?ic(e,t):se(e,t.toString())},ic=(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))},Xt=(()=>{if(fi())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})(),sc=()=>{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},ac=(t,e)=>{const n=tn(),o=St();!e.showConfirmButton&&!e.showDenyButton&&!e.showCancelButton?le(n):ne(n),Ee(n,e,"actions"),lc(n,o,e),se(o,e.loaderHtml),Ee(o,e,"loader")};function lc(t,e,n){const o=De(),r=rt(),i=ut();Hn(o,"confirm",n),Hn(r,"deny",n),Hn(i,"cancel",n),cc(o,r,i,n),n.reverseButtons&&(n.toast?(t.insertBefore(i,o),t.insertBefore(r,o)):(t.insertBefore(i,e),t.insertBefore(r,e),t.insertBefore(o,e)))}function cc(t,e,n,o){if(!o.buttonsStyling)return Fe([t,e,n],g.styled);K([t,e,n],g.styled),o.confirmButtonColor&&(t.style.backgroundColor=o.confirmButtonColor,K(t,g["default-outline"])),o.denyButtonColor&&(e.style.backgroundColor=o.denyButtonColor,K(e,g["default-outline"])),o.cancelButtonColor&&(n.style.backgroundColor=o.cancelButtonColor,K(n,g["default-outline"]))}function Hn(t,e,n){Ln(t,n[`show${ho(e)}Button`],"inline-block"),se(t,n[`${e}ButtonText`]),t.setAttribute("aria-label",n[`${e}ButtonAriaLabel`]),t.className=g[e],Ee(t,n,`${e}Button`),K(t,n[`${e}ButtonClass`])}function uc(t,e){typeof e=="string"?t.style.background=e:e||K([document.documentElement,document.body],g["no-backdrop"])}function dc(t,e){e in g?K(t,g[e]):(be('The "position" parameter is not valid, defaulting to "center"'),K(t,g.center))}function fc(t,e){if(e&&typeof e=="string"){const n=`grow-${e}`;n in g&&K(t,g[n])}}const mc=(t,e)=>{const n=ae();n&&(uc(n,e.backdrop),dc(n,e.position),fc(n,e.grow),Ee(n,e,"container"))},R={awaitingPromise:new WeakMap,promise:new WeakMap,innerParams:new WeakMap,domCache:new WeakMap},pc=["input","file","range","select","radio","checkbox","textarea"],hc=(t,e)=>{const n=G(),o=R.innerParams.get(t),r=!o||e.input!==o.input;pc.forEach(i=>{const c=g[i],a=nt(n,c);yc(i,e.inputAttributes),a.className=c,r&&le(a)}),e.input&&(r&&gc(e),bc(e))},gc=t=>{if(!ve[t.input])return ft(`Unexpected type of input! Expected "text", "email", "password", "number", "tel", "select", "radio", "checkbox", "textarea", "file" or "url", got "${t.input}"`);const e=mi(t.input),n=ve[t.input](e,t);ne(n),setTimeout(()=>{ci(n)})},vc=t=>{for(let e=0;e<t.attributes.length;e++){const n=t.attributes[e].name;["type","value","style"].includes(n)||t.removeAttribute(n)}},yc=(t,e)=>{const n=_o(G(),t);if(n){vc(n);for(const o in e)n.setAttribute(o,e[o])}},bc=t=>{const e=mi(t.input);t.customClass&&K(e,t.customClass.input)},Co=(t,e)=>{(!t.placeholder||e.inputPlaceholder)&&(t.placeholder=e.inputPlaceholder)},nn=(t,e,n)=>{if(n.inputLabel){t.id=g.input;const o=document.createElement("label"),r=g["input-label"];o.setAttribute("for",t.id),o.className=r,K(o,n.customClass.inputLabel),o.innerText=n.inputLabel,e.insertAdjacentElement("beforebegin",o)}},mi=t=>{const e=g[t]?g[t]:g.input;return nt(G(),e)},ve={};ve.text=ve.email=ve.password=ve.number=ve.tel=ve.url=(t,e)=>(typeof e.inputValue=="string"||typeof e.inputValue=="number"?t.value=e.inputValue:vo(e.inputValue)||be(`Unexpected type of inputValue! Expected "string", "number" or "Promise", got "${typeof e.inputValue}"`),nn(t,t,e),Co(t,e),t.type=e.input,t);ve.file=(t,e)=>(nn(t,t,e),Co(t,e),t);ve.range=(t,e)=>{const n=t.querySelector("input"),o=t.querySelector("output");return n.value=e.inputValue,n.type=e.input,o.value=e.inputValue,nn(n,t,e),t};ve.select=(t,e)=>{if(t.textContent="",e.inputPlaceholder){const n=document.createElement("option");se(n,e.inputPlaceholder),n.value="",n.disabled=!0,n.selected=!0,t.appendChild(n)}return nn(t,t,e),t};ve.radio=t=>(t.textContent="",t);ve.checkbox=(t,e)=>{const n=_o(G(),"checkbox");n.value="1",n.id=g.checkbox,n.checked=!!e.inputValue;const o=t.querySelector("span");return se(o,e.inputPlaceholder),t};ve.textarea=(t,e)=>{t.value=e.inputValue,Co(t,e),nn(t,t,e);const n=o=>parseInt(window.getComputedStyle(o).marginLeft)+parseInt(window.getComputedStyle(o).marginRight);return setTimeout(()=>{if("MutationObserver"in window){const o=parseInt(window.getComputedStyle(G()).width),r=()=>{const i=t.offsetWidth+n(t);i>o?G().style.width=`${i}px`:G().style.width=null};new MutationObserver(r).observe(t,{attributes:!0,attributeFilter:["style"]})}}),t};const wc=(t,e)=>{const n=_n();Ee(n,e,"htmlContainer"),e.html?(So(e.html,n),ne(n,"block")):e.text?(n.textContent=e.text,ne(n,"block")):le(n),hc(t,e)},_c=(t,e)=>{const n=li();Ln(n,e.footer),e.footer&&So(e.footer,n),Ee(n,e,"footer")},kc=(t,e)=>{const n=yo();se(n,e.closeButtonHtml),Ee(n,e,"closeButton"),Ln(n,e.showCloseButton),n.setAttribute("aria-label",e.closeButtonAriaLabel)},Sc=(t,e)=>{const n=R.innerParams.get(t),o=en();if(n&&e.icon===n.icon){kr(o,e),_r(o,e);return}if(!e.icon&&!e.iconHtml)return le(o);if(e.icon&&Object.keys(Ht).indexOf(e.icon)===-1)return ft(`Unknown icon! Expected "success", "error", "warning", "info" or "question", got "${e.icon}"`),le(o);ne(o),kr(o,e),_r(o,e),K(o,e.showClass.icon)},_r=(t,e)=>{for(const n in Ht)e.icon!==n&&Fe(t,Ht[n]);K(t,Ht[e.icon]),Ec(t,e),Cc(),Ee(t,e,"icon")},Cc=()=>{const t=G(),e=window.getComputedStyle(t).getPropertyValue("background-color"),n=t.querySelectorAll("[class^=swal2-success-circular-line], .swal2-success-fix");for(let o=0;o<n.length;o++)n[o].style.backgroundColor=e},Ic=`
|
|
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
|
+
`,Tc=`
|
|
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
|
+
`,kr=(t,e)=>{t.textContent="",e.iconHtml?se(t,Sr(e.iconHtml)):e.icon==="success"?se(t,Ic):e.icon==="error"?se(t,Tc):se(t,Sr({question:"?",warning:"!",info:"i"}[e.icon]))},Ec=(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"])br(t,n,"backgroundColor",e.iconColor);br(t,".swal2-success-ring","borderColor",e.iconColor)}},Sr=t=>`<div class="${g["icon-content"]}">${t}</div>`,Pc=(t,e)=>{const n=si();if(!e.imageUrl)return le(n);ne(n,""),n.setAttribute("src",e.imageUrl),n.setAttribute("alt",e.imageAlt),jt(n,"width",e.imageWidth),jt(n,"height",e.imageHeight),n.className=g.image,Ee(n,e,"image")},Ac=t=>{const e=document.createElement("li");return K(e,g["progress-step"]),se(e,t),e},xc=t=>{const e=document.createElement("li");return K(e,g["progress-step-line"]),t.progressStepsDistance&&(e.style.width=t.progressStepsDistance),e},Lc=(t,e)=>{const n=ai();if(!e.progressSteps||e.progressSteps.length===0)return le(n);ne(n),n.textContent="",e.currentProgressStep>=e.progressSteps.length&&be("Invalid currentProgressStep parameter, it should be less than progressSteps.length (currentProgressStep like JS arrays starts from 0)"),e.progressSteps.forEach((o,r)=>{const i=Ac(o);if(n.appendChild(i),r===e.currentProgressStep&&K(i,g["active-progress-step"]),r!==e.progressSteps.length-1){const c=xc(e);n.appendChild(c)}})},Oc=(t,e)=>{const n=ii();Ln(n,e.title||e.titleText,"block"),e.title&&So(e.title,n),e.titleText&&(n.innerText=e.titleText),Ee(n,e,"title")},$c=(t,e)=>{const n=ae(),o=G();e.toast?(jt(n,"width",e.width),o.style.width="100%",o.insertBefore(St(),en())):jt(o,"width",e.width),jt(o,"padding",e.padding),e.color&&(o.style.color=e.color),e.background&&(o.style.background=e.background),le(Pn()),Bc(o,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),Ee(t,e,"popup"),typeof e.customClass=="string"&&K(t,e.customClass),e.icon&&K(t,g[`icon-${e.icon}`])},pi=(t,e)=>{$c(t,e),mc(t,e),Lc(t,e),Sc(t,e),Pc(t,e),Oc(t,e),kc(t,e),wc(t,e),ac(t,e),_c(t,e),typeof e.didRender=="function"&&e.didRender(G())},Ct=Object.freeze({cancel:"cancel",backdrop:"backdrop",close:"close",esc:"esc",timer:"timer"}),Nc=()=>{Ce(document.body.children).forEach(e=>{e===ae()||e.contains(ae())||(e.hasAttribute("aria-hidden")&&e.setAttribute("data-previous-aria-hidden",e.getAttribute("aria-hidden")),e.setAttribute("aria-hidden","true"))})},hi=()=>{Ce(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")})},gi=["swal-title","swal-html","swal-footer"],Dc=t=>{const e=typeof t.template=="string"?document.querySelector(t.template):t.template;if(!e)return{};const n=e.content;return Fc(n),Object.assign(Mc(n),Rc(n),Uc(n),Vc(n),Hc(n),jc(n,gi))},Mc=t=>{const e={};return Ce(t.querySelectorAll("swal-param")).forEach(n=>{dt(n,["name","value"]);const o=n.getAttribute("name"),r=n.getAttribute("value");typeof bt[o]=="boolean"&&r==="false"&&(e[o]=!1),typeof bt[o]=="object"&&(e[o]=JSON.parse(r))}),e},Rc=t=>{const e={};return Ce(t.querySelectorAll("swal-button")).forEach(n=>{dt(n,["type","color","aria-label"]);const o=n.getAttribute("type");e[`${o}ButtonText`]=n.innerHTML,e[`show${ho(o)}Button`]=!0,n.hasAttribute("color")&&(e[`${o}ButtonColor`]=n.getAttribute("color")),n.hasAttribute("aria-label")&&(e[`${o}ButtonAriaLabel`]=n.getAttribute("aria-label"))}),e},Uc=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},Vc=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},Hc=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 o=t.querySelectorAll("swal-input-option");return o.length&&(e.inputOptions={},Ce(o).forEach(r=>{dt(r,["value"]);const i=r.getAttribute("value"),c=r.innerHTML;e.inputOptions[i]=c})),e},jc=(t,e)=>{const n={};for(const o in e){const r=e[o],i=t.querySelector(r);i&&(dt(i,[]),n[r.replace(/^swal-/,"")]=i.innerHTML.trim())}return n},Fc=t=>{const e=gi.concat(["swal-param","swal-button","swal-image","swal-icon","swal-input","swal-input-option"]);Ce(t.children).forEach(n=>{const o=n.tagName.toLowerCase();e.indexOf(o)===-1&&be(`Unrecognized element <${o}>`)})},dt=(t,e)=>{Ce(t.attributes).forEach(n=>{e.indexOf(n.name)===-1&&be([`Unrecognized attribute "${n.name}" on <${t.tagName.toLowerCase()}>.`,`${e.length?`Allowed attributes are: ${e.join(", ")}`:"To set the value, use HTML within the element."}`])})},Cr={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 Kc(t){t.inputValidator||Object.keys(Cr).forEach(e=>{t.input===e&&(t.inputValidator=Cr[e])})}function zc(t){(!t.target||typeof t.target=="string"&&!document.querySelector(t.target)||typeof t.target!="string"&&!t.target.appendChild)&&(be('Target parameter is not valid, defaulting to "body"'),t.target="body")}function Wc(t){Kc(t),t.showLoaderOnConfirm&&!t.preConfirm&&be(`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 />")),Pu(t)}class vd{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 bd=()=>{xt.previousBodyPadding===null&&document.body.scrollHeight>window.innerHeight&&(xt.previousBodyPadding=parseInt(window.getComputedStyle(document.body).getPropertyValue("padding-right")),document.body.style.paddingRight=`${xt.previousBodyPadding+Ou()}px`)},wd=()=>{xt.previousBodyPadding!==null&&(document.body.style.paddingRight=`${xt.previousBodyPadding}px`,xt.previousBodyPadding=null)},Sd=()=>{if((/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream||navigator.platform==="MacIntel"&&navigator.maxTouchPoints>1)&&!rt(document.body,y.iosfix)){const e=document.body.scrollTop;document.body.style.top=`${e*-1}px`,q(document.body,y.iosfix),kd(),_d()}},_d=()=>{const t=navigator.userAgent,e=!!t.match(/iPad/i)||!!t.match(/iPhone/i),n=!!t.match(/WebKit/i);e&&n&&!t.match(/CriOS/i)&&J().scrollHeight>window.innerHeight-44&&(de().style.paddingBottom="44px")},kd=()=>{const t=de();let e;t.ontouchstart=n=>{e=Cd(n)},t.ontouchmove=n=>{e&&(n.preventDefault(),n.stopPropagation())}},Cd=t=>{const e=t.target,n=de();return Ed(t)||Td(t)?!1:e===n||!oi(n)&&e.tagName!=="INPUT"&&e.tagName!=="TEXTAREA"&&!(oi(Bn())&&Bn().contains(e))},Ed=t=>t.touches&&t.touches.length&&t.touches[0].touchType==="stylus",Td=t=>t.touches&&t.touches.length>1,Ad=()=>{if(rt(document.body,y.iosfix)){const t=parseInt(document.body.style.top,10);Je(document.body,y.iosfix),document.body.style.top="",document.body.scrollTop=t*-1}},ps=10,Pd=t=>{const e=de(),n=J();typeof t.willOpen=="function"&&t.willOpen(n);const o=window.getComputedStyle(document.body).overflowY;Od(e,n,t),setTimeout(()=>{Id(e,n)},ps),Qr()&&(xd(e,t.scrollbarPadding,o),sd()),!Wn()&&!H.previousActiveElement&&(H.previousActiveElement=document.activeElement),typeof t.didOpen=="function"&&setTimeout(()=>t.didOpen(n)),Je(e,y["no-transition"])},hs=t=>{const e=J();if(t.target!==e)return;const n=de();e.removeEventListener(ln,hs),n.style.overflowY="auto"},Id=(t,e)=>{ln&&ls(e)?(t.style.overflowY="hidden",e.addEventListener(ln,hs)):t.style.overflowY="auto"},xd=(t,e,n)=>{Sd(),e&&n!=="hidden"&&bd(),setTimeout(()=>{t.scrollTop=0})},Od=(t,e,n)=>{q(t,n.showClass.backdrop),e.style.setProperty("opacity","0","important"),ae(e,"grid"),setTimeout(()=>{q(e,n.showClass.popup),e.style.removeProperty("opacity")},ps),q([document.documentElement,document.body],y.shown),n.heightAuto&&n.backdrop&&!n.toast&&q([document.documentElement,document.body],y["height-auto"])},Ot=t=>{let e=J();e||new Lt,e=J();const n=Rt();Wn()?fe(mn()):Ld(e,t),ae(n),e.setAttribute("data-loading",!0),e.setAttribute("aria-busy",!0),e.focus()},Ld=(t,e)=>{const n=pn(),r=Rt();!e&&Pe(ze())&&(e=ze()),ae(n),e&&(fe(e),r.setAttribute("data-button-to-replace",e.className)),r.parentNode.insertBefore(r,e),q([t,n],y.loading)},Rd=(t,e)=>{e.input==="select"||e.input==="radio"?Md(t,e):["text","email","number","tel","textarea"].includes(e.input)&&(Yr(e.inputValue)||Jr(e.inputValue))&&(Ot(ze()),Ud(t,e))},$d=(t,e)=>{const n=t.getInput();if(!n)return null;switch(e.input){case"checkbox":return Bd(n);case"radio":return Nd(n);case"file":return Dd(n);default:return e.inputAutoTrim?n.value.trim():n.value}},Bd=t=>t.checked?1:0,Nd=t=>t.checked?t.value:null,Dd=t=>t.files.length?t.getAttribute("multiple")!==null?t.files:t.files[0]:null,Md=(t,e)=>{const n=J(),r=o=>Hd[e.input](n,Ar(o),e);Yr(e.inputOptions)||Jr(e.inputOptions)?(Ot(ze()),dn(e.inputOptions).then(o=>{t.hideLoading(),r(o)})):typeof e.inputOptions=="object"?r(e.inputOptions):kt(`Unexpected type of inputOptions! Expected object, Map or Promise, got ${typeof e.inputOptions}`)},Ud=(t,e)=>{const n=t.getInput();fe(n),dn(e.inputValue).then(r=>{n.value=e.input==="number"?parseFloat(r)||0:`${r}`,ae(n),n.focus(),t.hideLoading()}).catch(r=>{kt(`Error in inputValue promise: ${r}`),n.value="",ae(n),n.focus(),t.hideLoading()})},Hd={select:(t,e,n)=>{const r=ct(t,y.select),o=(i,s,a)=>{const c=document.createElement("option");c.value=a,ue(c,s),c.selected=ci(a,n.inputValue),i.appendChild(c)};e.forEach(i=>{const s=i[0],a=i[1];if(Array.isArray(a)){const c=document.createElement("optgroup");c.label=s,c.disabled=!1,r.appendChild(c),a.forEach(u=>o(c,u[1],u[0]))}else o(r,a,s)}),r.focus()},radio:(t,e,n)=>{const r=ct(t,y.radio);e.forEach(i=>{const s=i[0],a=i[1],c=document.createElement("input"),u=document.createElement("label");c.type="radio",c.name=y.radio,c.value=s,ci(s,n.inputValue)&&(c.checked=!0);const f=document.createElement("span");ue(f,a),f.className=y.label,u.appendChild(c),u.appendChild(f),r.appendChild(u)});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},ci=(t,e)=>e&&e.toString()===t.toString();function ui(){const t=j.innerParams.get(this);if(!t)return;const e=j.domCache.get(this);fe(e.loader),Wn()?t.icon&&ae(mn()):jd(e),Je([e.popup,e.actions],y.loading),e.popup.removeAttribute("aria-busy"),e.popup.removeAttribute("data-loading"),e.confirmButton.disabled=!1,e.denyButton.disabled=!1,e.cancelButton.disabled=!1}const jd=t=>{const e=t.popup.getElementsByClassName(t.loader.getAttribute("data-button-to-replace"));e.length?ae(e[0],"inline-block"):yu()&&fe(t.actions)};function Vd(t){const e=j.innerParams.get(t||this),n=j.domCache.get(t||this);return n?eo(n.popup,e.input):null}const cn={swalPromiseResolve:new WeakMap,swalPromiseReject:new WeakMap},Fd=()=>Pe(J()),gs=()=>ze()&&ze().click(),zd=()=>dt()&&dt().click(),Kd=()=>wt()&&wt().click(),ys=t=>{t.keydownTarget&&t.keydownHandlerAdded&&(t.keydownTarget.removeEventListener("keydown",t.keydownHandler,{capture:t.keydownListenerCapture}),t.keydownHandlerAdded=!1)},Wd=(t,e,n,r)=>{ys(e),n.toast||(e.keydownHandler=o=>Gd(t,o,r),e.keydownTarget=n.keydownListenerCapture?window:J(),e.keydownListenerCapture=n.keydownListenerCapture,e.keydownTarget.addEventListener("keydown",e.keydownHandler,{capture:e.keydownListenerCapture}),e.keydownHandlerAdded=!0)},Pr=(t,e,n)=>{const r=Zr();if(r.length)return e=e+n,e===r.length?e=0:e===-1&&(e=r.length-1),r[e].focus();J().focus()},vs=["ArrowRight","ArrowDown"],qd=["ArrowLeft","ArrowUp"],Gd=(t,e,n)=>{const r=j.innerParams.get(t);r&&(e.isComposing||e.keyCode===229||(r.stopKeydownPropagation&&e.stopPropagation(),e.key==="Enter"?Yd(t,e,r):e.key==="Tab"?Jd(e,r):[...vs,...qd].includes(e.key)?Xd(e.key):e.key==="Escape"&&Zd(e,r,n)))},Yd=(t,e,n)=>{if(Fn(n.allowEnterKey)&&e.target&&t.getInput()&&e.target.outerHTML===t.getInput().outerHTML){if(["textarea","file"].includes(n.input))return;gs(),e.preventDefault()}},Jd=(t,e)=>{const n=t.target,r=Zr();let o=-1;for(let i=0;i<r.length;i++)if(n===r[i]){o=i;break}t.shiftKey?Pr(e,o,-1):Pr(e,o,1),t.stopPropagation(),t.preventDefault()},Xd=t=>{const e=ze(),n=dt(),r=wt();if(![e,n,r].includes(document.activeElement))return;const o=vs.includes(t)?"nextElementSibling":"previousElementSibling";let i=document.activeElement;for(let s=0;s<pn().children.length;s++){if(i=i[o],!i)return;if(Pe(i)&&i instanceof HTMLButtonElement)break}i instanceof HTMLButtonElement&&i.focus()},Zd=(t,e,n)=>{Fn(e.allowEscapeKey)&&(t.preventDefault(),n($t.esc))};function bs(t,e,n,r){Wn()?di(t,r):(Su(n).then(()=>di(t,r)),ys(H)),/^((?!chrome|android).)*safari/i.test(navigator.userAgent)?(e.setAttribute("style","display:none !important"),e.removeAttribute("class"),e.innerHTML=""):e.remove(),Qr()&&(wd(),Ad(),fs()),Qd()}function Qd(){Je([document.documentElement,document.body],[y.shown,y["height-auto"],y["no-backdrop"],y["toast-shown"]])}function kn(t){t=rf(t);const e=cn.swalPromiseResolve.get(this),n=tf(this);this.isAwaitingPromise()?t.isDismissed||(gn(this),e(t)):n&&e(t)}function ef(){return!!j.awaitingPromise.get(this)}const tf=t=>{const e=J();if(!e)return!1;const n=j.innerParams.get(t);if(!n||rt(e,n.hideClass.popup))return!1;Je(e,n.showClass.popup),q(e,n.hideClass.popup);const r=de();return Je(r,n.showClass.backdrop),q(r,n.hideClass.backdrop),of(t,e,n),!0};function nf(t){const e=cn.swalPromiseReject.get(this);gn(this),e&&e(t)}const gn=t=>{t.isAwaitingPromise()&&(j.awaitingPromise.delete(t),j.innerParams.get(t)||t._destroy())},rf=t=>typeof t>"u"?{isConfirmed:!1,isDenied:!1,isDismissed:!0}:Object.assign({isConfirmed:!1,isDenied:!1,isDismissed:!1},t),of=(t,e,n)=>{const r=de(),o=ln&&ls(e);typeof n.willClose=="function"&&n.willClose(e),o?sf(t,e,r,n.returnFocus,n.didClose):bs(t,r,n.returnFocus,n.didClose)},sf=(t,e,n,r,o)=>{H.swalCloseEventFinishedCallback=bs.bind(null,t,n,r,o),e.addEventListener(ln,function(i){i.target===e&&(H.swalCloseEventFinishedCallback(),delete H.swalCloseEventFinishedCallback)})},di=(t,e)=>{setTimeout(()=>{typeof e=="function"&&e.bind(t.params)(),t._destroy()})};function ws(t,e,n){const r=j.domCache.get(t);e.forEach(o=>{r[o].disabled=n})}function Ss(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 af(){ws(this,["confirmButton","denyButton","cancelButton"],!1)}function lf(){ws(this,["confirmButton","denyButton","cancelButton"],!0)}function cf(){return Ss(this.getInput(),!1)}function uf(){return Ss(this.getInput(),!0)}function df(t){const e=j.domCache.get(this),n=j.innerParams.get(this);ue(e.validationMessage,t),e.validationMessage.className=y["validation-message"],n.customClass&&n.customClass.validationMessage&&q(e.validationMessage,n.customClass.validationMessage),ae(e.validationMessage);const r=this.getInput();r&&(r.setAttribute("aria-invalid",!0),r.setAttribute("aria-describedby",y["validation-message"]),ss(r),q(r,y.inputerror))}function ff(){const t=j.domCache.get(this);t.validationMessage&&fe(t.validationMessage);const e=this.getInput();e&&(e.removeAttribute("aria-invalid"),e.removeAttribute("aria-describedby"),Je(e,y.inputerror))}function mf(){return j.domCache.get(this).progressSteps}function pf(t){const e=J(),n=j.innerParams.get(this);if(!e||rt(e,n.hideClass.popup))return Ce("You're trying to update the closed or closing popup, that won't work. Use the update() method in preConfirm parameter or show a new popup.");const r=hf(t),o=Object.assign({},n,r);ds(this,o),j.innerParams.set(this,o),Object.defineProperties(this,{params:{value:Object.assign({},this.params,t),writable:!1,enumerable:!0}})}const hf=t=>{const e={};return Object.keys(t).forEach(n=>{es(n)?e[n]=t[n]:Ce(`Invalid parameter to update: "${n}". Updatable params are listed here: https://github.com/sweetalert2/sweetalert2/blob/master/src/utils/params.js
|
|
401
|
+
https://sweetalert2.github.io/#ajax-request`),zc(t),typeof t.title=="string"&&(t.title=t.title.split(`
|
|
402
|
+
`).join("<br />")),oc(t)}class Gc{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 qc=()=>{wt.previousBodyPadding===null&&document.body.scrollHeight>window.innerHeight&&(wt.previousBodyPadding=parseInt(window.getComputedStyle(document.body).getPropertyValue("padding-right")),document.body.style.paddingRight=`${wt.previousBodyPadding+sc()}px`)},Yc=()=>{wt.previousBodyPadding!==null&&(document.body.style.paddingRight=`${wt.previousBodyPadding}px`,wt.previousBodyPadding=null)},Xc=()=>{if((/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream||navigator.platform==="MacIntel"&&navigator.maxTouchPoints>1)&&!Ze(document.body,g.iosfix)){const e=document.body.scrollTop;document.body.style.top=`${e*-1}px`,K(document.body,g.iosfix),Jc(),Zc()}},Zc=()=>{const t=navigator.userAgent,e=!!t.match(/iPad/i)||!!t.match(/iPhone/i),n=!!t.match(/WebKit/i);e&&n&&!t.match(/CriOS/i)&&G().scrollHeight>window.innerHeight-44&&(ae().style.paddingBottom="44px")},Jc=()=>{const t=ae();let e;t.ontouchstart=n=>{e=Qc(n)},t.ontouchmove=n=>{e&&(n.preventDefault(),n.stopPropagation())}},Qc=t=>{const e=t.target,n=ae();return eu(t)||tu(t)?!1:e===n||!wr(n)&&e.tagName!=="INPUT"&&e.tagName!=="TEXTAREA"&&!(wr(_n())&&_n().contains(e))},eu=t=>t.touches&&t.touches.length&&t.touches[0].touchType==="stylus",tu=t=>t.touches&&t.touches.length>1,nu=()=>{if(Ze(document.body,g.iosfix)){const t=parseInt(document.body.style.top,10);Fe(document.body,g.iosfix),document.body.style.top="",document.body.scrollTop=t*-1}},vi=10,ou=t=>{const e=ae(),n=G();typeof t.willOpen=="function"&&t.willOpen(n);const r=window.getComputedStyle(document.body).overflowY;su(e,n,t),setTimeout(()=>{ru(e,n)},vi),wo()&&(iu(e,t.scrollbarPadding,r),Nc()),!xn()&&!D.previousActiveElement&&(D.previousActiveElement=document.activeElement),typeof t.didOpen=="function"&&setTimeout(()=>t.didOpen(n)),Fe(e,g["no-transition"])},yi=t=>{const e=G();if(t.target!==e)return;const n=ae();e.removeEventListener(Xt,yi),n.style.overflowY="auto"},ru=(t,e)=>{Xt&&di(e)?(t.style.overflowY="hidden",e.addEventListener(Xt,yi)):t.style.overflowY="auto"},iu=(t,e,n)=>{Xc(),e&&n!=="hidden"&&qc(),setTimeout(()=>{t.scrollTop=0})},su=(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")},vi),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=G();e||new kt,e=G();const n=St();xn()?le(en()):au(e,t),ne(n),e.setAttribute("data-loading",!0),e.setAttribute("aria-busy",!0),e.focus()},au=(t,e)=>{const n=tn(),o=St();!e&&Se(De())&&(e=De()),ne(n),e&&(le(e),o.setAttribute("data-button-to-replace",e.className)),o.parentNode.insertBefore(o,e),K([t,n],g.loading)},lu=(t,e)=>{e.input==="select"||e.input==="radio"?mu(t,e):["text","email","number","tel","textarea"].includes(e.input)&&(go(e.inputValue)||vo(e.inputValue))&&(_t(De()),pu(t,e))},cu=(t,e)=>{const n=t.getInput();if(!n)return null;switch(e.input){case"checkbox":return uu(n);case"radio":return du(n);case"file":return fu(n);default:return e.inputAutoTrim?n.value.trim():n.value}},uu=t=>t.checked?1:0,du=t=>t.checked?t.value:null,fu=t=>t.files.length?t.getAttribute("multiple")!==null?t.files:t.files[0]:null,mu=(t,e)=>{const n=G(),o=r=>hu[e.input](n,to(r),e);go(e.inputOptions)||vo(e.inputOptions)?(_t(De()),Jt(e.inputOptions).then(r=>{t.hideLoading(),o(r)})):typeof e.inputOptions=="object"?o(e.inputOptions):ft(`Unexpected type of inputOptions! Expected object, Map or Promise, got ${typeof e.inputOptions}`)},pu=(t,e)=>{const n=t.getInput();le(n),Jt(e.inputValue).then(o=>{n.value=e.input==="number"?parseFloat(o)||0:`${o}`,ne(n),n.focus(),t.hideLoading()}).catch(o=>{ft(`Error in inputValue promise: ${o}`),n.value="",ne(n),n.focus(),t.hideLoading()})},hu={select:(t,e,n)=>{const o=nt(t,g.select),r=(i,c,a)=>{const l=document.createElement("option");l.value=a,se(l,c),l.selected=Ir(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,Ir(c,n.inputValue)&&(l.checked=!0);const m=document.createElement("span");se(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()}},to=t=>{const e=[];return typeof Map<"u"&&t instanceof Map?t.forEach((n,o)=>{let r=n;typeof r=="object"&&(r=to(r)),e.push([o,r])}):Object.keys(t).forEach(n=>{let o=t[n];typeof o=="object"&&(o=to(o)),e.push([n,o])}),e},Ir=(t,e)=>e&&e.toString()===t.toString();function Tr(){const t=R.innerParams.get(this);if(!t)return;const e=R.domCache.get(this);le(e.loader),xn()?t.icon&&ne(en()):gu(e),Fe([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 gu=t=>{const e=t.popup.getElementsByClassName(t.loader.getAttribute("data-button-to-replace"));e.length?ne(e[0],"inline-block"):Wl()&&le(t.actions)};function vu(t){const e=R.innerParams.get(t||this),n=R.domCache.get(t||this);return n?_o(n.popup,e.input):null}const Zt={swalPromiseResolve:new WeakMap,swalPromiseReject:new WeakMap},yu=()=>Se(G()),bi=()=>De()&&De().click(),bu=()=>rt()&&rt().click(),wu=()=>ut()&&ut().click(),wi=t=>{t.keydownTarget&&t.keydownHandlerAdded&&(t.keydownTarget.removeEventListener("keydown",t.keydownHandler,{capture:t.keydownListenerCapture}),t.keydownHandlerAdded=!1)},_u=(t,e,n,o)=>{wi(e),n.toast||(e.keydownHandler=r=>Su(t,r,o),e.keydownTarget=n.keydownListenerCapture?window:G(),e.keydownListenerCapture=n.keydownListenerCapture,e.keydownTarget.addEventListener("keydown",e.keydownHandler,{capture:e.keydownListenerCapture}),e.keydownHandlerAdded=!0)},no=(t,e,n)=>{const o=bo();if(o.length)return e=e+n,e===o.length?e=0:e===-1&&(e=o.length-1),o[e].focus();G().focus()},_i=["ArrowRight","ArrowDown"],ku=["ArrowLeft","ArrowUp"],Su=(t,e,n)=>{const o=R.innerParams.get(t);o&&(e.isComposing||e.keyCode===229||(o.stopKeydownPropagation&&e.stopPropagation(),e.key==="Enter"?Cu(t,e,o):e.key==="Tab"?Iu(e,o):[..._i,...ku].includes(e.key)?Tu(e.key):e.key==="Escape"&&Eu(e,o,n)))},Cu=(t,e,n)=>{if(En(n.allowEnterKey)&&e.target&&t.getInput()&&e.target.outerHTML===t.getInput().outerHTML){if(["textarea","file"].includes(n.input))return;bi(),e.preventDefault()}},Iu=(t,e)=>{const n=t.target,o=bo();let r=-1;for(let i=0;i<o.length;i++)if(n===o[i]){r=i;break}t.shiftKey?no(e,r,-1):no(e,r,1),t.stopPropagation(),t.preventDefault()},Tu=t=>{const e=De(),n=rt(),o=ut();if(![e,n,o].includes(document.activeElement))return;const r=_i.includes(t)?"nextElementSibling":"previousElementSibling";let i=document.activeElement;for(let c=0;c<tn().children.length;c++){if(i=i[r],!i)return;if(Se(i)&&i instanceof HTMLButtonElement)break}i instanceof HTMLButtonElement&&i.focus()},Eu=(t,e,n)=>{En(e.allowEscapeKey)&&(t.preventDefault(),n(Ct.esc))};function ki(t,e,n,o){xn()?Er(t,o):(Xl(n).then(()=>Er(t,o)),wi(D)),/^((?!chrome|android).)*safari/i.test(navigator.userAgent)?(e.setAttribute("style","display:none !important"),e.removeAttribute("class"),e.innerHTML=""):e.remove(),wo()&&(Yc(),nu(),hi()),Pu()}function Pu(){Fe([document.documentElement,document.body],[g.shown,g["height-auto"],g["no-backdrop"],g["toast-shown"]])}function fn(t){t=Ou(t);const e=Zt.swalPromiseResolve.get(this),n=xu(this);this.isAwaitingPromise()?t.isDismissed||(on(this),e(t)):n&&e(t)}function Au(){return!!R.awaitingPromise.get(this)}const xu=t=>{const e=G();if(!e)return!1;const n=R.innerParams.get(t);if(!n||Ze(e,n.hideClass.popup))return!1;Fe(e,n.showClass.popup),K(e,n.hideClass.popup);const o=ae();return Fe(o,n.showClass.backdrop),K(o,n.hideClass.backdrop),$u(t,e,n),!0};function Lu(t){const e=Zt.swalPromiseReject.get(this);on(this),e&&e(t)}const on=t=>{t.isAwaitingPromise()&&(R.awaitingPromise.delete(t),R.innerParams.get(t)||t._destroy())},Ou=t=>typeof t>"u"?{isConfirmed:!1,isDenied:!1,isDismissed:!0}:Object.assign({isConfirmed:!1,isDenied:!1,isDismissed:!1},t),$u=(t,e,n)=>{const o=ae(),r=Xt&&di(e);typeof n.willClose=="function"&&n.willClose(e),r?Bu(t,e,o,n.returnFocus,n.didClose):ki(t,o,n.returnFocus,n.didClose)},Bu=(t,e,n,o,r)=>{D.swalCloseEventFinishedCallback=ki.bind(null,t,n,o,r),e.addEventListener(Xt,function(i){i.target===e&&(D.swalCloseEventFinishedCallback(),delete D.swalCloseEventFinishedCallback)})},Er=(t,e)=>{setTimeout(()=>{typeof e=="function"&&e.bind(t.params)(),t._destroy()})};function Si(t,e,n){const o=R.domCache.get(t);e.forEach(r=>{o[r].disabled=n})}function Ci(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 Nu(){Si(this,["confirmButton","denyButton","cancelButton"],!1)}function Du(){Si(this,["confirmButton","denyButton","cancelButton"],!0)}function Mu(){return Ci(this.getInput(),!1)}function Ru(){return Ci(this.getInput(),!0)}function Uu(t){const e=R.domCache.get(this),n=R.innerParams.get(this);se(e.validationMessage,t),e.validationMessage.className=g["validation-message"],n.customClass&&n.customClass.validationMessage&&K(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"]),ci(o),K(o,g.inputerror))}function Vu(){const t=R.domCache.get(this);t.validationMessage&&le(t.validationMessage);const e=this.getInput();e&&(e.removeAttribute("aria-invalid"),e.removeAttribute("aria-describedby"),Fe(e,g.inputerror))}function Hu(){return R.domCache.get(this).progressSteps}function ju(t){const e=G(),n=R.innerParams.get(this);if(!e||Ze(e,n.hideClass.popup))return be("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=Fu(t),r=Object.assign({},n,o);pi(this,r),R.innerParams.set(this,r),Object.defineProperties(this,{params:{value:Object.assign({},this.params,t),writable:!1,enumerable:!0}})}const Fu=t=>{const e={};return Object.keys(t).forEach(n=>{oi(n)?e[n]=t[n]:be(`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 gf(){const t=j.domCache.get(this),e=j.innerParams.get(this);if(!e){_s(this);return}t.popup&&H.swalCloseEventFinishedCallback&&(H.swalCloseEventFinishedCallback(),delete H.swalCloseEventFinishedCallback),H.deferDisposalTimer&&(clearTimeout(H.deferDisposalTimer),delete H.deferDisposalTimer),typeof e.didDestroy=="function"&&e.didDestroy(),yf(this)}const yf=t=>{_s(t),delete t.params,delete H.keydownHandler,delete H.keydownTarget,delete H.currentInstance},_s=t=>{t.isAwaitingPromise()?(ur(j,t),j.awaitingPromise.set(t,!0)):(ur(cn,t),ur(j,t))},ur=(t,e)=>{for(const n in t)t[n].delete(e)},ks=Object.freeze(Object.defineProperty({__proto__:null,_destroy:gf,close:kn,closeModal:kn,closePopup:kn,closeToast:kn,disableButtons:lf,disableInput:uf,disableLoading:ui,enableButtons:af,enableInput:cf,getInput:Vd,getProgressSteps:mf,handleAwaitingPromise:gn,hideLoading:ui,isAwaitingPromise:ef,rejectPromise:nf,resetValidationMessage:ff,showValidationMessage:df,update:pf},Symbol.toStringTag,{value:"Module"})),vf=t=>{const e=j.innerParams.get(t);t.disableButtons(),e.input?Cs(t,"confirm"):io(t,!0)},bf=t=>{const e=j.innerParams.get(t);t.disableButtons(),e.returnInputValueOnDeny?Cs(t,"deny"):oo(t,!1)},wf=(t,e)=>{t.disableButtons(),e($t.cancel)},Cs=(t,e)=>{const n=j.innerParams.get(t);if(!n.input)return kt(`The "input" parameter is needed to be set when using returnInputValueOn${Gr(e)}`);const r=$d(t,n);n.inputValidator?Sf(t,r,e):t.getInput().checkValidity()?e==="deny"?oo(t,r):io(t,r):(t.enableButtons(),t.showValidationMessage(n.validationMessage))},Sf=(t,e,n)=>{const r=j.innerParams.get(t);t.disableInput(),Promise.resolve().then(()=>dn(r.inputValidator(e,r.validationMessage))).then(i=>{t.enableButtons(),t.enableInput(),i?t.showValidationMessage(i):n==="deny"?oo(t,e):io(t,e)})},oo=(t,e)=>{const n=j.innerParams.get(t||void 0);n.showLoaderOnDeny&&Ot(dt()),n.preDeny?(j.awaitingPromise.set(t||void 0,!0),Promise.resolve().then(()=>dn(n.preDeny(e,n.validationMessage))).then(o=>{o===!1?(t.hideLoading(),gn(t)):t.closePopup({isDenied:!0,value:typeof o>"u"?e:o})}).catch(o=>Es(t||void 0,o))):t.closePopup({isDenied:!0,value:e})},fi=(t,e)=>{t.closePopup({isConfirmed:!0,value:e})},Es=(t,e)=>{t.rejectPromise(e)},io=(t,e)=>{const n=j.innerParams.get(t||void 0);n.showLoaderOnConfirm&&Ot(),n.preConfirm?(t.resetValidationMessage(),j.awaitingPromise.set(t||void 0,!0),Promise.resolve().then(()=>dn(n.preConfirm(e,n.validationMessage))).then(o=>{Pe(zn())||o===!1?(t.hideLoading(),gn(t)):fi(t,typeof o>"u"?e:o)}).catch(o=>Es(t||void 0,o))):fi(t,e)},_f=(t,e,n)=>{j.innerParams.get(t).toast?kf(t,e,n):(Ef(e),Tf(e),Af(t,e,n))},kf=(t,e,n)=>{e.popup.onclick=()=>{const r=j.innerParams.get(t);r&&(Cf(r)||r.timer||r.input)||n($t.close)}},Cf=t=>t.showConfirmButton||t.showDenyButton||t.showCancelButton||t.showCloseButton;let Nn=!1;const Ef=t=>{t.popup.onmousedown=()=>{t.container.onmouseup=function(e){t.container.onmouseup=void 0,e.target===t.container&&(Nn=!0)}}},Tf=t=>{t.container.onmousedown=()=>{t.popup.onmouseup=function(e){t.popup.onmouseup=void 0,(e.target===t.popup||t.popup.contains(e.target))&&(Nn=!0)}}},Af=(t,e,n)=>{e.container.onclick=r=>{const o=j.innerParams.get(t);if(Nn){Nn=!1;return}r.target===e.container&&Fn(o.allowOutsideClick)&&n($t.backdrop)}},Pf=t=>typeof t=="object"&&t.jquery,mi=t=>t instanceof Element||Pf(t),If=t=>{const e={};return typeof t[0]=="object"&&!mi(t[0])?Object.assign(e,t[0]):["title","html","icon"].forEach((n,r)=>{const o=t[r];typeof o=="string"||mi(o)?e[n]=o:o!==void 0&&kt(`Unexpected type of ${n}! Expected "string" or "Element", got ${typeof o}`)}),e};function xf(...t){const e=this;return new e(...t)}function Of(t){class e extends this{_main(r,o){return super._main(r,Object.assign({},t,o))}}return e}const Lf=()=>H.timeout&&H.timeout.getTimerLeft(),Ts=()=>{if(H.timeout)return vu(),H.timeout.stop()},As=()=>{if(H.timeout){const t=H.timeout.start();return to(t),t}},Rf=()=>{const t=H.timeout;return t&&(t.running?Ts():As())},$f=t=>{if(H.timeout){const e=H.timeout.increase(t);return to(e,!0),e}},Bf=()=>H.timeout&&H.timeout.isRunning();let pi=!1;const Ir={};function Nf(t="data-swal-template"){Ir[t]=this,pi||(document.body.addEventListener("click",Df),pi=!0)}const Df=t=>{for(let e=t.target;e&&e!==document;e=e.parentNode)for(const n in Ir){const r=e.getAttribute(n);if(r){Ir[n].fire({template:r});return}}},Mf=Object.freeze(Object.defineProperty({__proto__:null,argsToParams:If,bindClickHandler:Nf,clickCancel:Kd,clickConfirm:gs,clickDeny:zd,enableLoading:Ot,fire:xf,getActions:pn,getCancelButton:wt,getCloseButton:Xr,getConfirmButton:ze,getContainer:de,getDenyButton:dt,getFocusableElements:Zr,getFooter:is,getHtmlContainer:Bn,getIcon:mn,getImage:rs,getInputLabel:mu,getLoader:Rt,getPopup:J,getTimerLeft:Lf,getTimerProgressBar:Kn,getTitle:ns,getValidationMessage:zn,increaseTimer:$f,isDeprecatedParameter:Tr,isLoading:hu,isTimerRunning:Bf,isUpdatableParameter:es,isValidParameter:Qi,isVisible:Fd,mixin:Of,resumeTimer:As,showLoading:Ot,stopTimer:Ts,toggleTimer:Rf},Symbol.toStringTag,{value:"Module"}));let xr;class Bt{constructor(...e){if(typeof window>"u")return;xr=this;const n=Object.freeze(this.constructor.argsToParams(e));Object.defineProperties(this,{params:{value:n,writable:!1,enumerable:!0,configurable:!0}});const r=this._main(this.params);j.promise.set(this,r)}_main(e,n={}){du(Object.assign({},n,e)),H.currentInstance&&(H.currentInstance._destroy(),Qr()&&fs()),H.currentInstance=this;const r=Hf(e,n);yd(r),Object.freeze(r),H.timeout&&(H.timeout.stop(),delete H.timeout),clearTimeout(H.restoreFocusTimeout);const o=jf(this);return ds(this,r),j.innerParams.set(this,r),Uf(this,o,r)}then(e){return j.promise.get(this).then(e)}finally(e){return j.promise.get(this).finally(e)}}const Uf=(t,e,n)=>new Promise((r,o)=>{const i=s=>{t.closePopup({isDismissed:!0,dismiss:s})};cn.swalPromiseResolve.set(t,r),cn.swalPromiseReject.set(t,o),e.confirmButton.onclick=()=>vf(t),e.denyButton.onclick=()=>bf(t),e.cancelButton.onclick=()=>wf(t,i),e.closeButton.onclick=()=>i($t.close),_f(t,e,i),Wd(t,H,n,i),Rd(t,n),Pd(n),Vf(H,n,i),Ff(e,n),setTimeout(()=>{e.container.scrollTop=0})}),Hf=(t,e)=>{const n=ad(t),r=Object.assign({},It,e,n,t);return r.showClass=Object.assign({},It.showClass,r.showClass),r.hideClass=Object.assign({},It.hideClass,r.hideClass),r},jf=t=>{const e={popup:J(),container:de(),actions:pn(),confirmButton:ze(),denyButton:dt(),cancelButton:wt(),loader:Rt(),closeButton:Xr(),validationMessage:zn(),progressSteps:os()};return j.domCache.set(t,e),e},Vf=(t,e,n)=>{const r=Kn();fe(r),e.timer&&(t.timeout=new vd(()=>{n("timer"),delete t.timeout},e.timer),e.timerProgressBar&&(ae(r),$e(r,e,"timerProgressBar"),setTimeout(()=>{t.timeout&&t.timeout.running&&to(e.timer)})))},Ff=(t,e)=>{if(!e.toast){if(!Fn(e.allowEnterKey))return Kf();zf(t,e)||Pr(e,-1,1)}},zf=(t,e)=>e.focusDeny&&Pe(t.denyButton)?(t.denyButton.focus(),!0):e.focusCancel&&Pe(t.cancelButton)?(t.cancelButton.focus(),!0):e.focusConfirm&&Pe(t.confirmButton)?(t.confirmButton.focus(),!0):!1,Kf=()=>{document.activeElement instanceof HTMLElement&&typeof document.activeElement.blur=="function"&&document.activeElement.blur()};Object.assign(Bt.prototype,ks);Object.assign(Bt,Mf);Object.keys(ks).forEach(t=>{Bt[t]=function(...e){if(xr)return xr[t](...e)}});Bt.DismissReason=$t;Bt.version="11.4.8";const Lt=Bt;Lt.default=Lt;/*! @license DOMPurify 3.0.9 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.0.9/LICENSE */const{entries:Ps,setPrototypeOf:hi,isFrozen:Wf,getPrototypeOf:qf,getOwnPropertyDescriptor:Gf}=Object;let{freeze:ge,seal:Ke,create:Is}=Object,{apply:Or,construct:Lr}=typeof Reflect<"u"&&Reflect;ge||(ge=function(e){return e});Ke||(Ke=function(e){return e});Or||(Or=function(e,n,r){return e.apply(n,r)});Lr||(Lr=function(e,n){return new e(...n)});const Cn=Oe(Array.prototype.forEach),gi=Oe(Array.prototype.pop),Ft=Oe(Array.prototype.push),Pn=Oe(String.prototype.toLowerCase),dr=Oe(String.prototype.toString),Yf=Oe(String.prototype.match),zt=Oe(String.prototype.replace),Jf=Oe(String.prototype.indexOf),Xf=Oe(String.prototype.trim),He=Oe(Object.prototype.hasOwnProperty),Te=Oe(RegExp.prototype.test),Kt=Zf(TypeError);function Oe(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 Or(t,e,r)}}function Zf(t){return function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return Lr(t,n)}}function z(t,e){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:Pn;hi&&hi(t,null);let r=e.length;for(;r--;){let o=e[r];if(typeof o=="string"){const i=n(o);i!==o&&(Wf(e)||(e[r]=i),o=i)}t[o]=!0}return t}function Qf(t){for(let e=0;e<t.length;e++)He(t,e)||(t[e]=null);return t}function ht(t){const e=Is(null);for(const[n,r]of Ps(t))He(t,n)&&(Array.isArray(r)?e[n]=Qf(r):r&&typeof r=="object"&&r.constructor===Object?e[n]=ht(r):e[n]=r);return e}function En(t,e){for(;t!==null;){const r=Gf(t,e);if(r){if(r.get)return Oe(r.get);if(typeof r.value=="function")return Oe(r.value)}t=qf(t)}function n(){return null}return n}const yi=ge(["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"]),fr=ge(["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"]),mr=ge(["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"]),em=ge(["animate","color-profile","cursor","discard","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),pr=ge(["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"]),tm=ge(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),vi=ge(["#text"]),bi=ge(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","face","for","headers","height","hidden","high","href","hreflang","id","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","pattern","placeholder","playsinline","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","xmlns","slot"]),hr=ge(["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"]),wi=ge(["accent","accentunder","align","bevelled","close","columnsalign","columnlines","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lspace","lquote","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),Tn=ge(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),nm=Ke(/\{\{[\w\W]*|[\w\W]*\}\}/gm),rm=Ke(/<%[\w\W]*|[\w\W]*%>/gm),om=Ke(/\${[\w\W]*}/gm),im=Ke(/^data-[\-\w.\u00B7-\uFFFF]/),sm=Ke(/^aria-[\-\w]+$/),xs=Ke(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),am=Ke(/^(?:\w+script|data):/i),lm=Ke(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),Os=Ke(/^html$/i);var Si=Object.freeze({__proto__:null,MUSTACHE_EXPR:nm,ERB_EXPR:rm,TMPLIT_EXPR:om,DATA_ATTR:im,ARIA_ATTR:sm,IS_ALLOWED_URI:xs,IS_SCRIPT_OR_DATA:am,ATTR_WHITESPACE:lm,DOCTYPE_NAME:Os});const cm=function(){return typeof window>"u"?null:window},um=function(e,n){if(typeof e!="object"||typeof e.createPolicy!="function")return null;let r=null;const o="data-tt-policy-suffix";n&&n.hasAttribute(o)&&(r=n.getAttribute(o));const i="dompurify"+(r?"#"+r:"");try{return e.createPolicy(i,{createHTML(s){return s},createScriptURL(s){return s}})}catch{return console.warn("TrustedTypes policy "+i+" could not be created."),null}};function Ls(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:cm();const e=B=>Ls(B);if(e.version="3.0.9",e.removed=[],!t||!t.document||t.document.nodeType!==9)return e.isSupported=!1,e;let{document:n}=t;const r=n,o=r.currentScript,{DocumentFragment:i,HTMLTemplateElement:s,Node:a,Element:c,NodeFilter:u,NamedNodeMap:f=t.NamedNodeMap||t.MozNamedAttrMap,HTMLFormElement:m,DOMParser:b,trustedTypes:_}=t,v=c.prototype,x=En(v,"cloneNode"),w=En(v,"nextSibling"),N=En(v,"childNodes"),C=En(v,"parentNode");if(typeof s=="function"){const B=n.createElement("template");B.content&&B.content.ownerDocument&&(n=B.content.ownerDocument)}let T,V="";const{implementation:Z,createNodeIterator:ne,createDocumentFragment:X,getElementsByTagName:me}=n,{importNode:oe}=r;let U={};e.isSupported=typeof Ps=="function"&&typeof C=="function"&&Z&&Z.createHTMLDocument!==void 0;const{MUSTACHE_EXPR:Ee,ERB_EXPR:ye,TMPLIT_EXPR:Ne,DATA_ATTR:De,ARIA_ATTR:ot,IS_SCRIPT_OR_DATA:Xe,ATTR_WHITESPACE:Me}=Si;let{IS_ALLOWED_URI:qe}=Si,te=null;const Le=z({},[...yi,...fr,...mr,...pr,...vi]);let d=null;const h=z({},[...bi,...hr,...wi,...Tn]);let S=Object.seal(Is(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),P=null,k=null,O=!0,E=!0,A=!1,R=!0,L=!1,D=!1,K=!1,ve=!1,pe=!1,se=!1,Ge=!1,fo=!0,mo=!1;const da="user-content-";let Qn=!0,Mt=!1,Ct={},Et=null;const po=z({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]);let ho=null;const go=z({},["audio","video","img","source","image","track"]);let er=null;const yo=z({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),bn="http://www.w3.org/1998/Math/MathML",wn="http://www.w3.org/2000/svg",Ze="http://www.w3.org/1999/xhtml";let Tt=Ze,tr=!1,nr=null;const fa=z({},[bn,wn,Ze],dr);let Ut=null;const ma=["application/xhtml+xml","text/html"],pa="text/html";let ie=null,At=null;const ha=n.createElement("form"),vo=function(p){return p instanceof RegExp||p instanceof Function},rr=function(){let p=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(!(At&&At===p)){if((!p||typeof p!="object")&&(p={}),p=ht(p),Ut=ma.indexOf(p.PARSER_MEDIA_TYPE)===-1?pa:p.PARSER_MEDIA_TYPE,ie=Ut==="application/xhtml+xml"?dr:Pn,te=He(p,"ALLOWED_TAGS")?z({},p.ALLOWED_TAGS,ie):Le,d=He(p,"ALLOWED_ATTR")?z({},p.ALLOWED_ATTR,ie):h,nr=He(p,"ALLOWED_NAMESPACES")?z({},p.ALLOWED_NAMESPACES,dr):fa,er=He(p,"ADD_URI_SAFE_ATTR")?z(ht(yo),p.ADD_URI_SAFE_ATTR,ie):yo,ho=He(p,"ADD_DATA_URI_TAGS")?z(ht(go),p.ADD_DATA_URI_TAGS,ie):go,Et=He(p,"FORBID_CONTENTS")?z({},p.FORBID_CONTENTS,ie):po,P=He(p,"FORBID_TAGS")?z({},p.FORBID_TAGS,ie):{},k=He(p,"FORBID_ATTR")?z({},p.FORBID_ATTR,ie):{},Ct=He(p,"USE_PROFILES")?p.USE_PROFILES:!1,O=p.ALLOW_ARIA_ATTR!==!1,E=p.ALLOW_DATA_ATTR!==!1,A=p.ALLOW_UNKNOWN_PROTOCOLS||!1,R=p.ALLOW_SELF_CLOSE_IN_ATTR!==!1,L=p.SAFE_FOR_TEMPLATES||!1,D=p.WHOLE_DOCUMENT||!1,pe=p.RETURN_DOM||!1,se=p.RETURN_DOM_FRAGMENT||!1,Ge=p.RETURN_TRUSTED_TYPE||!1,ve=p.FORCE_BODY||!1,fo=p.SANITIZE_DOM!==!1,mo=p.SANITIZE_NAMED_PROPS||!1,Qn=p.KEEP_CONTENT!==!1,Mt=p.IN_PLACE||!1,qe=p.ALLOWED_URI_REGEXP||xs,Tt=p.NAMESPACE||Ze,S=p.CUSTOM_ELEMENT_HANDLING||{},p.CUSTOM_ELEMENT_HANDLING&&vo(p.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(S.tagNameCheck=p.CUSTOM_ELEMENT_HANDLING.tagNameCheck),p.CUSTOM_ELEMENT_HANDLING&&vo(p.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(S.attributeNameCheck=p.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),p.CUSTOM_ELEMENT_HANDLING&&typeof p.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements=="boolean"&&(S.allowCustomizedBuiltInElements=p.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),L&&(E=!1),se&&(pe=!0),Ct&&(te=z({},vi),d=[],Ct.html===!0&&(z(te,yi),z(d,bi)),Ct.svg===!0&&(z(te,fr),z(d,hr),z(d,Tn)),Ct.svgFilters===!0&&(z(te,mr),z(d,hr),z(d,Tn)),Ct.mathMl===!0&&(z(te,pr),z(d,wi),z(d,Tn))),p.ADD_TAGS&&(te===Le&&(te=ht(te)),z(te,p.ADD_TAGS,ie)),p.ADD_ATTR&&(d===h&&(d=ht(d)),z(d,p.ADD_ATTR,ie)),p.ADD_URI_SAFE_ATTR&&z(er,p.ADD_URI_SAFE_ATTR,ie),p.FORBID_CONTENTS&&(Et===po&&(Et=ht(Et)),z(Et,p.FORBID_CONTENTS,ie)),Qn&&(te["#text"]=!0),D&&z(te,["html","head","body"]),te.table&&(z(te,["tbody"]),delete P.tbody),p.TRUSTED_TYPES_POLICY){if(typeof p.TRUSTED_TYPES_POLICY.createHTML!="function")throw Kt('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof p.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw Kt('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');T=p.TRUSTED_TYPES_POLICY,V=T.createHTML("")}else T===void 0&&(T=um(_,o)),T!==null&&typeof V=="string"&&(V=T.createHTML(""));ge&&ge(p),At=p}},bo=z({},["mi","mo","mn","ms","mtext"]),wo=z({},["foreignobject","desc","title","annotation-xml"]),ga=z({},["title","style","font","a","script"]),So=z({},[...fr,...mr,...em]),_o=z({},[...pr,...tm]),ya=function(p){let I=C(p);(!I||!I.tagName)&&(I={namespaceURI:Tt,tagName:"template"});const $=Pn(p.tagName),Q=Pn(I.tagName);return nr[p.namespaceURI]?p.namespaceURI===wn?I.namespaceURI===Ze?$==="svg":I.namespaceURI===bn?$==="svg"&&(Q==="annotation-xml"||bo[Q]):!!So[$]:p.namespaceURI===bn?I.namespaceURI===Ze?$==="math":I.namespaceURI===wn?$==="math"&&wo[Q]:!!_o[$]:p.namespaceURI===Ze?I.namespaceURI===wn&&!wo[Q]||I.namespaceURI===bn&&!bo[Q]?!1:!_o[$]&&(ga[$]||!So[$]):!!(Ut==="application/xhtml+xml"&&nr[p.namespaceURI]):!1},ft=function(p){Ft(e.removed,{element:p});try{p.parentNode.removeChild(p)}catch{p.remove()}},or=function(p,I){try{Ft(e.removed,{attribute:I.getAttributeNode(p),from:I})}catch{Ft(e.removed,{attribute:null,from:I})}if(I.removeAttribute(p),p==="is"&&!d[p])if(pe||se)try{ft(I)}catch{}else try{I.setAttribute(p,"")}catch{}},ko=function(p){let I=null,$=null;if(ve)p="<remove></remove>"+p;else{const ce=Yf(p,/^[\r\n\t ]+/);$=ce&&ce[0]}Ut==="application/xhtml+xml"&&Tt===Ze&&(p='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+p+"</body></html>");const Q=T?T.createHTML(p):p;if(Tt===Ze)try{I=new b().parseFromString(Q,Ut)}catch{}if(!I||!I.documentElement){I=Z.createDocument(Tt,"template",null);try{I.documentElement.innerHTML=tr?V:Q}catch{}}const le=I.body||I.documentElement;return p&&$&&le.insertBefore(n.createTextNode($),le.childNodes[0]||null),Tt===Ze?me.call(I,D?"html":"body")[0]:D?I.documentElement:le},Co=function(p){return ne.call(p.ownerDocument||p,p,u.SHOW_ELEMENT|u.SHOW_COMMENT|u.SHOW_TEXT,null)},va=function(p){return p instanceof m&&(typeof p.nodeName!="string"||typeof p.textContent!="string"||typeof p.removeChild!="function"||!(p.attributes instanceof f)||typeof p.removeAttribute!="function"||typeof p.setAttribute!="function"||typeof p.namespaceURI!="string"||typeof p.insertBefore!="function"||typeof p.hasChildNodes!="function")},Eo=function(p){return typeof a=="function"&&p instanceof a},Qe=function(p,I,$){U[p]&&Cn(U[p],Q=>{Q.call(e,I,$,At)})},To=function(p){let I=null;if(Qe("beforeSanitizeElements",p,null),va(p))return ft(p),!0;const $=ie(p.nodeName);if(Qe("uponSanitizeElement",p,{tagName:$,allowedTags:te}),p.hasChildNodes()&&!Eo(p.firstElementChild)&&Te(/<[/\w]/g,p.innerHTML)&&Te(/<[/\w]/g,p.textContent))return ft(p),!0;if(!te[$]||P[$]){if(!P[$]&&Po($)&&(S.tagNameCheck instanceof RegExp&&Te(S.tagNameCheck,$)||S.tagNameCheck instanceof Function&&S.tagNameCheck($)))return!1;if(Qn&&!Et[$]){const Q=C(p)||p.parentNode,le=N(p)||p.childNodes;if(le&&Q){const ce=le.length;for(let be=ce-1;be>=0;--be)Q.insertBefore(x(le[be],!0),w(p))}}return ft(p),!0}return p instanceof c&&!ya(p)||($==="noscript"||$==="noembed"||$==="noframes")&&Te(/<\/no(script|embed|frames)/i,p.innerHTML)?(ft(p),!0):(L&&p.nodeType===3&&(I=p.textContent,Cn([Ee,ye,Ne],Q=>{I=zt(I,Q," ")}),p.textContent!==I&&(Ft(e.removed,{element:p.cloneNode()}),p.textContent=I)),Qe("afterSanitizeElements",p,null),!1)},Ao=function(p,I,$){if(fo&&(I==="id"||I==="name")&&($ in n||$ in ha))return!1;if(!(E&&!k[I]&&Te(De,I))){if(!(O&&Te(ot,I))){if(!d[I]||k[I]){if(!(Po(p)&&(S.tagNameCheck instanceof RegExp&&Te(S.tagNameCheck,p)||S.tagNameCheck instanceof Function&&S.tagNameCheck(p))&&(S.attributeNameCheck instanceof RegExp&&Te(S.attributeNameCheck,I)||S.attributeNameCheck instanceof Function&&S.attributeNameCheck(I))||I==="is"&&S.allowCustomizedBuiltInElements&&(S.tagNameCheck instanceof RegExp&&Te(S.tagNameCheck,$)||S.tagNameCheck instanceof Function&&S.tagNameCheck($))))return!1}else if(!er[I]){if(!Te(qe,zt($,Me,""))){if(!((I==="src"||I==="xlink:href"||I==="href")&&p!=="script"&&Jf($,"data:")===0&&ho[p])){if(!(A&&!Te(Xe,zt($,Me,"")))){if($)return!1}}}}}}return!0},Po=function(p){return p!=="annotation-xml"&&p.indexOf("-")>0},Io=function(p){Qe("beforeSanitizeAttributes",p,null);const{attributes:I}=p;if(!I)return;const $={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:d};let Q=I.length;for(;Q--;){const le=I[Q],{name:ce,namespaceURI:be,value:mt}=le,Ht=ie(ce);let we=ce==="value"?mt:Xf(mt);if($.attrName=Ht,$.attrValue=we,$.keepAttr=!0,$.forceKeepAttr=void 0,Qe("uponSanitizeAttribute",p,$),we=$.attrValue,$.forceKeepAttr||(or(ce,p),!$.keepAttr))continue;if(!R&&Te(/\/>/i,we)){or(ce,p);continue}L&&Cn([Ee,ye,Ne],Oo=>{we=zt(we,Oo," ")});const xo=ie(p.nodeName);if(Ao(xo,Ht,we)){if(mo&&(Ht==="id"||Ht==="name")&&(or(ce,p),we=da+we),T&&typeof _=="object"&&typeof _.getAttributeType=="function"&&!be)switch(_.getAttributeType(xo,Ht)){case"TrustedHTML":{we=T.createHTML(we);break}case"TrustedScriptURL":{we=T.createScriptURL(we);break}}try{be?p.setAttributeNS(be,ce,we):p.setAttribute(ce,we),gi(e.removed)}catch{}}}Qe("afterSanitizeAttributes",p,null)},ba=function B(p){let I=null;const $=Co(p);for(Qe("beforeSanitizeShadowDOM",p,null);I=$.nextNode();)Qe("uponSanitizeShadowNode",I,null),!To(I)&&(I.content instanceof i&&B(I.content),Io(I));Qe("afterSanitizeShadowDOM",p,null)};return e.sanitize=function(B){let p=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},I=null,$=null,Q=null,le=null;if(tr=!B,tr&&(B="<!-->"),typeof B!="string"&&!Eo(B))if(typeof B.toString=="function"){if(B=B.toString(),typeof B!="string")throw Kt("dirty is not a string, aborting")}else throw Kt("toString is not a function");if(!e.isSupported)return B;if(K||rr(p),e.removed=[],typeof B=="string"&&(Mt=!1),Mt){if(B.nodeName){const mt=ie(B.nodeName);if(!te[mt]||P[mt])throw Kt("root node is forbidden and cannot be sanitized in-place")}}else if(B instanceof a)I=ko("<!---->"),$=I.ownerDocument.importNode(B,!0),$.nodeType===1&&$.nodeName==="BODY"||$.nodeName==="HTML"?I=$:I.appendChild($);else{if(!pe&&!L&&!D&&B.indexOf("<")===-1)return T&&Ge?T.createHTML(B):B;if(I=ko(B),!I)return pe?null:Ge?V:""}I&&ve&&ft(I.firstChild);const ce=Co(Mt?B:I);for(;Q=ce.nextNode();)To(Q)||(Q.content instanceof i&&ba(Q.content),Io(Q));if(Mt)return B;if(pe){if(se)for(le=X.call(I.ownerDocument);I.firstChild;)le.appendChild(I.firstChild);else le=I;return(d.shadowroot||d.shadowrootmode)&&(le=oe.call(r,le,!0)),le}let be=D?I.outerHTML:I.innerHTML;return D&&te["!doctype"]&&I.ownerDocument&&I.ownerDocument.doctype&&I.ownerDocument.doctype.name&&Te(Os,I.ownerDocument.doctype.name)&&(be="<!DOCTYPE "+I.ownerDocument.doctype.name+`>
|
|
405
|
-
`+be),L&&Cn([Ee,ye,Ne],mt=>{be=zt(be,mt," ")}),T&&Ge?T.createHTML(be):be},e.setConfig=function(){let B=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};rr(B),K=!0},e.clearConfig=function(){At=null,K=!1},e.isValidAttribute=function(B,p,I){At||rr({});const $=ie(B),Q=ie(p);return Ao($,Q,I)},e.addHook=function(B,p){typeof p=="function"&&(U[B]=U[B]||[],Ft(U[B],p))},e.removeHook=function(B){if(U[B])return gi(U[B])},e.removeHooks=function(B){U[B]&&(U[B]=[])},e.removeAllHooks=function(){U={}},e}var Rs=Ls();class $s{get IsVisible(){return Lt.isVisible()}}class dm extends $s{constructor(){super()}async CreateAlertAsync(e){let n="info",r,o;return typeof e=="string"||Array.isArray(e)?r=Array.isArray(e)?e.join("<br />"):e:(n=e.icon??"info",o=e.title??"",r=Array.isArray(e.text)?e.text.join("<br />"):e.text),new Promise(i=>{Lt.fire({allowEscapeKey:!1,allowOutsideClick:!1,icon:n,title:o,html:`<div style="max-height: 50vh; overflow: auto">${Rs.sanitize(r)}</div>`}).then(()=>i(!0))})}async AlertAsync(e){return this.CreateAlertAsync({text:e,icon:"info"})}async AlertErrorAsync(e){return this.CreateAlertAsync({text:e,icon:"error"})}async AlertSuccessAsync(e){return this.CreateAlertAsync({text:e,icon:"success"})}}class fm extends $s{async CreateConfirmAsync(e){return new Promise(n=>{Lt.fire({showCancelButton:!0,allowEscapeKey:!1,allowOutsideClick:!1,icon:"question",title:e.title,html:Rs.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 mm=()=>new dm,pm=()=>new fm;function hm(t){return t instanceof Uint8Array||t!=null&&typeof t=="object"&&t.constructor.name==="Uint8Array"}function Bs(t,...e){if(!hm(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 _i(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 gm(t,e){Bs(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 gr=t=>new DataView(t.buffer,t.byteOffset,t.byteLength),Ye=(t,e)=>t<<32-e|t>>>e;new Uint8Array(new Uint32Array([287454020]).buffer)[0];function ym(t){if(typeof t!="string")throw new Error(`utf8ToBytes expected string, got ${typeof t}`);return new Uint8Array(new TextEncoder().encode(t))}function Ns(t){return typeof t=="string"&&(t=ym(t)),Bs(t),t}class vm{clone(){return this._cloneInto()}}function bm(t){const e=r=>t().update(Ns(r)).digest(),n=t();return e.outputLen=n.outputLen,e.blockLen=n.blockLen,e.create=()=>t(),e}function wm(t,e,n,r){if(typeof t.setBigUint64=="function")return t.setBigUint64(e,n,r);const o=BigInt(32),i=BigInt(4294967295),s=Number(n>>o&i),a=Number(n&i),c=r?4:0,u=r?0:4;t.setUint32(e+c,s,r),t.setUint32(e+u,a,r)}const Sm=(t,e,n)=>t&e^~t&n,_m=(t,e,n)=>t&e^t&n^e&n;class km extends vm{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=gr(this.buffer)}update(e){_i(this);const{view:n,buffer:r,blockLen:o}=this;e=Ns(e);const i=e.length;for(let s=0;s<i;){const a=Math.min(o-this.pos,i-s);if(a===o){const c=gr(e);for(;o<=i-s;s+=o)this.process(c,s);continue}r.set(e.subarray(s,s+a),this.pos),this.pos+=a,s+=a,this.pos===o&&(this.process(n,0),this.pos=0)}return this.length+=e.length,this.roundClean(),this}digestInto(e){_i(this),gm(e,this),this.finished=!0;const{buffer:n,view:r,blockLen:o,isLE:i}=this;let{pos:s}=this;n[s++]=128,this.buffer.subarray(s).fill(0),this.padOffset>o-s&&(this.process(r,0),s=0);for(let m=s;m<o;m++)n[m]=0;wm(r,o-8,BigInt(this.length*8),i),this.process(r,0);const a=gr(e),c=this.outputLen;if(c%4)throw new Error("_sha2: outputLen should be aligned to 32bit");const u=c/4,f=this.get();if(u>f.length)throw new Error("_sha2: outputLen bigger than state");for(let m=0;m<u;m++)a.setUint32(4*m,f[m],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:s,pos:a}=this;return e.length=o,e.pos=a,e.finished=i,e.destroyed=s,o%n&&e.buffer.set(r),e}}const Cm=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]),it=new Uint32Array([1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225]),st=new Uint32Array(64);class Em extends km{constructor(){super(64,32,8,!1),this.A=it[0]|0,this.B=it[1]|0,this.C=it[2]|0,this.D=it[3]|0,this.E=it[4]|0,this.F=it[5]|0,this.G=it[6]|0,this.H=it[7]|0}get(){const{A:e,B:n,C:r,D:o,E:i,F:s,G:a,H:c}=this;return[e,n,r,o,i,s,a,c]}set(e,n,r,o,i,s,a,c){this.A=e|0,this.B=n|0,this.C=r|0,this.D=o|0,this.E=i|0,this.F=s|0,this.G=a|0,this.H=c|0}process(e,n){for(let m=0;m<16;m++,n+=4)st[m]=e.getUint32(n,!1);for(let m=16;m<64;m++){const b=st[m-15],_=st[m-2],v=Ye(b,7)^Ye(b,18)^b>>>3,x=Ye(_,17)^Ye(_,19)^_>>>10;st[m]=x+st[m-7]+v+st[m-16]|0}let{A:r,B:o,C:i,D:s,E:a,F:c,G:u,H:f}=this;for(let m=0;m<64;m++){const b=Ye(a,6)^Ye(a,11)^Ye(a,25),_=f+b+Sm(a,c,u)+Cm[m]+st[m]|0,x=(Ye(r,2)^Ye(r,13)^Ye(r,22))+_m(r,o,i)|0;f=u,u=c,c=a,a=s+_|0,s=i,i=o,o=r,r=_+x|0}r=r+this.A|0,o=o+this.B|0,i=i+this.C|0,s=s+this.D|0,a=a+this.E|0,c=c+this.F|0,u=u+this.G|0,f=f+this.H|0,this.set(r,o,i,s,a,c,u,f)}roundClean(){st.fill(0)}destroy(){this.set(0,0,0,0,0,0,0,0),this.buffer.fill(0)}}const Tm=bm(()=>new Em);class Jt extends Error{}Jt.prototype.name="InvalidTokenError";function Am(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 Pm(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 Am(e)}catch{return atob(e)}}function yr(t,e){if(typeof t!="string")throw new Jt("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 Jt(`Invalid token specified: missing part #${n+1}`);let o;try{o=Pm(r)}catch(i){throw new Jt(`Invalid token specified: invalid base64 for part #${n+1} (${i.message})`)}try{return JSON.parse(o)}catch(i){throw new Jt(`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 Ds(t){if(!(this instanceof Ds))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 s=document.getElementsByTagName("script"),a=0;a<s.length;a++)(s[a].src.indexOf("keycloak.js")!==-1||s[a].src.indexOf("keycloak.min.js")!==-1)&&s[a].src.indexOf("version=")!==-1&&(e.iframeVersion=s[a].src.substring(s[a].src.indexOf("version=")+8).split("&")[0]);var c=!0,u=Le(console.info),f=Le(console.warn);e.init=function(d){if(e.didInitialize)throw new Error("A 'Keycloak' instance can only be initialized once.");e.didInitialize=!0,e.authenticated=!1,o=te();var h=["default","cordova","cordova-native"];if(d&&h.indexOf(d.adapter)>-1?n=Xe(d.adapter):d&&typeof d.adapter=="object"?n=d.adapter:window.Cordova||window.cordova?n=Xe("cordova"):n=Xe(),d){if(typeof d.useNonce<"u"&&(c=d.useNonce),typeof d.checkLoginIframe<"u"&&(i.enable=d.checkLoginIframe),d.checkLoginIframeInterval&&(i.interval=d.checkLoginIframeInterval),d.onLoad==="login-required"&&(e.loginRequired=!0),d.responseMode)if(d.responseMode==="query"||d.responseMode==="fragment")e.responseMode=d.responseMode;else throw"Invalid value for responseMode";if(d.flow){switch(d.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=d.flow}if(d.timeSkew!=null&&(e.timeSkew=d.timeSkew),d.redirectUri&&(e.redirectUri=d.redirectUri),d.silentCheckSsoRedirectUri&&(e.silentCheckSsoRedirectUri=d.silentCheckSsoRedirectUri),typeof d.silentCheckSsoFallback=="boolean"?e.silentCheckSsoFallback=d.silentCheckSsoFallback:e.silentCheckSsoFallback=!0,typeof d.pkceMethod<"u"){if(d.pkceMethod!=="S256"&&d.pkceMethod!==!1)throw new TypeError(`Invalid value for pkceMethod', expected 'S256' or false but got ${d.pkceMethod}.`);e.pkceMethod=d.pkceMethod}else e.pkceMethod="S256";typeof d.enableLogging=="boolean"?e.enableLogging=d.enableLogging:e.enableLogging=!1,d.logoutMethod==="POST"?e.logoutMethod="POST":e.logoutMethod="GET",typeof d.scope=="string"&&(e.scope=d.scope),typeof d.acrValues=="string"&&(e.acrValues=d.acrValues),typeof d.messageReceiveTimeout=="number"&&d.messageReceiveTimeout>0?e.messageReceiveTimeout=d.messageReceiveTimeout:e.messageReceiveTimeout=1e4}e.responseMode||(e.responseMode="fragment"),e.responseType||(e.responseType="code",e.flow="standard");var S=U(),P=U();P.promise.then(function(){e.onReady&&e.onReady(e.authenticated),S.setSuccess(e.authenticated)}).catch(function(R){S.setError(R)});var k=T();function O(){var R=function(K){K||(D.prompt="none"),d&&d.locale&&(D.locale=d.locale),e.login(D).then(function(){P.setSuccess()}).catch(function(ve){P.setError(ve)})},L=function(){var K=document.createElement("iframe"),ve=e.createLoginUrl({prompt:"none",redirectUri:e.silentCheckSsoRedirectUri});K.setAttribute("src",ve),K.setAttribute("sandbox","allow-storage-access-by-user-activation allow-scripts allow-same-origin"),K.setAttribute("title","keycloak-silent-check-sso"),K.style.display="none",document.body.appendChild(K);var pe=function(se){if(!(se.origin!==window.location.origin||K.contentWindow!==se.source)){var Ge=X(se.data);C(Ge,P),document.body.removeChild(K),window.removeEventListener("message",pe)}};window.addEventListener("message",pe)},D={};switch(d.onLoad){case"check-sso":i.enable?ye().then(function(){De().then(function(K){K?P.setSuccess():e.silentCheckSsoRedirectUri?L():R(!1)}).catch(function(K){P.setError(K)})}):e.silentCheckSsoRedirectUri?L():R(!1);break;case"login-required":R(!0);break;default:throw"Invalid value for onLoad"}}function E(){var R=X(window.location.href);if(R&&window.history.replaceState(window.history.state,null,R.newUrl),R&&R.valid)return ye().then(function(){C(R,P)}).catch(function(L){P.setError(L)});d?d.token&&d.refreshToken?(Z(d.token,d.refreshToken,d.idToken),i.enable?ye().then(function(){De().then(function(L){L?(e.onAuthSuccess&&e.onAuthSuccess(),P.setSuccess(),Ne()):P.setSuccess()}).catch(function(L){P.setError(L)})}):e.updateToken(-1).then(function(){e.onAuthSuccess&&e.onAuthSuccess(),P.setSuccess()}).catch(function(L){e.onAuthError&&e.onAuthError(),d.onLoad?O():P.setError(L)})):d.onLoad?O():P.setSuccess():P.setSuccess()}function A(){var R=U(),L=function(){(document.readyState==="interactive"||document.readyState==="complete")&&(document.removeEventListener("readystatechange",L),R.setSuccess())};return document.addEventListener("readystatechange",L),L(),R.promise}return k.then(function(){A().then(ot).then(E).catch(function(R){S.setError(R)})}),k.catch(function(R){S.setError(R)}),S.promise},e.login=function(d){return n.login(d)};function m(d){var h=null,S=window.crypto||window.msCrypto;if(S&&S.getRandomValues&&window.Uint8Array)return h=new Uint8Array(d),S.getRandomValues(h),h;h=new Array(d);for(var P=0;P<h.length;P++)h[P]=Math.floor(256*Math.random());return h}function b(d){return _(d,"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789")}function _(d,h){for(var S=m(d),P=new Array(d),k=0;k<d;k++)P[k]=h.charCodeAt(S[k]%h.length);return String.fromCharCode.apply(null,P)}function v(d,h){if(d!=="S256")throw new TypeError(`Invalid value for 'pkceMethod', expected 'S256' but got '${d}'.`);const S=Tm(h);return Im(S).replace(/\+/g,"-").replace(/\//g,"_").replace(/\=/g,"")}function x(d){var h={id_token:{acr:d}};return JSON.stringify(h)}e.createLoginUrl=function(d){var h=ne(),S=ne(),P=n.redirectUri(d),k={state:h,nonce:S,redirectUri:encodeURIComponent(P),loginOptions:d};d&&d.prompt&&(k.prompt=d.prompt);var O;d&&d.action=="register"?O=e.endpoints.register():O=e.endpoints.authorize();var E=d&&d.scope||e.scope;E?E.indexOf("openid")===-1&&(E="openid "+E):E="openid";var A=O+"?client_id="+encodeURIComponent(e.clientId)+"&redirect_uri="+encodeURIComponent(P)+"&state="+encodeURIComponent(h)+"&response_mode="+encodeURIComponent(e.responseMode)+"&response_type="+encodeURIComponent(e.responseType)+"&scope="+encodeURIComponent(E);if(c&&(A=A+"&nonce="+encodeURIComponent(S)),d&&d.prompt&&(A+="&prompt="+encodeURIComponent(d.prompt)),d&&d.maxAge&&(A+="&max_age="+encodeURIComponent(d.maxAge)),d&&d.loginHint&&(A+="&login_hint="+encodeURIComponent(d.loginHint)),d&&d.idpHint&&(A+="&kc_idp_hint="+encodeURIComponent(d.idpHint)),d&&d.action&&d.action!="register"&&(A+="&kc_action="+encodeURIComponent(d.action)),d&&d.locale&&(A+="&ui_locales="+encodeURIComponent(d.locale)),d&&d.acr){var R=x(d.acr);A+="&claims="+encodeURIComponent(R)}if((d&&d.acrValues||e.acrValues)&&(A+="&acr_values="+encodeURIComponent(d.acrValues||e.acrValues)),e.pkceMethod){var L=b(96);k.pkceCodeVerifier=L;var D=v(e.pkceMethod,L);A+="&code_challenge="+D,A+="&code_challenge_method="+e.pkceMethod}return o.add(k),A},e.logout=function(d){return n.logout(d)},e.createLogoutUrl=function(d){if(((d==null?void 0:d.logoutMethod)??e.logoutMethod)==="POST")return e.endpoints.logout();var S=e.endpoints.logout()+"?client_id="+encodeURIComponent(e.clientId)+"&post_logout_redirect_uri="+encodeURIComponent(n.redirectUri(d,!1));return e.idToken&&(S+="&id_token_hint="+encodeURIComponent(e.idToken)),S},e.register=function(d){return n.register(d)},e.createRegisterUrl=function(d){return d||(d={}),d.action="register",e.createLoginUrl(d)},e.createAccountUrl=function(d){var h=w(),S=void 0;return typeof h<"u"&&(S=h+"/account?referrer="+encodeURIComponent(e.clientId)+"&referrer_uri="+encodeURIComponent(n.redirectUri(d))),S},e.accountManagement=function(){return n.accountManagement()},e.hasRealmRole=function(d){var h=e.realmAccess;return!!h&&h.roles.indexOf(d)>=0},e.hasResourceRole=function(d,h){if(!e.resourceAccess)return!1;var S=e.resourceAccess[h||e.clientId];return!!S&&S.roles.indexOf(d)>=0},e.loadUserProfile=function(){var d=w()+"/account",h=new XMLHttpRequest;h.open("GET",d,!0),h.setRequestHeader("Accept","application/json"),h.setRequestHeader("Authorization","bearer "+e.token);var S=U();return h.onreadystatechange=function(){h.readyState==4&&(h.status==200?(e.profile=JSON.parse(h.responseText),S.setSuccess(e.profile)):S.setError())},h.send(),S.promise},e.loadUserInfo=function(){var d=e.endpoints.userinfo(),h=new XMLHttpRequest;h.open("GET",d,!0),h.setRequestHeader("Accept","application/json"),h.setRequestHeader("Authorization","bearer "+e.token);var S=U();return h.onreadystatechange=function(){h.readyState==4&&(h.status==200?(e.userInfo=JSON.parse(h.responseText),S.setSuccess(e.userInfo)):S.setError())},h.send(),S.promise},e.isTokenExpired=function(d){if(!e.tokenParsed||!e.refreshToken&&e.flow!="implicit")throw"Not authenticated";if(e.timeSkew==null)return u("[KEYCLOAK] Unable to determine if token is expired as timeskew is not set"),!0;var h=e.tokenParsed.exp-Math.ceil(new Date().getTime()/1e3)+e.timeSkew;if(d){if(isNaN(d))throw"Invalid minValidity";h-=d}return h<0},e.updateToken=function(d){var h=U();if(!e.refreshToken)return h.setError(),h.promise;d=d||5;var S=function(){var k=!1;if(d==-1?(k=!0,u("[KEYCLOAK] Refreshing token: forced refresh")):(!e.tokenParsed||e.isTokenExpired(d))&&(k=!0,u("[KEYCLOAK] Refreshing token: token expired")),!k)h.setSuccess(!1);else{var O="grant_type=refresh_token&refresh_token="+e.refreshToken,E=e.endpoints.token();if(r.push(h),r.length==1){var A=new XMLHttpRequest;A.open("POST",E,!0),A.setRequestHeader("Content-type","application/x-www-form-urlencoded"),A.withCredentials=!0,O+="&client_id="+encodeURIComponent(e.clientId);var R=new Date().getTime();A.onreadystatechange=function(){if(A.readyState==4)if(A.status==200){u("[KEYCLOAK] Token refreshed"),R=(R+new Date().getTime())/2;var L=JSON.parse(A.responseText);Z(L.access_token,L.refresh_token,L.id_token,R),e.onAuthRefreshSuccess&&e.onAuthRefreshSuccess();for(var D=r.pop();D!=null;D=r.pop())D.setSuccess(!0)}else{f("[KEYCLOAK] Failed to refresh token"),A.status==400&&e.clearToken(),e.onAuthRefreshError&&e.onAuthRefreshError();for(var D=r.pop();D!=null;D=r.pop())D.setError(!0)}},A.send(O)}}};if(i.enable){var P=De();P.then(function(){S()}).catch(function(k){h.setError(k)})}else S();return h.promise},e.clearToken=function(){e.token&&(Z(null,null,null),e.onAuthLogout&&e.onAuthLogout(),e.loginRequired&&e.login())};function w(){if(typeof e.authServerUrl<"u")return e.authServerUrl.charAt(e.authServerUrl.length-1)=="/"?e.authServerUrl+"realms/"+encodeURIComponent(e.realm):e.authServerUrl+"/realms/"+encodeURIComponent(e.realm)}function N(){return window.location.origin?window.location.origin:window.location.protocol+"//"+window.location.hostname+(window.location.port?":"+window.location.port:"")}function C(d,h){var S=d.code,P=d.error,k=d.prompt,O=new Date().getTime();if(d.kc_action_status&&e.onActionUpdate&&e.onActionUpdate(d.kc_action_status,d.kc_action),P){if(k!="none")if(d.error_description&&d.error_description==="authentication_expired")e.login(d.loginOptions);else{var E={error:P,error_description:d.error_description};e.onAuthError&&e.onAuthError(E),h&&h.setError(E)}else h&&h.setSuccess();return}else e.flow!="standard"&&(d.access_token||d.id_token)&&D(d.access_token,null,d.id_token,!0);if(e.flow!="implicit"&&S){var A="code="+S+"&grant_type=authorization_code",R=e.endpoints.token(),L=new XMLHttpRequest;L.open("POST",R,!0),L.setRequestHeader("Content-type","application/x-www-form-urlencoded"),A+="&client_id="+encodeURIComponent(e.clientId),A+="&redirect_uri="+d.redirectUri,d.pkceCodeVerifier&&(A+="&code_verifier="+d.pkceCodeVerifier),L.withCredentials=!0,L.onreadystatechange=function(){if(L.readyState==4)if(L.status==200){var K=JSON.parse(L.responseText);D(K.access_token,K.refresh_token,K.id_token,e.flow==="standard"),Ne()}else e.onAuthError&&e.onAuthError(),h&&h.setError()},L.send(A)}function D(K,ve,pe,se){O=(O+new Date().getTime())/2,Z(K,ve,pe,O),c&&e.idTokenParsed&&e.idTokenParsed.nonce!=d.storedNonce?(u("[KEYCLOAK] Invalid nonce, clearing token"),e.clearToken(),h&&h.setError()):se&&(e.onAuthSuccess&&e.onAuthSuccess(),h&&h.setSuccess())}}function T(d){var h=U(),S;t?typeof t=="string"&&(S=t):S="keycloak.json";function P(L){L?e.endpoints={authorize:function(){return L.authorization_endpoint},token:function(){return L.token_endpoint},logout:function(){if(!L.end_session_endpoint)throw"Not supported by the OIDC server";return L.end_session_endpoint},checkSessionIframe:function(){if(!L.check_session_iframe)throw"Not supported by the OIDC server";return L.check_session_iframe},register:function(){throw'Redirection to "Register user" page not supported in standard OIDC mode'},userinfo:function(){if(!L.userinfo_endpoint)throw"Not supported by the OIDC server";return L.userinfo_endpoint}}:e.endpoints={authorize:function(){return w()+"/protocol/openid-connect/auth"},token:function(){return w()+"/protocol/openid-connect/token"},logout:function(){return w()+"/protocol/openid-connect/logout"},checkSessionIframe:function(){var D=w()+"/protocol/openid-connect/login-status-iframe.html";return e.iframeVersion&&(D=D+"?version="+e.iframeVersion),D},thirdPartyCookiesIframe:function(){var D=w()+"/protocol/openid-connect/3p-cookies/step1.html";return e.iframeVersion&&(D=D+"?version="+e.iframeVersion),D},register:function(){return w()+"/protocol/openid-connect/registrations"},userinfo:function(){return w()+"/protocol/openid-connect/userinfo"}}}if(S){var k=new XMLHttpRequest;k.open("GET",S,!0),k.setRequestHeader("Accept","application/json"),k.onreadystatechange=function(){if(k.readyState==4)if(k.status==200||V(k)){var L=JSON.parse(k.responseText);e.authServerUrl=L["auth-server-url"],e.realm=L.realm,e.clientId=L.resource,P(null),h.setSuccess()}else h.setError()},k.send()}else{if(!t.clientId)throw"clientId missing";e.clientId=t.clientId;var O=t.oidcProvider;if(O)if(typeof O=="string"){var R;O.charAt(O.length-1)=="/"?R=O+".well-known/openid-configuration":R=O+"/.well-known/openid-configuration";var k=new XMLHttpRequest;k.open("GET",R,!0),k.setRequestHeader("Accept","application/json"),k.onreadystatechange=function(){if(k.readyState==4)if(k.status==200||V(k)){var D=JSON.parse(k.responseText);P(D),h.setSuccess()}else h.setError()},k.send()}else P(O),h.setSuccess();else{if(!t.url){for(var E=document.getElementsByTagName("script"),A=0;A<E.length;A++)if(E[A].src.match(/.*keycloak\.js/)){t.url=E[A].src.substr(0,E[A].src.indexOf("/js/keycloak.js"));break}}if(!t.realm)throw"realm missing";e.authServerUrl=t.url,e.realm=t.realm,P(null),h.setSuccess()}}return h.promise}function V(d){return d.status==0&&d.responseText&&d.responseURL.startsWith("file:")}function Z(d,h,S,P){if(e.tokenTimeoutHandle&&(clearTimeout(e.tokenTimeoutHandle),e.tokenTimeoutHandle=null),h?(e.refreshToken=h,e.refreshTokenParsed=yr(h)):(delete e.refreshToken,delete e.refreshTokenParsed),S?(e.idToken=S,e.idTokenParsed=yr(S)):(delete e.idToken,delete e.idTokenParsed),d){if(e.token=d,e.tokenParsed=yr(d),e.sessionId=e.tokenParsed.sid,e.authenticated=!0,e.subject=e.tokenParsed.sub,e.realmAccess=e.tokenParsed.realm_access,e.resourceAccess=e.tokenParsed.resource_access,P&&(e.timeSkew=Math.floor(P/1e3)-e.tokenParsed.iat),e.timeSkew!=null&&(u("[KEYCLOAK] Estimated time difference between browser and server is "+e.timeSkew+" seconds"),e.onTokenExpired)){var k=(e.tokenParsed.exp-new Date().getTime()/1e3+e.timeSkew)*1e3;u("[KEYCLOAK] Token expires in "+Math.round(k/1e3)+" s"),k<=0?e.onTokenExpired():e.tokenTimeoutHandle=setTimeout(e.onTokenExpired,k)}}else delete e.token,delete e.tokenParsed,delete e.subject,delete e.realmAccess,delete e.resourceAccess,e.authenticated=!1}function ne(){var d="0123456789abcdef",h=_(36,d).split("");h[14]="4",h[19]=d.substr(h[19]&3|8,1),h[8]=h[13]=h[18]=h[23]="-";var S=h.join("");return S}function X(d){var h=me(d);if(h){var S=o.get(h.state);return S&&(h.valid=!0,h.redirectUri=S.redirectUri,h.storedNonce=S.nonce,h.prompt=S.prompt,h.pkceCodeVerifier=S.pkceCodeVerifier,h.loginOptions=S.loginOptions),h}}function me(d){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 S=d.indexOf("?"),P=d.indexOf("#"),k,O;if(e.responseMode==="query"&&S!==-1?(k=d.substring(0,S),O=oe(d.substring(S+1,P!==-1?P:d.length),h),O.paramsString!==""&&(k+="?"+O.paramsString),P!==-1&&(k+=d.substring(P))):e.responseMode==="fragment"&&P!==-1&&(k=d.substring(0,P),O=oe(d.substring(P+1),h),O.paramsString!==""&&(k+="#"+O.paramsString)),O&&O.oauthParams){if(e.flow==="standard"||e.flow==="hybrid"){if((O.oauthParams.code||O.oauthParams.error)&&O.oauthParams.state)return O.oauthParams.newUrl=k,O.oauthParams}else if(e.flow==="implicit"&&(O.oauthParams.access_token||O.oauthParams.error)&&O.oauthParams.state)return O.oauthParams.newUrl=k,O.oauthParams}}function oe(d,h){for(var S=d.split("&"),P={paramsString:"",oauthParams:{}},k=0;k<S.length;k++){var O=S[k].indexOf("="),E=S[k].slice(0,O);h.indexOf(E)!==-1?P.oauthParams[E]=S[k].slice(O+1):(P.paramsString!==""&&(P.paramsString+="&"),P.paramsString+=S[k])}return P}function U(){var d={setSuccess:function(h){d.resolve(h)},setError:function(h){d.reject(h)}};return d.promise=new Promise(function(h,S){d.resolve=h,d.reject=S}),d}function Ee(d,h,S){var P=null,k=new Promise(function(O,E){P=setTimeout(function(){E({error:S})},h)});return Promise.race([d,k]).finally(function(){clearTimeout(P)})}function ye(){var d=U();if(!i.enable||i.iframe)return d.setSuccess(),d.promise;var h=document.createElement("iframe");i.iframe=h,h.onload=function(){var k=e.endpoints.authorize();k.charAt(0)==="/"?i.iframeOrigin=N():i.iframeOrigin=k.substring(0,k.indexOf("/",8)),d.setSuccess()};var S=e.endpoints.checkSessionIframe();h.setAttribute("src",S),h.setAttribute("sandbox","allow-storage-access-by-user-activation allow-scripts allow-same-origin"),h.setAttribute("title","keycloak-session-iframe"),h.style.display="none",document.body.appendChild(h);var P=function(k){if(!(k.origin!==i.iframeOrigin||i.iframe.contentWindow!==k.source)&&(k.data=="unchanged"||k.data=="changed"||k.data=="error")){k.data!="unchanged"&&e.clearToken();for(var O=i.callbackList.splice(0,i.callbackList.length),E=O.length-1;E>=0;--E){var A=O[E];k.data=="error"?A.setError():A.setSuccess(k.data=="unchanged")}}};return window.addEventListener("message",P,!1),d.promise}function Ne(){i.enable&&e.token&&setTimeout(function(){De().then(function(d){d&&Ne()})},i.interval*1e3)}function De(){var d=U();if(i.iframe&&i.iframeOrigin){var h=e.clientId+" "+(e.sessionId?e.sessionId:"");i.callbackList.push(d);var S=i.iframeOrigin;i.callbackList.length==1&&i.iframe.contentWindow.postMessage(h,S)}else d.setSuccess();return d.promise}function ot(){var d=U();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 S=function(P){h.contentWindow===P.source&&(P.data!=="supported"&&P.data!=="unsupported"||(P.data==="unsupported"&&(f(`[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 Ku(){const t=R.domCache.get(this),e=R.innerParams.get(this);if(!e){Ii(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(),zu(this)}const zu=t=>{Ii(t),delete t.params,delete D.keydownHandler,delete D.keydownTarget,delete D.currentInstance},Ii=t=>{t.isAwaitingPromise()?(jn(R,t),R.awaitingPromise.set(t,!0)):(jn(Zt,t),jn(R,t))},jn=(t,e)=>{for(const n in t)t[n].delete(e)},Ti=Object.freeze(Object.defineProperty({__proto__:null,_destroy:Ku,close:fn,closeModal:fn,closePopup:fn,closeToast:fn,disableButtons:Du,disableInput:Ru,disableLoading:Tr,enableButtons:Nu,enableInput:Mu,getInput:vu,getProgressSteps:Hu,handleAwaitingPromise:on,hideLoading:Tr,isAwaitingPromise:Au,rejectPromise:Lu,resetValidationMessage:Vu,showValidationMessage:Uu,update:ju},Symbol.toStringTag,{value:"Module"})),Wu=t=>{const e=R.innerParams.get(t);t.disableButtons(),e.input?Ei(t,"confirm"):To(t,!0)},Gu=t=>{const e=R.innerParams.get(t);t.disableButtons(),e.returnInputValueOnDeny?Ei(t,"deny"):Io(t,!1)},qu=(t,e)=>{t.disableButtons(),e(Ct.cancel)},Ei=(t,e)=>{const n=R.innerParams.get(t);if(!n.input)return ft(`The "input" parameter is needed to be set when using returnInputValueOn${ho(e)}`);const o=cu(t,n);n.inputValidator?Yu(t,o,e):t.getInput().checkValidity()?e==="deny"?Io(t,o):To(t,o):(t.enableButtons(),t.showValidationMessage(n.validationMessage))},Yu=(t,e,n)=>{const o=R.innerParams.get(t);t.disableInput(),Promise.resolve().then(()=>Jt(o.inputValidator(e,o.validationMessage))).then(i=>{t.enableButtons(),t.enableInput(),i?t.showValidationMessage(i):n==="deny"?Io(t,e):To(t,e)})},Io=(t,e)=>{const n=R.innerParams.get(t||void 0);n.showLoaderOnDeny&&_t(rt()),n.preDeny?(R.awaitingPromise.set(t||void 0,!0),Promise.resolve().then(()=>Jt(n.preDeny(e,n.validationMessage))).then(r=>{r===!1?(t.hideLoading(),on(t)):t.closePopup({isDenied:!0,value:typeof r>"u"?e:r})}).catch(r=>Pi(t||void 0,r))):t.closePopup({isDenied:!0,value:e})},Pr=(t,e)=>{t.closePopup({isConfirmed:!0,value:e})},Pi=(t,e)=>{t.rejectPromise(e)},To=(t,e)=>{const n=R.innerParams.get(t||void 0);n.showLoaderOnConfirm&&_t(),n.preConfirm?(t.resetValidationMessage(),R.awaitingPromise.set(t||void 0,!0),Promise.resolve().then(()=>Jt(n.preConfirm(e,n.validationMessage))).then(r=>{Se(Pn())||r===!1?(t.hideLoading(),on(t)):Pr(t,typeof r>"u"?e:r)}).catch(r=>Pi(t||void 0,r))):Pr(t,e)},Xu=(t,e,n)=>{R.innerParams.get(t).toast?Zu(t,e,n):(Qu(e),ed(e),td(t,e,n))},Zu=(t,e,n)=>{e.popup.onclick=()=>{const o=R.innerParams.get(t);o&&(Ju(o)||o.timer||o.input)||n(Ct.close)}},Ju=t=>t.showConfirmButton||t.showDenyButton||t.showCancelButton||t.showCloseButton;let kn=!1;const Qu=t=>{t.popup.onmousedown=()=>{t.container.onmouseup=function(e){t.container.onmouseup=void 0,e.target===t.container&&(kn=!0)}}},ed=t=>{t.container.onmousedown=()=>{t.popup.onmouseup=function(e){t.popup.onmouseup=void 0,(e.target===t.popup||t.popup.contains(e.target))&&(kn=!0)}}},td=(t,e,n)=>{e.container.onclick=o=>{const r=R.innerParams.get(t);if(kn){kn=!1;return}o.target===e.container&&En(r.allowOutsideClick)&&n(Ct.backdrop)}},nd=t=>typeof t=="object"&&t.jquery,Ar=t=>t instanceof Element||nd(t),od=t=>{const e={};return typeof t[0]=="object"&&!Ar(t[0])?Object.assign(e,t[0]):["title","html","icon"].forEach((n,o)=>{const r=t[o];typeof r=="string"||Ar(r)?e[n]=r:r!==void 0&&ft(`Unexpected type of ${n}! Expected "string" or "Element", got ${typeof r}`)}),e};function rd(...t){const e=this;return new e(...t)}function id(t){class e extends this{_main(o,r){return super._main(o,Object.assign({},t,r))}}return e}const sd=()=>D.timeout&&D.timeout.getTimerLeft(),Ai=()=>{if(D.timeout)return Gl(),D.timeout.stop()},xi=()=>{if(D.timeout){const t=D.timeout.start();return ko(t),t}},ad=()=>{const t=D.timeout;return t&&(t.running?Ai():xi())},ld=t=>{if(D.timeout){const e=D.timeout.increase(t);return ko(e,!0),e}},cd=()=>D.timeout&&D.timeout.isRunning();let xr=!1;const oo={};function ud(t="data-swal-template"){oo[t]=this,xr||(document.body.addEventListener("click",dd),xr=!0)}const dd=t=>{for(let e=t.target;e&&e!==document;e=e.parentNode)for(const n in oo){const o=e.getAttribute(n);if(o){oo[n].fire({template:o});return}}},fd=Object.freeze(Object.defineProperty({__proto__:null,argsToParams:od,bindClickHandler:ud,clickCancel:wu,clickConfirm:bi,clickDeny:bu,enableLoading:_t,fire:rd,getActions:tn,getCancelButton:ut,getCloseButton:yo,getConfirmButton:De,getContainer:ae,getDenyButton:rt,getFocusableElements:bo,getFooter:li,getHtmlContainer:_n,getIcon:en,getImage:si,getInputLabel:jl,getLoader:St,getPopup:G,getTimerLeft:sd,getTimerProgressBar:An,getTitle:ii,getValidationMessage:Pn,increaseTimer:ld,isDeprecatedParameter:eo,isLoading:Kl,isTimerRunning:cd,isUpdatableParameter:oi,isValidParameter:ni,isVisible:yu,mixin:id,resumeTimer:xi,showLoading:_t,stopTimer:Ai,toggleTimer:ad},Symbol.toStringTag,{value:"Module"}));let ro;class It{constructor(...e){if(typeof window>"u")return;ro=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={}){Vl(Object.assign({},n,e)),D.currentInstance&&(D.currentInstance._destroy(),wo()&&hi()),D.currentInstance=this;const o=pd(e,n);Wc(o),Object.freeze(o),D.timeout&&(D.timeout.stop(),delete D.timeout),clearTimeout(D.restoreFocusTimeout);const r=hd(this);return pi(this,o),R.innerParams.set(this,o),md(this,r,o)}then(e){return R.promise.get(this).then(e)}finally(e){return R.promise.get(this).finally(e)}}const md=(t,e,n)=>new Promise((o,r)=>{const i=c=>{t.closePopup({isDismissed:!0,dismiss:c})};Zt.swalPromiseResolve.set(t,o),Zt.swalPromiseReject.set(t,r),e.confirmButton.onclick=()=>Wu(t),e.denyButton.onclick=()=>Gu(t),e.cancelButton.onclick=()=>qu(t,i),e.closeButton.onclick=()=>i(Ct.close),Xu(t,e,i),_u(t,D,n,i),lu(t,n),ou(n),gd(D,n,i),vd(e,n),setTimeout(()=>{e.container.scrollTop=0})}),pd=(t,e)=>{const n=Dc(t),o=Object.assign({},bt,e,n,t);return o.showClass=Object.assign({},bt.showClass,o.showClass),o.hideClass=Object.assign({},bt.hideClass,o.hideClass),o},hd=t=>{const e={popup:G(),container:ae(),actions:tn(),confirmButton:De(),denyButton:rt(),cancelButton:ut(),loader:St(),closeButton:yo(),validationMessage:Pn(),progressSteps:ai()};return R.domCache.set(t,e),e},gd=(t,e,n)=>{const o=An();le(o),e.timer&&(t.timeout=new Gc(()=>{n("timer"),delete t.timeout},e.timer),e.timerProgressBar&&(ne(o),Ee(o,e,"timerProgressBar"),setTimeout(()=>{t.timeout&&t.timeout.running&&ko(e.timer)})))},vd=(t,e)=>{if(!e.toast){if(!En(e.allowEnterKey))return bd();yd(t,e)||no(e,-1,1)}},yd=(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,bd=()=>{document.activeElement instanceof HTMLElement&&typeof document.activeElement.blur=="function"&&document.activeElement.blur()};Object.assign(It.prototype,Ti);Object.assign(It,fd);Object.keys(Ti).forEach(t=>{It[t]=function(...e){if(ro)return ro[t](...e)}});It.DismissReason=Ct;It.version="11.4.8";const kt=It;kt.default=kt;/*! @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:Li,setPrototypeOf:Lr,isFrozen:wd,getPrototypeOf:_d,getOwnPropertyDescriptor:kd}=Object;let{freeze:fe,seal:Pe,create:Oi}=Object,{apply:io,construct:so}=typeof Reflect<"u"&&Reflect;fe||(fe=function(e){return e});Pe||(Pe=function(e){return e});io||(io=function(e,n,o){return e.apply(n,o)});so||(so=function(e,n){return new e(...n)});const mn=Ie(Array.prototype.forEach),Or=Ie(Array.prototype.pop),Lt=Ie(Array.prototype.push),gn=Ie(String.prototype.toLowerCase),Fn=Ie(String.prototype.toString),$r=Ie(String.prototype.match),Ot=Ie(String.prototype.replace),Sd=Ie(String.prototype.indexOf),Cd=Ie(String.prototype.trim),$e=Ie(Object.prototype.hasOwnProperty),ue=Ie(RegExp.prototype.test),$t=Id(TypeError);function Ie(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 io(t,e,o)}}function Id(t){return function(){for(var e=arguments.length,n=new Array(e),o=0;o<e;o++)n[o]=arguments[o];return so(t,n)}}function H(t,e){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:gn;Lr&&Lr(t,null);let o=e.length;for(;o--;){let r=e[o];if(typeof r=="string"){const i=n(r);i!==r&&(wd(e)||(e[o]=i),r=i)}t[r]=!0}return t}function Td(t){for(let e=0;e<t.length;e++)$e(t,e)||(t[e]=null);return t}function at(t){const e=Oi(null);for(const[n,o]of Li(t))$e(t,n)&&(Array.isArray(o)?e[n]=Td(o):o&&typeof o=="object"&&o.constructor===Object?e[n]=at(o):e[n]=o);return e}function Bt(t,e){for(;t!==null;){const o=kd(t,e);if(o){if(o.get)return Ie(o.get);if(typeof o.value=="function")return Ie(o.value)}t=_d(t)}function n(){return null}return n}const Br=fe(["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"]),Kn=fe(["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"]),zn=fe(["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"]),Ed=fe(["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"]),Wn=fe(["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"]),Pd=fe(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),Nr=fe(["#text"]),Dr=fe(["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"]),Gn=fe(["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"]),Mr=fe(["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=fe(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),Ad=Pe(/\{\{[\w\W]*|[\w\W]*\}\}/gm),xd=Pe(/<%[\w\W]*|[\w\W]*%>/gm),Ld=Pe(/\${[\w\W]*}/gm),Od=Pe(/^data-[\-\w.\u00B7-\uFFFF]/),$d=Pe(/^aria-[\-\w]+$/),$i=Pe(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),Bd=Pe(/^(?:\w+script|data):/i),Nd=Pe(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),Bi=Pe(/^html$/i),Dd=Pe(/^[a-z][.\w]*(-[.\w]+)+$/i);var Rr=Object.freeze({__proto__:null,MUSTACHE_EXPR:Ad,ERB_EXPR:xd,TMPLIT_EXPR:Ld,DATA_ATTR:Od,ARIA_ATTR:$d,IS_ALLOWED_URI:$i,IS_SCRIPT_OR_DATA:Bd,ATTR_WHITESPACE:Nd,DOCTYPE_NAME:Bi,CUSTOM_ELEMENT:Dd});const Nt={element:1,attribute:2,text:3,cdataSection:4,entityReference:5,entityNode:6,progressingInstruction:7,comment:8,document:9,documentType:10,documentFragment:11,notation:12},Md=function(){return typeof window>"u"?null:window},Rd=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 Ni(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Md();const e=O=>Ni(O);if(e.version="3.1.6",e.removed=[],!t||!t.document||t.document.nodeType!==Nt.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:b,trustedTypes:C}=t,T=l.prototype,$=Bt(T,"cloneNode"),x=Bt(T,"remove"),M=Bt(T,"nextSibling"),I=Bt(T,"childNodes"),B=Bt(T,"parentNode");if(typeof c=="function"){const O=n.createElement("template");O.content&&O.content.ownerDocument&&(n=O.content.ownerDocument)}let j,Z="";const{implementation:me,createNodeIterator:Q,createDocumentFragment:xe,getElementsByTagName:we}=n,{importNode:q}=o;let J={};e.isSupported=typeof Li=="function"&&typeof B=="function"&&me&&me.createHTMLDocument!==void 0;const{MUSTACHE_EXPR:pe,ERB_EXPR:Le,TMPLIT_EXPR:_e,DATA_ATTR:Je,ARIA_ATTR:Ke,IS_SCRIPT_OR_DATA:Me,ATTR_WHITESPACE:Re,CUSTOM_ELEMENT:it}=Rr;let{IS_ALLOWED_URI:Te}=Rr,u=null;const p=H({},[...Br,...Kn,...zn,...Wn,...Nr]);let y=null;const S=H({},[...Dr,...Gn,...Mr,...pn]);let v=Object.seal(Oi(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,N=!0,U=!1,he=!0,oe=!1,re=!1,ze=!1,mt=!1,rn=!1,sn=!1,Eo=!0,Po=!1;const Fi="user-content-";let On=!0,Tt=!1,pt={},ht=null;const Ao=H({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]);let xo=null;const Lo=H({},["audio","video","img","source","image","track"]);let $n=null;const Oo=H({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),an="http://www.w3.org/1998/Math/MathML",ln="http://www.w3.org/2000/svg",We="http://www.w3.org/1999/xhtml";let gt=We,Bn=!1,Nn=null;const Ki=H({},[an,ln,We],Fn);let Et=null;const zi=["application/xhtml+xml","text/html"],Wi="text/html";let ee=null,vt=null;const Gi=n.createElement("form"),$o=function(f){return f instanceof RegExp||f instanceof Function},Dn=function(){let f=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(!(vt&&vt===f)){if((!f||typeof f!="object")&&(f={}),f=at(f),Et=zi.indexOf(f.PARSER_MEDIA_TYPE)===-1?Wi:f.PARSER_MEDIA_TYPE,ee=Et==="application/xhtml+xml"?Fn:gn,u=$e(f,"ALLOWED_TAGS")?H({},f.ALLOWED_TAGS,ee):p,y=$e(f,"ALLOWED_ATTR")?H({},f.ALLOWED_ATTR,ee):S,Nn=$e(f,"ALLOWED_NAMESPACES")?H({},f.ALLOWED_NAMESPACES,Fn):Ki,$n=$e(f,"ADD_URI_SAFE_ATTR")?H(at(Oo),f.ADD_URI_SAFE_ATTR,ee):Oo,xo=$e(f,"ADD_DATA_URI_TAGS")?H(at(Lo),f.ADD_DATA_URI_TAGS,ee):Lo,ht=$e(f,"FORBID_CONTENTS")?H({},f.FORBID_CONTENTS,ee):Ao,E=$e(f,"FORBID_TAGS")?H({},f.FORBID_TAGS,ee):{},w=$e(f,"FORBID_ATTR")?H({},f.FORBID_ATTR,ee):{},pt=$e(f,"USE_PROFILES")?f.USE_PROFILES:!1,_=f.ALLOW_ARIA_ATTR!==!1,A=f.ALLOW_DATA_ATTR!==!1,P=f.ALLOW_UNKNOWN_PROTOCOLS||!1,N=f.ALLOW_SELF_CLOSE_IN_ATTR!==!1,U=f.SAFE_FOR_TEMPLATES||!1,he=f.SAFE_FOR_XML!==!1,oe=f.WHOLE_DOCUMENT||!1,mt=f.RETURN_DOM||!1,rn=f.RETURN_DOM_FRAGMENT||!1,sn=f.RETURN_TRUSTED_TYPE||!1,ze=f.FORCE_BODY||!1,Eo=f.SANITIZE_DOM!==!1,Po=f.SANITIZE_NAMED_PROPS||!1,On=f.KEEP_CONTENT!==!1,Tt=f.IN_PLACE||!1,Te=f.ALLOWED_URI_REGEXP||$i,gt=f.NAMESPACE||We,v=f.CUSTOM_ELEMENT_HANDLING||{},f.CUSTOM_ELEMENT_HANDLING&&$o(f.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(v.tagNameCheck=f.CUSTOM_ELEMENT_HANDLING.tagNameCheck),f.CUSTOM_ELEMENT_HANDLING&&$o(f.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(v.attributeNameCheck=f.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),f.CUSTOM_ELEMENT_HANDLING&&typeof f.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements=="boolean"&&(v.allowCustomizedBuiltInElements=f.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),U&&(A=!1),rn&&(mt=!0),pt&&(u=H({},Nr),y=[],pt.html===!0&&(H(u,Br),H(y,Dr)),pt.svg===!0&&(H(u,Kn),H(y,Gn),H(y,pn)),pt.svgFilters===!0&&(H(u,zn),H(y,Gn),H(y,pn)),pt.mathMl===!0&&(H(u,Wn),H(y,Mr),H(y,pn))),f.ADD_TAGS&&(u===p&&(u=at(u)),H(u,f.ADD_TAGS,ee)),f.ADD_ATTR&&(y===S&&(y=at(y)),H(y,f.ADD_ATTR,ee)),f.ADD_URI_SAFE_ATTR&&H($n,f.ADD_URI_SAFE_ATTR,ee),f.FORBID_CONTENTS&&(ht===Ao&&(ht=at(ht)),H(ht,f.FORBID_CONTENTS,ee)),On&&(u["#text"]=!0),oe&&H(u,["html","head","body"]),u.table&&(H(u,["tbody"]),delete E.tbody),f.TRUSTED_TYPES_POLICY){if(typeof f.TRUSTED_TYPES_POLICY.createHTML!="function")throw $t('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof f.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw $t('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');j=f.TRUSTED_TYPES_POLICY,Z=j.createHTML("")}else j===void 0&&(j=Rd(C,r)),j!==null&&typeof Z=="string"&&(Z=j.createHTML(""));fe&&fe(f),vt=f}},Bo=H({},["mi","mo","mn","ms","mtext"]),No=H({},["foreignobject","annotation-xml"]),qi=H({},["title","style","font","a","script"]),Do=H({},[...Kn,...zn,...Ed]),Mo=H({},[...Wn,...Pd]),Yi=function(f){let k=B(f);(!k||!k.tagName)&&(k={namespaceURI:gt,tagName:"template"});const L=gn(f.tagName),Y=gn(k.tagName);return Nn[f.namespaceURI]?f.namespaceURI===ln?k.namespaceURI===We?L==="svg":k.namespaceURI===an?L==="svg"&&(Y==="annotation-xml"||Bo[Y]):!!Do[L]:f.namespaceURI===an?k.namespaceURI===We?L==="math":k.namespaceURI===ln?L==="math"&&No[Y]:!!Mo[L]:f.namespaceURI===We?k.namespaceURI===ln&&!No[Y]||k.namespaceURI===an&&!Bo[Y]?!1:!Mo[L]&&(qi[L]||!Do[L]):!!(Et==="application/xhtml+xml"&&Nn[f.namespaceURI]):!1},Ue=function(f){Lt(e.removed,{element:f});try{B(f).removeChild(f)}catch{x(f)}},cn=function(f,k){try{Lt(e.removed,{attribute:k.getAttributeNode(f),from:k})}catch{Lt(e.removed,{attribute:null,from:k})}if(k.removeAttribute(f),f==="is"&&!y[f])if(mt||rn)try{Ue(k)}catch{}else try{k.setAttribute(f,"")}catch{}},Ro=function(f){let k=null,L=null;if(ze)f="<remove></remove>"+f;else{const te=$r(f,/^[\r\n\t ]+/);L=te&&te[0]}Et==="application/xhtml+xml"&>===We&&(f='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+f+"</body></html>");const Y=j?j.createHTML(f):f;if(gt===We)try{k=new b().parseFromString(Y,Et)}catch{}if(!k||!k.documentElement){k=me.createDocument(gt,"template",null);try{k.documentElement.innerHTML=Bn?Z:Y}catch{}}const ie=k.body||k.documentElement;return f&&L&&ie.insertBefore(n.createTextNode(L),ie.childNodes[0]||null),gt===We?we.call(k,oe?"html":"body")[0]:oe?k.documentElement:ie},Uo=function(f){return Q.call(f.ownerDocument||f,f,d.SHOW_ELEMENT|d.SHOW_COMMENT|d.SHOW_TEXT|d.SHOW_PROCESSING_INSTRUCTION|d.SHOW_CDATA_SECTION,null)},Vo=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")},Ho=function(f){return typeof a=="function"&&f instanceof a},Ge=function(f,k,L){J[f]&&mn(J[f],Y=>{Y.call(e,k,L,vt)})},jo=function(f){let k=null;if(Ge("beforeSanitizeElements",f,null),Vo(f))return Ue(f),!0;const L=ee(f.nodeName);if(Ge("uponSanitizeElement",f,{tagName:L,allowedTags:u}),f.hasChildNodes()&&!Ho(f.firstElementChild)&&ue(/<[/\w]/g,f.innerHTML)&&ue(/<[/\w]/g,f.textContent)||f.nodeType===Nt.progressingInstruction||he&&f.nodeType===Nt.comment&&ue(/<[/\w]/g,f.data))return Ue(f),!0;if(!u[L]||E[L]){if(!E[L]&&Ko(L)&&(v.tagNameCheck instanceof RegExp&&ue(v.tagNameCheck,L)||v.tagNameCheck instanceof Function&&v.tagNameCheck(L)))return!1;if(On&&!ht[L]){const Y=B(f)||f.parentNode,ie=I(f)||f.childNodes;if(ie&&Y){const te=ie.length;for(let ge=te-1;ge>=0;--ge){const Ve=$(ie[ge],!0);Ve.__removalCount=(f.__removalCount||0)+1,Y.insertBefore(Ve,M(f))}}}return Ue(f),!0}return f instanceof l&&!Yi(f)||(L==="noscript"||L==="noembed"||L==="noframes")&&ue(/<\/no(script|embed|frames)/i,f.innerHTML)?(Ue(f),!0):(U&&f.nodeType===Nt.text&&(k=f.textContent,mn([pe,Le,_e],Y=>{k=Ot(k,Y," ")}),f.textContent!==k&&(Lt(e.removed,{element:f.cloneNode()}),f.textContent=k)),Ge("afterSanitizeElements",f,null),!1)},Fo=function(f,k,L){if(Eo&&(k==="id"||k==="name")&&(L in n||L in Gi))return!1;if(!(A&&!w[k]&&ue(Je,k))){if(!(_&&ue(Ke,k))){if(!y[k]||w[k]){if(!(Ko(f)&&(v.tagNameCheck instanceof RegExp&&ue(v.tagNameCheck,f)||v.tagNameCheck instanceof Function&&v.tagNameCheck(f))&&(v.attributeNameCheck instanceof RegExp&&ue(v.attributeNameCheck,k)||v.attributeNameCheck instanceof Function&&v.attributeNameCheck(k))||k==="is"&&v.allowCustomizedBuiltInElements&&(v.tagNameCheck instanceof RegExp&&ue(v.tagNameCheck,L)||v.tagNameCheck instanceof Function&&v.tagNameCheck(L))))return!1}else if(!$n[k]){if(!ue(Te,Ot(L,Re,""))){if(!((k==="src"||k==="xlink:href"||k==="href")&&f!=="script"&&Sd(L,"data:")===0&&xo[f])){if(!(P&&!ue(Me,Ot(L,Re,"")))){if(L)return!1}}}}}}return!0},Ko=function(f){return f!=="annotation-xml"&&$r(f,it)},zo=function(f){Ge("beforeSanitizeAttributes",f,null);const{attributes:k}=f;if(!k)return;const L={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:y};let Y=k.length;for(;Y--;){const ie=k[Y],{name:te,namespaceURI:ge,value:Ve}=ie,Pt=ee(te);let ce=te==="value"?Ve:Cd(Ve);if(L.attrName=Pt,L.attrValue=ce,L.keepAttr=!0,L.forceKeepAttr=void 0,Ge("uponSanitizeAttribute",f,L),ce=L.attrValue,he&&ue(/((--!?|])>)|<\/(style|title)/i,ce)){cn(te,f);continue}if(L.forceKeepAttr||(cn(te,f),!L.keepAttr))continue;if(!N&&ue(/\/>/i,ce)){cn(te,f);continue}U&&mn([pe,Le,_e],Go=>{ce=Ot(ce,Go," ")});const Wo=ee(f.nodeName);if(Fo(Wo,Pt,ce)){if(Po&&(Pt==="id"||Pt==="name")&&(cn(te,f),ce=Fi+ce),j&&typeof C=="object"&&typeof C.getAttributeType=="function"&&!ge)switch(C.getAttributeType(Wo,Pt)){case"TrustedHTML":{ce=j.createHTML(ce);break}case"TrustedScriptURL":{ce=j.createScriptURL(ce);break}}try{ge?f.setAttributeNS(ge,te,ce):f.setAttribute(te,ce),Vo(f)?Ue(f):Or(e.removed)}catch{}}}Ge("afterSanitizeAttributes",f,null)},Xi=function O(f){let k=null;const L=Uo(f);for(Ge("beforeSanitizeShadowDOM",f,null);k=L.nextNode();)Ge("uponSanitizeShadowNode",k,null),!jo(k)&&(k.content instanceof i&&O(k.content),zo(k));Ge("afterSanitizeShadowDOM",f,null)};return e.sanitize=function(O){let f=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},k=null,L=null,Y=null,ie=null;if(Bn=!O,Bn&&(O="<!-->"),typeof O!="string"&&!Ho(O))if(typeof O.toString=="function"){if(O=O.toString(),typeof O!="string")throw $t("dirty is not a string, aborting")}else throw $t("toString is not a function");if(!e.isSupported)return O;if(re||Dn(f),e.removed=[],typeof O=="string"&&(Tt=!1),Tt){if(O.nodeName){const Ve=ee(O.nodeName);if(!u[Ve]||E[Ve])throw $t("root node is forbidden and cannot be sanitized in-place")}}else if(O instanceof a)k=Ro("<!---->"),L=k.ownerDocument.importNode(O,!0),L.nodeType===Nt.element&&L.nodeName==="BODY"||L.nodeName==="HTML"?k=L:k.appendChild(L);else{if(!mt&&!U&&!oe&&O.indexOf("<")===-1)return j&&sn?j.createHTML(O):O;if(k=Ro(O),!k)return mt?null:sn?Z:""}k&&ze&&Ue(k.firstChild);const te=Uo(Tt?O:k);for(;Y=te.nextNode();)jo(Y)||(Y.content instanceof i&&Xi(Y.content),zo(Y));if(Tt)return O;if(mt){if(rn)for(ie=xe.call(k.ownerDocument);k.firstChild;)ie.appendChild(k.firstChild);else ie=k;return(y.shadowroot||y.shadowrootmode)&&(ie=q.call(o,ie,!0)),ie}let ge=oe?k.outerHTML:k.innerHTML;return oe&&u["!doctype"]&&k.ownerDocument&&k.ownerDocument.doctype&&k.ownerDocument.doctype.name&&ue(Bi,k.ownerDocument.doctype.name)&&(ge="<!DOCTYPE "+k.ownerDocument.doctype.name+`>
|
|
405
|
+
`+ge),U&&mn([pe,Le,_e],Ve=>{ge=Ot(ge,Ve," ")}),j&&sn?j.createHTML(ge):ge},e.setConfig=function(){let O=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};Dn(O),re=!0},e.clearConfig=function(){vt=null,re=!1},e.isValidAttribute=function(O,f,k){vt||Dn({});const L=ee(O),Y=ee(f);return Fo(L,Y,k)},e.addHook=function(O,f){typeof f=="function"&&(J[O]=J[O]||[],Lt(J[O],f))},e.removeHook=function(O){if(J[O])return Or(J[O])},e.removeHooks=function(O){J[O]&&(J[O]=[])},e.removeAllHooks=function(){J={}},e}var Di=Ni();class Mi{get IsVisible(){return kt.isVisible()}}class Ud extends Mi{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=>{kt.fire({allowEscapeKey:!1,allowOutsideClick:!1,icon:n,title:r,html:`<div style="max-height: 50vh; overflow: auto">${Di.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 Vd extends Mi{async CreateConfirmAsync(e){return new Promise(n=>{kt.fire({showCancelButton:!0,allowEscapeKey:!1,allowOutsideClick:!1,icon:"question",title:e.title,html:Di.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 Hd=()=>new Ud,jd=()=>new Vd;function Fd(t){return t instanceof Uint8Array||t!=null&&typeof t=="object"&&t.constructor.name==="Uint8Array"}function Ri(t,...e){if(!Fd(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 Ur(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 Kd(t,e){Ri(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 qn=t=>new DataView(t.buffer,t.byteOffset,t.byteLength),je=(t,e)=>t<<32-e|t>>>e;new Uint8Array(new Uint32Array([287454020]).buffer)[0];function zd(t){if(typeof t!="string")throw new Error(`utf8ToBytes expected string, got ${typeof t}`);return new Uint8Array(new TextEncoder().encode(t))}function Ui(t){return typeof t=="string"&&(t=zd(t)),Ri(t),t}class Wd{clone(){return this._cloneInto()}}function Gd(t){const e=o=>t().update(Ui(o)).digest(),n=t();return e.outputLen=n.outputLen,e.blockLen=n.blockLen,e.create=()=>t(),e}function qd(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 Yd=(t,e,n)=>t&e^~t&n,Xd=(t,e,n)=>t&e^t&n^e&n;class Zd extends Wd{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=qn(this.buffer)}update(e){Ur(this);const{view:n,buffer:o,blockLen:r}=this;e=Ui(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=qn(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){Ur(this),Kd(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;qd(o,r-8,BigInt(this.length*8),i),this.process(o,0);const a=qn(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 Jd=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]),Qe=new Uint32Array([1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225]),et=new Uint32Array(64);class Qd extends Zd{constructor(){super(64,32,8,!1),this.A=Qe[0]|0,this.B=Qe[1]|0,this.C=Qe[2]|0,this.D=Qe[3]|0,this.E=Qe[4]|0,this.F=Qe[5]|0,this.G=Qe[6]|0,this.H=Qe[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)et[h]=e.getUint32(n,!1);for(let h=16;h<64;h++){const b=et[h-15],C=et[h-2],T=je(b,7)^je(b,18)^b>>>3,$=je(C,17)^je(C,19)^C>>>10;et[h]=$+et[h-7]+T+et[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 b=je(a,6)^je(a,11)^je(a,25),C=m+b+Yd(a,l,d)+Jd[h]+et[h]|0,$=(je(o,2)^je(o,13)^je(o,22))+Xd(o,r,i)|0;m=d,d=l,l=a,a=c+C|0,c=i,i=r,r=o,o=C+$|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(){et.fill(0)}destroy(){this.set(0,0,0,0,0,0,0,0),this.buffer.fill(0)}}const ef=Gd(()=>new Qd);class Ut extends Error{}Ut.prototype.name="InvalidTokenError";function tf(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 nf(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 tf(e)}catch{return atob(e)}}function Yn(t,e){if(typeof t!="string")throw new Ut("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 Ut(`Invalid token specified: missing part #${n+1}`);let r;try{r=nf(o)}catch(i){throw new Ut(`Invalid token specified: invalid base64 for part #${n+1} (${i.message})`)}try{return JSON.parse(r)}catch(i){throw new Ut(`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 Vi(t){if(!(this instanceof Vi))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=Te(console.info),m=Te(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=it();var p=["default","cordova","cordova-native"];if(u&&p.indexOf(u.adapter)>-1?n=Ke(u.adapter):u&&typeof u.adapter=="object"?n=u.adapter:window.Cordova||window.cordova?n=Ke("cordova"):n=Ke(),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 y=q(),S=q();S.promise.then(function(){e.onReady&&e.onReady(e.authenticated),y.setSuccess(e.authenticated)}).catch(function(A){y.setError(A)});var v=B();function E(){var A=function(U){U||(N.prompt="none"),u&&u.locale&&(N.locale=u.locale),e.login(N).then(function(){S.setSuccess()}).catch(function(he){S.setError(he)})},P=function(){var U=document.createElement("iframe"),he=e.createLoginUrl({prompt:"none",redirectUri:e.silentCheckSsoRedirectUri});U.setAttribute("src",he),U.setAttribute("sandbox","allow-storage-access-by-user-activation allow-scripts allow-same-origin"),U.setAttribute("title","keycloak-silent-check-sso"),U.style.display="none",document.body.appendChild(U);var oe=function(re){if(!(re.origin!==window.location.origin||U.contentWindow!==re.source)){var ze=Q(re.data);I(ze,S),document.body.removeChild(U),window.removeEventListener("message",oe)}};window.addEventListener("message",oe)},N={};switch(u.onLoad){case"check-sso":i.enable?pe().then(function(){_e().then(function(U){U?S.setSuccess():e.silentCheckSsoRedirectUri?P():A(!1)}).catch(function(U){S.setError(U)})}):e.silentCheckSsoRedirectUri?P():A(!1);break;case"login-required":A(!0);break;default:throw"Invalid value for onLoad"}}function w(){var A=Q(window.location.href);if(A&&window.history.replaceState(window.history.state,null,A.newUrl),A&&A.valid)return pe().then(function(){I(A,S)}).catch(function(P){S.setError(P)});u?u.token&&u.refreshToken?(Z(u.token,u.refreshToken,u.idToken),i.enable?pe().then(function(){_e().then(function(P){P?(e.onAuthSuccess&&e.onAuthSuccess(),S.setSuccess(),Le()):S.setSuccess()}).catch(function(P){S.setError(P)})}):e.updateToken(-1).then(function(){e.onAuthSuccess&&e.onAuthSuccess(),S.setSuccess()}).catch(function(P){e.onAuthError&&e.onAuthError(),u.onLoad?E():S.setError(P)})):u.onLoad?E():S.setSuccess():S.setSuccess()}function _(){var A=q(),P=function(){(document.readyState==="interactive"||document.readyState==="complete")&&(document.removeEventListener("readystatechange",P),A.setSuccess())};return document.addEventListener("readystatechange",P),P(),A.promise}return v.then(function(){_().then(Je).then(w).catch(function(A){y.setError(A)})}),v.catch(function(A){y.setError(A)}),y.promise},e.login=function(u){return n.login(u)};function h(u){var p=null,y=window.crypto||window.msCrypto;if(y&&y.getRandomValues&&window.Uint8Array)return p=new Uint8Array(u),y.getRandomValues(p),p;p=new Array(u);for(var S=0;S<p.length;S++)p[S]=Math.floor(256*Math.random());return p}function b(u){return C(u,"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789")}function C(u,p){for(var y=h(u),S=new Array(u),v=0;v<u;v++)S[v]=p.charCodeAt(y[v]%p.length);return String.fromCharCode.apply(null,S)}function T(u,p){if(u!=="S256")throw new TypeError(`Invalid value for 'pkceMethod', expected 'S256' but got '${u}'.`);const y=ef(p);return of(y).replace(/\+/g,"-").replace(/\//g,"_").replace(/\=/g,"")}function $(u){var p={id_token:{acr:u}};return JSON.stringify(p)}e.createLoginUrl=function(u){var p=me(),y=me(),S=n.redirectUri(u),v={state:p,nonce:y,redirectUri:encodeURIComponent(S),loginOptions:u};u&&u.prompt&&(v.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(S)+"&state="+encodeURIComponent(p)+"&response_mode="+encodeURIComponent(e.responseMode)+"&response_type="+encodeURIComponent(e.responseType)+"&scope="+encodeURIComponent(w);if(l&&(_=_+"&nonce="+encodeURIComponent(y)),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=b(96);v.pkceCodeVerifier=P;var N=T(e.pkceMethod,P);_+="&code_challenge="+N,_+="&code_challenge_method="+e.pkceMethod}return r.add(v),_},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 y=e.endpoints.logout()+"?client_id="+encodeURIComponent(e.clientId)+"&post_logout_redirect_uri="+encodeURIComponent(n.redirectUri(u,!1));return e.idToken&&(y+="&id_token_hint="+encodeURIComponent(e.idToken)),y},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=x(),y=void 0;return typeof p<"u"&&(y=p+"/account?referrer="+encodeURIComponent(e.clientId)+"&referrer_uri="+encodeURIComponent(n.redirectUri(u))),y},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 y=e.resourceAccess[p||e.clientId];return!!y&&y.roles.indexOf(u)>=0},e.loadUserProfile=function(){var u=x()+"/account",p=new XMLHttpRequest;p.open("GET",u,!0),p.setRequestHeader("Accept","application/json"),p.setRequestHeader("Authorization","bearer "+e.token);var y=q();return p.onreadystatechange=function(){p.readyState==4&&(p.status==200?(e.profile=JSON.parse(p.responseText),y.setSuccess(e.profile)):y.setError())},p.send(),y.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 y=q();return p.onreadystatechange=function(){p.readyState==4&&(p.status==200?(e.userInfo=JSON.parse(p.responseText),y.setSuccess(e.userInfo)):y.setError())},p.send(),y.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=q();if(!e.refreshToken)return p.setError(),p.promise;u=u||5;var y=function(){var v=!1;if(u==-1?(v=!0,d("[KEYCLOAK] Refreshing token: forced refresh")):(!e.tokenParsed||e.isTokenExpired(u))&&(v=!0,d("[KEYCLOAK] Refreshing token: token expired")),!v)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);Z(P.access_token,P.refresh_token,P.id_token,A),e.onAuthRefreshSuccess&&e.onAuthRefreshSuccess();for(var N=o.pop();N!=null;N=o.pop())N.setSuccess(!0)}else{m("[KEYCLOAK] Failed to refresh token"),_.status==400&&e.clearToken(),e.onAuthRefreshError&&e.onAuthRefreshError();for(var N=o.pop();N!=null;N=o.pop())N.setError(!0)}},_.send(E)}}};if(i.enable){var S=_e();S.then(function(){y()}).catch(function(v){p.setError(v)})}else y();return p.promise},e.clearToken=function(){e.token&&(Z(null,null,null),e.onAuthLogout&&e.onAuthLogout(),e.loginRequired&&e.login())};function x(){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 M(){return window.location.origin?window.location.origin:window.location.protocol+"//"+window.location.hostname+(window.location.port?":"+window.location.port:"")}function I(u,p){var y=u.code,S=u.error,v=u.prompt,E=new Date().getTime();if(u.kc_action_status&&e.onActionUpdate&&e.onActionUpdate(u.kc_action_status,u.kc_action),S){if(v!="none")if(u.error_description&&u.error_description==="authentication_expired")e.login(u.loginOptions);else{var w={error:S,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)&&N(u.access_token,null,u.id_token,!0);if(e.flow!="implicit"&&y){var _="code="+y+"&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 U=JSON.parse(P.responseText);N(U.access_token,U.refresh_token,U.id_token,e.flow==="standard"),Le()}else e.onAuthError&&e.onAuthError(),p&&p.setError()},P.send(_)}function N(U,he,oe,re){E=(E+new Date().getTime())/2,Z(U,he,oe,E),l&&e.idTokenParsed&&e.idTokenParsed.nonce!=u.storedNonce?(d("[KEYCLOAK] Invalid nonce, clearing token"),e.clearToken(),p&&p.setError()):re&&(e.onAuthSuccess&&e.onAuthSuccess(),p&&p.setSuccess())}}function B(u){var p=q(),y;t?typeof t=="string"&&(y=t):y="keycloak.json";function S(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 x()+"/protocol/openid-connect/auth"},token:function(){return x()+"/protocol/openid-connect/token"},logout:function(){return x()+"/protocol/openid-connect/logout"},checkSessionIframe:function(){var N=x()+"/protocol/openid-connect/login-status-iframe.html";return e.iframeVersion&&(N=N+"?version="+e.iframeVersion),N},thirdPartyCookiesIframe:function(){var N=x()+"/protocol/openid-connect/3p-cookies/step1.html";return e.iframeVersion&&(N=N+"?version="+e.iframeVersion),N},register:function(){return x()+"/protocol/openid-connect/registrations"},userinfo:function(){return x()+"/protocol/openid-connect/userinfo"}}}if(y){var v=new XMLHttpRequest;v.open("GET",y,!0),v.setRequestHeader("Accept","application/json"),v.onreadystatechange=function(){if(v.readyState==4)if(v.status==200||j(v)){var P=JSON.parse(v.responseText);e.authServerUrl=P["auth-server-url"],e.realm=P.realm,e.clientId=P.resource,S(null),p.setSuccess()}else p.setError()},v.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 v=new XMLHttpRequest;v.open("GET",A,!0),v.setRequestHeader("Accept","application/json"),v.onreadystatechange=function(){if(v.readyState==4)if(v.status==200||j(v)){var N=JSON.parse(v.responseText);S(N),p.setSuccess()}else p.setError()},v.send()}else S(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,S(null),p.setSuccess()}}return p.promise}function j(u){return u.status==0&&u.responseText&&u.responseURL.startsWith("file:")}function Z(u,p,y,S){if(e.tokenTimeoutHandle&&(clearTimeout(e.tokenTimeoutHandle),e.tokenTimeoutHandle=null),p?(e.refreshToken=p,e.refreshTokenParsed=Yn(p)):(delete e.refreshToken,delete e.refreshTokenParsed),y?(e.idToken=y,e.idTokenParsed=Yn(y)):(delete e.idToken,delete e.idTokenParsed),u){if(e.token=u,e.tokenParsed=Yn(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,S&&(e.timeSkew=Math.floor(S/1e3)-e.tokenParsed.iat),e.timeSkew!=null&&(d("[KEYCLOAK] Estimated time difference between browser and server is "+e.timeSkew+" seconds"),e.onTokenExpired)){var v=(e.tokenParsed.exp-new Date().getTime()/1e3+e.timeSkew)*1e3;d("[KEYCLOAK] Token expires in "+Math.round(v/1e3)+" s"),v<=0?e.onTokenExpired():e.tokenTimeoutHandle=setTimeout(e.onTokenExpired,v)}}else delete e.token,delete e.tokenParsed,delete e.subject,delete e.realmAccess,delete e.resourceAccess,e.authenticated=!1}function me(){var u="0123456789abcdef",p=C(36,u).split("");p[14]="4",p[19]=u.substr(p[19]&3|8,1),p[8]=p[13]=p[18]=p[23]="-";var y=p.join("");return y}function Q(u){var p=xe(u);if(p){var y=r.get(p.state);return y&&(p.valid=!0,p.redirectUri=y.redirectUri,p.storedNonce=y.nonce,p.prompt=y.prompt,p.pkceCodeVerifier=y.pkceCodeVerifier,p.loginOptions=y.loginOptions),p}}function xe(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 y=u.indexOf("?"),S=u.indexOf("#"),v,E;if(e.responseMode==="query"&&y!==-1?(v=u.substring(0,y),E=we(u.substring(y+1,S!==-1?S:u.length),p),E.paramsString!==""&&(v+="?"+E.paramsString),S!==-1&&(v+=u.substring(S))):e.responseMode==="fragment"&&S!==-1&&(v=u.substring(0,S),E=we(u.substring(S+1),p),E.paramsString!==""&&(v+="#"+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=v,E.oauthParams}else if(e.flow==="implicit"&&(E.oauthParams.access_token||E.oauthParams.error)&&E.oauthParams.state)return E.oauthParams.newUrl=v,E.oauthParams}}function we(u,p){for(var y=u.split("&"),S={paramsString:"",oauthParams:{}},v=0;v<y.length;v++){var E=y[v].indexOf("="),w=y[v].slice(0,E);p.indexOf(w)!==-1?S.oauthParams[w]=y[v].slice(E+1):(S.paramsString!==""&&(S.paramsString+="&"),S.paramsString+=y[v])}return S}function q(){var u={setSuccess:function(p){u.resolve(p)},setError:function(p){u.reject(p)}};return u.promise=new Promise(function(p,y){u.resolve=p,u.reject=y}),u}function J(u,p,y){var S=null,v=new Promise(function(E,w){S=setTimeout(function(){w({error:y})},p)});return Promise.race([u,v]).finally(function(){clearTimeout(S)})}function pe(){var u=q();if(!i.enable||i.iframe)return u.setSuccess(),u.promise;var p=document.createElement("iframe");i.iframe=p,p.onload=function(){var v=e.endpoints.authorize();v.charAt(0)==="/"?i.iframeOrigin=M():i.iframeOrigin=v.substring(0,v.indexOf("/",8)),u.setSuccess()};var y=e.endpoints.checkSessionIframe();p.setAttribute("src",y),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 S=function(v){if(!(v.origin!==i.iframeOrigin||i.iframe.contentWindow!==v.source)&&(v.data=="unchanged"||v.data=="changed"||v.data=="error")){v.data!="unchanged"&&e.clearToken();for(var E=i.callbackList.splice(0,i.callbackList.length),w=E.length-1;w>=0;--w){var _=E[w];v.data=="error"?_.setError():_.setSuccess(v.data=="unchanged")}}};return window.addEventListener("message",S,!1),u.promise}function Le(){i.enable&&e.token&&setTimeout(function(){_e().then(function(u){u&&Le()})},i.interval*1e3)}function _e(){var u=q();if(i.iframe&&i.iframeOrigin){var p=e.clientId+" "+(e.sessionId?e.sessionId:"");i.callbackList.push(u);var y=i.iframeOrigin;i.callbackList.length==1&&i.iframe.contentWindow.postMessage(p,y)}else u.setSuccess();return u.promise}function Je(){var u=q();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 y=function(S){p.contentWindow===S.source&&(S.data!=="supported"&&S.data!=="unsupported"||(S.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(h),window.removeEventListener("message",S),d.setSuccess()))};window.addEventListener("message",S,!1)}else d.setSuccess();return Ee(d.promise,e.messageReceiveTimeout,"Timeout when waiting for 3rd party check iframe message.")}function Xe(d){if(!d||d=="default")return{login:function(E){return window.location.assign(e.createLoginUrl(E)),U().promise},logout:async function(E){if(((E==null?void 0:E.logoutMethod)??e.logoutMethod)==="GET"){window.location.replace(e.createLogoutUrl(E));return}const R=e.createLogoutUrl(E),L=await fetch(R,{method:"POST",headers:{"Content-Type":"application/x-www-form-urlencoded"},body:new URLSearchParams({id_token_hint:e.idToken,client_id:e.clientId,post_logout_redirect_uri:n.redirectUri(E,!1)})});if(L.redirected){window.location.href=L.url;return}if(L.ok){window.location.reload();return}throw new Error("Logout failed, request returned an error code.")},register:function(E){return window.location.assign(e.createRegisterUrl(E)),U().promise},accountManagement:function(){var E=e.createAccountUrl();if(typeof E<"u")window.location.href=E;else throw"Not supported by the OIDC server";return U().promise},redirectUri:function(E,A){return E&&E.redirectUri?E.redirectUri:e.redirectUri?e.redirectUri:location.href}};if(d=="cordova"){i.enable=!1;var h=function(E,A,R){return window.cordova&&window.cordova.InAppBrowser?window.cordova.InAppBrowser.open(E,A,R):window.open(E,A,R)},S=function(E){return E&&E.cordovaOptions?Object.keys(E.cordovaOptions).reduce(function(A,R){return A[R]=E.cordovaOptions[R],A},{}):{}},P=function(E){return Object.keys(E).reduce(function(A,R){return A.push(R+"="+E[R]),A},[]).join(",")},k=function(E){var A=S(E);return A.location="no",E&&E.prompt=="none"&&(A.hidden="yes"),P(A)},O=function(){return e.redirectUri||"http://localhost"};return{login:function(E){var A=U(),R=k(E),L=e.createLoginUrl(E),D=h(L,"_blank",R),K=!1,ve=!1,pe=function(){ve=!0,D.close()};return D.addEventListener("loadstart",function(se){if(se.url.indexOf(O())==0){var Ge=X(se.url);C(Ge,A),pe(),K=!0}}),D.addEventListener("loaderror",function(se){if(!K)if(se.url.indexOf(O())==0){var Ge=X(se.url);C(Ge,A),pe(),K=!0}else A.setError(),pe()}),D.addEventListener("exit",function(se){ve||A.setError({reason:"closed_by_user"})}),A.promise},logout:function(E){var A=U(),R=e.createLogoutUrl(E),L=h(R,"_blank","location=no,hidden=yes,clearcache=yes"),D;return L.addEventListener("loadstart",function(K){K.url.indexOf(O())==0&&L.close()}),L.addEventListener("loaderror",function(K){K.url.indexOf(O())==0||(D=!0),L.close()}),L.addEventListener("exit",function(K){D?A.setError():(e.clearToken(),A.setSuccess())}),A.promise},register:function(E){var A=U(),R=e.createRegisterUrl(),L=k(E),D=h(R,"_blank",L);return D.addEventListener("loadstart",function(K){if(K.url.indexOf(O())==0){D.close();var ve=X(K.url);C(ve,A)}}),A.promise},accountManagement:function(){var E=e.createAccountUrl();if(typeof E<"u"){var A=h(E,"_blank","location=no");A.addEventListener("loadstart",function(R){R.url.indexOf(O())==0&&A.close()})}else throw"Not supported by the OIDC server"},redirectUri:function(E){return O()}}}if(d=="cordova-native")return i.enable=!1,{login:function(E){var A=U(),R=e.createLoginUrl(E);return universalLinks.subscribe("keycloak",function(L){universalLinks.unsubscribe("keycloak"),window.cordova.plugins.browsertab.close();var D=X(L.url);C(D,A)}),window.cordova.plugins.browsertab.openUrl(R),A.promise},logout:function(E){var A=U(),R=e.createLogoutUrl(E);return universalLinks.subscribe("keycloak",function(L){universalLinks.unsubscribe("keycloak"),window.cordova.plugins.browsertab.close(),e.clearToken(),A.setSuccess()}),window.cordova.plugins.browsertab.openUrl(R),A.promise},register:function(E){var A=U(),R=e.createRegisterUrl(E);return universalLinks.subscribe("keycloak",function(L){universalLinks.unsubscribe("keycloak"),window.cordova.plugins.browsertab.close();var D=X(L.url);C(D,A)}),window.cordova.plugins.browsertab.openUrl(R),A.promise},accountManagement:function(){var E=e.createAccountUrl();if(typeof E<"u")window.cordova.plugins.browsertab.openUrl(E);else throw"Not supported by the OIDC server"},redirectUri:function(E){return E&&E.redirectUri?E.redirectUri:e.redirectUri?e.redirectUri:"http://localhost"}};throw"invalid adapter type: "+d}var Me=function(){if(!(this instanceof Me))return new Me;localStorage.setItem("kc-test","test"),localStorage.removeItem("kc-test");var d=this;function h(){for(var S=new Date().getTime(),P=0;P<localStorage.length;P++){var k=localStorage.key(P);if(k&&k.indexOf("kc-callback-")==0){var O=localStorage.getItem(k);if(O)try{var E=JSON.parse(O).expires;(!E||E<S)&&localStorage.removeItem(k)}catch{localStorage.removeItem(k)}}}}d.get=function(S){if(S){var P="kc-callback-"+S,k=localStorage.getItem(P);return k&&(localStorage.removeItem(P),k=JSON.parse(k)),h(),k}},d.add=function(S){h();var P="kc-callback-"+S.state;S.expires=new Date().getTime()+60*60*1e3,localStorage.setItem(P,JSON.stringify(S))}},qe=function(){if(!(this instanceof qe))return new qe;var d=this;d.get=function(k){if(k){var O=S("kc-callback-"+k);if(P("kc-callback-"+k,"",h(-100)),O)return JSON.parse(O)}},d.add=function(k){P("kc-callback-"+k.state,JSON.stringify(k),h(60))},d.removeItem=function(k){P(k,"",h(-100))};var h=function(k){var O=new Date;return O.setTime(O.getTime()+k*60*1e3),O},S=function(k){for(var O=k+"=",E=document.cookie.split(";"),A=0;A<E.length;A++){for(var R=E[A];R.charAt(0)==" ";)R=R.substring(1);if(R.indexOf(O)==0)return R.substring(O.length,R.length)}return""},P=function(k,O,E){var A=k+"="+O+"; expires="+E.toUTCString()+"; ";document.cookie=A}};function te(){try{return new Me}catch{}return new qe}function Le(d){return function(){e.enableLogging&&d.apply(console,Array.prototype.slice.call(arguments))}}}function Im(t){const e=String.fromCodePoint(...t);return btoa(e)}class xm{constructor(e){Re(this,"oidc");Re(this,"isAuthenticated",!1);this.oidc=new Ds(e)}async InitAsync(e={}){return await this.oidc.init(e).then(async n=>(this.isAuthenticated=n,n)).catch(n=>(console.info("Ocorreu um erro na inicialização. Verifique o console para mais detalhes."),console.error(n),!1))}}let Ms;function Om(t){Ms=new xm(t)}const Us=()=>Ms;class Rr{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))}}function Hs(t,e){return function(){return t.apply(e,arguments)}}const{toString:Lm}=Object.prototype,{getPrototypeOf:so}=Object,Gn=(t=>e=>{const n=Lm.call(e);return t[n]||(t[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),We=t=>(t=t.toLowerCase(),e=>Gn(e)===t),Yn=t=>e=>typeof e===t,{isArray:Nt}=Array,un=Yn("undefined");function Rm(t){return t!==null&&!un(t)&&t.constructor!==null&&!un(t.constructor)&&Ie(t.constructor.isBuffer)&&t.constructor.isBuffer(t)}const js=We("ArrayBuffer");function $m(t){let e;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?e=ArrayBuffer.isView(t):e=t&&t.buffer&&js(t.buffer),e}const Bm=Yn("string"),Ie=Yn("function"),Vs=Yn("number"),Jn=t=>t!==null&&typeof t=="object",Nm=t=>t===!0||t===!1,In=t=>{if(Gn(t)!=="object")return!1;const e=so(t);return(e===null||e===Object.prototype||Object.getPrototypeOf(e)===null)&&!(Symbol.toStringTag in t)&&!(Symbol.iterator in t)},Dm=We("Date"),Mm=We("File"),Um=We("Blob"),Hm=We("FileList"),jm=t=>Jn(t)&&Ie(t.pipe),Vm=t=>{let e;return t&&(typeof FormData=="function"&&t instanceof FormData||Ie(t.append)&&((e=Gn(t))==="formdata"||e==="object"&&Ie(t.toString)&&t.toString()==="[object FormData]"))},Fm=We("URLSearchParams"),[zm,Km,Wm,qm]=["ReadableStream","Request","Response","Headers"].map(We),Gm=t=>t.trim?t.trim():t.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function yn(t,e,{allOwnKeys:n=!1}={}){if(t===null||typeof t>"u")return;let r,o;if(typeof t!="object"&&(t=[t]),Nt(t))for(r=0,o=t.length;r<o;r++)e.call(null,t[r],r,t);else{const i=n?Object.getOwnPropertyNames(t):Object.keys(t),s=i.length;let a;for(r=0;r<s;r++)a=i[r],e.call(null,t[a],a,t)}}function Fs(t,e){e=e.toLowerCase();const n=Object.keys(t);let r=n.length,o;for(;r-- >0;)if(o=n[r],e===o.toLowerCase())return o;return null}const gt=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,zs=t=>!un(t)&&t!==gt;function $r(){const{caseless:t}=zs(this)&&this||{},e={},n=(r,o)=>{const i=t&&Fs(e,o)||o;In(e[i])&&In(r)?e[i]=$r(e[i],r):In(r)?e[i]=$r({},r):Nt(r)?e[i]=r.slice():e[i]=r};for(let r=0,o=arguments.length;r<o;r++)arguments[r]&&yn(arguments[r],n);return e}const Ym=(t,e,n,{allOwnKeys:r}={})=>(yn(e,(o,i)=>{n&&Ie(o)?t[i]=Hs(o,n):t[i]=o},{allOwnKeys:r}),t),Jm=t=>(t.charCodeAt(0)===65279&&(t=t.slice(1)),t),Xm=(t,e,n,r)=>{t.prototype=Object.create(e.prototype,r),t.prototype.constructor=t,Object.defineProperty(t,"super",{value:e.prototype}),n&&Object.assign(t.prototype,n)},Zm=(t,e,n,r)=>{let o,i,s;const a={};if(e=e||{},t==null)return e;do{for(o=Object.getOwnPropertyNames(t),i=o.length;i-- >0;)s=o[i],(!r||r(s,t,e))&&!a[s]&&(e[s]=t[s],a[s]=!0);t=n!==!1&&so(t)}while(t&&(!n||n(t,e))&&t!==Object.prototype);return e},Qm=(t,e,n)=>{t=String(t),(n===void 0||n>t.length)&&(n=t.length),n-=e.length;const r=t.indexOf(e,n);return r!==-1&&r===n},ep=t=>{if(!t)return null;if(Nt(t))return t;let e=t.length;if(!Vs(e))return null;const n=new Array(e);for(;e-- >0;)n[e]=t[e];return n},tp=(t=>e=>t&&e instanceof t)(typeof Uint8Array<"u"&&so(Uint8Array)),np=(t,e)=>{const r=(t&&t[Symbol.iterator]).call(t);let o;for(;(o=r.next())&&!o.done;){const i=o.value;e.call(t,i[0],i[1])}},rp=(t,e)=>{let n;const r=[];for(;(n=t.exec(e))!==null;)r.push(n);return r},op=We("HTMLFormElement"),ip=t=>t.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,r,o){return r.toUpperCase()+o}),ki=(({hasOwnProperty:t})=>(e,n)=>t.call(e,n))(Object.prototype),sp=We("RegExp"),Ks=(t,e)=>{const n=Object.getOwnPropertyDescriptors(t),r={};yn(n,(o,i)=>{let s;(s=e(o,i,t))!==!1&&(r[i]=s||o)}),Object.defineProperties(t,r)},ap=t=>{Ks(t,(e,n)=>{if(Ie(t)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const r=t[n];if(Ie(r)){if(e.enumerable=!1,"writable"in e){e.writable=!1;return}e.set||(e.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")})}})},lp=(t,e)=>{const n={},r=o=>{o.forEach(i=>{n[i]=!0})};return Nt(t)?r(t):r(String(t).split(e)),n},cp=()=>{},up=(t,e)=>t!=null&&Number.isFinite(t=+t)?t:e,vr="abcdefghijklmnopqrstuvwxyz",Ci="0123456789",Ws={DIGIT:Ci,ALPHA:vr,ALPHA_DIGIT:vr+vr.toUpperCase()+Ci},dp=(t=16,e=Ws.ALPHA_DIGIT)=>{let n="";const{length:r}=e;for(;t--;)n+=e[Math.random()*r|0];return n};function fp(t){return!!(t&&Ie(t.append)&&t[Symbol.toStringTag]==="FormData"&&t[Symbol.iterator])}const mp=t=>{const e=new Array(10),n=(r,o)=>{if(Jn(r)){if(e.indexOf(r)>=0)return;if(!("toJSON"in r)){e[o]=r;const i=Nt(r)?[]:{};return yn(r,(s,a)=>{const c=n(s,o+1);!un(c)&&(i[a]=c)}),e[o]=void 0,i}}return r};return n(t,0)},pp=We("AsyncFunction"),hp=t=>t&&(Jn(t)||Ie(t))&&Ie(t.then)&&Ie(t.catch),qs=((t,e)=>t?setImmediate:e?((n,r)=>(gt.addEventListener("message",({source:o,data:i})=>{o===gt&&i===n&&r.length&&r.shift()()},!1),o=>{r.push(o),gt.postMessage(n,"*")}))(`axios@${Math.random()}`,[]):n=>setTimeout(n))(typeof setImmediate=="function",Ie(gt.postMessage)),gp=typeof queueMicrotask<"u"?queueMicrotask.bind(gt):typeof process<"u"&&process.nextTick||qs,g={isArray:Nt,isArrayBuffer:js,isBuffer:Rm,isFormData:Vm,isArrayBufferView:$m,isString:Bm,isNumber:Vs,isBoolean:Nm,isObject:Jn,isPlainObject:In,isReadableStream:zm,isRequest:Km,isResponse:Wm,isHeaders:qm,isUndefined:un,isDate:Dm,isFile:Mm,isBlob:Um,isRegExp:sp,isFunction:Ie,isStream:jm,isURLSearchParams:Fm,isTypedArray:tp,isFileList:Hm,forEach:yn,merge:$r,extend:Ym,trim:Gm,stripBOM:Jm,inherits:Xm,toFlatObject:Zm,kindOf:Gn,kindOfTest:We,endsWith:Qm,toArray:ep,forEachEntry:np,matchAll:rp,isHTMLForm:op,hasOwnProperty:ki,hasOwnProp:ki,reduceDescriptors:Ks,freezeMethods:ap,toObjectSet:lp,toCamelCase:ip,noop:cp,toFiniteNumber:up,findKey:Fs,global:gt,isContextDefined:zs,ALPHABET:Ws,generateString:dp,isSpecCompliantForm:fp,toJSONObject:mp,isAsyncFn:pp,isThenable:hp,setImmediate:qs,asap:gp};function M(t,e,n,r,o){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=t,this.name="AxiosError",e&&(this.code=e),n&&(this.config=n),r&&(this.request=r),o&&(this.response=o)}g.inherits(M,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:g.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const Gs=M.prototype,Ys={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(t=>{Ys[t]={value:t}});Object.defineProperties(M,Ys);Object.defineProperty(Gs,"isAxiosError",{value:!0});M.from=(t,e,n,r,o,i)=>{const s=Object.create(Gs);return g.toFlatObject(t,s,function(c){return c!==Error.prototype},a=>a!=="isAxiosError"),M.call(s,t.message,e,n,r,o),s.cause=t,s.name=t.name,i&&Object.assign(s,i),s};const yp=null;function Br(t){return g.isPlainObject(t)||g.isArray(t)}function Js(t){return g.endsWith(t,"[]")?t.slice(0,-2):t}function Ei(t,e,n){return t?t.concat(e).map(function(o,i){return o=Js(o),!n&&i?"["+o+"]":o}).join(n?".":""):e}function vp(t){return g.isArray(t)&&!t.some(Br)}const bp=g.toFlatObject(g,{},null,function(e){return/^is[A-Z]/.test(e)});function Xn(t,e,n){if(!g.isObject(t))throw new TypeError("target must be an object");e=e||new FormData,n=g.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(x,w){return!g.isUndefined(w[x])});const r=n.metaTokens,o=n.visitor||f,i=n.dots,s=n.indexes,c=(n.Blob||typeof Blob<"u"&&Blob)&&g.isSpecCompliantForm(e);if(!g.isFunction(o))throw new TypeError("visitor must be a function");function u(v){if(v===null)return"";if(g.isDate(v))return v.toISOString();if(!c&&g.isBlob(v))throw new M("Blob is not supported. Use a Buffer instead.");return g.isArrayBuffer(v)||g.isTypedArray(v)?c&&typeof Blob=="function"?new Blob([v]):Buffer.from(v):v}function f(v,x,w){let N=v;if(v&&!w&&typeof v=="object"){if(g.endsWith(x,"{}"))x=r?x:x.slice(0,-2),v=JSON.stringify(v);else if(g.isArray(v)&&vp(v)||(g.isFileList(v)||g.endsWith(x,"[]"))&&(N=g.toArray(v)))return x=Js(x),N.forEach(function(T,V){!(g.isUndefined(T)||T===null)&&e.append(s===!0?Ei([x],V,i):s===null?x:x+"[]",u(T))}),!1}return Br(v)?!0:(e.append(Ei(w,x,i),u(v)),!1)}const m=[],b=Object.assign(bp,{defaultVisitor:f,convertValue:u,isVisitable:Br});function _(v,x){if(!g.isUndefined(v)){if(m.indexOf(v)!==-1)throw Error("Circular reference detected in "+x.join("."));m.push(v),g.forEach(v,function(N,C){(!(g.isUndefined(N)||N===null)&&o.call(e,N,g.isString(C)?C.trim():C,x,b))===!0&&_(N,x?x.concat(C):[C])}),m.pop()}}if(!g.isObject(t))throw new TypeError("data must be an object");return _(t),e}function Ti(t){const e={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(t).replace(/[!'()~]|%20|%00/g,function(r){return e[r]})}function ao(t,e){this._pairs=[],t&&Xn(t,this,e)}const Xs=ao.prototype;Xs.append=function(e,n){this._pairs.push([e,n])};Xs.toString=function(e){const n=e?function(r){return e.call(this,r,Ti)}:Ti;return this._pairs.map(function(o){return n(o[0])+"="+n(o[1])},"").join("&")};function wp(t){return encodeURIComponent(t).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function Zs(t,e,n){if(!e)return t;const r=n&&n.encode||wp,o=n&&n.serialize;let i;if(o?i=o(e,n):i=g.isURLSearchParams(e)?e.toString():new ao(e,n).toString(r),i){const s=t.indexOf("#");s!==-1&&(t=t.slice(0,s)),t+=(t.indexOf("?")===-1?"?":"&")+i}return t}class Ai{constructor(){this.handlers=[]}use(e,n,r){return this.handlers.push({fulfilled:e,rejected:n,synchronous:r?r.synchronous:!1,runWhen:r?r.runWhen:null}),this.handlers.length-1}eject(e){this.handlers[e]&&(this.handlers[e]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(e){g.forEach(this.handlers,function(r){r!==null&&e(r)})}}const Qs={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},Sp=typeof URLSearchParams<"u"?URLSearchParams:ao,_p=typeof FormData<"u"?FormData:null,kp=typeof Blob<"u"?Blob:null,Cp={isBrowser:!0,classes:{URLSearchParams:Sp,FormData:_p,Blob:kp},protocols:["http","https","file","blob","url","data"]},lo=typeof window<"u"&&typeof document<"u",Ep=(t=>lo&&["ReactNative","NativeScript","NS"].indexOf(t)<0)(typeof navigator<"u"&&navigator.product),Tp=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",Ap=lo&&window.location.href||"http://localhost",Pp=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:lo,hasStandardBrowserEnv:Ep,hasStandardBrowserWebWorkerEnv:Tp,origin:Ap},Symbol.toStringTag,{value:"Module"})),Fe={...Pp,...Cp};function Ip(t,e){return Xn(t,new Fe.classes.URLSearchParams,Object.assign({visitor:function(n,r,o,i){return Fe.isNode&&g.isBuffer(n)?(this.append(r,n.toString("base64")),!1):i.defaultVisitor.apply(this,arguments)}},e))}function xp(t){return g.matchAll(/\w+|\[(\w*)]/g,t).map(e=>e[0]==="[]"?"":e[1]||e[0])}function Op(t){const e={},n=Object.keys(t);let r;const o=n.length;let i;for(r=0;r<o;r++)i=n[r],e[i]=t[i];return e}function ea(t){function e(n,r,o,i){let s=n[i++];if(s==="__proto__")return!0;const a=Number.isFinite(+s),c=i>=n.length;return s=!s&&g.isArray(o)?o.length:s,c?(g.hasOwnProp(o,s)?o[s]=[o[s],r]:o[s]=r,!a):((!o[s]||!g.isObject(o[s]))&&(o[s]=[]),e(n,r,o[s],i)&&g.isArray(o[s])&&(o[s]=Op(o[s])),!a)}if(g.isFormData(t)&&g.isFunction(t.entries)){const n={};return g.forEachEntry(t,(r,o)=>{e(xp(r),o,n,0)}),n}return null}function Lp(t,e,n){if(g.isString(t))try{return(e||JSON.parse)(t),g.trim(t)}catch(r){if(r.name!=="SyntaxError")throw r}return(n||JSON.stringify)(t)}const vn={transitional:Qs,adapter:["xhr","http","fetch"],transformRequest:[function(e,n){const r=n.getContentType()||"",o=r.indexOf("application/json")>-1,i=g.isObject(e);if(i&&g.isHTMLForm(e)&&(e=new FormData(e)),g.isFormData(e))return o?JSON.stringify(ea(e)):e;if(g.isArrayBuffer(e)||g.isBuffer(e)||g.isStream(e)||g.isFile(e)||g.isBlob(e)||g.isReadableStream(e))return e;if(g.isArrayBufferView(e))return e.buffer;if(g.isURLSearchParams(e))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let a;if(i){if(r.indexOf("application/x-www-form-urlencoded")>-1)return Ip(e,this.formSerializer).toString();if((a=g.isFileList(e))||r.indexOf("multipart/form-data")>-1){const c=this.env&&this.env.FormData;return Xn(a?{"files[]":e}:e,c&&new c,this.formSerializer)}}return i||o?(n.setContentType("application/json",!1),Lp(e)):e}],transformResponse:[function(e){const n=this.transitional||vn.transitional,r=n&&n.forcedJSONParsing,o=this.responseType==="json";if(g.isResponse(e)||g.isReadableStream(e))return e;if(e&&g.isString(e)&&(r&&!this.responseType||o)){const s=!(n&&n.silentJSONParsing)&&o;try{return JSON.parse(e)}catch(a){if(s)throw a.name==="SyntaxError"?M.from(a,M.ERR_BAD_RESPONSE,this,null,this.response):a}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:Fe.classes.FormData,Blob:Fe.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};g.forEach(["delete","get","head","post","put","patch"],t=>{vn.headers[t]={}});const Rp=g.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),$p=t=>{const e={};let n,r,o;return t&&t.split(`
|
|
411
|
-
`).forEach(function(s){o=s.indexOf(":"),n=s.substring(0,o).trim().toLowerCase(),r=s.substring(o+1).trim(),!(!n||e[n]&&Rp[n])&&(n==="set-cookie"?e[n]?e[n].push(r):e[n]=[r]:e[n]=e[n]?e[n]+", "+r:r)}),e},Pi=Symbol("internals");function Wt(t){return t&&String(t).trim().toLowerCase()}function xn(t){return t===!1||t==null?t:g.isArray(t)?t.map(xn):String(t)}function Bp(t){const e=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let r;for(;r=n.exec(t);)e[r[1]]=r[2];return e}const Np=t=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(t.trim());function br(t,e,n,r,o){if(g.isFunction(r))return r.call(this,e,n);if(o&&(e=n),!!g.isString(e)){if(g.isString(r))return e.indexOf(r)!==-1;if(g.isRegExp(r))return r.test(e)}}function Dp(t){return t.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(e,n,r)=>n.toUpperCase()+r)}function Mp(t,e){const n=g.toCamelCase(" "+e);["get","set","has"].forEach(r=>{Object.defineProperty(t,r+n,{value:function(o,i,s){return this[r].call(this,e,o,i,s)},configurable:!0})})}class ke{constructor(e){e&&this.set(e)}set(e,n,r){const o=this;function i(a,c,u){const f=Wt(c);if(!f)throw new Error("header name must be a non-empty string");const m=g.findKey(o,f);(!m||o[m]===void 0||u===!0||u===void 0&&o[m]!==!1)&&(o[m||c]=xn(a))}const s=(a,c)=>g.forEach(a,(u,f)=>i(u,f,c));if(g.isPlainObject(e)||e instanceof this.constructor)s(e,n);else if(g.isString(e)&&(e=e.trim())&&!Np(e))s($p(e),n);else if(g.isHeaders(e))for(const[a,c]of e.entries())i(c,a,r);else e!=null&&i(n,e,r);return this}get(e,n){if(e=Wt(e),e){const r=g.findKey(this,e);if(r){const o=this[r];if(!n)return o;if(n===!0)return Bp(o);if(g.isFunction(n))return n.call(this,o,r);if(g.isRegExp(n))return n.exec(o);throw new TypeError("parser must be boolean|regexp|function")}}}has(e,n){if(e=Wt(e),e){const r=g.findKey(this,e);return!!(r&&this[r]!==void 0&&(!n||br(this,this[r],r,n)))}return!1}delete(e,n){const r=this;let o=!1;function i(s){if(s=Wt(s),s){const a=g.findKey(r,s);a&&(!n||br(r,r[a],a,n))&&(delete r[a],o=!0)}}return g.isArray(e)?e.forEach(i):i(e),o}clear(e){const n=Object.keys(this);let r=n.length,o=!1;for(;r--;){const i=n[r];(!e||br(this,this[i],i,e,!0))&&(delete this[i],o=!0)}return o}normalize(e){const n=this,r={};return g.forEach(this,(o,i)=>{const s=g.findKey(r,i);if(s){n[s]=xn(o),delete n[i];return}const a=e?Dp(i):String(i).trim();a!==i&&delete n[i],n[a]=xn(o),r[a]=!0}),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){const n=Object.create(null);return g.forEach(this,(r,o)=>{r!=null&&r!==!1&&(n[o]=e&&g.isArray(r)?r.join(", "):r)}),n}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([e,n])=>e+": "+n).join(`
|
|
412
|
-
`)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(e){return e instanceof this?e:new this(e)}static concat(e,...n){const r=new this(e);return n.forEach(o=>r.set(o)),r}static accessor(e){const r=(this[Pi]=this[Pi]={accessors:{}}).accessors,o=this.prototype;function i(s){const a=Wt(s);r[a]||(Mp(o,s),r[a]=!0)}return g.isArray(e)?e.forEach(i):i(e),this}}ke.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);g.reduceDescriptors(ke.prototype,({value:t},e)=>{let n=e[0].toUpperCase()+e.slice(1);return{get:()=>t,set(r){this[n]=r}}});g.freezeMethods(ke);function wr(t,e){const n=this||vn,r=e||n,o=ke.from(r.headers);let i=r.data;return g.forEach(t,function(a){i=a.call(n,i,o.normalize(),e?e.status:void 0)}),o.normalize(),i}function ta(t){return!!(t&&t.__CANCEL__)}function Dt(t,e,n){M.call(this,t??"canceled",M.ERR_CANCELED,e,n),this.name="CanceledError"}g.inherits(Dt,M,{__CANCEL__:!0});function na(t,e,n){const r=n.config.validateStatus;!n.status||!r||r(n.status)?t(n):e(new M("Request failed with status code "+n.status,[M.ERR_BAD_REQUEST,M.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}function Up(t){const e=/^([-+\w]{1,25})(:?\/\/|:)/.exec(t);return e&&e[1]||""}function Hp(t,e){t=t||10;const n=new Array(t),r=new Array(t);let o=0,i=0,s;return e=e!==void 0?e:1e3,function(c){const u=Date.now(),f=r[i];s||(s=u),n[o]=c,r[o]=u;let m=i,b=0;for(;m!==o;)b+=n[m++],m=m%t;if(o=(o+1)%t,o===i&&(i=(i+1)%t),u-s<e)return;const _=f&&u-f;return _?Math.round(b*1e3/_):void 0}}function jp(t,e){let n=0,r=1e3/e,o,i;const s=(u,f=Date.now())=>{n=f,o=null,i&&(clearTimeout(i),i=null),t.apply(null,u)};return[(...u)=>{const f=Date.now(),m=f-n;m>=r?s(u,f):(o=u,i||(i=setTimeout(()=>{i=null,s(o)},r-m)))},()=>o&&s(o)]}const Dn=(t,e,n=3)=>{let r=0;const o=Hp(50,250);return jp(i=>{const s=i.loaded,a=i.lengthComputable?i.total:void 0,c=s-r,u=o(c),f=s<=a;r=s;const m={loaded:s,total:a,progress:a?s/a:void 0,bytes:c,rate:u||void 0,estimated:u&&a&&f?(a-s)/u:void 0,event:i,lengthComputable:a!=null,[e?"download":"upload"]:!0};t(m)},n)},Ii=(t,e)=>{const n=t!=null;return[r=>e[0]({lengthComputable:n,total:t,loaded:r}),e[1]]},xi=t=>(...e)=>g.asap(()=>t(...e)),Vp=Fe.hasStandardBrowserEnv?function(){const e=/(msie|trident)/i.test(navigator.userAgent),n=document.createElement("a");let r;function o(i){let s=i;return e&&(n.setAttribute("href",s),s=n.href),n.setAttribute("href",s),{href:n.href,protocol:n.protocol?n.protocol.replace(/:$/,""):"",host:n.host,search:n.search?n.search.replace(/^\?/,""):"",hash:n.hash?n.hash.replace(/^#/,""):"",hostname:n.hostname,port:n.port,pathname:n.pathname.charAt(0)==="/"?n.pathname:"/"+n.pathname}}return r=o(window.location.href),function(s){const a=g.isString(s)?o(s):s;return a.protocol===r.protocol&&a.host===r.host}}():function(){return function(){return!0}}(),Fp=Fe.hasStandardBrowserEnv?{write(t,e,n,r,o,i){const s=[t+"="+encodeURIComponent(e)];g.isNumber(n)&&s.push("expires="+new Date(n).toGMTString()),g.isString(r)&&s.push("path="+r),g.isString(o)&&s.push("domain="+o),i===!0&&s.push("secure"),document.cookie=s.join("; ")},read(t){const e=document.cookie.match(new RegExp("(^|;\\s*)("+t+")=([^;]*)"));return e?decodeURIComponent(e[3]):null},remove(t){this.write(t,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function zp(t){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(t)}function Kp(t,e){return e?t.replace(/\/?\/$/,"")+"/"+e.replace(/^\/+/,""):t}function ra(t,e){return t&&!zp(e)?Kp(t,e):e}const Oi=t=>t instanceof ke?{...t}:t;function _t(t,e){e=e||{};const n={};function r(u,f,m){return g.isPlainObject(u)&&g.isPlainObject(f)?g.merge.call({caseless:m},u,f):g.isPlainObject(f)?g.merge({},f):g.isArray(f)?f.slice():f}function o(u,f,m){if(g.isUndefined(f)){if(!g.isUndefined(u))return r(void 0,u,m)}else return r(u,f,m)}function i(u,f){if(!g.isUndefined(f))return r(void 0,f)}function s(u,f){if(g.isUndefined(f)){if(!g.isUndefined(u))return r(void 0,u)}else return r(void 0,f)}function a(u,f,m){if(m in e)return r(u,f);if(m in t)return r(void 0,u)}const c={url:i,method:i,data:i,baseURL:s,transformRequest:s,transformResponse:s,paramsSerializer:s,timeout:s,timeoutMessage:s,withCredentials:s,withXSRFToken:s,adapter:s,responseType:s,xsrfCookieName:s,xsrfHeaderName:s,onUploadProgress:s,onDownloadProgress:s,decompress:s,maxContentLength:s,maxBodyLength:s,beforeRedirect:s,transport:s,httpAgent:s,httpsAgent:s,cancelToken:s,socketPath:s,responseEncoding:s,validateStatus:a,headers:(u,f)=>o(Oi(u),Oi(f),!0)};return g.forEach(Object.keys(Object.assign({},t,e)),function(f){const m=c[f]||o,b=m(t[f],e[f],f);g.isUndefined(b)&&m!==a||(n[f]=b)}),n}const oa=t=>{const e=_t({},t);let{data:n,withXSRFToken:r,xsrfHeaderName:o,xsrfCookieName:i,headers:s,auth:a}=e;e.headers=s=ke.from(s),e.url=Zs(ra(e.baseURL,e.url),t.params,t.paramsSerializer),a&&s.set("Authorization","Basic "+btoa((a.username||"")+":"+(a.password?unescape(encodeURIComponent(a.password)):"")));let c;if(g.isFormData(n)){if(Fe.hasStandardBrowserEnv||Fe.hasStandardBrowserWebWorkerEnv)s.setContentType(void 0);else if((c=s.getContentType())!==!1){const[u,...f]=c?c.split(";").map(m=>m.trim()).filter(Boolean):[];s.setContentType([u||"multipart/form-data",...f].join("; "))}}if(Fe.hasStandardBrowserEnv&&(r&&g.isFunction(r)&&(r=r(e)),r||r!==!1&&Vp(e.url))){const u=o&&i&&Fp.read(i);u&&s.set(o,u)}return e},Wp=typeof XMLHttpRequest<"u",qp=Wp&&function(t){return new Promise(function(n,r){const o=oa(t);let i=o.data;const s=ke.from(o.headers).normalize();let{responseType:a,onUploadProgress:c,onDownloadProgress:u}=o,f,m,b,_,v;function x(){_&&_(),v&&v(),o.cancelToken&&o.cancelToken.unsubscribe(f),o.signal&&o.signal.removeEventListener("abort",f)}let w=new XMLHttpRequest;w.open(o.method.toUpperCase(),o.url,!0),w.timeout=o.timeout;function N(){if(!w)return;const T=ke.from("getAllResponseHeaders"in w&&w.getAllResponseHeaders()),Z={data:!a||a==="text"||a==="json"?w.responseText:w.response,status:w.status,statusText:w.statusText,headers:T,config:t,request:w};na(function(X){n(X),x()},function(X){r(X),x()},Z),w=null}"onloadend"in w?w.onloadend=N:w.onreadystatechange=function(){!w||w.readyState!==4||w.status===0&&!(w.responseURL&&w.responseURL.indexOf("file:")===0)||setTimeout(N)},w.onabort=function(){w&&(r(new M("Request aborted",M.ECONNABORTED,t,w)),w=null)},w.onerror=function(){r(new M("Network Error",M.ERR_NETWORK,t,w)),w=null},w.ontimeout=function(){let V=o.timeout?"timeout of "+o.timeout+"ms exceeded":"timeout exceeded";const Z=o.transitional||Qs;o.timeoutErrorMessage&&(V=o.timeoutErrorMessage),r(new M(V,Z.clarifyTimeoutError?M.ETIMEDOUT:M.ECONNABORTED,t,w)),w=null},i===void 0&&s.setContentType(null),"setRequestHeader"in w&&g.forEach(s.toJSON(),function(V,Z){w.setRequestHeader(Z,V)}),g.isUndefined(o.withCredentials)||(w.withCredentials=!!o.withCredentials),a&&a!=="json"&&(w.responseType=o.responseType),u&&([b,v]=Dn(u,!0),w.addEventListener("progress",b)),c&&w.upload&&([m,_]=Dn(c),w.upload.addEventListener("progress",m),w.upload.addEventListener("loadend",_)),(o.cancelToken||o.signal)&&(f=T=>{w&&(r(!T||T.type?new Dt(null,t,w):T),w.abort(),w=null)},o.cancelToken&&o.cancelToken.subscribe(f),o.signal&&(o.signal.aborted?f():o.signal.addEventListener("abort",f)));const C=Up(o.url);if(C&&Fe.protocols.indexOf(C)===-1){r(new M("Unsupported protocol "+C+":",M.ERR_BAD_REQUEST,t));return}w.send(i||null)})},Gp=(t,e)=>{let n=new AbortController,r;const o=function(c){if(!r){r=!0,s();const u=c instanceof Error?c:this.reason;n.abort(u instanceof M?u:new Dt(u instanceof Error?u.message:u))}};let i=e&&setTimeout(()=>{o(new M(`timeout ${e} of ms exceeded`,M.ETIMEDOUT))},e);const s=()=>{t&&(i&&clearTimeout(i),i=null,t.forEach(c=>{c&&(c.removeEventListener?c.removeEventListener("abort",o):c.unsubscribe(o))}),t=null)};t.forEach(c=>c&&c.addEventListener&&c.addEventListener("abort",o));const{signal:a}=n;return a.unsubscribe=s,[a,()=>{i&&clearTimeout(i),i=null}]},Yp=function*(t,e){let n=t.byteLength;if(!e||n<e){yield t;return}let r=0,o;for(;r<n;)o=r+e,yield t.slice(r,o),r=o},Jp=async function*(t,e,n){for await(const r of t)yield*Yp(ArrayBuffer.isView(r)?r:await n(String(r)),e)},Li=(t,e,n,r,o)=>{const i=Jp(t,e,o);let s=0,a,c=u=>{a||(a=!0,r&&r(u))};return new ReadableStream({async pull(u){try{const{done:f,value:m}=await i.next();if(f){c(),u.close();return}let b=m.byteLength;if(n){let _=s+=b;n(_)}u.enqueue(new Uint8Array(m))}catch(f){throw c(f),f}},cancel(u){return c(u),i.return()}},{highWaterMark:2})},Zn=typeof fetch=="function"&&typeof Request=="function"&&typeof Response=="function",ia=Zn&&typeof ReadableStream=="function",Nr=Zn&&(typeof TextEncoder=="function"?(t=>e=>t.encode(e))(new TextEncoder):async t=>new Uint8Array(await new Response(t).arrayBuffer())),sa=(t,...e)=>{try{return!!t(...e)}catch{return!1}},Xp=ia&&sa(()=>{let t=!1;const e=new Request(Fe.origin,{body:new ReadableStream,method:"POST",get duplex(){return t=!0,"half"}}).headers.has("Content-Type");return t&&!e}),Ri=64*1024,Dr=ia&&sa(()=>g.isReadableStream(new Response("").body)),Mn={stream:Dr&&(t=>t.body)};Zn&&(t=>{["text","arrayBuffer","blob","formData","stream"].forEach(e=>{!Mn[e]&&(Mn[e]=g.isFunction(t[e])?n=>n[e]():(n,r)=>{throw new M(`Response type '${e}' is not supported`,M.ERR_NOT_SUPPORT,r)})})})(new Response);const Zp=async t=>{if(t==null)return 0;if(g.isBlob(t))return t.size;if(g.isSpecCompliantForm(t))return(await new Request(t).arrayBuffer()).byteLength;if(g.isArrayBufferView(t)||g.isArrayBuffer(t))return t.byteLength;if(g.isURLSearchParams(t)&&(t=t+""),g.isString(t))return(await Nr(t)).byteLength},Qp=async(t,e)=>{const n=g.toFiniteNumber(t.getContentLength());return n??Zp(e)},eh=Zn&&(async t=>{let{url:e,method:n,data:r,signal:o,cancelToken:i,timeout:s,onDownloadProgress:a,onUploadProgress:c,responseType:u,headers:f,withCredentials:m="same-origin",fetchOptions:b}=oa(t);u=u?(u+"").toLowerCase():"text";let[_,v]=o||i||s?Gp([o,i],s):[],x,w;const N=()=>{!x&&setTimeout(()=>{_&&_.unsubscribe()}),x=!0};let C;try{if(c&&Xp&&n!=="get"&&n!=="head"&&(C=await Qp(f,r))!==0){let ne=new Request(e,{method:"POST",body:r,duplex:"half"}),X;if(g.isFormData(r)&&(X=ne.headers.get("content-type"))&&f.setContentType(X),ne.body){const[me,oe]=Ii(C,Dn(xi(c)));r=Li(ne.body,Ri,me,oe,Nr)}}g.isString(m)||(m=m?"include":"omit"),w=new Request(e,{...b,signal:_,method:n.toUpperCase(),headers:f.normalize().toJSON(),body:r,duplex:"half",credentials:m});let T=await fetch(w);const V=Dr&&(u==="stream"||u==="response");if(Dr&&(a||V)){const ne={};["status","statusText","headers"].forEach(U=>{ne[U]=T[U]});const X=g.toFiniteNumber(T.headers.get("content-length")),[me,oe]=a&&Ii(X,Dn(xi(a),!0))||[];T=new Response(Li(T.body,Ri,me,()=>{oe&&oe(),V&&N()},Nr),ne)}u=u||"text";let Z=await Mn[g.findKey(Mn,u)||"text"](T,t);return!V&&N(),v&&v(),await new Promise((ne,X)=>{na(ne,X,{data:Z,headers:ke.from(T.headers),status:T.status,statusText:T.statusText,config:t,request:w})})}catch(T){throw N(),T&&T.name==="TypeError"&&/fetch/i.test(T.message)?Object.assign(new M("Network Error",M.ERR_NETWORK,t,w),{cause:T.cause||T}):M.from(T,T&&T.code,t,w)}}),Mr={http:yp,xhr:qp,fetch:eh};g.forEach(Mr,(t,e)=>{if(t){try{Object.defineProperty(t,"name",{value:e})}catch{}Object.defineProperty(t,"adapterName",{value:e})}});const $i=t=>`- ${t}`,th=t=>g.isFunction(t)||t===null||t===!1,aa={getAdapter:t=>{t=g.isArray(t)?t:[t];const{length:e}=t;let n,r;const o={};for(let i=0;i<e;i++){n=t[i];let s;if(r=n,!th(n)&&(r=Mr[(s=String(n)).toLowerCase()],r===void 0))throw new M(`Unknown adapter '${s}'`);if(r)break;o[s||"#"+i]=r}if(!r){const i=Object.entries(o).map(([a,c])=>`adapter ${a} `+(c===!1?"is not supported by the environment":"is not available in the build"));let s=e?i.length>1?`since :
|
|
413
|
-
`+i.map($i).join(`
|
|
414
|
-
`):" "+$i(i[0]):"as no adapter specified";throw new M("There is no suitable adapter to dispatch the request "+s,"ERR_NOT_SUPPORT")}return r},adapters:Mr};function Sr(t){if(t.cancelToken&&t.cancelToken.throwIfRequested(),t.signal&&t.signal.aborted)throw new Dt(null,t)}function Bi(t){return Sr(t),t.headers=ke.from(t.headers),t.data=wr.call(t,t.transformRequest),["post","put","patch"].indexOf(t.method)!==-1&&t.headers.setContentType("application/x-www-form-urlencoded",!1),aa.getAdapter(t.adapter||vn.adapter)(t).then(function(r){return Sr(t),r.data=wr.call(t,t.transformResponse,r),r.headers=ke.from(r.headers),r},function(r){return ta(r)||(Sr(t),r&&r.response&&(r.response.data=wr.call(t,t.transformResponse,r.response),r.response.headers=ke.from(r.response.headers))),Promise.reject(r)})}const la="1.7.4",co={};["object","boolean","number","function","string","symbol"].forEach((t,e)=>{co[t]=function(r){return typeof r===t||"a"+(e<1?"n ":" ")+t}});const Ni={};co.transitional=function(e,n,r){function o(i,s){return"[Axios v"+la+"] Transitional option '"+i+"'"+s+(r?". "+r:"")}return(i,s,a)=>{if(e===!1)throw new M(o(s," has been removed"+(n?" in "+n:"")),M.ERR_DEPRECATED);return n&&!Ni[s]&&(Ni[s]=!0,console.warn(o(s," has been deprecated since v"+n+" and will be removed in the near future"))),e?e(i,s,a):!0}};function nh(t,e,n){if(typeof t!="object")throw new M("options must be an object",M.ERR_BAD_OPTION_VALUE);const r=Object.keys(t);let o=r.length;for(;o-- >0;){const i=r[o],s=e[i];if(s){const a=t[i],c=a===void 0||s(a,i,t);if(c!==!0)throw new M("option "+i+" must be "+c,M.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new M("Unknown option "+i,M.ERR_BAD_OPTION)}}const Ur={assertOptions:nh,validators:co},at=Ur.validators;class vt{constructor(e){this.defaults=e,this.interceptors={request:new Ai,response:new Ai}}async request(e,n){try{return await this._request(e,n)}catch(r){if(r instanceof Error){let o;Error.captureStackTrace?Error.captureStackTrace(o={}):o=new Error;const i=o.stack?o.stack.replace(/^.+\n/,""):"";try{r.stack?i&&!String(r.stack).endsWith(i.replace(/^.+\n.+\n/,""))&&(r.stack+=`
|
|
415
|
-
`+i):r.stack=i}catch{}}throw r}}_request(e,n){typeof e=="string"?(n=n||{},n.url=e):n=e||{},n=_t(this.defaults,n);const{transitional:r,paramsSerializer:o,headers:i}=n;r!==void 0&&Ur.assertOptions(r,{silentJSONParsing:at.transitional(at.boolean),forcedJSONParsing:at.transitional(at.boolean),clarifyTimeoutError:at.transitional(at.boolean)},!1),o!=null&&(g.isFunction(o)?n.paramsSerializer={serialize:o}:Ur.assertOptions(o,{encode:at.function,serialize:at.function},!0)),n.method=(n.method||this.defaults.method||"get").toLowerCase();let s=i&&g.merge(i.common,i[n.method]);i&&g.forEach(["delete","get","head","post","put","patch","common"],v=>{delete i[v]}),n.headers=ke.concat(s,i);const a=[];let c=!0;this.interceptors.request.forEach(function(x){typeof x.runWhen=="function"&&x.runWhen(n)===!1||(c=c&&x.synchronous,a.unshift(x.fulfilled,x.rejected))});const u=[];this.interceptors.response.forEach(function(x){u.push(x.fulfilled,x.rejected)});let f,m=0,b;if(!c){const v=[Bi.bind(this),void 0];for(v.unshift.apply(v,a),v.push.apply(v,u),b=v.length,f=Promise.resolve(n);m<b;)f=f.then(v[m++],v[m++]);return f}b=a.length;let _=n;for(m=0;m<b;){const v=a[m++],x=a[m++];try{_=v(_)}catch(w){x.call(this,w);break}}try{f=Bi.call(this,_)}catch(v){return Promise.reject(v)}for(m=0,b=u.length;m<b;)f=f.then(u[m++],u[m++]);return f}getUri(e){e=_t(this.defaults,e);const n=ra(e.baseURL,e.url);return Zs(n,e.params,e.paramsSerializer)}}g.forEach(["delete","get","head","options"],function(e){vt.prototype[e]=function(n,r){return this.request(_t(r||{},{method:e,url:n,data:(r||{}).data}))}});g.forEach(["post","put","patch"],function(e){function n(r){return function(i,s,a){return this.request(_t(a||{},{method:e,headers:r?{"Content-Type":"multipart/form-data"}:{},url:i,data:s}))}}vt.prototype[e]=n(),vt.prototype[e+"Form"]=n(!0)});class uo{constructor(e){if(typeof e!="function")throw new TypeError("executor must be a function.");let n;this.promise=new Promise(function(i){n=i});const r=this;this.promise.then(o=>{if(!r._listeners)return;let i=r._listeners.length;for(;i-- >0;)r._listeners[i](o);r._listeners=null}),this.promise.then=o=>{let i;const s=new Promise(a=>{r.subscribe(a),i=a}).then(o);return s.cancel=function(){r.unsubscribe(i)},s},e(function(i,s,a){r.reason||(r.reason=new Dt(i,s,a),n(r.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(e){if(this.reason){e(this.reason);return}this._listeners?this._listeners.push(e):this._listeners=[e]}unsubscribe(e){if(!this._listeners)return;const n=this._listeners.indexOf(e);n!==-1&&this._listeners.splice(n,1)}static source(){let e;return{token:new uo(function(o){e=o}),cancel:e}}}function rh(t){return function(n){return t.apply(null,n)}}function oh(t){return g.isObject(t)&&t.isAxiosError===!0}const Hr={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(Hr).forEach(([t,e])=>{Hr[e]=t});function ca(t){const e=new vt(t),n=Hs(vt.prototype.request,e);return g.extend(n,vt.prototype,e,{allOwnKeys:!0}),g.extend(n,e,null,{allOwnKeys:!0}),n.create=function(o){return ca(_t(t,o))},n}const re=ca(vn);re.Axios=vt;re.CanceledError=Dt;re.CancelToken=uo;re.isCancel=ta;re.VERSION=la;re.toFormData=Xn;re.AxiosError=M;re.Cancel=re.CanceledError;re.all=function(e){return Promise.all(e)};re.spread=rh;re.isAxiosError=oh;re.mergeConfig=_t;re.AxiosHeaders=ke;re.formToJSON=t=>ea(g.isHTMLForm(t)?new FormData(t):t);re.getAdapter=aa.getAdapter;re.HttpStatusCode=Hr;re.default=re;function ih(t){const e=window.location.origin,n=new URL(t).origin;return e===n}class sh{constructor(e){Re(this,"axios");this.axios=re.create(e==null?void 0:e.config);const n=window.location.origin+"/api";this.axios.defaults.baseURL||(this.axios.defaults.baseURL=n),e!=null&&e.anonymous||this.axios.interceptors.request.use(async r=>await this.AccessTokenInterceptor(r))}async AccessTokenInterceptor(e){if(!ih(e.baseURL+e.url))return e;const n=Us().oidc;await n.updateToken(10);const r=n.token;return r?e.headers.Authorization=`Bearer ${r}`:n.login(),e}async GetAsync(e){return this.axios.get(e).then(n=>this.HandleThen(n)).catch(n=>this.HandleCatch(n))}async PostAsync(e,n){return this.axios.post(e,n).then(r=>this.HandleThen(r)).catch(r=>this.HandleCatch(r))}async PutAsync(e,n){return this.axios.put(e,n).then(r=>this.HandleThen(r)).catch(r=>this.HandleCatch(r))}async DeleteAsync(e){return this.axios.delete(e).then(n=>this.HandleThen(n)).catch(n=>this.HandleCatch(n))}HandleThen(e){const n=new Rr,r=this.ParsedResponse(e.data);return r===null?(n.httpStatusCode=e.status,n.value=e.data,n):(n.httpStatusCode=r.httpStatusCode,r.hasError?(n.WithErrors(r.errors),n):(n.value=r.value,n))}HandleCatch(e){var o;const n=new Rr,r=this.ParsedResponse((o=e.response)==null?void 0:o.data);return r===null?(n.WithError(e.message),n):(n.httpStatusCode=r.httpStatusCode,n.WithErrors(r.errors),n)}ParsedResponse(e){try{const n=typeof e.hasSuccess=="boolean",r=typeof e.hasError=="boolean",o=Array.isArray(e.errors);return n&&r&&o?e:null}catch{return null}}}class Un{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 Un.Mask(e.padStart(11,"0"),"###.###.###-##")}static MaskCnpj(e){return Un.Mask(e.padStart(14,"0"),"##.###.###/####-##")}static async DelayAsync(e){return new Promise(n=>setTimeout(n,e))}}function ah(){document.documentElement.classList.add("app-mounted")}function ua(){bt.SetInitialTheme()}function lh(){bt.Toggle()}function ch(){bt.EnableDarkMode()}function uh(){bt.EnableLightMode()}function dh(){bt.ClearStoredTheme()}ua();exports.ApiClient=sh;exports.AppResult=Rr;exports.ClearStoredTheme=dh;exports.ConfigAuth=Om;exports.EnableDarkMode=ch;exports.EnableLightMode=uh;exports.RemovePreloader=ah;exports.SetInitialTheme=ua;exports.SfButton=Ja;exports.SfContent=Fa;exports.SfDrawer=rl;exports.SfIcon=On;exports.SfLayout=$a;exports.SfMessage=il;exports.SfNavMenu=tu;exports.SfTabNavigation=qa;exports.SfTooltip=Vr;exports.ToggleTheme=lh;exports.UseAlertService=mm;exports.UseAuth=Us;exports.UseConfirmService=pm;exports.UseNavMenuService=jr;exports.Utilities=Un;
|
|
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",y),u.setSuccess()))};window.addEventListener("message",y,!1)}else u.setSuccess();return J(u.promise,e.messageReceiveTimeout,"Timeout when waiting for 3rd party check iframe message.")}function Ke(u){if(!u||u=="default")return{login:function(w){return window.location.assign(e.createLoginUrl(w)),q().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)),q().promise},accountManagement:function(){var w=e.createAccountUrl();if(typeof w<"u")window.location.href=w;else throw"Not supported by the OIDC server";return q().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)},y=function(w){return w&&w.cordovaOptions?Object.keys(w.cordovaOptions).reduce(function(_,A){return _[A]=w.cordovaOptions[A],_},{}):{}},S=function(w){return Object.keys(w).reduce(function(_,A){return _.push(A+"="+w[A]),_},[]).join(",")},v=function(w){var _=y(w);return _.location="no",w&&w.prompt=="none"&&(_.hidden="yes"),S(_)},E=function(){return e.redirectUri||"http://localhost"};return{login:function(w){var _=q(),A=v(w),P=e.createLoginUrl(w),N=p(P,"_blank",A),U=!1,he=!1,oe=function(){he=!0,N.close()};return N.addEventListener("loadstart",function(re){if(re.url.indexOf(E())==0){var ze=Q(re.url);I(ze,_),oe(),U=!0}}),N.addEventListener("loaderror",function(re){if(!U)if(re.url.indexOf(E())==0){var ze=Q(re.url);I(ze,_),oe(),U=!0}else _.setError(),oe()}),N.addEventListener("exit",function(re){he||_.setError({reason:"closed_by_user"})}),_.promise},logout:function(w){var _=q(),A=e.createLogoutUrl(w),P=p(A,"_blank","location=no,hidden=yes,clearcache=yes"),N;return P.addEventListener("loadstart",function(U){U.url.indexOf(E())==0&&P.close()}),P.addEventListener("loaderror",function(U){U.url.indexOf(E())==0||(N=!0),P.close()}),P.addEventListener("exit",function(U){N?_.setError():(e.clearToken(),_.setSuccess())}),_.promise},register:function(w){var _=q(),A=e.createRegisterUrl(),P=v(w),N=p(A,"_blank",P);return N.addEventListener("loadstart",function(U){if(U.url.indexOf(E())==0){N.close();var he=Q(U.url);I(he,_)}}),_.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 _=q(),A=e.createLoginUrl(w);return universalLinks.subscribe("keycloak",function(P){universalLinks.unsubscribe("keycloak"),window.cordova.plugins.browsertab.close();var N=Q(P.url);I(N,_)}),window.cordova.plugins.browsertab.openUrl(A),_.promise},logout:function(w){var _=q(),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 _=q(),A=e.createRegisterUrl(w);return universalLinks.subscribe("keycloak",function(P){universalLinks.unsubscribe("keycloak"),window.cordova.plugins.browsertab.close();var N=Q(P.url);I(N,_)}),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 Me=function(){if(!(this instanceof Me))return new Me;localStorage.setItem("kc-test","test"),localStorage.removeItem("kc-test");var u=this;function p(){for(var y=new Date().getTime(),S=0;S<localStorage.length;S++){var v=localStorage.key(S);if(v&&v.indexOf("kc-callback-")==0){var E=localStorage.getItem(v);if(E)try{var w=JSON.parse(E).expires;(!w||w<y)&&localStorage.removeItem(v)}catch{localStorage.removeItem(v)}}}}u.get=function(y){if(y){var S="kc-callback-"+y,v=localStorage.getItem(S);return v&&(localStorage.removeItem(S),v=JSON.parse(v)),p(),v}},u.add=function(y){p();var S="kc-callback-"+y.state;y.expires=new Date().getTime()+60*60*1e3,localStorage.setItem(S,JSON.stringify(y))}},Re=function(){if(!(this instanceof Re))return new Re;var u=this;u.get=function(v){if(v){var E=y("kc-callback-"+v);if(S("kc-callback-"+v,"",p(-100)),E)return JSON.parse(E)}},u.add=function(v){S("kc-callback-"+v.state,JSON.stringify(v),p(60))},u.removeItem=function(v){S(v,"",p(-100))};var p=function(v){var E=new Date;return E.setTime(E.getTime()+v*60*1e3),E},y=function(v){for(var E=v+"=",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""},S=function(v,E,w){var _=v+"="+E+"; expires="+w.toUTCString()+"; ";document.cookie=_}};function it(){try{return new Me}catch{}return new Re}function Te(u){return function(){e.enableLogging&&u.apply(console,Array.prototype.slice.call(arguments))}}}function of(t){const e=String.fromCodePoint(...t);return btoa(e)}class rf{constructor(e){He(this,"oidc");He(this,"isAuthenticated",!1);this.oidc=new Vi(e)}async InitAsync(e={}){return await this.oidc.init(e).then(async n=>(this.isAuthenticated=n,n)).catch(n=>(console.info("Ocorreu um erro na inicialização. Verifique o console para mais detalhes."),console.error(n),!1))}}let Hi;function sf(t){Hi=new rf(t)}const af=()=>Hi;class lf{constructor(e=null){He(this,"errors",[]);He(this,"_value",null);He(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 Sn{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 Sn.Mask(e.padStart(11,"0"),"###.###.###-##")}static MaskCnpj(e){return Sn.Mask(e.padStart(14,"0"),"##.###.###/####-##")}static async DelayAsync(e){return new Promise(n=>setTimeout(n,e))}}function cf(){document.documentElement.classList.add("app-mounted")}function ji(){ct.SetInitialTheme()}function uf(){ct.Toggle()}function df(){ct.EnableDarkMode()}function ff(){ct.EnableLightMode()}function mf(){ct.ClearStoredTheme()}ji();exports.AppResult=lf;exports.ClearStoredTheme=mf;exports.ConfigAuth=sf;exports.EnableDarkMode=df;exports.EnableLightMode=ff;exports.RemovePreloader=cf;exports.SetInitialTheme=ji;exports.SfButton=Es;exports.SfContent=ws;exports.SfDrawer=Os;exports.SfIcon=vn;exports.SfLayout=ds;exports.SfMessage=Bs;exports.SfNavMenu=xl;exports.SfTabNavigation=Cs;exports.SfTooltip=lo;exports.ToggleTheme=uf;exports.UseAlertService=Hd;exports.UseAuth=af;exports.UseConfirmService=jd;exports.UseNavMenuService=ao;exports.Utilities=Sn;
|
|
416
411
|
//# sourceMappingURL=sf.prefeiturasp.vuecomponents.cjs.map
|