@luizleon/sf.prefeiturasp.vuecomponents 5.0.12 → 5.0.13
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/sf.prefeiturasp.vuecomponents.js +1055 -1043
- package/dist/sf.prefeiturasp.vuecomponents.js.map +1 -1
- package/dist/sf.prefeiturasp.vuecomponents.umd.cjs +14 -14
- package/dist/sf.prefeiturasp.vuecomponents.umd.cjs.map +1 -1
- package/dist/style.css +1 -1
- package/dist/types/components/content/Content.vue.d.ts +30 -0
- package/dist/types/components/content/Content.vue.d.ts.map +1 -0
- package/dist/types/index.d.ts +1 -0
- package/dist/types/index.d.ts.map +1 -1
- package/package.json +1 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
(function(D,s){typeof exports=="object"&&typeof module<"u"?s(exports,require("vue"),require("vue-router")):typeof define=="function"&&define.amd?define(["exports","vue","vue-router"],s):(D=typeof globalThis<"u"?globalThis:D||self,s((D.sf=D.sf||{},D.sf.prefeiturasp=D.sf.prefeiturasp||{},D.sf.prefeiturasp.vuecomponents={}),D.Vue,D.VueRouter))})(this,function(D,s,ht){"use strict";var jf=Object.defineProperty;var Ff=(D,s,ht)=>s in D?jf(D,s,{enumerable:!0,configurable:!0,writable:!0,value:ht}):D[s]=ht;var Pe=(D,s,ht)=>Ff(D,typeof s!="symbol"?s+"":s,ht);class Pt{constructor(e){Pe(this,"retorno");this.retorno=e??""}Concat(e){return e&&e.trim().length&&(this.retorno+=` ${e}`),this}AddClass(e,n=!0){return n?this.Concat(e):this}Build(){return this.retorno.trim()}}function Dn(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 $r=s.defineComponent({__name:"Tooltip",props:{text:{}},setup(t){const e=t;class n{constructor(){Pe(this,"target",null);Pe(this,"wrapper",null);Pe(this,"inner",null);Pe(this,"showTimeout",null)}Render(){this.wrapper=document.createElement("div"),this.wrapper.classList.add("sf-tooltip-wrapper"),this.wrapper.style.zIndex=`${Dn()??1}`,this.wrapper.addEventListener("mouseup",function(){this.classList.remove("visible"),Array.from(this.children).forEach(i=>i.remove()),this.remove()}),this.inner=document.createElement("div"),this.inner.classList.add("sf-tooltip-inner"),this.wrapper.appendChild(this.inner)}Show(i){this.showTimeout&&clearTimeout(this.showTimeout),this.target=i.currentTarget,this.showTimeout=setTimeout(()=>{this.Render(),this.inner.textContent=e.text,document.body.appendChild(this.wrapper),this.wrapper.classList.add("visible"),this.Position()},500)}Hide(){this.showTimeout&&clearTimeout(this.showTimeout);try{this.wrapper.classList.remove("visible"),this.inner.remove(),this.wrapper.remove(),this.inner=null,this.wrapper=null,this.target=null}catch{}}Position(){if(!this.target||!this.wrapper)return;const i=this.target.getBoundingClientRect();this.FixWidth();const l=this.wrapper,a=5;l.style.top=`${i.top+i.height-a}px`,l.style.left=`${i.left+i.width-a}px`,this.OutOfBottom()&&(l.style.top=`${i.top-l.clientHeight+a}px`),this.OutOfRight()&&(l.style.left=`${i.left-l.clientWidth+a}px`)}FixWidth(){const i=this.wrapper;if(!i)return;i.style.width="fit-content",i.style.wordBreak="normal",i.style.whiteSpace="nowrap";const l=window.innerWidth/2;i.clientWidth>l&&(i.style.width=`${l}px`,i.style.wordBreak="break-word",i.style.whiteSpace="normal")}OutOfBottom(){const i=this.wrapper;if(!i)return!1;const l=i.getBoundingClientRect(),a=window.innerHeight||document.documentElement.clientHeight;return l.bottom+10>a}OutOfRight(){const i=this.wrapper;if(!i)return!1;const l=i.getBoundingClientRect(),a=window.innerWidth||document.documentElement.clientWidth;return l.right+10>a}}const r=new n;return s.onBeforeUnmount(()=>{r.Hide()}),(o,i)=>(s.openBlock(),s.createElementBlock("div",{class:"sf-tooltip-anchor",onMouseenter:i[0]||(i[0]=(...l)=>s.unref(r).Show&&s.unref(r).Show(...l)),onMousedown:i[1]||(i[1]=(...l)=>s.unref(r).Hide&&s.unref(r).Hide(...l)),onMouseleave:i[2]||(i[2]=(...l)=>s.unref(r).Hide&&s.unref(r).Hide(...l))},[s.renderSlot(o.$slots,"default")],32))}}),st=(t,e)=>{const n=t.__vccOpts||t;for(const[r,o]of e)n[r]=o;return n},ss={},as={class:"sf-loading-circle"};function ls(t,e){return s.openBlock(),s.createElementBlock("div",as,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 Br=st(ss,[["render",ls]]),cs=["disabled","data-p-loading","tabindex"],us=["data-color"],Be=st(s.defineComponent({__name:"Icon",props:{icon:{},visible:{type:Boolean,default:!0},class:{default:""},style:{type:[Boolean,null,String,Object,Array],default:""},disabled:{type:Boolean},loading:{type:Boolean},button:{type:Boolean},size:{default:"md"},dot:{type:Boolean},dotColor:{default:"error"},filled:{type:Boolean},buttonProps:{},tooltip:{},color:{default:"inherit"}},emits:["click"],setup(t,{emit:e}){const n=t,r=s.computed(()=>n.tooltip?$r:"div"),o=s.computed(()=>new Pt(n.tooltip?"":"display-content").AddClass("loading",n.loading).AddClass("disabled",n.disabled).Build()),i=s.computed(()=>new Pt(`${n.class} sf-icon`).AddClass("select-none").AddClass("sf-icon-button",n.button).AddClass("sf-icon-small",n.size==="sm").AddClass("sf-icon-medium",n.size==="md").AddClass("sf-icon-large",n.size==="lg").AddClass("sf-icon-xlarge",n.size==="xl").AddClass("sf-icon-2xlarge",n.size==="2xl").AddClass("sf-icon-3xlarge",n.size==="3xl").AddClass("sf-ripple",n.button===!0).AddClass(`${n.color}-color`,!!n.color&&n.color!=="inherit").Build()),l=c=>{n.disabled||n.loading||a("click",c)},a=e;return(c,d)=>(s.openBlock(),s.createBlock(s.resolveDynamicComponent(r.value),{text:n.tooltip,class:s.normalizeClass(o.value),onClick:l},{default:s.withCtx(()=>[n.visible?(s.openBlock(),s.createElementBlock("div",{key:0,style:s.normalizeStyle(n.style),class:s.normalizeClass(i.value)},[n.loading?(s.openBlock(),s.createBlock(Br,{key:0})):(s.openBlock(),s.createElementBlock(s.Fragment,{key:1},[s.createElementVNode("button",s.mergeProps({class:["material-symbols-outlined",{"icon-filled":!!n.filled}],disabled:n.disabled,"data-p-loading":n.loading},n.buttonProps,{tabindex:n.button?void 0:-1}),s.toDisplayString(n.icon),17,cs),n.dot?(s.openBlock(),s.createElementBlock("span",{key:0,"data-color":n.dotColor},null,8,us)):s.createCommentVNode("",!0)],64))],6)):s.createCommentVNode("",!0)]),_:1},8,["text","class"]))}}),[["__scopeId","data-v-facdf37e"]]),ds={class:"sf-tab-navigation"},fs=["data-active"],ms=["href","onClick"],ps=s.defineComponent({__name:"TabNavigation",props:{tabs:{}},setup(t){const e=t,n=s.ref(null),r=new ResizeObserver(c=>{a()}),o=s.ref(!1),i=s.ref(!1);function l(c=!1){const d=n.value.clientWidth;n.value.scrollLeft+=c?-d:d}function a(){const c=n.value.scrollWidth-n.value.clientWidth;o.value=n.value.scrollLeft>10,i.value=n.value.scrollLeft<c-10}return s.onMounted(()=>{n.value.addEventListener("scroll",a),r.observe(n.value)}),s.onBeforeUnmount(()=>{var c;try{(c=n.value)==null||c.removeEventListener("scroll",a),r.unobserve(n.value),r.disconnect()}catch{}}),(c,d)=>{const f=s.resolveComponent("RouterLink");return s.openBlock(),s.createElementBlock("div",ds,[s.createElementVNode("div",{class:s.normalizeClass(["left-arrow",{active:o.value}]),onClick:d[0]||(d[0]=p=>l(!0))},d[2]||(d[2]=[s.createElementVNode("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor",class:"w-6 h-6"},[s.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M15.75 19.5L8.25 12l7.5-7.5"})],-1)]),2),s.createElementVNode("ul",{ref_key:"trackerContainer",ref:n},[(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(e.tabs,p=>(s.openBlock(),s.createBlock(f,{to:p.route,custom:!0},{default:s.withCtx(({navigate:y,isActive:k})=>[s.createElementVNode("li",{"data-active":k},[s.renderSlot(c.$slots,"item",{item:p,navigate:y,isActive:k},()=>[s.createElementVNode("a",{href:p.route,class:s.normalizeClass({active:k}),onClick:y},s.toDisplayString(p.text),11,ms)])],8,fs)]),_:2},1032,["to"]))),256))],512),s.createElementVNode("div",{class:s.normalizeClass(["right-arrow",{active:i.value}]),onClick:d[1]||(d[1]=p=>l())},d[3]||(d[3]=[s.createElementVNode("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor",class:"w-6 h-6"},[s.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M8.25 4.5l7.5 7.5-7.5 7.5"})],-1)]),2)])}}}),hs=["id","name","disabled","data-color","form","type","data-p-loading"],gs=st(s.defineComponent({__name:"Button",props:{icon:{},visible:{type:Boolean,default:!0},class:{},style:{type:[Boolean,null,String,Object,Array]},disabled:{type:Boolean},loading:{type:Boolean},color:{default:"primary"},size:{default:"md"},variant:{default:"filled"},autofocus:{type:Boolean},form:{},name:{},id:{},type:{default:"button"},value:{},iconFilled:{type:Boolean}},emits:["click"],setup(t,{emit:e}){const n=t;function r(){return new Pt(`${n.class??""} sf-button`).AddClass("select-none").AddClass("sf-button-small",n.size==="sm").AddClass("sf-button-medium",n.size==="md").AddClass("sf-button-large",n.size==="lg").AddClass("sf-button-filled",n.variant==="filled").AddClass("sf-button-text",n.variant==="text").AddClass("sf-button-outlined",n.variant==="outlined").AddClass("sf-button-with-icon",!!n.icon).AddClass("sf-ripple",!n.loading&&!n.disabled).Build()}const o=l=>{n.disabled||n.loading||i("click",l)},i=e;return(l,a)=>n.visible?(s.openBlock(),s.createElementBlock("button",{key:0,id:n.id,name:n.name,class:s.normalizeClass(r()),style:s.normalizeStyle(n.style),disabled:n.disabled,"data-color":n.color,form:n.form,type:n.type,"data-p-loading":n.loading,onClick:o},[n.loading?(s.openBlock(),s.createBlock(Be,{key:0,loading:!0,size:n.size,"button-props":{tabindex:-1},class:s.normalizeClass("icon-loading")},null,8,["size"])):s.createCommentVNode("",!0),n.icon?(s.openBlock(),s.createBlock(Be,{key:1,icon:n.icon,size:n.size,"button-props":{tabindex:-1},filled:n.iconFilled,class:s.normalizeClass({transparent:n.loading})},null,8,["icon","size","filled","class"])):s.createCommentVNode("",!0),s.createElementVNode("span",{class:s.normalizeClass({"button-label":!0,transparent:!n.disabled&&n.loading})},[s.renderSlot(l.$slots,"default",{},void 0,!0)],2)],14,hs)):s.createCommentVNode("",!0)}}),[["__scopeId","data-v-6213cac8"]]),ys={class:"sf-drawer-title"},bs={class:"sf-drawer-action"},Nr=s.defineComponent({__name:"Drawer",props:{visible:{type:Boolean,default:!1},position:{default:"left"},style:{type:[Boolean,null,String,Object,Array]},dismissableMask:{type:Boolean,default:!0},title:{},unstyledHeader:{type:Boolean},unstyledContent:{type:Boolean},unstyledFooter:{type:Boolean}},emits:["update:visible","open","before-close"],setup(t,{emit:e}){const n=t,r=e,o=s.useSlots(),i=s.ref(n.visible),l=s.ref(!1),a=s.ref(0),c="sf-drawer-"+Math.random().toString(36).slice(2,11)+"-"+Date.now();function d(){i.value=!1}function f(w){if(!n.dismissableMask)return;const S=w.target;S&&S.id===c&&(i.value=!1)}function p(w){(w.key==="Escape"||w.code==="Escape")&&d()}function y(){r("open"),window.document.addEventListener("keydown",p,!0)}function k(w){a.value=Dn(),w.style.zIndex=`${a.value}`}function C(w){var S;r("before-close"),(S=w==null?void 0:w.parentElement)==null||S.classList.add("sf-mask-overlay-leave")}function A(){window.document.removeEventListener("keydown",p,!0),l.value=!1}function L(){return new Pt("sf-mask sf-mask-overlay").AddClass("right",n.position==="right").AddClass("bottom",n.position==="bottom").AddClass("center",n.position==="center").AddClass("full",n.position==="full").AddClass("sf-mask-overlay-enter",n.visible===!0).Build()}return s.watch(()=>n.visible,w=>{i.value=w}),s.watch(()=>i.value,w=>{r("update:visible",w),w&&(l.value=!0)}),(w,S)=>(s.openBlock(),s.createBlock(s.Teleport,{to:"body"},[l.value?(s.openBlock(),s.createElementBlock("div",{key:0,id:c,class:s.normalizeClass(L()),style:s.normalizeStyle({zIndex:a.value-1}),onClick:s.withModifiers(f,["stop"])},[s.createVNode(s.Transition,{name:"sf-drawer",appear:"",onBeforeEnter:k,onEnter:y,onBeforeLeave:C,onAfterLeave:A},{default:s.withCtx(()=>[i.value?(s.openBlock(),s.createElementBlock("div",{key:0,class:s.normalizeClass(["sf-drawer"]),style:s.normalizeStyle(n.style),role:"dialog"},[s.renderSlot(w.$slots,"header",s.normalizeProps(s.guardReactiveProps({Close:d})),()=>[s.createElementVNode("div",{class:s.normalizeClass(["sf-drawer-header",{unstyled:n.unstyledHeader}])},[s.renderSlot(w.$slots,"title",{},()=>[s.createElementVNode("div",ys,s.toDisplayString(n.title),1)]),S[0]||(S[0]=s.createElementVNode("div",{class:"sf-drawer-spacer"},null,-1)),s.renderSlot(w.$slots,"action",s.normalizeProps(s.guardReactiveProps({Close:d})),()=>[s.createElementVNode("div",bs,[s.createVNode(Be,{button:!0,icon:"close",onClick:d})])])],2)]),s.createElementVNode("div",{class:s.normalizeClass(["sf-drawer-content",{unstyled:n.unstyledContent}])},[s.renderSlot(w.$slots,"default")],2),s.unref(o).footer?(s.openBlock(),s.createElementBlock("div",{key:0,class:s.normalizeClass(["sf-drawer-footer",{unstyled:n.unstyledFooter}])},[s.renderSlot(w.$slots,"footer",s.normalizeProps(s.guardReactiveProps({Close:d})))],2)):s.createCommentVNode("",!0)],4)):s.createCommentVNode("",!0)]),_:3})],6)):s.createCommentVNode("",!0)]))}}),vs=["data-icon"],ws=s.defineComponent({__name:"Message",props:{color:{default:"info"},class:{},style:{type:[Boolean,null,String,Object,Array]},icon:{}},setup(t){const e=t,n=s.computed(()=>{if(e.icon)return e.icon;switch(e.color){case"error":return"cancel";case"info":return"info";case"warn":return"warning";case"success":return"check";case"help":return"help";default:return null}}),r=s.computed(()=>new Pt("sf-message").AddClass("sf-message-error",e.color==="error").AddClass("sf-message-info",e.color==="info").AddClass("sf-message-warning",e.color==="warn").AddClass("sf-message-success",e.color==="success").AddClass("sf-message-help",e.color==="help").AddClass("sf-message-primary",e.color==="primary").AddClass("sf-message-secondary",e.color==="secondary").AddClass(e.class).Build());return(o,i)=>(s.openBlock(),s.createElementBlock("div",{class:s.normalizeClass(r.value),"data-icon":n.value},[s.renderSlot(o.$slots,"default")],10,vs))}});function ks(t,e){return t?t.classList?t.classList.contains(e):new RegExp("(^| )"+e+"( |$)","gi").test(t.className):!1}function _s(t,e){if(t&&e){const n=r=>{ks(t,r)||(t.classList?t.classList.add(r):t.className+=" "+r)};[e].flat().filter(Boolean).forEach(r=>r.split(" ").forEach(n))}}function Rn(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 Ss(t,e){return t instanceof HTMLElement?t.offsetWidth:0}function dn(t){return typeof HTMLElement=="object"?t instanceof HTMLElement:t&&typeof t=="object"&&t!==null&&t.nodeType===1&&typeof t.nodeName=="string"}function fn(t,e={}){if(dn(t)){const n=(r,o)=>{var i,l;const a=(i=t==null?void 0:t.$attrs)!=null&&i[r]?[(l=t==null?void 0:t.$attrs)==null?void 0:l[r]]:[];return[o].flat().reduce((c,d)=>{if(d!=null){const f=typeof d;if(f==="string"||f==="number")c.push(d);else if(f==="object"){const p=Array.isArray(d)?n(r,d):Object.entries(d).map(([y,k])=>r==="style"&&(k||k===0)?`${y.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()}:${k}`:k?y:void 0);c=p.length?c.concat(p.filter(y=>!!y)):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"?fn(t,o):(o=r==="class"?[...new Set(n("class",o))].join(" ").trim():r==="style"?n("style",o).join(";").trim():o,(t.$attrs=t.$attrs||{})&&(t.$attrs[r]=o),t.setAttribute(r,o))}})}}function Cs(t,e={},...n){{const r=document.createElement(t);return fn(r,e),r.append(...n),r}}function Ne(t,e){return dn(t)?t.matches(e)?t:t.querySelector(e):null}function Lt(t,e){t&&document.activeElement!==t&&t.focus(e)}function xt(t,e){if(dn(t)){const n=t.getAttribute(e);return isNaN(n)?n==="true"||n==="false"?n==="true":n:+n}}function Mr(t){if(t){let e=t.offsetHeight,n=getComputedStyle(t);return e-=parseFloat(n.paddingTop)+parseFloat(n.paddingBottom)+parseFloat(n.borderTopWidth)+parseFloat(n.borderBottomWidth),e}return 0}function Es(t){if(t){let e=t.parentNode;return e&&e instanceof ShadowRoot&&e.host&&(e=e.host),e}return null}function Is(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 Ts(t,e){return t?t.offsetHeight:0}function As(t){return!!(t!==null&&typeof t<"u"&&t.nodeName&&Es(t))}function Dr(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 Ps(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}function Ls(t,e="",n){dn(t)&&n!==null&&n!==void 0&&t.setAttribute(e,n)}function Rr(){const t=new Map;return{on(e,n){let r=t.get(e);return r?r.push(n):r=[n],t.set(e,r),this},off(e,n){let r=t.get(e);return r&&r.splice(r.indexOf(n)>>>0,1),this},emit(e,n){let r=t.get(e);r&&r.slice().map(o=>{o(n)})},clear(){t.clear()}}}function at(t){return t==null||t===""||Array.isArray(t)&&t.length===0||!(t instanceof Date)&&typeof t=="object"&&Object.keys(t).length===0}function Un(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,l;if(n&&r){if(i=t.length,i!=e.length)return!1;for(o=i;o--!==0;)if(!Un(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 d=t instanceof RegExp,f=e instanceof RegExp;if(d!=f)return!1;if(d&&f)return t.toString()==e.toString();var p=Object.keys(t);if(i=p.length,i!==Object.keys(e).length)return!1;for(o=i;o--!==0;)if(!Object.prototype.hasOwnProperty.call(e,p[o]))return!1;for(o=i;o--!==0;)if(l=p[o],!Un(t[l],e[l]))return!1;return!0}return t!==t&&e!==e}function Vn(t){return!!(t&&t.constructor&&t.call&&t.apply)}function Z(t){return!at(t)}function gt(t,e,n){return Un(t,e)}function Ur(t,e){let n;if(Z(t))try{n=t.findLast(e)}catch{n=[...t].reverse().find(e)}return n}function et(t,e=!0){return t instanceof Object&&t.constructor===Object&&(e||Object.keys(t).length!==0)}function Ce(t,...e){return Vn(t)?t(...e):t}function ve(t,e=!0){return typeof t=="string"&&(e||t!=="")}function Me(t){return ve(t)?t.replace(/(-|_)/g,"").toLowerCase():t}function Hn(t,e="",n={}){const r=Me(e).split("."),o=r.shift();return o?et(t)?Hn(Ce(t[Object.keys(t).find(i=>Me(i)===o)||""],n),r.join("."),n):void 0:Ce(t,n)}function jn(t,e=!0){return Array.isArray(t)&&(e||t.length!==0)}function Vr(t){return Z(t)&&!isNaN(t)}function xs(t=""){return Z(t)&&t.length===1&&!!t.match(/\S| /)}function Ge(t,e){if(e){const n=e.test(t);return e.lastIndex=0,n}return!1}function Ot(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 Os(t){return ve(t,!1)?t[0].toUpperCase()+t.slice(1):t}function Hr(t){return ve(t)?t.replace(/(_)/g,"-").replace(/[A-Z]/g,(e,n)=>n===0?e:"-"+e.toLowerCase()).toLowerCase():t}function jr(t){return ve(t)?t.replace(/[A-Z]/g,(e,n)=>n===0?e:"."+e.toLowerCase()).toLowerCase():t}var mn={};function $s(t="pui_id_"){return mn.hasOwnProperty(t)||(mn[t]=0),mn[t]++,`${t}${mn[t]}`}function pn(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"pv_id_";return $s(t)}var Bs=Object.defineProperty,Ns=Object.defineProperties,Ms=Object.getOwnPropertyDescriptors,hn=Object.getOwnPropertySymbols,Fr=Object.prototype.hasOwnProperty,zr=Object.prototype.propertyIsEnumerable,Kr=(t,e,n)=>e in t?Bs(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,$t=(t,e)=>{for(var n in e||(e={}))Fr.call(e,n)&&Kr(t,n,e[n]);if(hn)for(var n of hn(e))zr.call(e,n)&&Kr(t,n,e[n]);return t},Fn=(t,e)=>Ns(t,Ms(e)),Bt=(t,e)=>{var n={};for(var r in t)Fr.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&hn)for(var r of hn(t))e.indexOf(r)<0&&zr.call(t,r)&&(n[r]=t[r]);return n},Ds=Rr(),qe=Ds;function Wr(t,e){jn(t)?t.push(...e||[]):et(t)&&Object.assign(t,e)}function Rs(t){return et(t)&&t.hasOwnProperty("value")&&t.hasOwnProperty("type")?t.value:t}function Gr(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=>Vr(i)?`${i}px`:i).join(" ")}function Us(t){return t.replaceAll(/ /g,"").replace(/[^\w]/g,"-")}function zn(t="",e=""){return Us(`${ve(t,!1)&&ve(e,!1)?`${t}-`:t}${e}`)}function qr(t="",e=""){return`--${zn(t,e)}`}function Yr(t,e="",n="",r=[],o){if(ve(t)){const i=/{([^}]*)}/g,l=t.trim();if(Ge(l,i)){const a=l.replaceAll(i,f=>{const y=f.replace(/{|}/g,"").split(".").filter(k=>!r.some(C=>Ge(k,C)));return`var(${qr(n,Hr(y.join("-")))}${Z(o)?`, ${o}`:""})`}),c=/(\d+\s+[\+\-\*\/]\s+\d+)/g,d=/var\([^)]+\)/g;return Ge(a.replace(d,"0"),c)?`calc(${a})`:a}return Gr(l,e)}else if(Vr(t))return Gr(t,e)}function Vs(t,e,n){ve(e,!1)&&t.push(`${e}:${n};`)}function Nt(t,e){return t?`${t}{${e}}`:""}var Kn=(...t)=>Hs(ee.getTheme(),...t),Hs=(t={},e,n,r="variable")=>{if(e){const{variable:o,options:i}=ee.defaults||{},{prefix:l,transform:a}=(t==null?void 0:t.options)||i||{},d=Ge(e,/{([^}]*)}/g)?e:`{${e}}`;return r==="value"||a==="strict"?ee.getTokenValue(e):Yr(d,void 0,l,[o.excludedKeyRegex],n)}return""};function js(t,e={}){const n=ee.defaults.variable,{prefix:r=n.prefix,selector:o=n.selector,excludedKeyRegex:i=n.excludedKeyRegex}=e,l=(d,f="")=>Object.entries(d).reduce((p,[y,k])=>{const C=Ge(y,i)?zn(f):zn(f,Hr(y)),A=Rs(k);if(et(A)){const{variables:L,tokens:w}=l(A,C);Wr(p.tokens,w),Wr(p.variables,L)}else p.tokens.push((r?C.replace(`${r}-`,""):C).replaceAll("-",".")),Vs(p.variables,qr(C),Yr(A,C,r,[i]));return p},{variables:[],tokens:[]}),{variables:a,tokens:c}=l(t,r);return{value:a,tokens:c,declarations:a.join(""),css:Nt(o,a.join(""))}}var De={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 js(t,{prefix:e==null?void 0:e.prefix})},getCommon({name:t="",theme:e={},params:n,set:r,defaults:o}){var i,l,a,c;const{preset:d,options:f}=e;let p,y,k,C;if(Z(d)){const{primitive:A,semantic:L}=d,w=L||{},{colorScheme:S}=w,N=Bt(w,["colorScheme"]),U=S||{},{dark:G}=U,ce=Bt(U,["dark"]),te=Z(A)?this._toVariables({primitive:A},f):{},Ae=Z(N)?this._toVariables({semantic:N},f):{},ne=Z(ce)?this._toVariables({light:ce},f):{},Y=Z(G)?this._toVariables({dark:G},f):{},[M,X]=[(i=te.declarations)!=null?i:"",te.tokens],[ue,de]=[(l=Ae.declarations)!=null?l:"",Ae.tokens||[]],[je,Xe]=[(a=ne.declarations)!=null?a:"",ne.tokens||[]],[Fe,ze]=[(c=Y.declarations)!=null?c:"",Y.tokens||[]];p=this.transformCSS(t,M,"light","variable",f,r,o),y=X;const pt=this.transformCSS(t,`${ue}${je}color-scheme:light`,"light","variable",f,r,o),$e=this.transformCSS(t,`${Fe}color-scheme:dark`,"dark","variable",f,r,o);k=`${pt}${$e}`,C=[...new Set([...de,...Xe,...ze])]}return{primitive:{css:p,tokens:y},semantic:{css:k,tokens:C}}},getPreset({name:t="",preset:e={},options:n,params:r,set:o,defaults:i,selector:l}){var a,c,d;const f=t.replace("-directive",""),p=e,{colorScheme:y}=p,k=Bt(p,["colorScheme"]),C=y||{},{dark:A}=C,L=Bt(C,["dark"]),w=Z(k)?this._toVariables({[f]:k},n):{},S=Z(L)?this._toVariables({[f]:L},n):{},N=Z(A)?this._toVariables({[f]:A},n):{},[U,G]=[(a=w.declarations)!=null?a:"",w.tokens||[]],[ce,te]=[(c=S.declarations)!=null?c:"",S.tokens||[]],[Ae,ne]=[(d=N.declarations)!=null?d:"",N.tokens||[]],Y=[...new Set([...G,...te,...ne])],M=this.transformCSS(f,`${U}${ce}`,"light","variable",n,o,i,l),X=this.transformCSS(f,Ae,"dark","variable",n,o,i,l);return{css:`${M}${X}`,tokens:Y}},getPresetC({name:t="",theme:e={},params:n,set:r,defaults:o}){var i;const{preset:l,options:a}=e,c=(i=l==null?void 0:l.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 l=t.replace("-directive",""),{preset:a,options:c}=e,d=(i=a==null?void 0:a.directives)==null?void 0:i[l];return this.getPreset({name:l,preset:d,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 ${Ce(o.order||"primeui",n)}`:""},getCommonStyleSheet({name:t="",theme:e={},params:n,props:r={},set:o,defaults:i}){const l=this.getCommon({name:t,theme:e,params:n,set:o,defaults:i}),a=Object.entries(r).reduce((c,[d,f])=>c.push(`${d}="${f}"`)&&c,[]).join(" ");return Object.entries(l||{}).reduce((c,[d,f])=>{if(f!=null&&f.css){const p=Ot(f==null?void 0:f.css),y=`${d}-variables`;c.push(`<style type="text/css" data-primevue-style-id="${y}" ${a}>${p}</style>`)}return c},[]).join("")},getStyleSheet({name:t="",theme:e={},params:n,props:r={},set:o,defaults:i}){var l;const a={name:t,theme:e,params:n,set:o,defaults:i},c=(l=t.includes("-directive")?this.getPresetD(a):this.getPresetC(a))==null?void 0:l.css,d=Object.entries(r).reduce((f,[p,y])=>f.push(`${p}="${y}"`)&&f,[]).join(" ");return c?`<style type="text/css" data-primevue-style-id="${t}-variables" ${d}>${Ot(c)}</style>`:""},createTokens(t={},e,n="",r="",o={}){return Object.entries(t).forEach(([i,l])=>{const a=Ge(i,e.variable.excludedKeyRegex)?n:n?`${n}.${jr(i)}`:jr(i),c=r?`${r}.${i}`:i;et(l)?this.createTokens(l,e,a,c,o):(o[a]||(o[a]={paths:[],computed(d,f={}){if(d){const p=this.paths.find(y=>y.scheme===d)||this.paths.find(y=>y.scheme==="none");return p==null?void 0:p.computed(d,f.binding)}return this.paths.map(p=>p.computed(p.scheme,f[p.scheme]))}}),o[a].paths.push({path:c,value:l,scheme:c.includes("colorScheme.light")?"light":c.includes("colorScheme.dark")?"dark":"none",computed(d,f={}){const p=/{([^}]*)}/g;let y=l;if(f.name=this.path,f.binding||(f.binding={}),Ge(l,p)){const C=l.trim().replaceAll(p,w=>{var S,N;const U=w.replace(/{|}/g,"");return(N=(S=o[U])==null?void 0:S.computed(d,f))==null?void 0:N.value}),A=/(\d+\w*\s+[\+\-\*\/]\s+\d+\w*)/g,L=/var\([^)]+\)/g;y=Ge(C.replace(L,"0"),A)?`calc(${C})`:C}return at(f.binding)&&delete f.binding,{colorScheme:d,path:this.path,paths:f,value:y.includes("undefined")?void 0:y}}}))}),o},getTokenValue(t,e,n){var r;const i=(c=>c.split(".").filter(f=>!Ge(f.toLowerCase(),n.variable.excludedKeyRegex)).join("."))(e),l=e.includes("colorScheme.light")?"light":e.includes("colorScheme.dark")?"dark":void 0,a=[(r=t[i])==null?void 0:r.computed(l)].flat().filter(c=>c);return a.length===1?a[0].value:a.reduce((c={},d)=>{const f=d,{colorScheme:p}=f,y=Bt(f,["colorScheme"]);return c[p]=y,c},void 0)},transformCSS(t,e,n,r,o={},i,l,a){if(Z(e)){const{cssLayer:c}=o;if(r!=="style"){const d=this.getColorSchemeOption(o,l),f=a?Nt(a,e):e;e=n==="dark"?d.reduce((p,{selector:y})=>(Z(y)&&(p+=y.includes("[CSS]")?y.replace("[CSS]",f):Nt(y,f)),p),""):Nt(a??":root",e)}if(c){const d={name:"primeui",order:"primeui"};et(c)&&(d.name=Ce(c.name,{name:t,type:r})),Z(d.name)&&(e=Nt(`@layer ${d.name}`,e),i==null||i.layerNames(d.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=Fn($t({},e),{options:$t($t({},this.defaults.options),e.options)}),this._tokens=De.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=Fn($t({},this.theme),{preset:t}),this._tokens=De.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=Fn($t({},this.theme),{options:t}),this.clearLoadedStyleNames(),qe.emit("options:change",t),qe.emit("theme:change",this.theme)},getLayerNames(){return[...this._layerNames]},setLayerNames(t){this._layerNames.add(t)},getLoadedStyleNames(){return this._loadedStyleNames},isStyleNameLoaded(t){return this._loadedStyleNames.has(t)},setLoadedStyleName(t){this._loadedStyleNames.add(t)},deleteLoadedStyleName(t){this._loadedStyleNames.delete(t)},clearLoadedStyleNames(){this._loadedStyleNames.clear()},getTokenValue(t){return De.getTokenValue(this.tokens,t,this.defaults)},getCommon(t="",e){return De.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 De.getPresetC(n)},getDirective(t="",e){const n={name:t,theme:this.theme,params:e,defaults:this.defaults,set:{layerNames:this.setLayerNames.bind(this)}};return De.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 De.getPreset(o)},getLayerOrderCSS(t=""){return De.getLayerOrder(t,this.options,{names:this.getLayerNames()},this.defaults)},transformCSS(t="",e,n="style",r){return De.transformCSS(t,e,r,n,this.options,{layerNames:this.setLayerNames.bind(this)},this.defaults)},getCommonStyleSheet(t="",e,n={}){return De.getCommonStyleSheet({name:t,theme:this.theme,params:e,props:n,defaults:this.defaults,set:{layerNames:this.setLayerNames.bind(this)}})},getStyleSheet(t,e,n={}){return De.getStyleSheet({name:t,theme:this.theme,params:e,props:n,defaults:this.defaults,set:{layerNames:this.setLayerNames.bind(this)}})},onStyleMounted(t){this._loadingStyles.add(t)},onStyleUpdated(t){this._loadingStyles.add(t)},onStyleLoaded(t,{name:e}){this._loadingStyles.size&&(this._loadingStyles.delete(e),qe.emit(`theme:${e}:load`,t),!this._loadingStyles.size&&qe.emit("theme:load"))}},tt={_loadedStyleNames:new Set,getLoadedStyleNames:function(){return this._loadedStyleNames},isStyleNameLoaded:function(e){return this._loadedStyleNames.has(e)},setLoadedStyleName:function(e){this._loadedStyleNames.add(e)},deleteLoadedStyleName:function(e){this._loadedStyleNames.delete(e)},clearLoadedStyleNames:function(){this._loadedStyleNames.clear()}};function Mt(t){"@babel/helpers - typeof";return Mt=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Mt(t)}function Xr(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(t,o).enumerable})),n.push.apply(n,r)}return n}function Zr(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?Xr(Object(n),!0).forEach(function(r){Fs(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Xr(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function Fs(t,e,n){return(e=zs(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function zs(t){var e=Ks(t,"string");return Mt(e)=="symbol"?e:e+""}function Ks(t,e){if(Mt(t)!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e||"default");if(Mt(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function Ws(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;s.getCurrentInstance()?s.onMounted(t):e?t():s.nextTick(t)}var Gs=0;function qs(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=s.ref(!1),r=s.ref(t),o=s.ref(null),i=Ps()?window.document:void 0,l=e.document,a=l===void 0?i:l,c=e.immediate,d=c===void 0?!0:c,f=e.manual,p=f===void 0?!1:f,y=e.name,k=y===void 0?"style_".concat(++Gs):y,C=e.id,A=C===void 0?void 0:C,L=e.media,w=L===void 0?void 0:L,S=e.nonce,N=S===void 0?void 0:S,U=e.first,G=U===void 0?!1:U,ce=e.onMounted,te=ce===void 0?void 0:ce,Ae=e.onUpdated,ne=Ae===void 0?void 0:Ae,Y=e.onLoad,M=Y===void 0?void 0:Y,X=e.props,ue=X===void 0?{}:X,de=function(){},je=function(ze){var pt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(a){var $e=Zr(Zr({},ue),pt),u=$e.name||k,h=$e.id||A,v=$e.nonce||N;o.value=a.querySelector('style[data-primevue-style-id="'.concat(u,'"]'))||a.getElementById(h)||a.createElement("style"),o.value.isConnected||(r.value=ze||t,fn(o.value,{type:"text/css",id:h,media:w,nonce:v}),G?a.head.prepend(o.value):a.head.appendChild(o.value),Ls(o.value,"data-primevue-style-id",u),fn(o.value,$e),o.value.onload=function(T){return M==null?void 0:M(T,{name:u})},te==null||te(u)),!n.value&&(de=s.watch(r,function(T){o.value.textContent=T,ne==null||ne(u)},{immediate:!0}),n.value=!0)}},Xe=function(){!a||!n.value||(de(),As(o.value)&&a.head.removeChild(o.value),n.value=!1)};return d&&!p&&Ws(je),{id:A,name:k,el:o,css:r,unload:Xe,load:je,isLoaded:s.readonly(n)}}function Dt(t){"@babel/helpers - typeof";return Dt=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Dt(t)}function Jr(t,e){return Js(t)||Zs(t,e)||Xs(t,e)||Ys()}function Ys(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
1
|
+
(function(M,s){typeof exports=="object"&&typeof module<"u"?s(exports,require("vue"),require("vue-router")):typeof define=="function"&&define.amd?define(["exports","vue","vue-router"],s):(M=typeof globalThis<"u"?globalThis:M||self,s((M.sf=M.sf||{},M.sf.prefeiturasp=M.sf.prefeiturasp||{},M.sf.prefeiturasp.vuecomponents={}),M.Vue,M.VueRouter))})(this,function(M,s,ht){"use strict";var Ff=Object.defineProperty;var zf=(M,s,ht)=>s in M?Ff(M,s,{enumerable:!0,configurable:!0,writable:!0,value:ht}):M[s]=ht;var Pe=(M,s,ht)=>zf(M,typeof s!="symbol"?s+"":s,ht);class Pt{constructor(e){Pe(this,"retorno");this.retorno=e??""}Concat(e){return e&&e.trim().length&&(this.retorno+=` ${e}`),this}AddClass(e,n=!0){return n?this.Concat(e):this}Build(){return this.retorno.trim()}}function Dn(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 $r=s.defineComponent({__name:"Tooltip",props:{text:{}},setup(t){const e=t;class n{constructor(){Pe(this,"target",null);Pe(this,"wrapper",null);Pe(this,"inner",null);Pe(this,"showTimeout",null)}Render(){this.wrapper=document.createElement("div"),this.wrapper.classList.add("sf-tooltip-wrapper"),this.wrapper.style.zIndex=`${Dn()??1}`,this.wrapper.addEventListener("mouseup",function(){this.classList.remove("visible"),Array.from(this.children).forEach(i=>i.remove()),this.remove()}),this.inner=document.createElement("div"),this.inner.classList.add("sf-tooltip-inner"),this.wrapper.appendChild(this.inner)}Show(i){this.showTimeout&&clearTimeout(this.showTimeout),this.target=i.currentTarget,this.showTimeout=setTimeout(()=>{this.Render(),this.inner.textContent=e.text,document.body.appendChild(this.wrapper),this.wrapper.classList.add("visible"),this.Position()},500)}Hide(){this.showTimeout&&clearTimeout(this.showTimeout);try{this.wrapper.classList.remove("visible"),this.inner.remove(),this.wrapper.remove(),this.inner=null,this.wrapper=null,this.target=null}catch{}}Position(){if(!this.target||!this.wrapper)return;const i=this.target.getBoundingClientRect();this.FixWidth();const l=this.wrapper,a=5;l.style.top=`${i.top+i.height-a}px`,l.style.left=`${i.left+i.width-a}px`,this.OutOfBottom()&&(l.style.top=`${i.top-l.clientHeight+a}px`),this.OutOfRight()&&(l.style.left=`${i.left-l.clientWidth+a}px`)}FixWidth(){const i=this.wrapper;if(!i)return;i.style.width="fit-content",i.style.wordBreak="normal",i.style.whiteSpace="nowrap";const l=window.innerWidth/2;i.clientWidth>l&&(i.style.width=`${l}px`,i.style.wordBreak="break-word",i.style.whiteSpace="normal")}OutOfBottom(){const i=this.wrapper;if(!i)return!1;const l=i.getBoundingClientRect(),a=window.innerHeight||document.documentElement.clientHeight;return l.bottom+10>a}OutOfRight(){const i=this.wrapper;if(!i)return!1;const l=i.getBoundingClientRect(),a=window.innerWidth||document.documentElement.clientWidth;return l.right+10>a}}const r=new n;return s.onBeforeUnmount(()=>{r.Hide()}),(o,i)=>(s.openBlock(),s.createElementBlock("div",{class:"sf-tooltip-anchor",onMouseenter:i[0]||(i[0]=(...l)=>s.unref(r).Show&&s.unref(r).Show(...l)),onMousedown:i[1]||(i[1]=(...l)=>s.unref(r).Hide&&s.unref(r).Hide(...l)),onMouseleave:i[2]||(i[2]=(...l)=>s.unref(r).Hide&&s.unref(r).Hide(...l))},[s.renderSlot(o.$slots,"default")],32))}}),et=(t,e)=>{const n=t.__vccOpts||t;for(const[r,o]of e)n[r]=o;return n},ss={},as={class:"sf-loading-circle"};function ls(t,e){return s.openBlock(),s.createElementBlock("div",as,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 Br=et(ss,[["render",ls]]),cs=["disabled","data-p-loading","tabindex"],us=["data-color"],Be=et(s.defineComponent({__name:"Icon",props:{icon:{},visible:{type:Boolean,default:!0},class:{default:""},style:{type:[Boolean,null,String,Object,Array],default:""},disabled:{type:Boolean},loading:{type:Boolean},button:{type:Boolean},size:{default:"md"},dot:{type:Boolean},dotColor:{default:"error"},filled:{type:Boolean},buttonProps:{},tooltip:{},color:{default:"inherit"}},emits:["click"],setup(t,{emit:e}){const n=t,r=s.computed(()=>n.tooltip?$r:"div"),o=s.computed(()=>new Pt(n.tooltip?"":"display-content").AddClass("loading",n.loading).AddClass("disabled",n.disabled).Build()),i=s.computed(()=>new Pt(`${n.class} sf-icon`).AddClass("select-none").AddClass("sf-icon-button",n.button).AddClass("sf-icon-small",n.size==="sm").AddClass("sf-icon-medium",n.size==="md").AddClass("sf-icon-large",n.size==="lg").AddClass("sf-icon-xlarge",n.size==="xl").AddClass("sf-icon-2xlarge",n.size==="2xl").AddClass("sf-icon-3xlarge",n.size==="3xl").AddClass("sf-ripple",n.button===!0).AddClass(`${n.color}-color`,!!n.color&&n.color!=="inherit").Build()),l=c=>{n.disabled||n.loading||a("click",c)},a=e;return(c,d)=>(s.openBlock(),s.createBlock(s.resolveDynamicComponent(r.value),{text:n.tooltip,class:s.normalizeClass(o.value),onClick:l},{default:s.withCtx(()=>[n.visible?(s.openBlock(),s.createElementBlock("div",{key:0,style:s.normalizeStyle(n.style),class:s.normalizeClass(i.value)},[n.loading?(s.openBlock(),s.createBlock(Br,{key:0})):(s.openBlock(),s.createElementBlock(s.Fragment,{key:1},[s.createElementVNode("button",s.mergeProps({class:["material-symbols-outlined",{"icon-filled":!!n.filled}],disabled:n.disabled,"data-p-loading":n.loading},n.buttonProps,{tabindex:n.button?void 0:-1}),s.toDisplayString(n.icon),17,cs),n.dot?(s.openBlock(),s.createElementBlock("span",{key:0,"data-color":n.dotColor},null,8,us)):s.createCommentVNode("",!0)],64))],6)):s.createCommentVNode("",!0)]),_:1},8,["text","class"]))}}),[["__scopeId","data-v-facdf37e"]]),ds={class:"sf-tab-navigation"},fs=["data-active"],ms=["href","onClick"],ps=s.defineComponent({__name:"TabNavigation",props:{tabs:{}},setup(t){const e=t,n=s.ref(null),r=new ResizeObserver(c=>{a()}),o=s.ref(!1),i=s.ref(!1);function l(c=!1){const d=n.value.clientWidth;n.value.scrollLeft+=c?-d:d}function a(){const c=n.value.scrollWidth-n.value.clientWidth;o.value=n.value.scrollLeft>10,i.value=n.value.scrollLeft<c-10}return s.onMounted(()=>{n.value.addEventListener("scroll",a),r.observe(n.value)}),s.onBeforeUnmount(()=>{var c;try{(c=n.value)==null||c.removeEventListener("scroll",a),r.unobserve(n.value),r.disconnect()}catch{}}),(c,d)=>{const f=s.resolveComponent("RouterLink");return s.openBlock(),s.createElementBlock("div",ds,[s.createElementVNode("div",{class:s.normalizeClass(["left-arrow",{active:o.value}]),onClick:d[0]||(d[0]=p=>l(!0))},d[2]||(d[2]=[s.createElementVNode("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor",class:"w-6 h-6"},[s.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M15.75 19.5L8.25 12l7.5-7.5"})],-1)]),2),s.createElementVNode("ul",{ref_key:"trackerContainer",ref:n},[(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(e.tabs,p=>(s.openBlock(),s.createBlock(f,{to:p.route,custom:!0},{default:s.withCtx(({navigate:y,isActive:k})=>[s.createElementVNode("li",{"data-active":k},[s.renderSlot(c.$slots,"item",{item:p,navigate:y,isActive:k},()=>[s.createElementVNode("a",{href:p.route,class:s.normalizeClass({active:k}),onClick:y},s.toDisplayString(p.text),11,ms)])],8,fs)]),_:2},1032,["to"]))),256))],512),s.createElementVNode("div",{class:s.normalizeClass(["right-arrow",{active:i.value}]),onClick:d[1]||(d[1]=p=>l())},d[3]||(d[3]=[s.createElementVNode("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor",class:"w-6 h-6"},[s.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M8.25 4.5l7.5 7.5-7.5 7.5"})],-1)]),2)])}}}),hs=["id","name","disabled","data-color","form","type","data-p-loading"],gs=et(s.defineComponent({__name:"Button",props:{icon:{},visible:{type:Boolean,default:!0},class:{},style:{type:[Boolean,null,String,Object,Array]},disabled:{type:Boolean},loading:{type:Boolean},color:{default:"primary"},size:{default:"md"},variant:{default:"filled"},autofocus:{type:Boolean},form:{},name:{},id:{},type:{default:"button"},value:{},iconFilled:{type:Boolean}},emits:["click"],setup(t,{emit:e}){const n=t;function r(){return new Pt(`${n.class??""} sf-button`).AddClass("select-none").AddClass("sf-button-small",n.size==="sm").AddClass("sf-button-medium",n.size==="md").AddClass("sf-button-large",n.size==="lg").AddClass("sf-button-filled",n.variant==="filled").AddClass("sf-button-text",n.variant==="text").AddClass("sf-button-outlined",n.variant==="outlined").AddClass("sf-button-with-icon",!!n.icon).AddClass("sf-ripple",!n.loading&&!n.disabled).Build()}const o=l=>{n.disabled||n.loading||i("click",l)},i=e;return(l,a)=>n.visible?(s.openBlock(),s.createElementBlock("button",{key:0,id:n.id,name:n.name,class:s.normalizeClass(r()),style:s.normalizeStyle(n.style),disabled:n.disabled,"data-color":n.color,form:n.form,type:n.type,"data-p-loading":n.loading,onClick:o},[n.loading?(s.openBlock(),s.createBlock(Be,{key:0,loading:!0,size:n.size,"button-props":{tabindex:-1},class:s.normalizeClass("icon-loading")},null,8,["size"])):s.createCommentVNode("",!0),n.icon?(s.openBlock(),s.createBlock(Be,{key:1,icon:n.icon,size:n.size,"button-props":{tabindex:-1},filled:n.iconFilled,class:s.normalizeClass({transparent:n.loading})},null,8,["icon","size","filled","class"])):s.createCommentVNode("",!0),s.createElementVNode("span",{class:s.normalizeClass({"button-label":!0,transparent:!n.disabled&&n.loading})},[s.renderSlot(l.$slots,"default",{},void 0,!0)],2)],14,hs)):s.createCommentVNode("",!0)}}),[["__scopeId","data-v-6213cac8"]]),ys={class:"sf-drawer-title"},bs={class:"sf-drawer-action"},Nr=s.defineComponent({__name:"Drawer",props:{visible:{type:Boolean,default:!1},position:{default:"left"},style:{type:[Boolean,null,String,Object,Array]},dismissableMask:{type:Boolean,default:!0},title:{},unstyledHeader:{type:Boolean},unstyledContent:{type:Boolean},unstyledFooter:{type:Boolean}},emits:["update:visible","open","before-close"],setup(t,{emit:e}){const n=t,r=e,o=s.useSlots(),i=s.ref(n.visible),l=s.ref(!1),a=s.ref(0),c="sf-drawer-"+Math.random().toString(36).slice(2,11)+"-"+Date.now();function d(){i.value=!1}function f(w){if(!n.dismissableMask)return;const S=w.target;S&&S.id===c&&(i.value=!1)}function p(w){(w.key==="Escape"||w.code==="Escape")&&d()}function y(){r("open"),window.document.addEventListener("keydown",p,!0)}function k(w){a.value=Dn(),w.style.zIndex=`${a.value}`}function C(w){var S;r("before-close"),(S=w==null?void 0:w.parentElement)==null||S.classList.add("sf-mask-overlay-leave")}function A(){window.document.removeEventListener("keydown",p,!0),l.value=!1}function L(){return new Pt("sf-mask sf-mask-overlay").AddClass("right",n.position==="right").AddClass("bottom",n.position==="bottom").AddClass("center",n.position==="center").AddClass("full",n.position==="full").AddClass("sf-mask-overlay-enter",n.visible===!0).Build()}return s.watch(()=>n.visible,w=>{i.value=w}),s.watch(()=>i.value,w=>{r("update:visible",w),w&&(l.value=!0)}),(w,S)=>(s.openBlock(),s.createBlock(s.Teleport,{to:"body"},[l.value?(s.openBlock(),s.createElementBlock("div",{key:0,id:c,class:s.normalizeClass(L()),style:s.normalizeStyle({zIndex:a.value-1}),onClick:s.withModifiers(f,["stop"])},[s.createVNode(s.Transition,{name:"sf-drawer",appear:"",onBeforeEnter:k,onEnter:y,onBeforeLeave:C,onAfterLeave:A},{default:s.withCtx(()=>[i.value?(s.openBlock(),s.createElementBlock("div",{key:0,class:s.normalizeClass(["sf-drawer"]),style:s.normalizeStyle(n.style),role:"dialog"},[s.renderSlot(w.$slots,"header",s.normalizeProps(s.guardReactiveProps({Close:d})),()=>[s.createElementVNode("div",{class:s.normalizeClass(["sf-drawer-header",{unstyled:n.unstyledHeader}])},[s.renderSlot(w.$slots,"title",{},()=>[s.createElementVNode("div",ys,s.toDisplayString(n.title),1)]),S[0]||(S[0]=s.createElementVNode("div",{class:"sf-drawer-spacer"},null,-1)),s.renderSlot(w.$slots,"action",s.normalizeProps(s.guardReactiveProps({Close:d})),()=>[s.createElementVNode("div",bs,[s.createVNode(Be,{button:!0,icon:"close",onClick:d})])])],2)]),s.createElementVNode("div",{class:s.normalizeClass(["sf-drawer-content",{unstyled:n.unstyledContent}])},[s.renderSlot(w.$slots,"default")],2),s.unref(o).footer?(s.openBlock(),s.createElementBlock("div",{key:0,class:s.normalizeClass(["sf-drawer-footer",{unstyled:n.unstyledFooter}])},[s.renderSlot(w.$slots,"footer",s.normalizeProps(s.guardReactiveProps({Close:d})))],2)):s.createCommentVNode("",!0)],4)):s.createCommentVNode("",!0)]),_:3})],6)):s.createCommentVNode("",!0)]))}}),vs=["data-icon"],ws=s.defineComponent({__name:"Message",props:{color:{default:"info"},class:{},style:{type:[Boolean,null,String,Object,Array]},icon:{}},setup(t){const e=t,n=s.computed(()=>{if(e.icon)return e.icon;switch(e.color){case"error":return"cancel";case"info":return"info";case"warn":return"warning";case"success":return"check";case"help":return"help";default:return null}}),r=s.computed(()=>new Pt("sf-message").AddClass("sf-message-error",e.color==="error").AddClass("sf-message-info",e.color==="info").AddClass("sf-message-warning",e.color==="warn").AddClass("sf-message-success",e.color==="success").AddClass("sf-message-help",e.color==="help").AddClass("sf-message-primary",e.color==="primary").AddClass("sf-message-secondary",e.color==="secondary").AddClass(e.class).Build());return(o,i)=>(s.openBlock(),s.createElementBlock("div",{class:s.normalizeClass(r.value),"data-icon":n.value},[s.renderSlot(o.$slots,"default")],10,vs))}});function ks(t,e){return t?t.classList?t.classList.contains(e):new RegExp("(^| )"+e+"( |$)","gi").test(t.className):!1}function _s(t,e){if(t&&e){const n=r=>{ks(t,r)||(t.classList?t.classList.add(r):t.className+=" "+r)};[e].flat().filter(Boolean).forEach(r=>r.split(" ").forEach(n))}}function Rn(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 Ss(t,e){return t instanceof HTMLElement?t.offsetWidth:0}function dn(t){return typeof HTMLElement=="object"?t instanceof HTMLElement:t&&typeof t=="object"&&t!==null&&t.nodeType===1&&typeof t.nodeName=="string"}function fn(t,e={}){if(dn(t)){const n=(r,o)=>{var i,l;const a=(i=t==null?void 0:t.$attrs)!=null&&i[r]?[(l=t==null?void 0:t.$attrs)==null?void 0:l[r]]:[];return[o].flat().reduce((c,d)=>{if(d!=null){const f=typeof d;if(f==="string"||f==="number")c.push(d);else if(f==="object"){const p=Array.isArray(d)?n(r,d):Object.entries(d).map(([y,k])=>r==="style"&&(k||k===0)?`${y.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()}:${k}`:k?y:void 0);c=p.length?c.concat(p.filter(y=>!!y)):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"?fn(t,o):(o=r==="class"?[...new Set(n("class",o))].join(" ").trim():r==="style"?n("style",o).join(";").trim():o,(t.$attrs=t.$attrs||{})&&(t.$attrs[r]=o),t.setAttribute(r,o))}})}}function Cs(t,e={},...n){{const r=document.createElement(t);return fn(r,e),r.append(...n),r}}function Ne(t,e){return dn(t)?t.matches(e)?t:t.querySelector(e):null}function Lt(t,e){t&&document.activeElement!==t&&t.focus(e)}function xt(t,e){if(dn(t)){const n=t.getAttribute(e);return isNaN(n)?n==="true"||n==="false"?n==="true":n:+n}}function Mr(t){if(t){let e=t.offsetHeight,n=getComputedStyle(t);return e-=parseFloat(n.paddingTop)+parseFloat(n.paddingBottom)+parseFloat(n.borderTopWidth)+parseFloat(n.borderBottomWidth),e}return 0}function Es(t){if(t){let e=t.parentNode;return e&&e instanceof ShadowRoot&&e.host&&(e=e.host),e}return null}function Is(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 Ts(t,e){return t?t.offsetHeight:0}function As(t){return!!(t!==null&&typeof t<"u"&&t.nodeName&&Es(t))}function Dr(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 Ps(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}function Ls(t,e="",n){dn(t)&&n!==null&&n!==void 0&&t.setAttribute(e,n)}function Rr(){const t=new Map;return{on(e,n){let r=t.get(e);return r?r.push(n):r=[n],t.set(e,r),this},off(e,n){let r=t.get(e);return r&&r.splice(r.indexOf(n)>>>0,1),this},emit(e,n){let r=t.get(e);r&&r.slice().map(o=>{o(n)})},clear(){t.clear()}}}function at(t){return t==null||t===""||Array.isArray(t)&&t.length===0||!(t instanceof Date)&&typeof t=="object"&&Object.keys(t).length===0}function Un(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,l;if(n&&r){if(i=t.length,i!=e.length)return!1;for(o=i;o--!==0;)if(!Un(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 d=t instanceof RegExp,f=e instanceof RegExp;if(d!=f)return!1;if(d&&f)return t.toString()==e.toString();var p=Object.keys(t);if(i=p.length,i!==Object.keys(e).length)return!1;for(o=i;o--!==0;)if(!Object.prototype.hasOwnProperty.call(e,p[o]))return!1;for(o=i;o--!==0;)if(l=p[o],!Un(t[l],e[l]))return!1;return!0}return t!==t&&e!==e}function Vn(t){return!!(t&&t.constructor&&t.call&&t.apply)}function Z(t){return!at(t)}function gt(t,e,n){return Un(t,e)}function Ur(t,e){let n;if(Z(t))try{n=t.findLast(e)}catch{n=[...t].reverse().find(e)}return n}function tt(t,e=!0){return t instanceof Object&&t.constructor===Object&&(e||Object.keys(t).length!==0)}function Ce(t,...e){return Vn(t)?t(...e):t}function ve(t,e=!0){return typeof t=="string"&&(e||t!=="")}function Me(t){return ve(t)?t.replace(/(-|_)/g,"").toLowerCase():t}function Hn(t,e="",n={}){const r=Me(e).split("."),o=r.shift();return o?tt(t)?Hn(Ce(t[Object.keys(t).find(i=>Me(i)===o)||""],n),r.join("."),n):void 0:Ce(t,n)}function jn(t,e=!0){return Array.isArray(t)&&(e||t.length!==0)}function Vr(t){return Z(t)&&!isNaN(t)}function xs(t=""){return Z(t)&&t.length===1&&!!t.match(/\S| /)}function Ge(t,e){if(e){const n=e.test(t);return e.lastIndex=0,n}return!1}function Ot(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 Os(t){return ve(t,!1)?t[0].toUpperCase()+t.slice(1):t}function Hr(t){return ve(t)?t.replace(/(_)/g,"-").replace(/[A-Z]/g,(e,n)=>n===0?e:"-"+e.toLowerCase()).toLowerCase():t}function jr(t){return ve(t)?t.replace(/[A-Z]/g,(e,n)=>n===0?e:"."+e.toLowerCase()).toLowerCase():t}var mn={};function $s(t="pui_id_"){return mn.hasOwnProperty(t)||(mn[t]=0),mn[t]++,`${t}${mn[t]}`}function pn(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"pv_id_";return $s(t)}var Bs=Object.defineProperty,Ns=Object.defineProperties,Ms=Object.getOwnPropertyDescriptors,hn=Object.getOwnPropertySymbols,Fr=Object.prototype.hasOwnProperty,zr=Object.prototype.propertyIsEnumerable,Kr=(t,e,n)=>e in t?Bs(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,$t=(t,e)=>{for(var n in e||(e={}))Fr.call(e,n)&&Kr(t,n,e[n]);if(hn)for(var n of hn(e))zr.call(e,n)&&Kr(t,n,e[n]);return t},Fn=(t,e)=>Ns(t,Ms(e)),Bt=(t,e)=>{var n={};for(var r in t)Fr.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&hn)for(var r of hn(t))e.indexOf(r)<0&&zr.call(t,r)&&(n[r]=t[r]);return n},Ds=Rr(),qe=Ds;function Wr(t,e){jn(t)?t.push(...e||[]):tt(t)&&Object.assign(t,e)}function Rs(t){return tt(t)&&t.hasOwnProperty("value")&&t.hasOwnProperty("type")?t.value:t}function Gr(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=>Vr(i)?`${i}px`:i).join(" ")}function Us(t){return t.replaceAll(/ /g,"").replace(/[^\w]/g,"-")}function zn(t="",e=""){return Us(`${ve(t,!1)&&ve(e,!1)?`${t}-`:t}${e}`)}function qr(t="",e=""){return`--${zn(t,e)}`}function Yr(t,e="",n="",r=[],o){if(ve(t)){const i=/{([^}]*)}/g,l=t.trim();if(Ge(l,i)){const a=l.replaceAll(i,f=>{const y=f.replace(/{|}/g,"").split(".").filter(k=>!r.some(C=>Ge(k,C)));return`var(${qr(n,Hr(y.join("-")))}${Z(o)?`, ${o}`:""})`}),c=/(\d+\s+[\+\-\*\/]\s+\d+)/g,d=/var\([^)]+\)/g;return Ge(a.replace(d,"0"),c)?`calc(${a})`:a}return Gr(l,e)}else if(Vr(t))return Gr(t,e)}function Vs(t,e,n){ve(e,!1)&&t.push(`${e}:${n};`)}function Nt(t,e){return t?`${t}{${e}}`:""}var Kn=(...t)=>Hs(ee.getTheme(),...t),Hs=(t={},e,n,r="variable")=>{if(e){const{variable:o,options:i}=ee.defaults||{},{prefix:l,transform:a}=(t==null?void 0:t.options)||i||{},d=Ge(e,/{([^}]*)}/g)?e:`{${e}}`;return r==="value"||a==="strict"?ee.getTokenValue(e):Yr(d,void 0,l,[o.excludedKeyRegex],n)}return""};function js(t,e={}){const n=ee.defaults.variable,{prefix:r=n.prefix,selector:o=n.selector,excludedKeyRegex:i=n.excludedKeyRegex}=e,l=(d,f="")=>Object.entries(d).reduce((p,[y,k])=>{const C=Ge(y,i)?zn(f):zn(f,Hr(y)),A=Rs(k);if(tt(A)){const{variables:L,tokens:w}=l(A,C);Wr(p.tokens,w),Wr(p.variables,L)}else p.tokens.push((r?C.replace(`${r}-`,""):C).replaceAll("-",".")),Vs(p.variables,qr(C),Yr(A,C,r,[i]));return p},{variables:[],tokens:[]}),{variables:a,tokens:c}=l(t,r);return{value:a,tokens:c,declarations:a.join(""),css:Nt(o,a.join(""))}}var De={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 js(t,{prefix:e==null?void 0:e.prefix})},getCommon({name:t="",theme:e={},params:n,set:r,defaults:o}){var i,l,a,c;const{preset:d,options:f}=e;let p,y,k,C;if(Z(d)){const{primitive:A,semantic:L}=d,w=L||{},{colorScheme:S}=w,N=Bt(w,["colorScheme"]),U=S||{},{dark:G}=U,ce=Bt(U,["dark"]),te=Z(A)?this._toVariables({primitive:A},f):{},Ae=Z(N)?this._toVariables({semantic:N},f):{},ne=Z(ce)?this._toVariables({light:ce},f):{},Y=Z(G)?this._toVariables({dark:G},f):{},[D,X]=[(i=te.declarations)!=null?i:"",te.tokens],[ue,de]=[(l=Ae.declarations)!=null?l:"",Ae.tokens||[]],[je,Xe]=[(a=ne.declarations)!=null?a:"",ne.tokens||[]],[Fe,ze]=[(c=Y.declarations)!=null?c:"",Y.tokens||[]];p=this.transformCSS(t,D,"light","variable",f,r,o),y=X;const pt=this.transformCSS(t,`${ue}${je}color-scheme:light`,"light","variable",f,r,o),$e=this.transformCSS(t,`${Fe}color-scheme:dark`,"dark","variable",f,r,o);k=`${pt}${$e}`,C=[...new Set([...de,...Xe,...ze])]}return{primitive:{css:p,tokens:y},semantic:{css:k,tokens:C}}},getPreset({name:t="",preset:e={},options:n,params:r,set:o,defaults:i,selector:l}){var a,c,d;const f=t.replace("-directive",""),p=e,{colorScheme:y}=p,k=Bt(p,["colorScheme"]),C=y||{},{dark:A}=C,L=Bt(C,["dark"]),w=Z(k)?this._toVariables({[f]:k},n):{},S=Z(L)?this._toVariables({[f]:L},n):{},N=Z(A)?this._toVariables({[f]:A},n):{},[U,G]=[(a=w.declarations)!=null?a:"",w.tokens||[]],[ce,te]=[(c=S.declarations)!=null?c:"",S.tokens||[]],[Ae,ne]=[(d=N.declarations)!=null?d:"",N.tokens||[]],Y=[...new Set([...G,...te,...ne])],D=this.transformCSS(f,`${U}${ce}`,"light","variable",n,o,i,l),X=this.transformCSS(f,Ae,"dark","variable",n,o,i,l);return{css:`${D}${X}`,tokens:Y}},getPresetC({name:t="",theme:e={},params:n,set:r,defaults:o}){var i;const{preset:l,options:a}=e,c=(i=l==null?void 0:l.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 l=t.replace("-directive",""),{preset:a,options:c}=e,d=(i=a==null?void 0:a.directives)==null?void 0:i[l];return this.getPreset({name:l,preset:d,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 ${Ce(o.order||"primeui",n)}`:""},getCommonStyleSheet({name:t="",theme:e={},params:n,props:r={},set:o,defaults:i}){const l=this.getCommon({name:t,theme:e,params:n,set:o,defaults:i}),a=Object.entries(r).reduce((c,[d,f])=>c.push(`${d}="${f}"`)&&c,[]).join(" ");return Object.entries(l||{}).reduce((c,[d,f])=>{if(f!=null&&f.css){const p=Ot(f==null?void 0:f.css),y=`${d}-variables`;c.push(`<style type="text/css" data-primevue-style-id="${y}" ${a}>${p}</style>`)}return c},[]).join("")},getStyleSheet({name:t="",theme:e={},params:n,props:r={},set:o,defaults:i}){var l;const a={name:t,theme:e,params:n,set:o,defaults:i},c=(l=t.includes("-directive")?this.getPresetD(a):this.getPresetC(a))==null?void 0:l.css,d=Object.entries(r).reduce((f,[p,y])=>f.push(`${p}="${y}"`)&&f,[]).join(" ");return c?`<style type="text/css" data-primevue-style-id="${t}-variables" ${d}>${Ot(c)}</style>`:""},createTokens(t={},e,n="",r="",o={}){return Object.entries(t).forEach(([i,l])=>{const a=Ge(i,e.variable.excludedKeyRegex)?n:n?`${n}.${jr(i)}`:jr(i),c=r?`${r}.${i}`:i;tt(l)?this.createTokens(l,e,a,c,o):(o[a]||(o[a]={paths:[],computed(d,f={}){if(d){const p=this.paths.find(y=>y.scheme===d)||this.paths.find(y=>y.scheme==="none");return p==null?void 0:p.computed(d,f.binding)}return this.paths.map(p=>p.computed(p.scheme,f[p.scheme]))}}),o[a].paths.push({path:c,value:l,scheme:c.includes("colorScheme.light")?"light":c.includes("colorScheme.dark")?"dark":"none",computed(d,f={}){const p=/{([^}]*)}/g;let y=l;if(f.name=this.path,f.binding||(f.binding={}),Ge(l,p)){const C=l.trim().replaceAll(p,w=>{var S,N;const U=w.replace(/{|}/g,"");return(N=(S=o[U])==null?void 0:S.computed(d,f))==null?void 0:N.value}),A=/(\d+\w*\s+[\+\-\*\/]\s+\d+\w*)/g,L=/var\([^)]+\)/g;y=Ge(C.replace(L,"0"),A)?`calc(${C})`:C}return at(f.binding)&&delete f.binding,{colorScheme:d,path:this.path,paths:f,value:y.includes("undefined")?void 0:y}}}))}),o},getTokenValue(t,e,n){var r;const i=(c=>c.split(".").filter(f=>!Ge(f.toLowerCase(),n.variable.excludedKeyRegex)).join("."))(e),l=e.includes("colorScheme.light")?"light":e.includes("colorScheme.dark")?"dark":void 0,a=[(r=t[i])==null?void 0:r.computed(l)].flat().filter(c=>c);return a.length===1?a[0].value:a.reduce((c={},d)=>{const f=d,{colorScheme:p}=f,y=Bt(f,["colorScheme"]);return c[p]=y,c},void 0)},transformCSS(t,e,n,r,o={},i,l,a){if(Z(e)){const{cssLayer:c}=o;if(r!=="style"){const d=this.getColorSchemeOption(o,l),f=a?Nt(a,e):e;e=n==="dark"?d.reduce((p,{selector:y})=>(Z(y)&&(p+=y.includes("[CSS]")?y.replace("[CSS]",f):Nt(y,f)),p),""):Nt(a??":root",e)}if(c){const d={name:"primeui",order:"primeui"};tt(c)&&(d.name=Ce(c.name,{name:t,type:r})),Z(d.name)&&(e=Nt(`@layer ${d.name}`,e),i==null||i.layerNames(d.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=Fn($t({},e),{options:$t($t({},this.defaults.options),e.options)}),this._tokens=De.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=Fn($t({},this.theme),{preset:t}),this._tokens=De.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=Fn($t({},this.theme),{options:t}),this.clearLoadedStyleNames(),qe.emit("options:change",t),qe.emit("theme:change",this.theme)},getLayerNames(){return[...this._layerNames]},setLayerNames(t){this._layerNames.add(t)},getLoadedStyleNames(){return this._loadedStyleNames},isStyleNameLoaded(t){return this._loadedStyleNames.has(t)},setLoadedStyleName(t){this._loadedStyleNames.add(t)},deleteLoadedStyleName(t){this._loadedStyleNames.delete(t)},clearLoadedStyleNames(){this._loadedStyleNames.clear()},getTokenValue(t){return De.getTokenValue(this.tokens,t,this.defaults)},getCommon(t="",e){return De.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 De.getPresetC(n)},getDirective(t="",e){const n={name:t,theme:this.theme,params:e,defaults:this.defaults,set:{layerNames:this.setLayerNames.bind(this)}};return De.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 De.getPreset(o)},getLayerOrderCSS(t=""){return De.getLayerOrder(t,this.options,{names:this.getLayerNames()},this.defaults)},transformCSS(t="",e,n="style",r){return De.transformCSS(t,e,r,n,this.options,{layerNames:this.setLayerNames.bind(this)},this.defaults)},getCommonStyleSheet(t="",e,n={}){return De.getCommonStyleSheet({name:t,theme:this.theme,params:e,props:n,defaults:this.defaults,set:{layerNames:this.setLayerNames.bind(this)}})},getStyleSheet(t,e,n={}){return De.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"))}},nt={_loadedStyleNames:new Set,getLoadedStyleNames:function(){return this._loadedStyleNames},isStyleNameLoaded:function(e){return this._loadedStyleNames.has(e)},setLoadedStyleName:function(e){this._loadedStyleNames.add(e)},deleteLoadedStyleName:function(e){this._loadedStyleNames.delete(e)},clearLoadedStyleNames:function(){this._loadedStyleNames.clear()}};function Mt(t){"@babel/helpers - typeof";return Mt=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Mt(t)}function Xr(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(t,o).enumerable})),n.push.apply(n,r)}return n}function Zr(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?Xr(Object(n),!0).forEach(function(r){Fs(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Xr(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function Fs(t,e,n){return(e=zs(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function zs(t){var e=Ks(t,"string");return Mt(e)=="symbol"?e:e+""}function Ks(t,e){if(Mt(t)!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e||"default");if(Mt(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function Ws(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;s.getCurrentInstance()?s.onMounted(t):e?t():s.nextTick(t)}var Gs=0;function qs(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=s.ref(!1),r=s.ref(t),o=s.ref(null),i=Ps()?window.document:void 0,l=e.document,a=l===void 0?i:l,c=e.immediate,d=c===void 0?!0:c,f=e.manual,p=f===void 0?!1:f,y=e.name,k=y===void 0?"style_".concat(++Gs):y,C=e.id,A=C===void 0?void 0:C,L=e.media,w=L===void 0?void 0:L,S=e.nonce,N=S===void 0?void 0:S,U=e.first,G=U===void 0?!1:U,ce=e.onMounted,te=ce===void 0?void 0:ce,Ae=e.onUpdated,ne=Ae===void 0?void 0:Ae,Y=e.onLoad,D=Y===void 0?void 0:Y,X=e.props,ue=X===void 0?{}:X,de=function(){},je=function(ze){var pt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(a){var $e=Zr(Zr({},ue),pt),u=$e.name||k,h=$e.id||A,v=$e.nonce||N;o.value=a.querySelector('style[data-primevue-style-id="'.concat(u,'"]'))||a.getElementById(h)||a.createElement("style"),o.value.isConnected||(r.value=ze||t,fn(o.value,{type:"text/css",id:h,media:w,nonce:v}),G?a.head.prepend(o.value):a.head.appendChild(o.value),Ls(o.value,"data-primevue-style-id",u),fn(o.value,$e),o.value.onload=function(T){return D==null?void 0:D(T,{name:u})},te==null||te(u)),!n.value&&(de=s.watch(r,function(T){o.value.textContent=T,ne==null||ne(u)},{immediate:!0}),n.value=!0)}},Xe=function(){!a||!n.value||(de(),As(o.value)&&a.head.removeChild(o.value),n.value=!1)};return d&&!p&&Ws(je),{id:A,name:k,el:o,css:r,unload:Xe,load:je,isLoaded:s.readonly(n)}}function Dt(t){"@babel/helpers - typeof";return Dt=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Dt(t)}function Jr(t,e){return Js(t)||Zs(t,e)||Xs(t,e)||Ys()}function Ys(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
2
2
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Xs(t,e){if(t){if(typeof t=="string")return Qr(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)?Qr(t,e):void 0}}function Qr(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 Zs(t,e){var n=t==null?null:typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(n!=null){var r,o,i,l,a=[],c=!0,d=!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){d=!0,o=f}finally{try{if(!c&&n.return!=null&&(l=n.return(),Object(l)!==l))return}finally{if(d)throw o}}return a}}function Js(t){if(Array.isArray(t))return t}function eo(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 Wn(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?eo(Object(n),!0).forEach(function(r){Qs(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):eo(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function Qs(t,e,n){return(e=ea(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function ea(t){var e=ta(t,"string");return Dt(e)=="symbol"?e:e+""}function ta(t,e){if(Dt(t)!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e||"default");if(Dt(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}var na=function(e){var n=e.dt;return`
|
|
3
3
|
* {
|
|
4
4
|
box-sizing: border-box;
|
|
@@ -140,7 +140,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
140
140
|
padding-right: `.concat(n("scrollbar.width"),`;
|
|
141
141
|
}
|
|
142
142
|
`)},oa={},ia={},he={name:"base",css:ra,theme:na,classes:oa,inlineStyles:ia,load:function(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:function(i){return i},o=r(Ce(e,{dt:Kn}));return o?qs(Ot(o),Wn({name:this.name},n)):{}},loadCSS:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return this.load(this.css,e)},loadTheme:function(){var e=this,n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return this.load(this.theme,n,function(r){return ee.transformCSS(n.name||e.name,r)})},getCommonTheme:function(e){return ee.getCommon(this.name,e)},getComponentTheme:function(e){return ee.getComponent(this.name,e)},getDirectiveTheme:function(e){return ee.getDirective(this.name,e)},getPresetTheme:function(e,n,r){return ee.getCustomPreset(this.name,e,n,r)},getLayerOrderThemeCSS:function(){return ee.getLayerOrderCSS(this.name)},getStyleSheet:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(this.css){var r=Ce(this.css,{dt:Kn}),o=Ot("".concat(r).concat(e)),i=Object.entries(n).reduce(function(l,a){var c=Jr(a,2),d=c[0],f=c[1];return l.push("".concat(d,'="').concat(f,'"'))&&l},[]).join(" ");return'<style type="text/css" data-primevue-style-id="'.concat(this.name,'" ').concat(i,">").concat(o,"</style>")}return""},getCommonThemeStyleSheet:function(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return ee.getCommonStyleSheet(this.name,e,n)},getThemeStyleSheet:function(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=[ee.getStyleSheet(this.name,e,n)];if(this.theme){var o=this.name==="base"?"global-style":"".concat(this.name,"-style"),i=Ce(this.theme,{dt:Kn}),l=Ot(ee.transformCSS(o,i)),a=Object.entries(n).reduce(function(c,d){var f=Jr(d,2),p=f[0],y=f[1];return c.push("".concat(p,'="').concat(y,'"'))&&c},[]).join(" ");r.push('<style type="text/css" data-primevue-style-id="'.concat(o,'" ').concat(a,">").concat(l,"</style>"))}return r.join("")},extend:function(e){return Wn(Wn({},this),{},{css:void 0,theme:void 0},e)}},to=he.extend({name:"common"});function Rt(t){"@babel/helpers - typeof";return Rt=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Rt(t)}function sa(t){return io(t)||aa(t)||ro(t)||no()}function aa(t){if(typeof Symbol<"u"&&t[Symbol.iterator]!=null||t["@@iterator"]!=null)return Array.from(t)}function gn(t,e){return io(t)||la(t,e)||ro(t,e)||no()}function no(){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 ro(t,e){if(t){if(typeof t=="string")return oo(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)?oo(t,e):void 0}}function oo(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 la(t,e){var n=t==null?null:typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(n!=null){var r,o,i,l,a=[],c=!0,d=!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){d=!0,o=f}finally{try{if(!c&&n.return!=null&&(l=n.return(),Object(l)!==l))return}finally{if(d)throw o}}return a}}function io(t){if(Array.isArray(t))return t}function so(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(t,o).enumerable})),n.push.apply(n,r)}return n}function K(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?so(Object(n),!0).forEach(function(r){yn(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):so(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function yn(t,e,n){return(e=ca(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function ca(t){var e=ua(t,"string");return Rt(e)=="symbol"?e:e+""}function ua(t,e){if(Rt(t)!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e||"default");if(Rt(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}var bn={name:"BaseComponent",props:{pt:{type:Object,default:void 0},ptOptions:{type:Object,default:void 0},unstyled:{type:Boolean,default:void 0},dt:{type:Object,default:void 0}},inject:{$parentInstance:{default:void 0}},watch:{isUnstyled:{immediate:!0,handler:function(e){e||(this._loadCoreStyles(),this._themeChangeListener(this._loadCoreStyles))}},dt:{immediate:!0,handler:function(e){var n=this;e?(this._loadScopedThemeStyles(e),this._themeChangeListener(function(){return n._loadScopedThemeStyles(e)})):this._unloadScopedThemeStyles()}}},scopedStyleEl:void 0,rootEl:void 0,beforeCreate:function(){var e,n,r,o,i,l,a,c,d,f,p,y=(e=this.pt)===null||e===void 0?void 0:e._usept,k=y?(n=this.pt)===null||n===void 0||(n=n.originalValue)===null||n===void 0?void 0:n[this.$.type.name]:void 0,C=y?(r=this.pt)===null||r===void 0||(r=r.value)===null||r===void 0?void 0:r[this.$.type.name]:this.pt;(o=C||k)===null||o===void 0||(o=o.hooks)===null||o===void 0||(i=o.onBeforeCreate)===null||i===void 0||i.call(o);var A=(l=this.$primevueConfig)===null||l===void 0||(l=l.pt)===null||l===void 0?void 0:l._usept,L=A?(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,w=A?(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:(d=this.$primevue)===null||d===void 0||(d=d.config)===null||d===void 0?void 0:d.pt;(f=w||L)===null||f===void 0||(f=f[this.$.type.name])===null||f===void 0||(f=f.hooks)===null||f===void 0||(p=f.onBeforeCreate)===null||p===void 0||p.call(f)},created:function(){this._hook("onCreated")},beforeMount:function(){this._loadStyles(),this._hook("onBeforeMount")},mounted:function(){this.rootEl=Ne(this.$el,'[data-pc-name="'.concat(Me(this.$.type.name),'"]')),this.rootEl&&(this.rootEl.setAttribute(this.$attrSelector,""),this.rootEl.$pc=K({name:this.$.type.name},this.$params)),this._hook("onMounted")},beforeUpdate:function(){this._hook("onBeforeUpdate")},updated:function(){this._hook("onUpdated")},beforeUnmount:function(){this._hook("onBeforeUnmount")},unmounted:function(){this._unloadScopedThemeStyles(),this._hook("onUnmounted")},methods:{_hook:function(e){if(!this.$options.hostName){var n=this._usePT(this._getPT(this.pt,this.$.type.name),this._getOptionValue,"hooks.".concat(e)),r=this._useDefaultPT(this._getOptionValue,"hooks.".concat(e));n==null||n(),r==null||r()}},_mergeProps:function(e){for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];return Vn(e)?e.apply(void 0,r):s.mergeProps.apply(void 0,r)},_loadStyles:function(){var e=this,n=function(){tt.isStyleNameLoaded("base")||(he.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&&(to.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);Z(e)&&he.load(e,K({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))||{},l=i.primitive,a=i.semantic;he.load(l==null?void 0:l.css,K({name:"primitive-variables"},this.$styleOptions)),he.load(a==null?void 0:a.css,K({name:"semantic-variables"},this.$styleOptions)),he.loadTheme(K({name:"global-style"},this.$styleOptions)),ee.setLoadedStyleName("common")}if(!ee.isStyleNameLoaded((e=this.$style)===null||e===void 0?void 0:e.name)&&(n=this.$style)!==null&&n!==void 0&&n.name){var c,d,f,p,y=((c=this.$style)===null||c===void 0||(d=c.getComponentTheme)===null||d===void 0?void 0:d.call(c))||{},k=y.css;(f=this.$style)===null||f===void 0||f.load(k,K({name:"".concat(this.$style.name,"-variables")},this.$styleOptions)),(p=this.$style)===null||p===void 0||p.loadTheme(K({name:"".concat(this.$style.name,"-style")},this.$styleOptions)),ee.setLoadedStyleName(this.$style.name)}if(!ee.isStyleNameLoaded("layer-order")){var C,A,L=(C=this.$style)===null||C===void 0||(A=C.getLayerOrderThemeCSS)===null||A===void 0?void 0:A.call(C);he.load(L,K({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,"]")))||{},l=i.css,a=(o=this.$style)===null||o===void 0?void 0:o.load(l,K({name:"".concat(this.$attrSelector,"-").concat(this.$style.name)},this.$styleOptions));this.scopedStyleEl=a.el},_unloadScopedThemeStyles:function(){var e;(e=this.scopedStyleEl)===null||e===void 0||(e=e.value)===null||e===void 0||e.remove()},_themeChangeListener:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:function(){};tt.clearLoadedStyleNames(),qe.on("theme:change",e)},_getHostInstance:function(e){return e?this.$options.hostName?e.$.type.name===this.$options.hostName?e:this._getHostInstance(e.$parentInstance):e.$parentInstance:void 0},_getPropValue:function(e){var n;return this[e]||((n=this._getHostInstance(this))===null||n===void 0?void 0:n[e])},_getOptionValue:function(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"",r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return Hn(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,l=/./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,d=c===void 0?!0:c,f=a.mergeProps,p=f===void 0?!1:f,y=i?l?this._useGlobalPT(this._getPTClassValue,r,o):this._useDefaultPT(this._getPTClassValue,r,o):void 0,k=l?void 0:this._getPTSelf(n,this._getPTClassValue,r,K(K({},o),{},{global:y||{}})),C=this._getPTDatasets(r);return d||!d&&k?p?this._mergeProps(p,y,k,C):K(K(K({},y),k),C):K(K({},k),C)},_getPTSelf:function(){for(var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];return s.mergeProps(this._usePT.apply(this,[this._getPT(e,this.$name)].concat(r)),this._usePT.apply(this,[this.$_attrsPT].concat(r)))},_getPTDatasets:function(){var e,n,r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",o="data-pc-",i=r==="root"&&Z((e=this.pt)===null||e===void 0?void 0:e["data-pc-section"]);return r!=="transition"&&K(K({},r==="root"&&K(yn({},"".concat(o,"name"),Me(i?(n=this.pt)===null||n===void 0?void 0:n["data-pc-section"]:this.$.type.name)),i&&yn({},"".concat(o,"extend"),Me(this.$.type.name)))),{},yn({},"".concat(o,"section"),Me(r)))},_getPTClassValue:function(){var e=this._getOptionValue.apply(this,arguments);return ve(e)||jn(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,d=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,f=o?o(a):a,p=Me(r),y=Me(n.$name);return(c=d?p!==y?f==null?void 0:f[p]:void 0:f==null?void 0:f[p])!==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(A){return n(A,r,o)};if(e!=null&&e.hasOwnProperty("_usept")){var l,a=e._usept||((l=this.$primevueConfig)===null||l===void 0?void 0:l.ptOptions)||{},c=a.mergeSections,d=c===void 0?!0:c,f=a.mergeProps,p=f===void 0?!1:f,y=i(e.originalValue),k=i(e.value);return y===void 0&&k===void 0?void 0:ve(k)?k:ve(y)?y:d||!d&&k?p?this._mergeProps(p,y,k):K(K({},y),k):k}return i(e)},_useGlobalPT:function(e,n,r){return this._usePT(this.globalPT,e,n,r)},_useDefaultPT:function(e,n,r){return this._usePT(this.defaultPT,e,n,r)},ptm:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return this._getPTValue(this.pt,e,K(K({},this.$params),n))},ptmi:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return s.mergeProps(this.$_attrsWithoutPT,this.ptm(e,n))},ptmo:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"",r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return this._getPTValue(e,n,K({instance:this},r),!1)},cx:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return this.isUnstyled?void 0:this._getOptionValue(this.$style.classes,e,K(K({},this.$params),n))},sx:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0,r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};if(n){var o=this._getOptionValue(this.$style.inlineStyles,e,K(K({},this.$params),r)),i=this._getOptionValue(to.inlineStyles,e,K(K({},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 Ce(r,{instance:n})})},defaultPT:function(){var e,n=this;return this._getPT((e=this.$primevueConfig)===null||e===void 0?void 0:e.pt,void 0,function(r){return n._getOptionValue(r,n.$name,K({},n.$params))||Ce(r,K({},n.$params))})},isUnstyled:function(){var e;return this.unstyled!==void 0?this.unstyled:(e=this.$primevueConfig)===null||e===void 0?void 0:e.unstyled},$theme:function(){var e;return(e=this.$primevueConfig)===null||e===void 0?void 0:e.theme},$style:function(){return K(K({classes:void 0,inlineStyles:void 0,load:function(){},loadCSS:function(){},loadTheme:function(){}},(this._getHostInstance(this)||{}).$style),this.$options.style)},$styleOptions:function(){var e;return{nonce:(e=this.$primevueConfig)===null||e===void 0||(e=e.csp)===null||e===void 0?void 0:e.nonce}},$primevueConfig:function(){var e;return(e=this.$primevue)===null||e===void 0?void 0:e.config},$name:function(){return this.$options.hostName||this.$.type.name},$params:function(){var e=this._getHostInstance(this)||this.$parent;return{instance:this,props:this.$props,state:this.$data,attrs:this.$attrs,parent:{instance:e,props:e==null?void 0:e.$props,state:e==null?void 0:e.$data,attrs:e==null?void 0:e.$attrs}}},$_attrsPT:function(){return Object.entries(this.$attrs||{}).filter(function(e){var n=gn(e,1),r=n[0];return r==null?void 0:r.startsWith("pt:")}).reduce(function(e,n){var r=gn(n,2),o=r[0],i=r[1],l=o.split(":"),a=sa(l),c=a.slice(1);return c==null||c.reduce(function(d,f,p,y){return!d[f]&&(d[f]=p===y.length-1?i:{}),d[f]},e),e},{})},$_attrsWithoutPT:function(){return Object.entries(this.$attrs||{}).filter(function(e){var n=gn(e,1),r=n[0];return!(r!=null&&r.startsWith("pt:"))}).reduce(function(e,n){var r=gn(n,2),o=r[0],i=r[1];return e[o]=i,e},{})},$attrSelector:function(){return pn("pc")}}},da=`
|
|
143
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function ro(t,e){if(t){if(typeof t=="string")return oo(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)?oo(t,e):void 0}}function oo(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 la(t,e){var n=t==null?null:typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(n!=null){var r,o,i,l,a=[],c=!0,d=!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){d=!0,o=f}finally{try{if(!c&&n.return!=null&&(l=n.return(),Object(l)!==l))return}finally{if(d)throw o}}return a}}function io(t){if(Array.isArray(t))return t}function so(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(t,o).enumerable})),n.push.apply(n,r)}return n}function K(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?so(Object(n),!0).forEach(function(r){yn(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):so(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function yn(t,e,n){return(e=ca(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function ca(t){var e=ua(t,"string");return Rt(e)=="symbol"?e:e+""}function ua(t,e){if(Rt(t)!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e||"default");if(Rt(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}var bn={name:"BaseComponent",props:{pt:{type:Object,default:void 0},ptOptions:{type:Object,default:void 0},unstyled:{type:Boolean,default:void 0},dt:{type:Object,default:void 0}},inject:{$parentInstance:{default:void 0}},watch:{isUnstyled:{immediate:!0,handler:function(e){e||(this._loadCoreStyles(),this._themeChangeListener(this._loadCoreStyles))}},dt:{immediate:!0,handler:function(e){var n=this;e?(this._loadScopedThemeStyles(e),this._themeChangeListener(function(){return n._loadScopedThemeStyles(e)})):this._unloadScopedThemeStyles()}}},scopedStyleEl:void 0,rootEl:void 0,beforeCreate:function(){var e,n,r,o,i,l,a,c,d,f,p,y=(e=this.pt)===null||e===void 0?void 0:e._usept,k=y?(n=this.pt)===null||n===void 0||(n=n.originalValue)===null||n===void 0?void 0:n[this.$.type.name]:void 0,C=y?(r=this.pt)===null||r===void 0||(r=r.value)===null||r===void 0?void 0:r[this.$.type.name]:this.pt;(o=C||k)===null||o===void 0||(o=o.hooks)===null||o===void 0||(i=o.onBeforeCreate)===null||i===void 0||i.call(o);var A=(l=this.$primevueConfig)===null||l===void 0||(l=l.pt)===null||l===void 0?void 0:l._usept,L=A?(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,w=A?(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:(d=this.$primevue)===null||d===void 0||(d=d.config)===null||d===void 0?void 0:d.pt;(f=w||L)===null||f===void 0||(f=f[this.$.type.name])===null||f===void 0||(f=f.hooks)===null||f===void 0||(p=f.onBeforeCreate)===null||p===void 0||p.call(f)},created:function(){this._hook("onCreated")},beforeMount:function(){this._loadStyles(),this._hook("onBeforeMount")},mounted:function(){this.rootEl=Ne(this.$el,'[data-pc-name="'.concat(Me(this.$.type.name),'"]')),this.rootEl&&(this.rootEl.setAttribute(this.$attrSelector,""),this.rootEl.$pc=K({name:this.$.type.name},this.$params)),this._hook("onMounted")},beforeUpdate:function(){this._hook("onBeforeUpdate")},updated:function(){this._hook("onUpdated")},beforeUnmount:function(){this._hook("onBeforeUnmount")},unmounted:function(){this._unloadScopedThemeStyles(),this._hook("onUnmounted")},methods:{_hook:function(e){if(!this.$options.hostName){var n=this._usePT(this._getPT(this.pt,this.$.type.name),this._getOptionValue,"hooks.".concat(e)),r=this._useDefaultPT(this._getOptionValue,"hooks.".concat(e));n==null||n(),r==null||r()}},_mergeProps:function(e){for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];return Vn(e)?e.apply(void 0,r):s.mergeProps.apply(void 0,r)},_loadStyles:function(){var e=this,n=function(){nt.isStyleNameLoaded("base")||(he.loadCSS(e.$styleOptions),e._loadGlobalStyles(),nt.setLoadedStyleName("base")),e._loadThemeStyles()};n(),this._themeChangeListener(n)},_loadCoreStyles:function(){var e,n;!nt.isStyleNameLoaded((e=this.$style)===null||e===void 0?void 0:e.name)&&(n=this.$style)!==null&&n!==void 0&&n.name&&(to.loadCSS(this.$styleOptions),this.$options.style&&this.$style.loadCSS(this.$styleOptions),nt.setLoadedStyleName(this.$style.name))},_loadGlobalStyles:function(){var e=this._useGlobalPT(this._getOptionValue,"global.css",this.$params);Z(e)&&he.load(e,K({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))||{},l=i.primitive,a=i.semantic;he.load(l==null?void 0:l.css,K({name:"primitive-variables"},this.$styleOptions)),he.load(a==null?void 0:a.css,K({name:"semantic-variables"},this.$styleOptions)),he.loadTheme(K({name:"global-style"},this.$styleOptions)),ee.setLoadedStyleName("common")}if(!ee.isStyleNameLoaded((e=this.$style)===null||e===void 0?void 0:e.name)&&(n=this.$style)!==null&&n!==void 0&&n.name){var c,d,f,p,y=((c=this.$style)===null||c===void 0||(d=c.getComponentTheme)===null||d===void 0?void 0:d.call(c))||{},k=y.css;(f=this.$style)===null||f===void 0||f.load(k,K({name:"".concat(this.$style.name,"-variables")},this.$styleOptions)),(p=this.$style)===null||p===void 0||p.loadTheme(K({name:"".concat(this.$style.name,"-style")},this.$styleOptions)),ee.setLoadedStyleName(this.$style.name)}if(!ee.isStyleNameLoaded("layer-order")){var C,A,L=(C=this.$style)===null||C===void 0||(A=C.getLayerOrderThemeCSS)===null||A===void 0?void 0:A.call(C);he.load(L,K({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,"]")))||{},l=i.css,a=(o=this.$style)===null||o===void 0?void 0:o.load(l,K({name:"".concat(this.$attrSelector,"-").concat(this.$style.name)},this.$styleOptions));this.scopedStyleEl=a.el},_unloadScopedThemeStyles:function(){var e;(e=this.scopedStyleEl)===null||e===void 0||(e=e.value)===null||e===void 0||e.remove()},_themeChangeListener:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:function(){};nt.clearLoadedStyleNames(),qe.on("theme:change",e)},_getHostInstance:function(e){return e?this.$options.hostName?e.$.type.name===this.$options.hostName?e:this._getHostInstance(e.$parentInstance):e.$parentInstance:void 0},_getPropValue:function(e){var n;return this[e]||((n=this._getHostInstance(this))===null||n===void 0?void 0:n[e])},_getOptionValue:function(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"",r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return Hn(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,l=/./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,d=c===void 0?!0:c,f=a.mergeProps,p=f===void 0?!1:f,y=i?l?this._useGlobalPT(this._getPTClassValue,r,o):this._useDefaultPT(this._getPTClassValue,r,o):void 0,k=l?void 0:this._getPTSelf(n,this._getPTClassValue,r,K(K({},o),{},{global:y||{}})),C=this._getPTDatasets(r);return d||!d&&k?p?this._mergeProps(p,y,k,C):K(K(K({},y),k),C):K(K({},k),C)},_getPTSelf:function(){for(var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];return s.mergeProps(this._usePT.apply(this,[this._getPT(e,this.$name)].concat(r)),this._usePT.apply(this,[this.$_attrsPT].concat(r)))},_getPTDatasets:function(){var e,n,r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",o="data-pc-",i=r==="root"&&Z((e=this.pt)===null||e===void 0?void 0:e["data-pc-section"]);return r!=="transition"&&K(K({},r==="root"&&K(yn({},"".concat(o,"name"),Me(i?(n=this.pt)===null||n===void 0?void 0:n["data-pc-section"]:this.$.type.name)),i&&yn({},"".concat(o,"extend"),Me(this.$.type.name)))),{},yn({},"".concat(o,"section"),Me(r)))},_getPTClassValue:function(){var e=this._getOptionValue.apply(this,arguments);return ve(e)||jn(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,d=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,f=o?o(a):a,p=Me(r),y=Me(n.$name);return(c=d?p!==y?f==null?void 0:f[p]:void 0:f==null?void 0:f[p])!==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(A){return n(A,r,o)};if(e!=null&&e.hasOwnProperty("_usept")){var l,a=e._usept||((l=this.$primevueConfig)===null||l===void 0?void 0:l.ptOptions)||{},c=a.mergeSections,d=c===void 0?!0:c,f=a.mergeProps,p=f===void 0?!1:f,y=i(e.originalValue),k=i(e.value);return y===void 0&&k===void 0?void 0:ve(k)?k:ve(y)?y:d||!d&&k?p?this._mergeProps(p,y,k):K(K({},y),k):k}return i(e)},_useGlobalPT:function(e,n,r){return this._usePT(this.globalPT,e,n,r)},_useDefaultPT:function(e,n,r){return this._usePT(this.defaultPT,e,n,r)},ptm:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return this._getPTValue(this.pt,e,K(K({},this.$params),n))},ptmi:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return s.mergeProps(this.$_attrsWithoutPT,this.ptm(e,n))},ptmo:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"",r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return this._getPTValue(e,n,K({instance:this},r),!1)},cx:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return this.isUnstyled?void 0:this._getOptionValue(this.$style.classes,e,K(K({},this.$params),n))},sx:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0,r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};if(n){var o=this._getOptionValue(this.$style.inlineStyles,e,K(K({},this.$params),r)),i=this._getOptionValue(to.inlineStyles,e,K(K({},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 Ce(r,{instance:n})})},defaultPT:function(){var e,n=this;return this._getPT((e=this.$primevueConfig)===null||e===void 0?void 0:e.pt,void 0,function(r){return n._getOptionValue(r,n.$name,K({},n.$params))||Ce(r,K({},n.$params))})},isUnstyled:function(){var e;return this.unstyled!==void 0?this.unstyled:(e=this.$primevueConfig)===null||e===void 0?void 0:e.unstyled},$theme:function(){var e;return(e=this.$primevueConfig)===null||e===void 0?void 0:e.theme},$style:function(){return K(K({classes:void 0,inlineStyles:void 0,load:function(){},loadCSS:function(){},loadTheme:function(){}},(this._getHostInstance(this)||{}).$style),this.$options.style)},$styleOptions:function(){var e;return{nonce:(e=this.$primevueConfig)===null||e===void 0||(e=e.csp)===null||e===void 0?void 0:e.nonce}},$primevueConfig:function(){var e;return(e=this.$primevue)===null||e===void 0?void 0:e.config},$name:function(){return this.$options.hostName||this.$.type.name},$params:function(){var e=this._getHostInstance(this)||this.$parent;return{instance:this,props:this.$props,state:this.$data,attrs:this.$attrs,parent:{instance:e,props:e==null?void 0:e.$props,state:e==null?void 0:e.$data,attrs:e==null?void 0:e.$attrs}}},$_attrsPT:function(){return Object.entries(this.$attrs||{}).filter(function(e){var n=gn(e,1),r=n[0];return r==null?void 0:r.startsWith("pt:")}).reduce(function(e,n){var r=gn(n,2),o=r[0],i=r[1],l=o.split(":"),a=sa(l),c=a.slice(1);return c==null||c.reduce(function(d,f,p,y){return!d[f]&&(d[f]=p===y.length-1?i:{}),d[f]},e),e},{})},$_attrsWithoutPT:function(){return Object.entries(this.$attrs||{}).filter(function(e){var n=gn(e,1),r=n[0];return!(r!=null&&r.startsWith("pt:"))}).reduce(function(e,n){var r=gn(n,2),o=r[0],i=r[1];return e[o]=i,e},{})},$attrSelector:function(){return pn("pc")}}},da=`
|
|
144
144
|
.p-icon {
|
|
145
145
|
display: inline-block;
|
|
146
146
|
vertical-align: baseline;
|
|
@@ -316,7 +316,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
316
316
|
color: `).concat(n("panelmenu.submenu.icon.focus.color"),`;
|
|
317
317
|
}
|
|
318
318
|
`)},Sa={root:"p-panelmenu p-component",panel:"p-panelmenu-panel",header:function(e){var n=e.instance,r=e.item;return["p-panelmenu-header",{"p-panelmenu-header-active":n.isItemActive(r)&&!!r.items,"p-disabled":n.isItemDisabled(r)}]},headerContent:"p-panelmenu-header-content",headerLink:"p-panelmenu-header-link",headerIcon:"p-panelmenu-header-icon",headerLabel:"p-panelmenu-header-label",contentContainer:"p-panelmenu-content-container",content:"p-panelmenu-content",rootList:"p-panelmenu-root-list",item:function(e){var n=e.instance,r=e.processedItem;return["p-panelmenu-item",{"p-focus":n.isItemFocused(r),"p-disabled":n.isItemDisabled(r)}]},itemContent:"p-panelmenu-item-content",itemLink:"p-panelmenu-item-link",itemIcon:"p-panelmenu-item-icon",itemLabel:"p-panelmenu-item-label",submenuIcon:"p-panelmenu-submenu-icon",submenu:"p-panelmenu-submenu",separator:"p-menuitem-separator"},Ca=he.extend({name:"panelmenu",theme:_a,classes:Sa}),uo=Rr();function Vt(t){"@babel/helpers - typeof";return Vt=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Vt(t)}function fo(t,e){return Aa(t)||Ta(t,e)||Ia(t,e)||Ea()}function Ea(){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 Ia(t,e){if(t){if(typeof t=="string")return mo(t,e);var n={}.toString.call(t).slice(8,-1);return n==="Object"&&t.constructor&&(n=t.constructor.name),n==="Map"||n==="Set"?Array.from(t):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?mo(t,e):void 0}}function mo(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n<e;n++)r[n]=t[n];return r}function Ta(t,e){var n=t==null?null:typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(n!=null){var r,o,i,l,a=[],c=!0,d=!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){d=!0,o=f}finally{try{if(!c&&n.return!=null&&(l=n.return(),Object(l)!==l))return}finally{if(d)throw o}}return a}}function Aa(t){if(Array.isArray(t))return t}function po(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(t,o).enumerable})),n.push.apply(n,r)}return n}function q(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?po(Object(n),!0).forEach(function(r){Yn(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):po(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function Yn(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=La(t,"string");return Vt(e)=="symbol"?e:e+""}function La(t,e){if(Vt(t)!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e||"default");if(Vt(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}var j={_getMeta:function(){return[et(arguments.length<=0?void 0:arguments[0])||arguments.length<=0?void 0:arguments[0],Ce(et(arguments.length<=0?void 0:arguments[0])?arguments.length<=0?void 0:arguments[0]:arguments.length<=1?void 0:arguments[1])]},_getConfig:function(e,n){var r,o,i;return(r=(e==null||(o=e.instance)===null||o===void 0?void 0:o.$primevue)||(n==null||(i=n.ctx)===null||i===void 0||(i=i.appContext)===null||i===void 0||(i=i.config)===null||i===void 0||(i=i.globalProperties)===null||i===void 0?void 0:i.$primevue))===null||r===void 0?void 0:r.config},_getOptionValue:Hn,_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]:"",l=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},a=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!0,c=function(){var S=j._getOptionValue.apply(j,arguments);return ve(S)||jn(S)?{class:S}:S},d=((e=r.binding)===null||e===void 0||(e=e.value)===null||e===void 0?void 0:e.ptOptions)||((n=r.$primevueConfig)===null||n===void 0?void 0:n.ptOptions)||{},f=d.mergeSections,p=f===void 0?!0:f,y=d.mergeProps,k=y===void 0?!1:y,C=a?j._useDefaultPT(r,r.defaultPT(),c,i,l):void 0,A=j._usePT(r,j._getPT(o,r.$name),c,i,q(q({},l),{},{global:C||{}})),L=j._getPTDatasets(r,i);return p||!p&&A?k?j._mergeProps(r,k,C,A,L):q(q(q({},C),A),L):q(q({},A),L)},_getPTDatasets:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"",r="data-pc-";return q(q({},n==="root"&&Yn({},"".concat(r,"name"),Me(e.$name))),{},Yn({},"".concat(r,"section"),Me(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(l){var a,c=r?r(l):l,d=Me(n);return(a=c==null?void 0:c[d])!==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,l=function(L){return r(L,o,i)};if(n!=null&&n.hasOwnProperty("_usept")){var a,c=n._usept||((a=e.$primevueConfig)===null||a===void 0?void 0:a.ptOptions)||{},d=c.mergeSections,f=d===void 0?!0:d,p=c.mergeProps,y=p===void 0?!1:p,k=l(n.originalValue),C=l(n.value);return k===void 0&&C===void 0?void 0:ve(C)?C:ve(k)?k:f||!f&&C?y?j._mergeProps(e,y,k,C):q(q({},k),C):C}return l(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 j._usePT(e,n,r,o,i)},_loadStyles:function(e,n,r){var o,i=j._getConfig(n,r),l={nonce:i==null||(o=i.csp)===null||o===void 0?void 0:o.nonce};j._loadCoreStyles(e.$instance,l),j._loadThemeStyles(e.$instance,l),j._loadScopedThemeStyles(e.$instance,l),j._themeChangeListener(function(){return j._loadThemeStyles(e.$instance,l)})},_loadCoreStyles:function(){var e,n,r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},o=arguments.length>1?arguments[1]:void 0;if(!tt.isStyleNameLoaded((e=r.$style)===null||e===void 0?void 0:e.name)&&(n=r.$style)!==null&&n!==void 0&&n.name){var i;he.loadCSS(o),r.isUnstyled()&&((i=r.$style)===null||i===void 0||i.loadCSS(o)),tt.setLoadedStyleName(r.$style.name)}},_loadThemeStyles:function(){var e,n,r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},o=arguments.length>1?arguments[1]:void 0;if(!(r!=null&&r.isUnstyled())){if(!ee.isStyleNameLoaded("common")){var i,l,a=((i=r.$style)===null||i===void 0||(l=i.getCommonTheme)===null||l===void 0?void 0:l.call(i))||{},c=a.primitive,d=a.semantic;he.load(c==null?void 0:c.css,q({name:"primitive-variables"},o)),he.load(d==null?void 0:d.css,q({name:"semantic-variables"},o)),he.loadTheme(q({name:"global-style"},o)),ee.setLoadedStyleName("common")}if(!ee.isStyleNameLoaded((e=r.$style)===null||e===void 0?void 0:e.name)&&(n=r.$style)!==null&&n!==void 0&&n.name){var f,p,y,k,C=((f=r.$style)===null||f===void 0||(p=f.getDirectiveTheme)===null||p===void 0?void 0:p.call(f))||{},A=C.css;(y=r.$style)===null||y===void 0||y.load(A,q({name:"".concat(r.$style.name,"-variables")},o)),(k=r.$style)===null||k===void 0||k.loadTheme(q({name:"".concat(r.$style.name,"-style")},o)),ee.setLoadedStyleName(r.$style.name)}if(!ee.isStyleNameLoaded("layer-order")){var L,w,S=(L=r.$style)===null||L===void 0||(w=L.getLayerOrderThemeCSS)===null||w===void 0?void 0:w.call(L);he.load(S,q({name:"layer-order",first:!0},o)),ee.setLoadedStyleName("layer-order")}}},_loadScopedThemeStyles:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0,r=e.preset();if(r&&e.$attrSelector){var o,i,l,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,d=(l=e.$style)===null||l===void 0?void 0:l.load(c,q({name:"".concat(e.$attrSelector,"-").concat(e.$style.name)},n));e.scopedStyleEl=d.el}},_themeChangeListener:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:function(){};tt.clearLoadedStyleNames(),qe.on("theme:change",e)},_hook:function(e,n,r,o,i,l){var a,c,d="on".concat(Os(n)),f=j._getConfig(o,i),p=r==null?void 0:r.$instance,y=j._usePT(p,j._getPT(o==null||(a=o.value)===null||a===void 0?void 0:a.pt,e),j._getOptionValue,"hooks.".concat(d)),k=j._useDefaultPT(p,f==null||(c=f.pt)===null||c===void 0||(c=c.directives)===null||c===void 0?void 0:c[e],j._getOptionValue,"hooks.".concat(d)),C={el:r,binding:o,vnode:i,prevVnode:l};y==null||y(p,C),k==null||k(p,C)},_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 Vn(e)?e.apply(void 0,r):s.mergeProps.apply(void 0,r)},_extend:function(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=function(l,a,c,d,f){var p,y,k;a._$instances=a._$instances||{};var C=j._getConfig(c,d),A=a._$instances[e]||{},L=at(A)?q(q({},n),n==null?void 0:n.methods):{};a._$instances[e]=q(q({},A),{},{$name:e,$host:a,$binding:c,$modifiers:c==null?void 0:c.modifiers,$value:c==null?void 0:c.value,$el:A.$el||a||void 0,$style:q({classes:void 0,inlineStyles:void 0,load:function(){},loadCSS:function(){},loadTheme:function(){}},n==null?void 0:n.style),$primevueConfig:C,$attrSelector:a.$attrSelector,defaultPT:function(){return j._getPT(C==null?void 0:C.pt,void 0,function(S){var N;return S==null||(N=S.directives)===null||N===void 0?void 0:N[e]})},isUnstyled:function(){var S,N;return((S=a.$instance)===null||S===void 0||(S=S.$binding)===null||S===void 0||(S=S.value)===null||S===void 0?void 0:S.unstyled)!==void 0?(N=a.$instance)===null||N===void 0||(N=N.$binding)===null||N===void 0||(N=N.value)===null||N===void 0?void 0:N.unstyled:C==null?void 0:C.unstyled},theme:function(){var S;return(S=a.$instance)===null||S===void 0||(S=S.$primevueConfig)===null||S===void 0?void 0:S.theme},preset:function(){var S;return(S=a.$instance)===null||S===void 0||(S=S.$binding)===null||S===void 0||(S=S.value)===null||S===void 0?void 0:S.dt},ptm:function(){var S,N=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",U=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return j._getPTValue(a.$instance,(S=a.$instance)===null||S===void 0||(S=S.$binding)===null||S===void 0||(S=S.value)===null||S===void 0?void 0:S.pt,N,q({},U))},ptmo:function(){var S=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},N=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"",U=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return j._getPTValue(a.$instance,S,N,U,!1)},cx:function(){var S,N,U=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",G=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return(S=a.$instance)!==null&&S!==void 0&&S.isUnstyled()?void 0:j._getOptionValue((N=a.$instance)===null||N===void 0||(N=N.$style)===null||N===void 0?void 0:N.classes,U,q({},G))},sx:function(){var S,N=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",U=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0,G=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return U?j._getOptionValue((S=a.$instance)===null||S===void 0||(S=S.$style)===null||S===void 0?void 0:S.inlineStyles,N,q({},G)):void 0}},L),a.$instance=a._$instances[e],(p=(y=a.$instance)[l])===null||p===void 0||p.call(y,a,c,d,f),a["$".concat(e)]=a.$instance,j._hook(e,l,a,c,d,f),a.$pd||(a.$pd={}),a.$pd[e]=q(q({},(k=a.$pd)===null||k===void 0?void 0:k[e]),{},{name:e,instance:a.$instance})},o=function(l){var a,c,d,f,p,y=(a=l.$instance)===null||a===void 0?void 0:a.watch;y==null||(c=y.config)===null||c===void 0||c.call(l.$instance,(d=l.$instance)===null||d===void 0?void 0:d.$primevueConfig),uo.on("config:change",function(k){var C,A=k.newValue,L=k.oldValue;return y==null||(C=y.config)===null||C===void 0?void 0:C.call(l.$instance,A,L)}),y==null||(f=y["config.ripple"])===null||f===void 0||f.call(l.$instance,(p=l.$instance)===null||p===void 0||(p=p.$primevueConfig)===null||p===void 0?void 0:p.ripple),uo.on("config:ripple:change",function(k){var C,A=k.newValue,L=k.oldValue;return y==null||(C=y["config.ripple"])===null||C===void 0?void 0:C.call(l.$instance,A,L)})};return{created:function(l,a,c,d){r("created",l,a,c,d)},beforeMount:function(l,a,c,d){l.$attrSelector=pn("pd"),j._loadStyles(l,a,c),r("beforeMount",l,a,c,d),o(l)},mounted:function(l,a,c,d){j._loadStyles(l,a,c),r("mounted",l,a,c,d)},beforeUpdate:function(l,a,c,d){r("beforeUpdate",l,a,c,d)},updated:function(l,a,c,d){j._loadStyles(l,a,c),r("updated",l,a,c,d)},beforeUnmount:function(l,a,c,d){r("beforeUnmount",l,a,c,d)},unmounted:function(l,a,c,d){var f;(f=l.$instance)===null||f===void 0||(f=f.scopedStyleEl)===null||f===void 0||(f=f.value)===null||f===void 0||f.remove(),r("unmounted",l,a,c,d)}}},extend:function(){var e=j._getMeta.apply(j,arguments),n=fo(e,2),r=n[0],o=n[1];return q({extend:function(){var l=j._getMeta.apply(j,arguments),a=fo(l,2),c=a[0],d=a[1];return j.extend(c,q(q(q({},o),o==null?void 0:o.methods),d))}},j._extend(r,o))}},xa=function(e){var n=e.dt;return`
|
|
319
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Ia(t,e){if(t){if(typeof t=="string")return mo(t,e);var n={}.toString.call(t).slice(8,-1);return n==="Object"&&t.constructor&&(n=t.constructor.name),n==="Map"||n==="Set"?Array.from(t):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?mo(t,e):void 0}}function mo(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n<e;n++)r[n]=t[n];return r}function Ta(t,e){var n=t==null?null:typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(n!=null){var r,o,i,l,a=[],c=!0,d=!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){d=!0,o=f}finally{try{if(!c&&n.return!=null&&(l=n.return(),Object(l)!==l))return}finally{if(d)throw o}}return a}}function Aa(t){if(Array.isArray(t))return t}function po(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(t,o).enumerable})),n.push.apply(n,r)}return n}function q(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?po(Object(n),!0).forEach(function(r){Yn(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):po(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function Yn(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=La(t,"string");return Vt(e)=="symbol"?e:e+""}function La(t,e){if(Vt(t)!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e||"default");if(Vt(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}var j={_getMeta:function(){return[tt(arguments.length<=0?void 0:arguments[0])||arguments.length<=0?void 0:arguments[0],Ce(tt(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:Hn,_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]:"",l=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},a=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!0,c=function(){var S=j._getOptionValue.apply(j,arguments);return ve(S)||jn(S)?{class:S}:S},d=((e=r.binding)===null||e===void 0||(e=e.value)===null||e===void 0?void 0:e.ptOptions)||((n=r.$primevueConfig)===null||n===void 0?void 0:n.ptOptions)||{},f=d.mergeSections,p=f===void 0?!0:f,y=d.mergeProps,k=y===void 0?!1:y,C=a?j._useDefaultPT(r,r.defaultPT(),c,i,l):void 0,A=j._usePT(r,j._getPT(o,r.$name),c,i,q(q({},l),{},{global:C||{}})),L=j._getPTDatasets(r,i);return p||!p&&A?k?j._mergeProps(r,k,C,A,L):q(q(q({},C),A),L):q(q({},A),L)},_getPTDatasets:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"",r="data-pc-";return q(q({},n==="root"&&Yn({},"".concat(r,"name"),Me(e.$name))),{},Yn({},"".concat(r,"section"),Me(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(l){var a,c=r?r(l):l,d=Me(n);return(a=c==null?void 0:c[d])!==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,l=function(L){return r(L,o,i)};if(n!=null&&n.hasOwnProperty("_usept")){var a,c=n._usept||((a=e.$primevueConfig)===null||a===void 0?void 0:a.ptOptions)||{},d=c.mergeSections,f=d===void 0?!0:d,p=c.mergeProps,y=p===void 0?!1:p,k=l(n.originalValue),C=l(n.value);return k===void 0&&C===void 0?void 0:ve(C)?C:ve(k)?k:f||!f&&C?y?j._mergeProps(e,y,k,C):q(q({},k),C):C}return l(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 j._usePT(e,n,r,o,i)},_loadStyles:function(e,n,r){var o,i=j._getConfig(n,r),l={nonce:i==null||(o=i.csp)===null||o===void 0?void 0:o.nonce};j._loadCoreStyles(e.$instance,l),j._loadThemeStyles(e.$instance,l),j._loadScopedThemeStyles(e.$instance,l),j._themeChangeListener(function(){return j._loadThemeStyles(e.$instance,l)})},_loadCoreStyles:function(){var e,n,r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},o=arguments.length>1?arguments[1]:void 0;if(!nt.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)),nt.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,l,a=((i=r.$style)===null||i===void 0||(l=i.getCommonTheme)===null||l===void 0?void 0:l.call(i))||{},c=a.primitive,d=a.semantic;he.load(c==null?void 0:c.css,q({name:"primitive-variables"},o)),he.load(d==null?void 0:d.css,q({name:"semantic-variables"},o)),he.loadTheme(q({name:"global-style"},o)),ee.setLoadedStyleName("common")}if(!ee.isStyleNameLoaded((e=r.$style)===null||e===void 0?void 0:e.name)&&(n=r.$style)!==null&&n!==void 0&&n.name){var f,p,y,k,C=((f=r.$style)===null||f===void 0||(p=f.getDirectiveTheme)===null||p===void 0?void 0:p.call(f))||{},A=C.css;(y=r.$style)===null||y===void 0||y.load(A,q({name:"".concat(r.$style.name,"-variables")},o)),(k=r.$style)===null||k===void 0||k.loadTheme(q({name:"".concat(r.$style.name,"-style")},o)),ee.setLoadedStyleName(r.$style.name)}if(!ee.isStyleNameLoaded("layer-order")){var L,w,S=(L=r.$style)===null||L===void 0||(w=L.getLayerOrderThemeCSS)===null||w===void 0?void 0:w.call(L);he.load(S,q({name:"layer-order",first:!0},o)),ee.setLoadedStyleName("layer-order")}}},_loadScopedThemeStyles:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0,r=e.preset();if(r&&e.$attrSelector){var o,i,l,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,d=(l=e.$style)===null||l===void 0?void 0:l.load(c,q({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(){};nt.clearLoadedStyleNames(),qe.on("theme:change",e)},_hook:function(e,n,r,o,i,l){var a,c,d="on".concat(Os(n)),f=j._getConfig(o,i),p=r==null?void 0:r.$instance,y=j._usePT(p,j._getPT(o==null||(a=o.value)===null||a===void 0?void 0:a.pt,e),j._getOptionValue,"hooks.".concat(d)),k=j._useDefaultPT(p,f==null||(c=f.pt)===null||c===void 0||(c=c.directives)===null||c===void 0?void 0:c[e],j._getOptionValue,"hooks.".concat(d)),C={el:r,binding:o,vnode:i,prevVnode:l};y==null||y(p,C),k==null||k(p,C)},_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 Vn(e)?e.apply(void 0,r):s.mergeProps.apply(void 0,r)},_extend:function(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=function(l,a,c,d,f){var p,y,k;a._$instances=a._$instances||{};var C=j._getConfig(c,d),A=a._$instances[e]||{},L=at(A)?q(q({},n),n==null?void 0:n.methods):{};a._$instances[e]=q(q({},A),{},{$name:e,$host:a,$binding:c,$modifiers:c==null?void 0:c.modifiers,$value:c==null?void 0:c.value,$el:A.$el||a||void 0,$style:q({classes:void 0,inlineStyles:void 0,load:function(){},loadCSS:function(){},loadTheme:function(){}},n==null?void 0:n.style),$primevueConfig:C,$attrSelector:a.$attrSelector,defaultPT:function(){return j._getPT(C==null?void 0:C.pt,void 0,function(S){var N;return S==null||(N=S.directives)===null||N===void 0?void 0:N[e]})},isUnstyled:function(){var S,N;return((S=a.$instance)===null||S===void 0||(S=S.$binding)===null||S===void 0||(S=S.value)===null||S===void 0?void 0:S.unstyled)!==void 0?(N=a.$instance)===null||N===void 0||(N=N.$binding)===null||N===void 0||(N=N.value)===null||N===void 0?void 0:N.unstyled:C==null?void 0:C.unstyled},theme:function(){var S;return(S=a.$instance)===null||S===void 0||(S=S.$primevueConfig)===null||S===void 0?void 0:S.theme},preset:function(){var S;return(S=a.$instance)===null||S===void 0||(S=S.$binding)===null||S===void 0||(S=S.value)===null||S===void 0?void 0:S.dt},ptm:function(){var S,N=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",U=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return j._getPTValue(a.$instance,(S=a.$instance)===null||S===void 0||(S=S.$binding)===null||S===void 0||(S=S.value)===null||S===void 0?void 0:S.pt,N,q({},U))},ptmo:function(){var S=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},N=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"",U=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return j._getPTValue(a.$instance,S,N,U,!1)},cx:function(){var S,N,U=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",G=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return(S=a.$instance)!==null&&S!==void 0&&S.isUnstyled()?void 0:j._getOptionValue((N=a.$instance)===null||N===void 0||(N=N.$style)===null||N===void 0?void 0:N.classes,U,q({},G))},sx:function(){var S,N=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",U=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0,G=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return U?j._getOptionValue((S=a.$instance)===null||S===void 0||(S=S.$style)===null||S===void 0?void 0:S.inlineStyles,N,q({},G)):void 0}},L),a.$instance=a._$instances[e],(p=(y=a.$instance)[l])===null||p===void 0||p.call(y,a,c,d,f),a["$".concat(e)]=a.$instance,j._hook(e,l,a,c,d,f),a.$pd||(a.$pd={}),a.$pd[e]=q(q({},(k=a.$pd)===null||k===void 0?void 0:k[e]),{},{name:e,instance:a.$instance})},o=function(l){var a,c,d,f,p,y=(a=l.$instance)===null||a===void 0?void 0:a.watch;y==null||(c=y.config)===null||c===void 0||c.call(l.$instance,(d=l.$instance)===null||d===void 0?void 0:d.$primevueConfig),uo.on("config:change",function(k){var C,A=k.newValue,L=k.oldValue;return y==null||(C=y.config)===null||C===void 0?void 0:C.call(l.$instance,A,L)}),y==null||(f=y["config.ripple"])===null||f===void 0||f.call(l.$instance,(p=l.$instance)===null||p===void 0||(p=p.$primevueConfig)===null||p===void 0?void 0:p.ripple),uo.on("config:ripple:change",function(k){var C,A=k.newValue,L=k.oldValue;return y==null||(C=y["config.ripple"])===null||C===void 0?void 0:C.call(l.$instance,A,L)})};return{created:function(l,a,c,d){r("created",l,a,c,d)},beforeMount:function(l,a,c,d){l.$attrSelector=pn("pd"),j._loadStyles(l,a,c),r("beforeMount",l,a,c,d),o(l)},mounted:function(l,a,c,d){j._loadStyles(l,a,c),r("mounted",l,a,c,d)},beforeUpdate:function(l,a,c,d){r("beforeUpdate",l,a,c,d)},updated:function(l,a,c,d){j._loadStyles(l,a,c),r("updated",l,a,c,d)},beforeUnmount:function(l,a,c,d){r("beforeUnmount",l,a,c,d)},unmounted:function(l,a,c,d){var f;(f=l.$instance)===null||f===void 0||(f=f.scopedStyleEl)===null||f===void 0||(f=f.value)===null||f===void 0||f.remove(),r("unmounted",l,a,c,d)}}},extend:function(){var e=j._getMeta.apply(j,arguments),n=fo(e,2),r=n[0],o=n[1];return q({extend:function(){var l=j._getMeta.apply(j,arguments),a=fo(l,2),c=a[0],d=a[1];return j.extend(c,q(q(q({},o),o==null?void 0:o.methods),d))}},j._extend(r,o))}},xa=function(e){var n=e.dt;return`
|
|
320
320
|
.p-ink {
|
|
321
321
|
display: block;
|
|
322
322
|
position: absolute;
|
|
@@ -338,7 +338,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
338
338
|
}
|
|
339
339
|
`)},Oa={root:"p-ink"},$a=he.extend({name:"ripple-directive",theme:xa,classes:Oa}),Ba=j.extend({style:$a});function Ht(t){"@babel/helpers - typeof";return Ht=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Ht(t)}function Na(t){return Ua(t)||Ra(t)||Da(t)||Ma()}function Ma(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
340
340
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Da(t,e){if(t){if(typeof t=="string")return Xn(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)?Xn(t,e):void 0}}function Ra(t){if(typeof Symbol<"u"&&t[Symbol.iterator]!=null||t["@@iterator"]!=null)return Array.from(t)}function Ua(t){if(Array.isArray(t))return Xn(t)}function Xn(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 ho(t,e,n){return(e=Va(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function Va(t){var e=Ha(t,"string");return Ht(e)=="symbol"?e:e+""}function Ha(t,e){if(Ht(t)!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e||"default");if(Ht(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}var ja=Ba.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=Cs("span",ho(ho({role:"presentation","aria-hidden":!0,"data-p-ink":!0,"data-p-ink-active":!1,class:!this.isUnstyled()&&this.cx("root"),onAnimationEnd:this.onAnimationEnd.bind(this)},this.$attrSelector,""),"p-bind",this.ptm("root")));e.appendChild(n),this.$el=n},remove:function(e){var n=this.getInk(e);n&&(this.$host.style.overflow="",this.$host.style.position="",this.unbindEvents(e),n.removeEventListener("animationend",this.onAnimationEnd),n.remove())},onMouseDown:function(e){var n=this,r=e.currentTarget,o=this.getInk(r);if(!(!o||getComputedStyle(o,null).display==="none")){if(!this.isUnstyled()&&Rn(o,"p-ink-active"),o.setAttribute("data-p-ink-active","false"),!Mr(o)&&!Dr(o)){var i=Math.max(Ss(r),Ts(r));o.style.height=i+"px",o.style.width=i+"px"}var l=Is(r),a=e.pageX-l.left+document.body.scrollTop-Dr(o)/2,c=e.pageY-l.top+document.body.scrollLeft-Mr(o)/2;o.style.top=c+"px",o.style.left=a+"px",!this.isUnstyled()&&_s(o,"p-ink-active"),o.setAttribute("data-p-ink-active","true"),this.timeout=setTimeout(function(){o&&(!n.isUnstyled()&&Rn(o,"p-ink-active"),o.setAttribute("data-p-ink-active","false"))},401)}},onAnimationEnd:function(e){this.timeout&&clearTimeout(this.timeout),!this.isUnstyled()&&Rn(e.currentTarget,"p-ink-active"),e.currentTarget.setAttribute("data-p-ink-active","false")},getInk:function(e){return e&&e.children?Na(e.children).find(function(n){return xt(n,"data-pc-name")==="ripple"}):void 0}}}),Fa={name:"BasePanelMenu",extends:bn,props:{model:{type:Array,default:null},expandedKeys:{type:Object,default:null},multiple:{type:Boolean,default:!1},tabindex:{type:Number,default:0}},style:Ca,provide:function(){return{$pcPanelMenu:this,$parentInstance:this}}},go={name:"PanelMenuSub",hostName:"PanelMenu",extends:bn,emits:["item-toggle","item-mousemove"],props:{panelId:{type:String,default:null},focusedItemId:{type:String,default:null},items:{type:Array,default:null},level:{type:Number,default:0},templates:{type:Object,default:null},activeItemPath:{type:Object,default:null},tabindex:{type:Number,default:-1}},methods:{getItemId:function(e){return"".concat(this.panelId,"_").concat(e.key)},getItemKey:function(e){return this.getItemId(e)},getItemProp:function(e,n,r){return e&&e.item?Ce(e.item[n],r):void 0},getItemLabel:function(e){return this.getItemProp(e,"label")},getPTOptions:function(e,n,r){return this.ptm(e,{context:{item:n.item,index:r,active:this.isItemActive(n),focused:this.isItemFocused(n),disabled:this.isItemDisabled(n)}})},isItemActive:function(e){return this.activeItemPath.some(function(n){return n.key===e.key})},isItemVisible:function(e){return this.getItemProp(e,"visible")!==!1},isItemDisabled:function(e){return this.getItemProp(e,"disabled")},isItemFocused:function(e){return this.focusedItemId===this.getItemId(e)},isItemGroup:function(e){return Z(e.items)},onItemClick:function(e,n){this.getItemProp(n,"command",{originalEvent:e,item:n.item}),this.$emit("item-toggle",{processedItem:n,expanded:!this.isItemActive(n)})},onItemToggle:function(e){this.$emit("item-toggle",e)},onItemMouseMove:function(e,n){this.$emit("item-mousemove",{originalEvent:e,processedItem:n})},getAriaSetSize:function(){var e=this;return this.items.filter(function(n){return e.isItemVisible(n)&&!e.getItemProp(n,"separator")}).length},getAriaPosInset:function(e){var n=this;return e-this.items.slice(0,e).filter(function(r){return n.isItemVisible(r)&&n.getItemProp(r,"separator")}).length+1},getMenuItemProps:function(e,n){return{action:s.mergeProps({class:this.cx("itemLink"),tabindex:-1,"aria-hidden":!0},this.getPTOptions("itemLink",e,n)),icon:s.mergeProps({class:[this.cx("itemIcon"),this.getItemProp(e,"icon")]},this.getPTOptions("itemIcon",e,n)),label:s.mergeProps({class:this.cx("itemLabel")},this.getPTOptions("itemLabel",e,n)),submenuicon:s.mergeProps({class:this.cx("submenuIcon")},this.getPTOptions("submenuicon",e,n))}}},components:{ChevronRightIcon:qn,ChevronDownIcon:Gn},directives:{ripple:ja}},za=["tabindex"],Ka=["id","aria-label","aria-expanded","aria-level","aria-setsize","aria-posinset","data-p-focused","data-p-disabled"],Wa=["onClick","onMousemove"],Ga=["href","target"];function qa(t,e,n,r,o,i){var l=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(c,d){return s.openBlock(),s.createElementBlock(s.Fragment,{key:i.getItemKey(c)},[i.isItemVisible(c)&&!i.getItemProp(c,"separator")?(s.openBlock(),s.createElementBlock("li",s.mergeProps({key:0,id:i.getItemId(c),class:[t.cx("item",{processedItem:c}),i.getItemProp(c,"class")],style:i.getItemProp(c,"style"),role:"treeitem","aria-label":i.getItemLabel(c),"aria-expanded":i.isItemGroup(c)?i.isItemActive(c):void 0,"aria-level":n.level+1,"aria-setsize":i.getAriaSetSize(),"aria-posinset":i.getAriaPosInset(d),ref_for:!0},i.getPTOptions("item",c,d),{"data-p-focused":i.isItemFocused(c),"data-p-disabled":i.isItemDisabled(c)}),[s.createElementVNode("div",s.mergeProps({class:t.cx("itemContent"),onClick:function(p){return i.onItemClick(p,c)},onMousemove:function(p){return i.onItemMouseMove(p,c)},ref_for:!0},i.getPTOptions("itemContent",c,d)),[n.templates.item?(s.openBlock(),s.createBlock(s.resolveDynamicComponent(n.templates.item),{key:1,item:c.item,root:!1,active:i.isItemActive(c),hasSubmenu:i.isItemGroup(c),label:i.getItemLabel(c),props:i.getMenuItemProps(c,d)},null,8,["item","active","hasSubmenu","label","props"])):s.withDirectives((s.openBlock(),s.createElementBlock("a",s.mergeProps({key:0,href:i.getItemProp(c,"url"),class:t.cx("itemLink"),target:i.getItemProp(c,"target"),tabindex:"-1",ref_for:!0},i.getPTOptions("itemLink",c,d)),[i.isItemGroup(c)?(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(c),ref_for:!0},i.getPTOptions("submenuIcon",c,d)),null,16,["class","active"])):(s.openBlock(),s.createBlock(s.resolveDynamicComponent(i.isItemActive(c)?"ChevronDownIcon":"ChevronRightIcon"),s.mergeProps({key:1,class:t.cx("submenuIcon"),ref_for:!0},i.getPTOptions("submenuIcon",c,d)),null,16,["class"]))],64)):s.createCommentVNode("",!0),n.templates.itemicon?(s.openBlock(),s.createBlock(s.resolveDynamicComponent(n.templates.itemicon),{key:1,item:c.item,class:s.normalizeClass(t.cx("itemIcon"))},null,8,["item","class"])):i.getItemProp(c,"icon")?(s.openBlock(),s.createElementBlock("span",s.mergeProps({key:2,class:[t.cx("itemIcon"),i.getItemProp(c,"icon")],ref_for:!0},i.getPTOptions("itemIcon",c,d)),null,16)):s.createCommentVNode("",!0),s.createElementVNode("span",s.mergeProps({class:t.cx("itemLabel"),ref_for:!0},i.getPTOptions("itemLabel",c,d)),s.toDisplayString(i.getItemLabel(c)),17)],16,Ga)),[[a]])],16,Wa),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(c)&&i.isItemGroup(c)?(s.openBlock(),s.createBlock(l,s.mergeProps({key:0,id:i.getItemId(c)+"_list",role:"group",panelId:n.panelId,focusedItemId:n.focusedItemId,items:c.items,level:n.level+1,templates:n.templates,activeItemPath:n.activeItemPath,onItemToggle:i.onItemToggle,onItemMousemove:e[0]||(e[0]=function(f){return t.$emit("item-mousemove",f)}),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(c)]])]}),_:2},1040)],16,Ka)):s.createCommentVNode("",!0),i.isItemVisible(c)&&i.getItemProp(c,"separator")?(s.openBlock(),s.createElementBlock("li",s.mergeProps({key:1,style:i.getItemProp(c,"style"),class:[t.cx("separator"),i.getItemProp(c,"class")],role:"separator",ref_for:!0},t.ptm("separator")),null,16)):s.createCommentVNode("",!0)],64)}),128))],10,za)}go.render=qa;function Ya(t,e){return Qa(t)||Ja(t,e)||Za(t,e)||Xa()}function Xa(){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 Za(t,e){if(t){if(typeof t=="string")return yo(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)?yo(t,e):void 0}}function yo(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 Ja(t,e){var n=t==null?null:typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(n!=null){var r,o,i,l,a=[],c=!0,d=!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){d=!0,o=f}finally{try{if(!c&&n.return!=null&&(l=n.return(),Object(l)!==l))return}finally{if(d)throw o}}return a}}function Qa(t){if(Array.isArray(t))return t}var bo={name:"PanelMenuList",hostName:"PanelMenu",extends:bn,emits:["item-toggle","header-focus"],props:{panelId:{type:String,default:null},items:{type:Array,default:null},templates:{type:Object,default:null},expandedKeys:{type:Object,default:null}},searchTimeout:null,searchValue:null,data:function(){return{focused:!1,focusedItem:null,activeItemPath:[]}},watch:{expandedKeys:function(e){this.autoUpdateActiveItemPath(e)}},mounted:function(){this.autoUpdateActiveItemPath(this.expandedKeys)},methods:{getItemProp:function(e,n){return e&&e.item?Ce(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 Z(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&&xs(e.key)&&this.searchItems(e,e.key);break}},onArrowDownKey:function(e){var n=Z(this.focusedItem)?this.findNextItem(this.focusedItem):this.findFirstItem();this.changeFocusedItem({originalEvent:e,processedItem:n,focusOnNext:!0}),e.preventDefault()},onArrowUpKey:function(e){var n=Z(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(Z(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=Z(this.focusedItem.parent)?this.focusedItem.parent:this.focusedItem,e.preventDefault()}},onArrowRightKey:function(e){var n=this;if(Z(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(Z(this.focusedItem)){var n=Ne(this.$el,'li[id="'.concat("".concat(this.focusedItemId),'"]')),r=n&&(Ne(n,'[data-pc-section="itemlink"]')||Ne(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,Lt(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 Ur(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?Ur(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(Z(this.focusedItem)){var l=this.visibleItems.findIndex(function(a){return a.key===r.focusedItem.key});o=this.visibleItems.slice(l).find(function(a){return r.isItemMatched(a)}),o=at(o)?this.visibleItems.slice(0,l).find(function(a){return r.isItemMatched(a)}):o}else o=this.visibleItems.find(function(a){return r.isItemMatched(a)});return Z(o)&&(i=!0),at(o)&&at(this.focusedItem)&&(o=this.findFirstItem()),Z(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,l=e.allowHeaderFocus,a=l===void 0?!0:l;Z(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=Ne(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=Ya(o,2),l=i[0],a=i[1];if(a){var c=n.findProcessedItemByItemKey(l);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 l=this.findProcessedItemByItemKey(e,i.items,r+1);if(l)return l}},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]:"",l=[];return e&&e.forEach(function(a,c){var d=(i!==""?i+"_":"")+c,f={item:a,index:c,level:r,key:d,parent:o,parentKey:i};f.items=n.createProcessedItems(a.items,r+1,f,d),l.push(f)}),l},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 Z(this.focusedItem)?"".concat(this.panelId,"_").concat(this.focusedItem.key):null}},components:{PanelMenuSub:go}};function el(t,e,n,r,o,i){var l=s.resolveComponent("PanelMenuSub");return s.openBlock(),s.createBlock(l,s.mergeProps({id:n.panelId+"_list",class:t.cx("rootList"),role:"tree",tabindex:-1,"aria-activedescendant":o.focused?i.focusedItemId:void 0,panelId:n.panelId,focusedItemId:o.focused?i.focusedItemId:void 0,items:i.processedItems,templates:n.templates,activeItemPath:o.activeItemPath,onFocus:i.onFocus,onBlur:i.onBlur,onKeydown:i.onKeyDown,onItemToggle:i.onItemToggle,onItemMousemove:i.onItemMouseMove,pt:t.pt,unstyled:t.unstyled},t.ptm("rootList")),null,16,["id","class","aria-activedescendant","panelId","focusedItemId","items","templates","activeItemPath","onFocus","onBlur","onKeydown","onItemToggle","onItemMousemove","pt","unstyled"])}bo.render=el;function jt(t){"@babel/helpers - typeof";return jt=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},jt(t)}function vo(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 tl(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?vo(Object(n),!0).forEach(function(r){nl(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):vo(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function nl(t,e,n){return(e=rl(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function rl(t){var e=ol(t,"string");return jt(e)=="symbol"?e:e+""}function ol(t,e){if(jt(t)!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e||"default");if(jt(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}var wo={name:"PanelMenu",extends:Fa,inheritAttrs:!1,emits:["update:expandedKeys","panel-open","panel-close"],data:function(){return{id:this.$attrs.id,activeItem:null,activeItems:[]}},watch:{"$attrs.id":function(e){this.id=e||pn()}},mounted:function(){this.id=this.id||pn()},methods:{getItemProp:function(e,n){return e?Ce(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 gt(e,n)}):gt(e,this.activeItem)},isItemVisible:function(e){return this.getItemProp(e,"visible")!==!1},isItemDisabled:function(e){return this.getItemProp(e,"disabled")},isItemFocused:function(e){return gt(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),Lt(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=xt(e.currentTarget,"data-p-active")===!0?Ne(e.currentTarget.nextElementSibling,'[data-pc-section="rootlist"]'):null;n?Lt(n):this.updateFocusedHeader({originalEvent:e,focusOnNext:!0}),e.preventDefault()},onHeaderArrowUpKey:function(e){var n=this.findPrevHeader(e.currentTarget.parentElement)||this.findLastHeader(),r=xt(n,"data-p-active")===!0?Ne(n.nextElementSibling,'[data-pc-section="rootlist"]'):null;r?Lt(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=Ne(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=Ne(r,'[data-pc-section="header"]');return o?xt(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=Ne(r,'[data-pc-section="header"]');return o?xt(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"]'),l=o?Ne(i,'[data-pc-section="header"]'):r?this.findNextHeader(i):this.findPrevHeader(i);l?this.changeFocusedHeader(n,l):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&>(n,this.activeItem)?null:n,this.multiple&&(this.activeItems.some(function(l){return gt(n,l)})?this.activeItems=this.activeItems.filter(function(l){return!gt(n,l)}):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=tl({},this.expandedKeys);o?i[n.key]=!0:delete i[n.key],this.$emit("update:expandedKeys",i)}},changeFocusedHeader:function(e,n){n&&Lt(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:bo,ChevronRightIcon:qn,ChevronDownIcon:Gn}},il=["id"],sl=["id","tabindex","aria-label","aria-expanded","aria-controls","aria-disabled","onClick","onKeydown","data-p-active","data-p-disabled"],al=["href"],ll=["id","aria-labelledby"];function cl(t,e,n,r,o,i){var l=s.resolveComponent("PanelMenuList");return s.openBlock(),s.createElementBlock("div",s.mergeProps({id:o.id,class:t.cx("root")},t.ptmi("root")),[(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(t.model,function(a,c){return s.openBlock(),s.createElementBlock(s.Fragment,{key:i.getPanelKey(c)},[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(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)}),[s.createElementVNode("div",s.mergeProps({class:t.cx("headerContent"),ref_for:!0},i.getPTOptions("headerContent",a,c)),[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,c)},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,c)),[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,c)),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,c)),null,16)):s.createCommentVNode("",!0),s.createElementVNode("span",s.mergeProps({class:t.cx("headerLabel"),ref_for:!0},i.getPTOptions("headerLabel",a,c)),s.toDisplayString(i.getItemLabel(a)),17)],16,al))],16)],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({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")?(s.openBlock(),s.createElementBlock("div",s.mergeProps({key:0,class:t.cx("content"),ref_for:!0},t.ptm("content")),[s.createVNode(l,{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)):s.createCommentVNode("",!0)],16,ll),[[s.vShow,i.isItemActive(a)]])]}),_:2},1040)],16)):s.createCommentVNode("",!0)],64)}),128))],16,il)}wo.render=cl;const ul={class:"panel-menu-wrapper"},dl=["data-active","onClick"],fl={key:0,class:"material-symbols-outlined item-menu-icon-left"},ml=["textContent"],pl=["onClick"],hl={key:0,class:"material-symbols-outlined item-menu-icon-left"},gl=["textContent"],yl={key:2,class:s.normalizeClass(["item-menu sf-ripple"])},bl={key:0,class:"material-symbols-outlined item-menu-icon-left"},vl=["textContent"],wl=st(s.defineComponent({__name:"NavMenu",props:{items:{}},setup(t){const e=t,n=(i,l)=>{i.disabled||l()},r=(i,l)=>{l.disabled||typeof l.command=="function"&&l.command(i)},o=i=>typeof i.label=="function"?i.label():i.label??"Item";return(i,l)=>{const a=s.resolveComponent("router-link");return s.openBlock(),s.createElementBlock("div",ul,[s.createVNode(s.unref(wo),{model:e.items,unstyled:!0},{item:s.withCtx(({item:c,active:d})=>[c.to?(s.openBlock(),s.createBlock(a,{key:0,to:c.to,custom:""},{default:s.withCtx(({navigate:f,isActive:p})=>[s.createElementVNode("a",{class:s.normalizeClass(["item-menu",{"sf-ripple":!c.disabled,disabled:c.disabled}]),"data-active":p,onClick:s.withModifiers(y=>n(c,f),["prevent"])},[c.icon?(s.openBlock(),s.createElementBlock("span",fl,s.toDisplayString(c.icon),1)):s.createCommentVNode("",!0),s.createElementVNode("span",{textContent:s.toDisplayString(o(c))},null,8,ml)],10,dl)]),_:2},1032,["to"])):typeof c.command=="function"?(s.openBlock(),s.createElementBlock("span",{key:1,class:s.normalizeClass(["item-menu",{"sf-ripple":!c.disabled,disabled:c.disabled}]),onClick:s.withModifiers(f=>r(f,c),["stop"])},[c.icon?(s.openBlock(),s.createElementBlock("span",hl,s.toDisplayString(c.icon),1)):s.createCommentVNode("",!0),s.createElementVNode("span",{textContent:s.toDisplayString(o(c))},null,8,gl)],10,pl)):(s.openBlock(),s.createElementBlock("a",yl,[c.icon?(s.openBlock(),s.createElementBlock("span",bl,s.toDisplayString(c.icon),1)):s.createCommentVNode("",!0),s.createElementVNode("span",{textContent:s.toDisplayString(o(c))},null,8,vl),l[0]||(l[0]=s.createElementVNode("div",{class:"sep"},null,-1)),s.createElementVNode("span",{class:s.normalizeClass(["material-symbols-outlined arrow",{"--expand":d}])}," chevron_right ",2)]))]),_:1},8,["model"])])}}}),[["__scopeId","data-v-4510e33e"]]),kl=s.defineComponent({__name:"HelpButton",props:{title:{},tooltip:{},size:{},color:{},filled:{type:Boolean},icon:{}},setup(t){const e=t;s.useSlots();const n=s.ref(!1);function r(){n.value=!0}return(o,i)=>(s.openBlock(),s.createElementBlock(s.Fragment,null,[s.renderSlot(o.$slots,"anchor",s.normalizeProps(s.guardReactiveProps({Show:r})),()=>[s.createVNode(Be,{button:!0,icon:e.icon??"help",size:e.size??"sm",filled:e.filled,color:e.color??"info",tooltip:e.tooltip??"Ajuda",style:{minWidth:"fit-content"},onClick:r},null,8,["icon","size","filled","color","tooltip"])]),s.createVNode(Nr,{visible:n.value,"onUpdate:visible":i[0]||(i[0]=l=>n.value=l),position:"center"},{title:s.withCtx(()=>[s.createElementVNode("b",null,s.toDisplayString(e.title??"Ajuda"),1)]),default:s.withCtx(()=>[s.renderSlot(o.$slots,"default")]),_:3},8,["visible"])],64))}}),_l=st(s.defineComponent({__name:"LoadingCircle",props:{delay:{},dense:{type:Boolean}},setup(t){const e=t,n=s.ref(!1);return s.onMounted(async()=>{await new Promise(r=>setTimeout(r,e.delay??300)),n.value=!0}),(r,o)=>n.value?(s.openBlock(),s.createElementBlock("div",{key:0,class:s.normalizeClass(["loading-circle",{dense:e.dense}])},o[0]||(o[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":"3","stroke-miterlimit":"10"})])],-1)]),2)):s.createCommentVNode("",!0)}}),[["__scopeId","data-v-d74f2b72"]]),ko=Symbol();class Sl{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 Ft=new Sl,_o="SweetAlert2:",Cl=t=>{const e=[];for(let n=0;n<t.length;n++)e.indexOf(t[n])===-1&&e.push(t[n]);return e},Zn=t=>t.charAt(0).toUpperCase()+t.slice(1),Ee=t=>Array.prototype.slice.call(t),we=t=>{console.warn(`${_o} ${typeof t=="object"?t.join(" "):t}`)},lt=t=>{console.error(`${_o} ${t}`)},So=[],El=t=>{So.includes(t)||(So.push(t),we(t))},Il=(t,e)=>{El(`"${t}" is deprecated and will be removed in the next major release. Please use "${e}" instead.`)},vn=t=>typeof t=="function"?t():t,Jn=t=>t&&typeof t.toPromise=="function",zt=t=>Jn(t)?t.toPromise():Promise.resolve(t),Qn=t=>t&&Promise.resolve(t)===t,yt={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},Tl=["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"],Al={},Pl=["allowOutsideClick","allowEnterKey","backdrop","focusConfirm","focusDeny","focusCancel","returnFocus","heightAuto","keydownListenerCapture"],Co=t=>Object.prototype.hasOwnProperty.call(yt,t),Eo=t=>Tl.indexOf(t)!==-1,er=t=>Al[t],Ll=t=>{Co(t)||we(`Unknown parameter "${t}"`)},xl=t=>{Pl.includes(t)&&we(`The parameter "${t}" is incompatible with toasts`)},Ol=t=>{er(t)&&Il(t,er(t))},$l=t=>{!t.backdrop&&t.allowOutsideClick&&we('"allowOutsideClick" parameter requires `backdrop` parameter to be set to `true`');for(const e in t)Ll(e),t.toast&&xl(e),Ol(e)},Bl="swal2-",Io=t=>{const e={};for(const n in t)e[t[n]]=Bl+t[n];return e},g=Io(["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"]),Kt=Io(["success","warning","info","question","error"]),se=()=>document.body.querySelector(`.${g.container}`),Wt=t=>{const e=se();return e?e.querySelector(t):null},Le=t=>Wt(`.${t}`),J=()=>Le(g.popup),Gt=()=>Le(g.icon),To=()=>Le(g.title),wn=()=>Le(g["html-container"]),Ao=()=>Le(g.image),Po=()=>Le(g["progress-steps"]),kn=()=>Le(g["validation-message"]),Re=()=>Wt(`.${g.actions} .${g.confirm}`),nt=()=>Wt(`.${g.actions} .${g.deny}`),Nl=()=>Le(g["input-label"]),bt=()=>Wt(`.${g.loader}`),ct=()=>Wt(`.${g.actions} .${g.cancel}`),qt=()=>Le(g.actions),Lo=()=>Le(g.footer),_n=()=>Le(g["timer-progress-bar"]),tr=()=>Le(g.close),Ml=`
|
|
341
|
+
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 yo(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)?yo(t,e):void 0}}function yo(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 Ja(t,e){var n=t==null?null:typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(n!=null){var r,o,i,l,a=[],c=!0,d=!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){d=!0,o=f}finally{try{if(!c&&n.return!=null&&(l=n.return(),Object(l)!==l))return}finally{if(d)throw o}}return a}}function Qa(t){if(Array.isArray(t))return t}var bo={name:"PanelMenuList",hostName:"PanelMenu",extends:bn,emits:["item-toggle","header-focus"],props:{panelId:{type:String,default:null},items:{type:Array,default:null},templates:{type:Object,default:null},expandedKeys:{type:Object,default:null}},searchTimeout:null,searchValue:null,data:function(){return{focused:!1,focusedItem:null,activeItemPath:[]}},watch:{expandedKeys:function(e){this.autoUpdateActiveItemPath(e)}},mounted:function(){this.autoUpdateActiveItemPath(this.expandedKeys)},methods:{getItemProp:function(e,n){return e&&e.item?Ce(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 Z(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&&xs(e.key)&&this.searchItems(e,e.key);break}},onArrowDownKey:function(e){var n=Z(this.focusedItem)?this.findNextItem(this.focusedItem):this.findFirstItem();this.changeFocusedItem({originalEvent:e,processedItem:n,focusOnNext:!0}),e.preventDefault()},onArrowUpKey:function(e){var n=Z(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(Z(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=Z(this.focusedItem.parent)?this.focusedItem.parent:this.focusedItem,e.preventDefault()}},onArrowRightKey:function(e){var n=this;if(Z(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(Z(this.focusedItem)){var n=Ne(this.$el,'li[id="'.concat("".concat(this.focusedItemId),'"]')),r=n&&(Ne(n,'[data-pc-section="itemlink"]')||Ne(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,Lt(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 Ur(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?Ur(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(Z(this.focusedItem)){var l=this.visibleItems.findIndex(function(a){return a.key===r.focusedItem.key});o=this.visibleItems.slice(l).find(function(a){return r.isItemMatched(a)}),o=at(o)?this.visibleItems.slice(0,l).find(function(a){return r.isItemMatched(a)}):o}else o=this.visibleItems.find(function(a){return r.isItemMatched(a)});return Z(o)&&(i=!0),at(o)&&at(this.focusedItem)&&(o=this.findFirstItem()),Z(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,l=e.allowHeaderFocus,a=l===void 0?!0:l;Z(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=Ne(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=Ya(o,2),l=i[0],a=i[1];if(a){var c=n.findProcessedItemByItemKey(l);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 l=this.findProcessedItemByItemKey(e,i.items,r+1);if(l)return l}},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]:"",l=[];return e&&e.forEach(function(a,c){var d=(i!==""?i+"_":"")+c,f={item:a,index:c,level:r,key:d,parent:o,parentKey:i};f.items=n.createProcessedItems(a.items,r+1,f,d),l.push(f)}),l},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 Z(this.focusedItem)?"".concat(this.panelId,"_").concat(this.focusedItem.key):null}},components:{PanelMenuSub:go}};function el(t,e,n,r,o,i){var l=s.resolveComponent("PanelMenuSub");return s.openBlock(),s.createBlock(l,s.mergeProps({id:n.panelId+"_list",class:t.cx("rootList"),role:"tree",tabindex:-1,"aria-activedescendant":o.focused?i.focusedItemId:void 0,panelId:n.panelId,focusedItemId:o.focused?i.focusedItemId:void 0,items:i.processedItems,templates:n.templates,activeItemPath:o.activeItemPath,onFocus:i.onFocus,onBlur:i.onBlur,onKeydown:i.onKeyDown,onItemToggle:i.onItemToggle,onItemMousemove:i.onItemMouseMove,pt:t.pt,unstyled:t.unstyled},t.ptm("rootList")),null,16,["id","class","aria-activedescendant","panelId","focusedItemId","items","templates","activeItemPath","onFocus","onBlur","onKeydown","onItemToggle","onItemMousemove","pt","unstyled"])}bo.render=el;function jt(t){"@babel/helpers - typeof";return jt=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},jt(t)}function vo(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 tl(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?vo(Object(n),!0).forEach(function(r){nl(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):vo(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function nl(t,e,n){return(e=rl(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function rl(t){var e=ol(t,"string");return jt(e)=="symbol"?e:e+""}function ol(t,e){if(jt(t)!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e||"default");if(jt(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}var wo={name:"PanelMenu",extends:Fa,inheritAttrs:!1,emits:["update:expandedKeys","panel-open","panel-close"],data:function(){return{id:this.$attrs.id,activeItem:null,activeItems:[]}},watch:{"$attrs.id":function(e){this.id=e||pn()}},mounted:function(){this.id=this.id||pn()},methods:{getItemProp:function(e,n){return e?Ce(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 gt(e,n)}):gt(e,this.activeItem)},isItemVisible:function(e){return this.getItemProp(e,"visible")!==!1},isItemDisabled:function(e){return this.getItemProp(e,"disabled")},isItemFocused:function(e){return gt(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),Lt(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=xt(e.currentTarget,"data-p-active")===!0?Ne(e.currentTarget.nextElementSibling,'[data-pc-section="rootlist"]'):null;n?Lt(n):this.updateFocusedHeader({originalEvent:e,focusOnNext:!0}),e.preventDefault()},onHeaderArrowUpKey:function(e){var n=this.findPrevHeader(e.currentTarget.parentElement)||this.findLastHeader(),r=xt(n,"data-p-active")===!0?Ne(n.nextElementSibling,'[data-pc-section="rootlist"]'):null;r?Lt(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=Ne(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=Ne(r,'[data-pc-section="header"]');return o?xt(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=Ne(r,'[data-pc-section="header"]');return o?xt(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"]'),l=o?Ne(i,'[data-pc-section="header"]'):r?this.findNextHeader(i):this.findPrevHeader(i);l?this.changeFocusedHeader(n,l):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&>(n,this.activeItem)?null:n,this.multiple&&(this.activeItems.some(function(l){return gt(n,l)})?this.activeItems=this.activeItems.filter(function(l){return!gt(n,l)}):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=tl({},this.expandedKeys);o?i[n.key]=!0:delete i[n.key],this.$emit("update:expandedKeys",i)}},changeFocusedHeader:function(e,n){n&&Lt(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:bo,ChevronRightIcon:qn,ChevronDownIcon:Gn}},il=["id"],sl=["id","tabindex","aria-label","aria-expanded","aria-controls","aria-disabled","onClick","onKeydown","data-p-active","data-p-disabled"],al=["href"],ll=["id","aria-labelledby"];function cl(t,e,n,r,o,i){var l=s.resolveComponent("PanelMenuList");return s.openBlock(),s.createElementBlock("div",s.mergeProps({id:o.id,class:t.cx("root")},t.ptmi("root")),[(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(t.model,function(a,c){return s.openBlock(),s.createElementBlock(s.Fragment,{key:i.getPanelKey(c)},[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(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)}),[s.createElementVNode("div",s.mergeProps({class:t.cx("headerContent"),ref_for:!0},i.getPTOptions("headerContent",a,c)),[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,c)},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,c)),[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,c)),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,c)),null,16)):s.createCommentVNode("",!0),s.createElementVNode("span",s.mergeProps({class:t.cx("headerLabel"),ref_for:!0},i.getPTOptions("headerLabel",a,c)),s.toDisplayString(i.getItemLabel(a)),17)],16,al))],16)],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({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")?(s.openBlock(),s.createElementBlock("div",s.mergeProps({key:0,class:t.cx("content"),ref_for:!0},t.ptm("content")),[s.createVNode(l,{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)):s.createCommentVNode("",!0)],16,ll),[[s.vShow,i.isItemActive(a)]])]}),_:2},1040)],16)):s.createCommentVNode("",!0)],64)}),128))],16,il)}wo.render=cl;const ul={class:"panel-menu-wrapper"},dl=["data-active","onClick"],fl={key:0,class:"material-symbols-outlined item-menu-icon-left"},ml=["textContent"],pl=["onClick"],hl={key:0,class:"material-symbols-outlined item-menu-icon-left"},gl=["textContent"],yl={key:2,class:s.normalizeClass(["item-menu sf-ripple"])},bl={key:0,class:"material-symbols-outlined item-menu-icon-left"},vl=["textContent"],wl=et(s.defineComponent({__name:"NavMenu",props:{items:{}},setup(t){const e=t,n=(i,l)=>{i.disabled||l()},r=(i,l)=>{l.disabled||typeof l.command=="function"&&l.command(i)},o=i=>typeof i.label=="function"?i.label():i.label??"Item";return(i,l)=>{const a=s.resolveComponent("router-link");return s.openBlock(),s.createElementBlock("div",ul,[s.createVNode(s.unref(wo),{model:e.items,unstyled:!0},{item:s.withCtx(({item:c,active:d})=>[c.to?(s.openBlock(),s.createBlock(a,{key:0,to:c.to,custom:""},{default:s.withCtx(({navigate:f,isActive:p})=>[s.createElementVNode("a",{class:s.normalizeClass(["item-menu",{"sf-ripple":!c.disabled,disabled:c.disabled}]),"data-active":p,onClick:s.withModifiers(y=>n(c,f),["prevent"])},[c.icon?(s.openBlock(),s.createElementBlock("span",fl,s.toDisplayString(c.icon),1)):s.createCommentVNode("",!0),s.createElementVNode("span",{textContent:s.toDisplayString(o(c))},null,8,ml)],10,dl)]),_:2},1032,["to"])):typeof c.command=="function"?(s.openBlock(),s.createElementBlock("span",{key:1,class:s.normalizeClass(["item-menu",{"sf-ripple":!c.disabled,disabled:c.disabled}]),onClick:s.withModifiers(f=>r(f,c),["stop"])},[c.icon?(s.openBlock(),s.createElementBlock("span",hl,s.toDisplayString(c.icon),1)):s.createCommentVNode("",!0),s.createElementVNode("span",{textContent:s.toDisplayString(o(c))},null,8,gl)],10,pl)):(s.openBlock(),s.createElementBlock("a",yl,[c.icon?(s.openBlock(),s.createElementBlock("span",bl,s.toDisplayString(c.icon),1)):s.createCommentVNode("",!0),s.createElementVNode("span",{textContent:s.toDisplayString(o(c))},null,8,vl),l[0]||(l[0]=s.createElementVNode("div",{class:"sep"},null,-1)),s.createElementVNode("span",{class:s.normalizeClass(["material-symbols-outlined arrow",{"--expand":d}])}," chevron_right ",2)]))]),_:1},8,["model"])])}}}),[["__scopeId","data-v-4510e33e"]]),kl=s.defineComponent({__name:"HelpButton",props:{title:{},tooltip:{},size:{},color:{},filled:{type:Boolean},icon:{}},setup(t){const e=t;s.useSlots();const n=s.ref(!1);function r(){n.value=!0}return(o,i)=>(s.openBlock(),s.createElementBlock(s.Fragment,null,[s.renderSlot(o.$slots,"anchor",s.normalizeProps(s.guardReactiveProps({Show:r})),()=>[s.createVNode(Be,{button:!0,icon:e.icon??"help",size:e.size??"sm",filled:e.filled,color:e.color??"info",tooltip:e.tooltip??"Ajuda",style:{minWidth:"fit-content"},onClick:r},null,8,["icon","size","filled","color","tooltip"])]),s.createVNode(Nr,{visible:n.value,"onUpdate:visible":i[0]||(i[0]=l=>n.value=l),position:"center"},{title:s.withCtx(()=>[s.createElementVNode("b",null,s.toDisplayString(e.title??"Ajuda"),1)]),default:s.withCtx(()=>[s.renderSlot(o.$slots,"default")]),_:3},8,["visible"])],64))}}),_l=et(s.defineComponent({__name:"LoadingCircle",props:{delay:{},dense:{type:Boolean}},setup(t){const e=t,n=s.ref(!1);return s.onMounted(async()=>{await new Promise(r=>setTimeout(r,e.delay??300)),n.value=!0}),(r,o)=>n.value?(s.openBlock(),s.createElementBlock("div",{key:0,class:s.normalizeClass(["loading-circle",{dense:e.dense}])},o[0]||(o[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":"3","stroke-miterlimit":"10"})])],-1)]),2)):s.createCommentVNode("",!0)}}),[["__scopeId","data-v-d74f2b72"]]),Sl=et(s.defineComponent({__name:"Content",props:{fluid:{type:Boolean}},setup(t){const e=t;return s.useSlots(),(n,r)=>(s.openBlock(),s.createElementBlock("div",{class:s.normalizeClass(["sf-content-wrapper",{"--fluid":e.fluid}])},[s.renderSlot(n.$slots,"default",{},void 0,!0)],2))}}),[["__scopeId","data-v-32e5acfa"]]),ko=Symbol();class Cl{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 Ft=new Cl,_o="SweetAlert2:",El=t=>{const e=[];for(let n=0;n<t.length;n++)e.indexOf(t[n])===-1&&e.push(t[n]);return e},Zn=t=>t.charAt(0).toUpperCase()+t.slice(1),Ee=t=>Array.prototype.slice.call(t),we=t=>{console.warn(`${_o} ${typeof t=="object"?t.join(" "):t}`)},lt=t=>{console.error(`${_o} ${t}`)},So=[],Il=t=>{So.includes(t)||(So.push(t),we(t))},Tl=(t,e)=>{Il(`"${t}" is deprecated and will be removed in the next major release. Please use "${e}" instead.`)},vn=t=>typeof t=="function"?t():t,Jn=t=>t&&typeof t.toPromise=="function",zt=t=>Jn(t)?t.toPromise():Promise.resolve(t),Qn=t=>t&&Promise.resolve(t)===t,yt={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},Al=["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"],Pl={},Ll=["allowOutsideClick","allowEnterKey","backdrop","focusConfirm","focusDeny","focusCancel","returnFocus","heightAuto","keydownListenerCapture"],Co=t=>Object.prototype.hasOwnProperty.call(yt,t),Eo=t=>Al.indexOf(t)!==-1,er=t=>Pl[t],xl=t=>{Co(t)||we(`Unknown parameter "${t}"`)},Ol=t=>{Ll.includes(t)&&we(`The parameter "${t}" is incompatible with toasts`)},$l=t=>{er(t)&&Tl(t,er(t))},Bl=t=>{!t.backdrop&&t.allowOutsideClick&&we('"allowOutsideClick" parameter requires `backdrop` parameter to be set to `true`');for(const e in t)xl(e),t.toast&&Ol(e),$l(e)},Nl="swal2-",Io=t=>{const e={};for(const n in t)e[t[n]]=Nl+t[n];return e},g=Io(["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"]),Kt=Io(["success","warning","info","question","error"]),se=()=>document.body.querySelector(`.${g.container}`),Wt=t=>{const e=se();return e?e.querySelector(t):null},Le=t=>Wt(`.${t}`),J=()=>Le(g.popup),Gt=()=>Le(g.icon),To=()=>Le(g.title),wn=()=>Le(g["html-container"]),Ao=()=>Le(g.image),Po=()=>Le(g["progress-steps"]),kn=()=>Le(g["validation-message"]),Re=()=>Wt(`.${g.actions} .${g.confirm}`),rt=()=>Wt(`.${g.actions} .${g.deny}`),Ml=()=>Le(g["input-label"]),bt=()=>Wt(`.${g.loader}`),ct=()=>Wt(`.${g.actions} .${g.cancel}`),qt=()=>Le(g.actions),Lo=()=>Le(g.footer),_n=()=>Le(g["timer-progress-bar"]),tr=()=>Le(g.close),Dl=`
|
|
342
342
|
a[href],
|
|
343
343
|
area[href],
|
|
344
344
|
input:not([disabled]),
|
|
@@ -353,7 +353,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
353
353
|
audio[controls],
|
|
354
354
|
video[controls],
|
|
355
355
|
summary
|
|
356
|
-
`,nr=()=>{const t=Ee(J().querySelectorAll('[tabindex]:not([tabindex="-1"]):not([tabindex="0"])')).sort((n,r)=>{const o=parseInt(n.getAttribute("tabindex")),i=parseInt(r.getAttribute("tabindex"));return o>i?1:o<i?-1:0}),e=Ee(J().querySelectorAll(
|
|
356
|
+
`,nr=()=>{const t=Ee(J().querySelectorAll('[tabindex]:not([tabindex="-1"]):not([tabindex="0"])')).sort((n,r)=>{const o=parseInt(n.getAttribute("tabindex")),i=parseInt(r.getAttribute("tabindex"));return o>i?1:o<i?-1:0}),e=Ee(J().querySelectorAll(Dl)).filter(n=>n.getAttribute("tabindex")!=="-1");return El(t.concat(e)).filter(n=>Ie(n))},rr=()=>Ye(document.body,g.shown)&&!Ye(document.body,g["toast-shown"])&&!Ye(document.body,g["no-backdrop"]),Sn=()=>J()&&Ye(J(),g.toast),Rl=()=>J().hasAttribute("data-loading"),vt={previousBodyPadding:null},ae=(t,e)=>{if(t.textContent="",e){const r=new DOMParser().parseFromString(e,"text/html");Ee(r.querySelector("head").childNodes).forEach(o=>{t.appendChild(o)}),Ee(r.querySelector("body").childNodes).forEach(o=>{t.appendChild(o)})}},Ye=(t,e)=>{if(!e)return!1;const n=e.split(/\s+/);for(let r=0;r<n.length;r++)if(!t.classList.contains(n[r]))return!1;return!0},Ul=(t,e)=>{Ee(t.classList).forEach(n=>{!Object.values(g).includes(n)&&!Object.values(Kt).includes(n)&&!Object.values(e.showClass).includes(n)&&t.classList.remove(n)})},xe=(t,e,n)=>{if(Ul(t,e),e.customClass&&e.customClass[n]){if(typeof e.customClass[n]!="string"&&!e.customClass[n].forEach)return we(`Invalid type of customClass.${n}! Expected string or iterable object, got "${typeof e.customClass[n]}"`);W(t,e.customClass[n])}},or=(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}`)}},xo=t=>{if(t.focus(),t.type!=="file"){const e=t.value;t.value="",t.value=e}},Oo=(t,e,n)=>{!t||!e||(typeof e=="string"&&(e=e.split(/\s+/).filter(Boolean)),e.forEach(r=>{Array.isArray(t)?t.forEach(o=>{n?o.classList.add(r):o.classList.remove(r)}):n?t.classList.add(r):t.classList.remove(r)}))},W=(t,e)=>{Oo(t,e,!0)},Ve=(t,e)=>{Oo(t,e,!1)},ot=(t,e)=>{const n=Ee(t.childNodes);for(let r=0;r<n.length;r++)if(Ye(n[r],e))return n[r]},Yt=(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)},oe=(t,e="flex")=>{t.style.display=e},le=t=>{t.style.display="none"},$o=(t,e,n,r)=>{const o=t.querySelector(e);o&&(o.style[n]=r)},Cn=(t,e,n)=>{e?oe(t,n):le(t)},Ie=t=>!!(t&&(t.offsetWidth||t.offsetHeight||t.getClientRects().length)),Vl=()=>!Ie(Re())&&!Ie(rt())&&!Ie(ct()),Bo=t=>t.scrollHeight>t.clientHeight,No=t=>{const e=window.getComputedStyle(t),n=parseFloat(e.getPropertyValue("animation-duration")||"0"),r=parseFloat(e.getPropertyValue("transition-duration")||"0");return n>0||r>0},ir=(t,e=!1)=>{const n=_n();Ie(n)&&(e&&(n.style.transition="none",n.style.width="100%"),setTimeout(()=>{n.style.transition=`width ${t/1e3}s linear`,n.style.width="0%"},10))},Hl=()=>{const t=_n(),e=parseInt(window.getComputedStyle(t).width);t.style.removeProperty("transition"),t.style.width="100%";const n=parseInt(window.getComputedStyle(t).width),r=e/n*100;t.style.removeProperty("transition"),t.style.width=`${r}%`},Mo=()=>typeof window>"u"||typeof document>"u",jl=100,V={},Fl=()=>{V.previousActiveElement&&V.previousActiveElement.focus?(V.previousActiveElement.focus(),V.previousActiveElement=null):document.body&&document.body.focus()},zl=t=>new Promise(e=>{if(!t)return e();const n=window.scrollX,r=window.scrollY;V.restoreFocusTimeout=setTimeout(()=>{Fl(),e()},jl),window.scrollTo(n,r)}),Kl=`
|
|
357
357
|
<div aria-labelledby="${g.title}" aria-describedby="${g["html-container"]}" class="${g.popup}" tabindex="-1">
|
|
358
358
|
<button type="button" class="${g.close}"></button>
|
|
359
359
|
<ul class="${g["progress-steps"]}"></ul>
|
|
@@ -386,27 +386,27 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
386
386
|
<div class="${g["timer-progress-bar"]}"></div>
|
|
387
387
|
</div>
|
|
388
388
|
</div>
|
|
389
|
-
`.replace(/(^|\n)\s*/g,""),
|
|
389
|
+
`.replace(/(^|\n)\s*/g,""),Wl=()=>{const t=se();return t?(t.remove(),Ve([document.documentElement,document.body],[g["no-backdrop"],g["toast-shown"],g["has-column"]]),!0):!1},ut=()=>{V.currentInstance.resetValidationMessage()},Gl=()=>{const t=J(),e=ot(t,g.input),n=ot(t,g.file),r=t.querySelector(`.${g.range} input`),o=t.querySelector(`.${g.range} output`),i=ot(t,g.select),l=t.querySelector(`.${g.checkbox} input`),a=ot(t,g.textarea);e.oninput=ut,n.onchange=ut,i.onchange=ut,l.onchange=ut,a.oninput=ut,r.oninput=()=>{ut(),o.value=r.value},r.onchange=()=>{ut(),r.nextSibling.value=r.value}},ql=t=>typeof t=="string"?document.querySelector(t):t,Yl=t=>{const e=J();e.setAttribute("role",t.toast?"alert":"dialog"),e.setAttribute("aria-live",t.toast?"polite":"assertive"),t.toast||e.setAttribute("aria-modal","true")},Xl=t=>{window.getComputedStyle(t).direction==="rtl"&&W(se(),g.rtl)},Zl=t=>{const e=Wl();if(Mo()){lt("SweetAlert2 requires document to initialize");return}const n=document.createElement("div");n.className=g.container,e&&W(n,g["no-transition"]),ae(n,Kl);const r=ql(t.target);r.appendChild(n),Yl(t),Xl(r),Gl()},sr=(t,e)=>{t instanceof HTMLElement?e.appendChild(t):typeof t=="object"?Jl(t,e):t&&ae(e,t)},Jl=(t,e)=>{t.jquery?Ql(e,t):ae(e,t.toString())},Ql=(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(Mo())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})(),ec=()=>{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},tc=(t,e)=>{const n=qt(),r=bt();!e.showConfirmButton&&!e.showDenyButton&&!e.showCancelButton?le(n):oe(n),xe(n,e,"actions"),nc(n,r,e),ae(r,e.loaderHtml),xe(r,e,"loader")};function nc(t,e,n){const r=Re(),o=rt(),i=ct();ar(r,"confirm",n),ar(o,"deny",n),ar(i,"cancel",n),rc(r,o,i,n),n.reverseButtons&&(n.toast?(t.insertBefore(i,r),t.insertBefore(o,r)):(t.insertBefore(i,e),t.insertBefore(o,e),t.insertBefore(r,e)))}function rc(t,e,n,r){if(!r.buttonsStyling)return Ve([t,e,n],g.styled);W([t,e,n],g.styled),r.confirmButtonColor&&(t.style.backgroundColor=r.confirmButtonColor,W(t,g["default-outline"])),r.denyButtonColor&&(e.style.backgroundColor=r.denyButtonColor,W(e,g["default-outline"])),r.cancelButtonColor&&(n.style.backgroundColor=r.cancelButtonColor,W(n,g["default-outline"]))}function ar(t,e,n){Cn(t,n[`show${Zn(e)}Button`],"inline-block"),ae(t,n[`${e}ButtonText`]),t.setAttribute("aria-label",n[`${e}ButtonAriaLabel`]),t.className=g[e],xe(t,n,`${e}Button`),W(t,n[`${e}ButtonClass`])}function oc(t,e){typeof e=="string"?t.style.background=e:e||W([document.documentElement,document.body],g["no-backdrop"])}function ic(t,e){e in g?W(t,g[e]):(we('The "position" parameter is not valid, defaulting to "center"'),W(t,g.center))}function sc(t,e){if(e&&typeof e=="string"){const n=`grow-${e}`;n in g&&W(t,g[n])}}const ac=(t,e)=>{const n=se();n&&(oc(n,e.backdrop),ic(n,e.position),sc(n,e.grow),xe(n,e,"container"))},H={awaitingPromise:new WeakMap,promise:new WeakMap,innerParams:new WeakMap,domCache:new WeakMap},lc=["input","file","range","select","radio","checkbox","textarea"],cc=(t,e)=>{const n=J(),r=H.innerParams.get(t),o=!r||e.input!==r.input;lc.forEach(i=>{const l=g[i],a=ot(n,l);fc(i,e.inputAttributes),a.className=l,o&&le(a)}),e.input&&(o&&uc(e),mc(e))},uc=t=>{if(!ke[t.input])return lt(`Unexpected type of input! Expected "text", "email", "password", "number", "tel", "select", "radio", "checkbox", "textarea", "file" or "url", got "${t.input}"`);const e=Do(t.input),n=ke[t.input](e,t);oe(n),setTimeout(()=>{xo(n)})},dc=t=>{for(let e=0;e<t.attributes.length;e++){const n=t.attributes[e].name;["type","value","style"].includes(n)||t.removeAttribute(n)}},fc=(t,e)=>{const n=or(J(),t);if(n){dc(n);for(const r in e)n.setAttribute(r,e[r])}},mc=t=>{const e=Do(t.input);t.customClass&&W(e,t.customClass.input)},lr=(t,e)=>{(!t.placeholder||e.inputPlaceholder)&&(t.placeholder=e.inputPlaceholder)},Zt=(t,e,n)=>{if(n.inputLabel){t.id=g.input;const r=document.createElement("label"),o=g["input-label"];r.setAttribute("for",t.id),r.className=o,W(r,n.customClass.inputLabel),r.innerText=n.inputLabel,e.insertAdjacentElement("beforebegin",r)}},Do=t=>{const e=g[t]?g[t]:g.input;return ot(J(),e)},ke={};ke.text=ke.email=ke.password=ke.number=ke.tel=ke.url=(t,e)=>(typeof e.inputValue=="string"||typeof e.inputValue=="number"?t.value=e.inputValue:Qn(e.inputValue)||we(`Unexpected type of inputValue! Expected "string", "number" or "Promise", got "${typeof e.inputValue}"`),Zt(t,t,e),lr(t,e),t.type=e.input,t),ke.file=(t,e)=>(Zt(t,t,e),lr(t,e),t),ke.range=(t,e)=>{const n=t.querySelector("input"),r=t.querySelector("output");return n.value=e.inputValue,n.type=e.input,r.value=e.inputValue,Zt(n,t,e),t},ke.select=(t,e)=>{if(t.textContent="",e.inputPlaceholder){const n=document.createElement("option");ae(n,e.inputPlaceholder),n.value="",n.disabled=!0,n.selected=!0,t.appendChild(n)}return Zt(t,t,e),t},ke.radio=t=>(t.textContent="",t),ke.checkbox=(t,e)=>{const n=or(J(),"checkbox");n.value="1",n.id=g.checkbox,n.checked=!!e.inputValue;const r=t.querySelector("span");return ae(r,e.inputPlaceholder),t},ke.textarea=(t,e)=>{t.value=e.inputValue,lr(t,e),Zt(t,t,e);const n=r=>parseInt(window.getComputedStyle(r).marginLeft)+parseInt(window.getComputedStyle(r).marginRight);return setTimeout(()=>{if("MutationObserver"in window){const r=parseInt(window.getComputedStyle(J()).width),o=()=>{const i=t.offsetWidth+n(t);i>r?J().style.width=`${i}px`:J().style.width=null};new MutationObserver(o).observe(t,{attributes:!0,attributeFilter:["style"]})}}),t};const pc=(t,e)=>{const n=wn();xe(n,e,"htmlContainer"),e.html?(sr(e.html,n),oe(n,"block")):e.text?(n.textContent=e.text,oe(n,"block")):le(n),cc(t,e)},hc=(t,e)=>{const n=Lo();Cn(n,e.footer),e.footer&&sr(e.footer,n),xe(n,e,"footer")},gc=(t,e)=>{const n=tr();ae(n,e.closeButtonHtml),xe(n,e,"closeButton"),Cn(n,e.showCloseButton),n.setAttribute("aria-label",e.closeButtonAriaLabel)},yc=(t,e)=>{const n=H.innerParams.get(t),r=Gt();if(n&&e.icon===n.icon){Uo(r,e),Ro(r,e);return}if(!e.icon&&!e.iconHtml)return le(r);if(e.icon&&Object.keys(Kt).indexOf(e.icon)===-1)return lt(`Unknown icon! Expected "success", "error", "warning", "info" or "question", got "${e.icon}"`),le(r);oe(r),Uo(r,e),Ro(r,e),W(r,e.showClass.icon)},Ro=(t,e)=>{for(const n in Kt)e.icon!==n&&Ve(t,Kt[n]);W(t,Kt[e.icon]),kc(t,e),bc(),xe(t,e,"icon")},bc=()=>{const t=J(),e=window.getComputedStyle(t).getPropertyValue("background-color"),n=t.querySelectorAll("[class^=swal2-success-circular-line], .swal2-success-fix");for(let r=0;r<n.length;r++)n[r].style.backgroundColor=e},vc=`
|
|
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
|
+
`,wc=`
|
|
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
|
-
`,Uo=(t,e)=>{t.textContent="",e.iconHtml?ae(t,Vo(e.iconHtml)):e.icon==="success"?ae(t,
|
|
399
|
+
`,Uo=(t,e)=>{t.textContent="",e.iconHtml?ae(t,Vo(e.iconHtml)):e.icon==="success"?ae(t,vc):e.icon==="error"?ae(t,wc):ae(t,Vo({question:"?",warning:"!",info:"i"}[e.icon]))},kc=(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"])$o(t,n,"backgroundColor",e.iconColor);$o(t,".swal2-success-ring","borderColor",e.iconColor)}},Vo=t=>`<div class="${g["icon-content"]}">${t}</div>`,_c=(t,e)=>{const n=Ao();if(!e.imageUrl)return le(n);oe(n,""),n.setAttribute("src",e.imageUrl),n.setAttribute("alt",e.imageAlt),Yt(n,"width",e.imageWidth),Yt(n,"height",e.imageHeight),n.className=g.image,xe(n,e,"image")},Sc=t=>{const e=document.createElement("li");return W(e,g["progress-step"]),ae(e,t),e},Cc=t=>{const e=document.createElement("li");return W(e,g["progress-step-line"]),t.progressStepsDistance&&(e.style.width=t.progressStepsDistance),e},Ec=(t,e)=>{const n=Po();if(!e.progressSteps||e.progressSteps.length===0)return le(n);oe(n),n.textContent="",e.currentProgressStep>=e.progressSteps.length&&we("Invalid currentProgressStep parameter, it should be less than progressSteps.length (currentProgressStep like JS arrays starts from 0)"),e.progressSteps.forEach((r,o)=>{const i=Sc(r);if(n.appendChild(i),o===e.currentProgressStep&&W(i,g["active-progress-step"]),o!==e.progressSteps.length-1){const l=Cc(e);n.appendChild(l)}})},Ic=(t,e)=>{const n=To();Cn(n,e.title||e.titleText,"block"),e.title&&sr(e.title,n),e.titleText&&(n.innerText=e.titleText),xe(n,e,"title")},Tc=(t,e)=>{const n=se(),r=J();e.toast?(Yt(n,"width",e.width),r.style.width="100%",r.insertBefore(bt(),Gt())):Yt(r,"width",e.width),Yt(r,"padding",e.padding),e.color&&(r.style.color=e.color),e.background&&(r.style.background=e.background),le(kn()),Ac(r,e)},Ac=(t,e)=>{t.className=`${g.popup} ${Ie(t)?e.showClass.popup:""}`,e.toast?(W([document.documentElement,document.body],g["toast-shown"]),W(t,g.toast)):W(t,g.modal),xe(t,e,"popup"),typeof e.customClass=="string"&&W(t,e.customClass),e.icon&&W(t,g[`icon-${e.icon}`])},Ho=(t,e)=>{Tc(t,e),ac(t,e),Ec(t,e),yc(t,e),_c(t,e),Ic(t,e),gc(t,e),pc(t,e),tc(t,e),hc(t,e),typeof e.didRender=="function"&&e.didRender(J())},wt=Object.freeze({cancel:"cancel",backdrop:"backdrop",close:"close",esc:"esc",timer:"timer"}),Pc=()=>{Ee(document.body.children).forEach(e=>{e===se()||e.contains(se())||(e.hasAttribute("aria-hidden")&&e.setAttribute("data-previous-aria-hidden",e.getAttribute("aria-hidden")),e.setAttribute("aria-hidden","true"))})},jo=()=>{Ee(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")})},Fo=["swal-title","swal-html","swal-footer"],Lc=t=>{const e=typeof t.template=="string"?document.querySelector(t.template):t.template;if(!e)return{};const n=e.content;return Dc(n),Object.assign(xc(n),Oc(n),$c(n),Bc(n),Nc(n),Mc(n,Fo))},xc=t=>{const e={};return Ee(t.querySelectorAll("swal-param")).forEach(n=>{dt(n,["name","value"]);const r=n.getAttribute("name"),o=n.getAttribute("value");typeof yt[r]=="boolean"&&o==="false"&&(e[r]=!1),typeof yt[r]=="object"&&(e[r]=JSON.parse(o))}),e},Oc=t=>{const e={};return Ee(t.querySelectorAll("swal-button")).forEach(n=>{dt(n,["type","color","aria-label"]);const r=n.getAttribute("type");e[`${r}ButtonText`]=n.innerHTML,e[`show${Zn(r)}Button`]=!0,n.hasAttribute("color")&&(e[`${r}ButtonColor`]=n.getAttribute("color")),n.hasAttribute("aria-label")&&(e[`${r}ButtonAriaLabel`]=n.getAttribute("aria-label"))}),e},$c=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},Bc=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},Nc=t=>{const e={},n=t.querySelector("swal-input");n&&(dt(n,["type","label","placeholder","value"]),e.input=n.getAttribute("type")||"text",n.hasAttribute("label")&&(e.inputLabel=n.getAttribute("label")),n.hasAttribute("placeholder")&&(e.inputPlaceholder=n.getAttribute("placeholder")),n.hasAttribute("value")&&(e.inputValue=n.getAttribute("value")));const r=t.querySelectorAll("swal-input-option");return r.length&&(e.inputOptions={},Ee(r).forEach(o=>{dt(o,["value"]);const i=o.getAttribute("value"),l=o.innerHTML;e.inputOptions[i]=l})),e},Mc=(t,e)=>{const n={};for(const r in e){const o=e[r],i=t.querySelector(o);i&&(dt(i,[]),n[o.replace(/^swal-/,"")]=i.innerHTML.trim())}return n},Dc=t=>{const e=Fo.concat(["swal-param","swal-button","swal-image","swal-icon","swal-input","swal-input-option"]);Ee(t.children).forEach(n=>{const r=n.tagName.toLowerCase();e.indexOf(r)===-1&&we(`Unrecognized element <${r}>`)})},dt=(t,e)=>{Ee(t.attributes).forEach(n=>{e.indexOf(n.name)===-1&&we([`Unrecognized attribute "${n.name}" on <${t.tagName.toLowerCase()}>.`,`${e.length?`Allowed attributes are: ${e.join(", ")}`:"To set the value, use HTML within the element."}`])})},zo={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 Rc(t){t.inputValidator||Object.keys(zo).forEach(e=>{t.input===e&&(t.inputValidator=zo[e])})}function Uc(t){(!t.target||typeof t.target=="string"&&!document.querySelector(t.target)||typeof t.target!="string"&&!t.target.appendChild)&&(we('Target parameter is not valid, defaulting to "body"'),t.target="body")}function Vc(t){Rc(t),t.showLoaderOnConfirm&&!t.preConfirm&&we(`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 />")),Xl(t)}class Vc{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 Hc=()=>{vt.previousBodyPadding===null&&document.body.scrollHeight>window.innerHeight&&(vt.previousBodyPadding=parseInt(window.getComputedStyle(document.body).getPropertyValue("padding-right")),document.body.style.paddingRight=`${vt.previousBodyPadding+Ql()}px`)},jc=()=>{vt.previousBodyPadding!==null&&(document.body.style.paddingRight=`${vt.previousBodyPadding}px`,vt.previousBodyPadding=null)},Fc=()=>{if((/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream||navigator.platform==="MacIntel"&&navigator.maxTouchPoints>1)&&!Ye(document.body,g.iosfix)){const e=document.body.scrollTop;document.body.style.top=`${e*-1}px`,W(document.body,g.iosfix),Kc(),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)&&J().scrollHeight>window.innerHeight-44&&(se().style.paddingBottom="44px")},Kc=()=>{const t=se();let e;t.ontouchstart=n=>{e=Wc(n)},t.ontouchmove=n=>{e&&(n.preventDefault(),n.stopPropagation())}},Wc=t=>{const e=t.target,n=se();return Gc(t)||qc(t)?!1:e===n||!Bo(n)&&e.tagName!=="INPUT"&&e.tagName!=="TEXTAREA"&&!(Bo(wn())&&wn().contains(e))},Gc=t=>t.touches&&t.touches.length&&t.touches[0].touchType==="stylus",qc=t=>t.touches&&t.touches.length>1,Yc=()=>{if(Ye(document.body,g.iosfix)){const t=parseInt(document.body.style.top,10);Ve(document.body,g.iosfix),document.body.style.top="",document.body.scrollTop=t*-1}},Ko=10,Xc=t=>{const e=se(),n=J();typeof t.willOpen=="function"&&t.willOpen(n);const o=window.getComputedStyle(document.body).overflowY;Qc(e,n,t),setTimeout(()=>{Zc(e,n)},Ko),rr()&&(Jc(e,t.scrollbarPadding,o),Ac()),!Sn()&&!V.previousActiveElement&&(V.previousActiveElement=document.activeElement),typeof t.didOpen=="function"&&setTimeout(()=>t.didOpen(n)),Ve(e,g["no-transition"])},Wo=t=>{const e=J();if(t.target!==e)return;const n=se();e.removeEventListener(Xt,Wo),n.style.overflowY="auto"},Zc=(t,e)=>{Xt&&No(e)?(t.style.overflowY="hidden",e.addEventListener(Xt,Wo)):t.style.overflowY="auto"},Jc=(t,e,n)=>{Fc(),e&&n!=="hidden"&&Hc(),setTimeout(()=>{t.scrollTop=0})},Qc=(t,e,n)=>{W(t,n.showClass.backdrop),e.style.setProperty("opacity","0","important"),oe(e,"grid"),setTimeout(()=>{W(e,n.showClass.popup),e.style.removeProperty("opacity")},Ko),W([document.documentElement,document.body],g.shown),n.heightAuto&&n.backdrop&&!n.toast&&W([document.documentElement,document.body],g["height-auto"])},kt=t=>{let e=J();e||new ft,e=J();const n=bt();Sn()?le(Gt()):eu(e,t),oe(n),e.setAttribute("data-loading",!0),e.setAttribute("aria-busy",!0),e.focus()},eu=(t,e)=>{const n=qt(),r=bt();!e&&Ie(Re())&&(e=Re()),oe(n),e&&(le(e),r.setAttribute("data-button-to-replace",e.className)),r.parentNode.insertBefore(r,e),W([t,n],g.loading)},tu=(t,e)=>{e.input==="select"||e.input==="radio"?su(t,e):["text","email","number","tel","textarea"].includes(e.input)&&(Jn(e.inputValue)||Qn(e.inputValue))&&(kt(Re()),au(t,e))},nu=(t,e)=>{const n=t.getInput();if(!n)return null;switch(e.input){case"checkbox":return ru(n);case"radio":return ou(n);case"file":return iu(n);default:return e.inputAutoTrim?n.value.trim():n.value}},ru=t=>t.checked?1:0,ou=t=>t.checked?t.value:null,iu=t=>t.files.length?t.getAttribute("multiple")!==null?t.files:t.files[0]:null,su=(t,e)=>{const n=J(),r=o=>lu[e.input](n,cr(o),e);Jn(e.inputOptions)||Qn(e.inputOptions)?(kt(Re()),zt(e.inputOptions).then(o=>{t.hideLoading(),r(o)})):typeof e.inputOptions=="object"?r(e.inputOptions):lt(`Unexpected type of inputOptions! Expected object, Map or Promise, got ${typeof e.inputOptions}`)},au=(t,e)=>{const n=t.getInput();le(n),zt(e.inputValue).then(r=>{n.value=e.input==="number"?parseFloat(r)||0:`${r}`,oe(n),n.focus(),t.hideLoading()}).catch(r=>{lt(`Error in inputValue promise: ${r}`),n.value="",oe(n),n.focus(),t.hideLoading()})},lu={select:(t,e,n)=>{const r=rt(t,g.select),o=(i,l,a)=>{const c=document.createElement("option");c.value=a,ae(c,l),c.selected=Go(a,n.inputValue),i.appendChild(c)};e.forEach(i=>{const l=i[0],a=i[1];if(Array.isArray(a)){const c=document.createElement("optgroup");c.label=l,c.disabled=!1,r.appendChild(c),a.forEach(d=>o(c,d[1],d[0]))}else o(r,a,l)}),r.focus()},radio:(t,e,n)=>{const r=rt(t,g.radio);e.forEach(i=>{const l=i[0],a=i[1],c=document.createElement("input"),d=document.createElement("label");c.type="radio",c.name=g.radio,c.value=l,Go(l,n.inputValue)&&(c.checked=!0);const f=document.createElement("span");ae(f,a),f.className=g.label,d.appendChild(c),d.appendChild(f),r.appendChild(d)});const o=r.querySelectorAll("input");o.length&&o[0].focus()}},cr=t=>{const e=[];return typeof Map<"u"&&t instanceof Map?t.forEach((n,r)=>{let o=n;typeof o=="object"&&(o=cr(o)),e.push([r,o])}):Object.keys(t).forEach(n=>{let r=t[n];typeof r=="object"&&(r=cr(r)),e.push([n,r])}),e},Go=(t,e)=>e&&e.toString()===t.toString();function qo(){const t=H.innerParams.get(this);if(!t)return;const e=H.domCache.get(this);le(e.loader),Sn()?t.icon&&oe(Gt()):cu(e),Ve([e.popup,e.actions],g.loading),e.popup.removeAttribute("aria-busy"),e.popup.removeAttribute("data-loading"),e.confirmButton.disabled=!1,e.denyButton.disabled=!1,e.cancelButton.disabled=!1}const cu=t=>{const e=t.popup.getElementsByClassName(t.loader.getAttribute("data-button-to-replace"));e.length?oe(e[0],"inline-block"):Ul()&&le(t.actions)};function uu(t){const e=H.innerParams.get(t||this),n=H.domCache.get(t||this);return n?or(n.popup,e.input):null}const Jt={swalPromiseResolve:new WeakMap,swalPromiseReject:new WeakMap},du=()=>Ie(J()),Yo=()=>Re()&&Re().click(),fu=()=>nt()&&nt().click(),mu=()=>ct()&&ct().click(),Xo=t=>{t.keydownTarget&&t.keydownHandlerAdded&&(t.keydownTarget.removeEventListener("keydown",t.keydownHandler,{capture:t.keydownListenerCapture}),t.keydownHandlerAdded=!1)},pu=(t,e,n,r)=>{Xo(e),n.toast||(e.keydownHandler=o=>gu(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)},ur=(t,e,n)=>{const r=nr();if(r.length)return e=e+n,e===r.length?e=0:e===-1&&(e=r.length-1),r[e].focus();J().focus()},Zo=["ArrowRight","ArrowDown"],hu=["ArrowLeft","ArrowUp"],gu=(t,e,n)=>{const r=H.innerParams.get(t);r&&(e.isComposing||e.keyCode===229||(r.stopKeydownPropagation&&e.stopPropagation(),e.key==="Enter"?yu(t,e,r):e.key==="Tab"?bu(e,r):[...Zo,...hu].includes(e.key)?vu(e.key):e.key==="Escape"&&wu(e,r,n)))},yu=(t,e,n)=>{if(vn(n.allowEnterKey)&&e.target&&t.getInput()&&e.target.outerHTML===t.getInput().outerHTML){if(["textarea","file"].includes(n.input))return;Yo(),e.preventDefault()}},bu=(t,e)=>{const n=t.target,r=nr();let o=-1;for(let i=0;i<r.length;i++)if(n===r[i]){o=i;break}t.shiftKey?ur(e,o,-1):ur(e,o,1),t.stopPropagation(),t.preventDefault()},vu=t=>{const e=Re(),n=nt(),r=ct();if(![e,n,r].includes(document.activeElement))return;const o=Zo.includes(t)?"nextElementSibling":"previousElementSibling";let i=document.activeElement;for(let l=0;l<qt().children.length;l++){if(i=i[o],!i)return;if(Ie(i)&&i instanceof HTMLButtonElement)break}i instanceof HTMLButtonElement&&i.focus()},wu=(t,e,n)=>{vn(e.allowEscapeKey)&&(t.preventDefault(),n(wt.esc))};function Jo(t,e,n,r){Sn()?Qo(t,r):(Fl(n).then(()=>Qo(t,r)),Xo(V)),/^((?!chrome|android).)*safari/i.test(navigator.userAgent)?(e.setAttribute("style","display:none !important"),e.removeAttribute("class"),e.innerHTML=""):e.remove(),rr()&&(jc(),Yc(),jo()),ku()}function ku(){Ve([document.documentElement,document.body],[g.shown,g["height-auto"],g["no-backdrop"],g["toast-shown"]])}function En(t){t=Eu(t);const e=Jt.swalPromiseResolve.get(this),n=Su(this);this.isAwaitingPromise()?t.isDismissed||(Qt(this),e(t)):n&&e(t)}function _u(){return!!H.awaitingPromise.get(this)}const Su=t=>{const e=J();if(!e)return!1;const n=H.innerParams.get(t);if(!n||Ye(e,n.hideClass.popup))return!1;Ve(e,n.showClass.popup),W(e,n.hideClass.popup);const r=se();return Ve(r,n.showClass.backdrop),W(r,n.hideClass.backdrop),Iu(t,e,n),!0};function Cu(t){const e=Jt.swalPromiseReject.get(this);Qt(this),e&&e(t)}const Qt=t=>{t.isAwaitingPromise()&&(H.awaitingPromise.delete(t),H.innerParams.get(t)||t._destroy())},Eu=t=>typeof t>"u"?{isConfirmed:!1,isDenied:!1,isDismissed:!0}:Object.assign({isConfirmed:!1,isDenied:!1,isDismissed:!1},t),Iu=(t,e,n)=>{const r=se(),o=Xt&&No(e);typeof n.willClose=="function"&&n.willClose(e),o?Tu(t,e,r,n.returnFocus,n.didClose):Jo(t,r,n.returnFocus,n.didClose)},Tu=(t,e,n,r,o)=>{V.swalCloseEventFinishedCallback=Jo.bind(null,t,n,r,o),e.addEventListener(Xt,function(i){i.target===e&&(V.swalCloseEventFinishedCallback(),delete V.swalCloseEventFinishedCallback)})},Qo=(t,e)=>{setTimeout(()=>{typeof e=="function"&&e.bind(t.params)(),t._destroy()})};function ei(t,e,n){const r=H.domCache.get(t);e.forEach(o=>{r[o].disabled=n})}function ti(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 Au(){ei(this,["confirmButton","denyButton","cancelButton"],!1)}function Pu(){ei(this,["confirmButton","denyButton","cancelButton"],!0)}function Lu(){return ti(this.getInput(),!1)}function xu(){return ti(this.getInput(),!0)}function Ou(t){const e=H.domCache.get(this),n=H.innerParams.get(this);ae(e.validationMessage,t),e.validationMessage.className=g["validation-message"],n.customClass&&n.customClass.validationMessage&&W(e.validationMessage,n.customClass.validationMessage),oe(e.validationMessage);const r=this.getInput();r&&(r.setAttribute("aria-invalid",!0),r.setAttribute("aria-describedby",g["validation-message"]),xo(r),W(r,g.inputerror))}function $u(){const t=H.domCache.get(this);t.validationMessage&&le(t.validationMessage);const e=this.getInput();e&&(e.removeAttribute("aria-invalid"),e.removeAttribute("aria-describedby"),Ve(e,g.inputerror))}function Bu(){return H.domCache.get(this).progressSteps}function Nu(t){const e=J(),n=H.innerParams.get(this);if(!e||Ye(e,n.hideClass.popup))return we("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=Mu(t),o=Object.assign({},n,r);Ho(this,o),H.innerParams.set(this,o),Object.defineProperties(this,{params:{value:Object.assign({},this.params,t),writable:!1,enumerable:!0}})}const Mu=t=>{const e={};return Object.keys(t).forEach(n=>{Eo(n)?e[n]=t[n]:we(`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`),Uc(t),typeof t.title=="string"&&(t.title=t.title.split(`
|
|
402
|
+
`).join("<br />")),Zl(t)}class Hc{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 jc=()=>{vt.previousBodyPadding===null&&document.body.scrollHeight>window.innerHeight&&(vt.previousBodyPadding=parseInt(window.getComputedStyle(document.body).getPropertyValue("padding-right")),document.body.style.paddingRight=`${vt.previousBodyPadding+ec()}px`)},Fc=()=>{vt.previousBodyPadding!==null&&(document.body.style.paddingRight=`${vt.previousBodyPadding}px`,vt.previousBodyPadding=null)},zc=()=>{if((/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream||navigator.platform==="MacIntel"&&navigator.maxTouchPoints>1)&&!Ye(document.body,g.iosfix)){const e=document.body.scrollTop;document.body.style.top=`${e*-1}px`,W(document.body,g.iosfix),Wc(),Kc()}},Kc=()=>{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&&(se().style.paddingBottom="44px")},Wc=()=>{const t=se();let e;t.ontouchstart=n=>{e=Gc(n)},t.ontouchmove=n=>{e&&(n.preventDefault(),n.stopPropagation())}},Gc=t=>{const e=t.target,n=se();return qc(t)||Yc(t)?!1:e===n||!Bo(n)&&e.tagName!=="INPUT"&&e.tagName!=="TEXTAREA"&&!(Bo(wn())&&wn().contains(e))},qc=t=>t.touches&&t.touches.length&&t.touches[0].touchType==="stylus",Yc=t=>t.touches&&t.touches.length>1,Xc=()=>{if(Ye(document.body,g.iosfix)){const t=parseInt(document.body.style.top,10);Ve(document.body,g.iosfix),document.body.style.top="",document.body.scrollTop=t*-1}},Ko=10,Zc=t=>{const e=se(),n=J();typeof t.willOpen=="function"&&t.willOpen(n);const o=window.getComputedStyle(document.body).overflowY;eu(e,n,t),setTimeout(()=>{Jc(e,n)},Ko),rr()&&(Qc(e,t.scrollbarPadding,o),Pc()),!Sn()&&!V.previousActiveElement&&(V.previousActiveElement=document.activeElement),typeof t.didOpen=="function"&&setTimeout(()=>t.didOpen(n)),Ve(e,g["no-transition"])},Wo=t=>{const e=J();if(t.target!==e)return;const n=se();e.removeEventListener(Xt,Wo),n.style.overflowY="auto"},Jc=(t,e)=>{Xt&&No(e)?(t.style.overflowY="hidden",e.addEventListener(Xt,Wo)):t.style.overflowY="auto"},Qc=(t,e,n)=>{zc(),e&&n!=="hidden"&&jc(),setTimeout(()=>{t.scrollTop=0})},eu=(t,e,n)=>{W(t,n.showClass.backdrop),e.style.setProperty("opacity","0","important"),oe(e,"grid"),setTimeout(()=>{W(e,n.showClass.popup),e.style.removeProperty("opacity")},Ko),W([document.documentElement,document.body],g.shown),n.heightAuto&&n.backdrop&&!n.toast&&W([document.documentElement,document.body],g["height-auto"])},kt=t=>{let e=J();e||new ft,e=J();const n=bt();Sn()?le(Gt()):tu(e,t),oe(n),e.setAttribute("data-loading",!0),e.setAttribute("aria-busy",!0),e.focus()},tu=(t,e)=>{const n=qt(),r=bt();!e&&Ie(Re())&&(e=Re()),oe(n),e&&(le(e),r.setAttribute("data-button-to-replace",e.className)),r.parentNode.insertBefore(r,e),W([t,n],g.loading)},nu=(t,e)=>{e.input==="select"||e.input==="radio"?au(t,e):["text","email","number","tel","textarea"].includes(e.input)&&(Jn(e.inputValue)||Qn(e.inputValue))&&(kt(Re()),lu(t,e))},ru=(t,e)=>{const n=t.getInput();if(!n)return null;switch(e.input){case"checkbox":return ou(n);case"radio":return iu(n);case"file":return su(n);default:return e.inputAutoTrim?n.value.trim():n.value}},ou=t=>t.checked?1:0,iu=t=>t.checked?t.value:null,su=t=>t.files.length?t.getAttribute("multiple")!==null?t.files:t.files[0]:null,au=(t,e)=>{const n=J(),r=o=>cu[e.input](n,cr(o),e);Jn(e.inputOptions)||Qn(e.inputOptions)?(kt(Re()),zt(e.inputOptions).then(o=>{t.hideLoading(),r(o)})):typeof e.inputOptions=="object"?r(e.inputOptions):lt(`Unexpected type of inputOptions! Expected object, Map or Promise, got ${typeof e.inputOptions}`)},lu=(t,e)=>{const n=t.getInput();le(n),zt(e.inputValue).then(r=>{n.value=e.input==="number"?parseFloat(r)||0:`${r}`,oe(n),n.focus(),t.hideLoading()}).catch(r=>{lt(`Error in inputValue promise: ${r}`),n.value="",oe(n),n.focus(),t.hideLoading()})},cu={select:(t,e,n)=>{const r=ot(t,g.select),o=(i,l,a)=>{const c=document.createElement("option");c.value=a,ae(c,l),c.selected=Go(a,n.inputValue),i.appendChild(c)};e.forEach(i=>{const l=i[0],a=i[1];if(Array.isArray(a)){const c=document.createElement("optgroup");c.label=l,c.disabled=!1,r.appendChild(c),a.forEach(d=>o(c,d[1],d[0]))}else o(r,a,l)}),r.focus()},radio:(t,e,n)=>{const r=ot(t,g.radio);e.forEach(i=>{const l=i[0],a=i[1],c=document.createElement("input"),d=document.createElement("label");c.type="radio",c.name=g.radio,c.value=l,Go(l,n.inputValue)&&(c.checked=!0);const f=document.createElement("span");ae(f,a),f.className=g.label,d.appendChild(c),d.appendChild(f),r.appendChild(d)});const o=r.querySelectorAll("input");o.length&&o[0].focus()}},cr=t=>{const e=[];return typeof Map<"u"&&t instanceof Map?t.forEach((n,r)=>{let o=n;typeof o=="object"&&(o=cr(o)),e.push([r,o])}):Object.keys(t).forEach(n=>{let r=t[n];typeof r=="object"&&(r=cr(r)),e.push([n,r])}),e},Go=(t,e)=>e&&e.toString()===t.toString();function qo(){const t=H.innerParams.get(this);if(!t)return;const e=H.domCache.get(this);le(e.loader),Sn()?t.icon&&oe(Gt()):uu(e),Ve([e.popup,e.actions],g.loading),e.popup.removeAttribute("aria-busy"),e.popup.removeAttribute("data-loading"),e.confirmButton.disabled=!1,e.denyButton.disabled=!1,e.cancelButton.disabled=!1}const uu=t=>{const e=t.popup.getElementsByClassName(t.loader.getAttribute("data-button-to-replace"));e.length?oe(e[0],"inline-block"):Vl()&&le(t.actions)};function du(t){const e=H.innerParams.get(t||this),n=H.domCache.get(t||this);return n?or(n.popup,e.input):null}const Jt={swalPromiseResolve:new WeakMap,swalPromiseReject:new WeakMap},fu=()=>Ie(J()),Yo=()=>Re()&&Re().click(),mu=()=>rt()&&rt().click(),pu=()=>ct()&&ct().click(),Xo=t=>{t.keydownTarget&&t.keydownHandlerAdded&&(t.keydownTarget.removeEventListener("keydown",t.keydownHandler,{capture:t.keydownListenerCapture}),t.keydownHandlerAdded=!1)},hu=(t,e,n,r)=>{Xo(e),n.toast||(e.keydownHandler=o=>yu(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)},ur=(t,e,n)=>{const r=nr();if(r.length)return e=e+n,e===r.length?e=0:e===-1&&(e=r.length-1),r[e].focus();J().focus()},Zo=["ArrowRight","ArrowDown"],gu=["ArrowLeft","ArrowUp"],yu=(t,e,n)=>{const r=H.innerParams.get(t);r&&(e.isComposing||e.keyCode===229||(r.stopKeydownPropagation&&e.stopPropagation(),e.key==="Enter"?bu(t,e,r):e.key==="Tab"?vu(e,r):[...Zo,...gu].includes(e.key)?wu(e.key):e.key==="Escape"&&ku(e,r,n)))},bu=(t,e,n)=>{if(vn(n.allowEnterKey)&&e.target&&t.getInput()&&e.target.outerHTML===t.getInput().outerHTML){if(["textarea","file"].includes(n.input))return;Yo(),e.preventDefault()}},vu=(t,e)=>{const n=t.target,r=nr();let o=-1;for(let i=0;i<r.length;i++)if(n===r[i]){o=i;break}t.shiftKey?ur(e,o,-1):ur(e,o,1),t.stopPropagation(),t.preventDefault()},wu=t=>{const e=Re(),n=rt(),r=ct();if(![e,n,r].includes(document.activeElement))return;const o=Zo.includes(t)?"nextElementSibling":"previousElementSibling";let i=document.activeElement;for(let l=0;l<qt().children.length;l++){if(i=i[o],!i)return;if(Ie(i)&&i instanceof HTMLButtonElement)break}i instanceof HTMLButtonElement&&i.focus()},ku=(t,e,n)=>{vn(e.allowEscapeKey)&&(t.preventDefault(),n(wt.esc))};function Jo(t,e,n,r){Sn()?Qo(t,r):(zl(n).then(()=>Qo(t,r)),Xo(V)),/^((?!chrome|android).)*safari/i.test(navigator.userAgent)?(e.setAttribute("style","display:none !important"),e.removeAttribute("class"),e.innerHTML=""):e.remove(),rr()&&(Fc(),Xc(),jo()),_u()}function _u(){Ve([document.documentElement,document.body],[g.shown,g["height-auto"],g["no-backdrop"],g["toast-shown"]])}function En(t){t=Iu(t);const e=Jt.swalPromiseResolve.get(this),n=Cu(this);this.isAwaitingPromise()?t.isDismissed||(Qt(this),e(t)):n&&e(t)}function Su(){return!!H.awaitingPromise.get(this)}const Cu=t=>{const e=J();if(!e)return!1;const n=H.innerParams.get(t);if(!n||Ye(e,n.hideClass.popup))return!1;Ve(e,n.showClass.popup),W(e,n.hideClass.popup);const r=se();return Ve(r,n.showClass.backdrop),W(r,n.hideClass.backdrop),Tu(t,e,n),!0};function Eu(t){const e=Jt.swalPromiseReject.get(this);Qt(this),e&&e(t)}const Qt=t=>{t.isAwaitingPromise()&&(H.awaitingPromise.delete(t),H.innerParams.get(t)||t._destroy())},Iu=t=>typeof t>"u"?{isConfirmed:!1,isDenied:!1,isDismissed:!0}:Object.assign({isConfirmed:!1,isDenied:!1,isDismissed:!1},t),Tu=(t,e,n)=>{const r=se(),o=Xt&&No(e);typeof n.willClose=="function"&&n.willClose(e),o?Au(t,e,r,n.returnFocus,n.didClose):Jo(t,r,n.returnFocus,n.didClose)},Au=(t,e,n,r,o)=>{V.swalCloseEventFinishedCallback=Jo.bind(null,t,n,r,o),e.addEventListener(Xt,function(i){i.target===e&&(V.swalCloseEventFinishedCallback(),delete V.swalCloseEventFinishedCallback)})},Qo=(t,e)=>{setTimeout(()=>{typeof e=="function"&&e.bind(t.params)(),t._destroy()})};function ei(t,e,n){const r=H.domCache.get(t);e.forEach(o=>{r[o].disabled=n})}function ti(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 Pu(){ei(this,["confirmButton","denyButton","cancelButton"],!1)}function Lu(){ei(this,["confirmButton","denyButton","cancelButton"],!0)}function xu(){return ti(this.getInput(),!1)}function Ou(){return ti(this.getInput(),!0)}function $u(t){const e=H.domCache.get(this),n=H.innerParams.get(this);ae(e.validationMessage,t),e.validationMessage.className=g["validation-message"],n.customClass&&n.customClass.validationMessage&&W(e.validationMessage,n.customClass.validationMessage),oe(e.validationMessage);const r=this.getInput();r&&(r.setAttribute("aria-invalid",!0),r.setAttribute("aria-describedby",g["validation-message"]),xo(r),W(r,g.inputerror))}function Bu(){const t=H.domCache.get(this);t.validationMessage&&le(t.validationMessage);const e=this.getInput();e&&(e.removeAttribute("aria-invalid"),e.removeAttribute("aria-describedby"),Ve(e,g.inputerror))}function Nu(){return H.domCache.get(this).progressSteps}function Mu(t){const e=J(),n=H.innerParams.get(this);if(!e||Ye(e,n.hideClass.popup))return we("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=Du(t),o=Object.assign({},n,r);Ho(this,o),H.innerParams.set(this,o),Object.defineProperties(this,{params:{value:Object.assign({},this.params,t),writable:!1,enumerable:!0}})}const Du=t=>{const e={};return Object.keys(t).forEach(n=>{Eo(n)?e[n]=t[n]:we(`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 Du(){const t=H.domCache.get(this),e=H.innerParams.get(this);if(!e){ni(this);return}t.popup&&V.swalCloseEventFinishedCallback&&(V.swalCloseEventFinishedCallback(),delete V.swalCloseEventFinishedCallback),V.deferDisposalTimer&&(clearTimeout(V.deferDisposalTimer),delete V.deferDisposalTimer),typeof e.didDestroy=="function"&&e.didDestroy(),Ru(this)}const Ru=t=>{ni(t),delete t.params,delete V.keydownHandler,delete V.keydownTarget,delete V.currentInstance},ni=t=>{t.isAwaitingPromise()?(dr(H,t),H.awaitingPromise.set(t,!0)):(dr(Jt,t),dr(H,t))},dr=(t,e)=>{for(const n in t)t[n].delete(e)},ri=Object.freeze(Object.defineProperty({__proto__:null,_destroy:Du,close:En,closeModal:En,closePopup:En,closeToast:En,disableButtons:Pu,disableInput:xu,disableLoading:qo,enableButtons:Au,enableInput:Lu,getInput:uu,getProgressSteps:Bu,handleAwaitingPromise:Qt,hideLoading:qo,isAwaitingPromise:_u,rejectPromise:Cu,resetValidationMessage:$u,showValidationMessage:Ou,update:Nu},Symbol.toStringTag,{value:"Module"})),Uu=t=>{const e=H.innerParams.get(t);t.disableButtons(),e.input?oi(t,"confirm"):mr(t,!0)},Vu=t=>{const e=H.innerParams.get(t);t.disableButtons(),e.returnInputValueOnDeny?oi(t,"deny"):fr(t,!1)},Hu=(t,e)=>{t.disableButtons(),e(wt.cancel)},oi=(t,e)=>{const n=H.innerParams.get(t);if(!n.input)return lt(`The "input" parameter is needed to be set when using returnInputValueOn${Zn(e)}`);const r=nu(t,n);n.inputValidator?ju(t,r,e):t.getInput().checkValidity()?e==="deny"?fr(t,r):mr(t,r):(t.enableButtons(),t.showValidationMessage(n.validationMessage))},ju=(t,e,n)=>{const r=H.innerParams.get(t);t.disableInput(),Promise.resolve().then(()=>zt(r.inputValidator(e,r.validationMessage))).then(i=>{t.enableButtons(),t.enableInput(),i?t.showValidationMessage(i):n==="deny"?fr(t,e):mr(t,e)})},fr=(t,e)=>{const n=H.innerParams.get(t||void 0);n.showLoaderOnDeny&&kt(nt()),n.preDeny?(H.awaitingPromise.set(t||void 0,!0),Promise.resolve().then(()=>zt(n.preDeny(e,n.validationMessage))).then(o=>{o===!1?(t.hideLoading(),Qt(t)):t.closePopup({isDenied:!0,value:typeof o>"u"?e:o})}).catch(o=>si(t||void 0,o))):t.closePopup({isDenied:!0,value:e})},ii=(t,e)=>{t.closePopup({isConfirmed:!0,value:e})},si=(t,e)=>{t.rejectPromise(e)},mr=(t,e)=>{const n=H.innerParams.get(t||void 0);n.showLoaderOnConfirm&&kt(),n.preConfirm?(t.resetValidationMessage(),H.awaitingPromise.set(t||void 0,!0),Promise.resolve().then(()=>zt(n.preConfirm(e,n.validationMessage))).then(o=>{Ie(kn())||o===!1?(t.hideLoading(),Qt(t)):ii(t,typeof o>"u"?e:o)}).catch(o=>si(t||void 0,o))):ii(t,e)},Fu=(t,e,n)=>{H.innerParams.get(t).toast?zu(t,e,n):(Wu(e),Gu(e),qu(t,e,n))},zu=(t,e,n)=>{e.popup.onclick=()=>{const r=H.innerParams.get(t);r&&(Ku(r)||r.timer||r.input)||n(wt.close)}},Ku=t=>t.showConfirmButton||t.showDenyButton||t.showCancelButton||t.showCloseButton;let In=!1;const Wu=t=>{t.popup.onmousedown=()=>{t.container.onmouseup=function(e){t.container.onmouseup=void 0,e.target===t.container&&(In=!0)}}},Gu=t=>{t.container.onmousedown=()=>{t.popup.onmouseup=function(e){t.popup.onmouseup=void 0,(e.target===t.popup||t.popup.contains(e.target))&&(In=!0)}}},qu=(t,e,n)=>{e.container.onclick=r=>{const o=H.innerParams.get(t);if(In){In=!1;return}r.target===e.container&&vn(o.allowOutsideClick)&&n(wt.backdrop)}},Yu=t=>typeof t=="object"&&t.jquery,ai=t=>t instanceof Element||Yu(t),Xu=t=>{const e={};return typeof t[0]=="object"&&!ai(t[0])?Object.assign(e,t[0]):["title","html","icon"].forEach((n,r)=>{const o=t[r];typeof o=="string"||ai(o)?e[n]=o:o!==void 0&<(`Unexpected type of ${n}! Expected "string" or "Element", got ${typeof o}`)}),e};function Zu(...t){const e=this;return new e(...t)}function Ju(t){class e extends this{_main(r,o){return super._main(r,Object.assign({},t,o))}}return e}const Qu=()=>V.timeout&&V.timeout.getTimerLeft(),li=()=>{if(V.timeout)return Vl(),V.timeout.stop()},ci=()=>{if(V.timeout){const t=V.timeout.start();return ir(t),t}},ed=()=>{const t=V.timeout;return t&&(t.running?li():ci())},td=t=>{if(V.timeout){const e=V.timeout.increase(t);return ir(e,!0),e}},nd=()=>V.timeout&&V.timeout.isRunning();let ui=!1;const pr={};function rd(t="data-swal-template"){pr[t]=this,ui||(document.body.addEventListener("click",od),ui=!0)}const od=t=>{for(let e=t.target;e&&e!==document;e=e.parentNode)for(const n in pr){const r=e.getAttribute(n);if(r){pr[n].fire({template:r});return}}},id=Object.freeze(Object.defineProperty({__proto__:null,argsToParams:Xu,bindClickHandler:rd,clickCancel:mu,clickConfirm:Yo,clickDeny:fu,enableLoading:kt,fire:Zu,getActions:qt,getCancelButton:ct,getCloseButton:tr,getConfirmButton:Re,getContainer:se,getDenyButton:nt,getFocusableElements:nr,getFooter:Lo,getHtmlContainer:wn,getIcon:Gt,getImage:Ao,getInputLabel:Nl,getLoader:bt,getPopup:J,getTimerLeft:Qu,getTimerProgressBar:_n,getTitle:To,getValidationMessage:kn,increaseTimer:td,isDeprecatedParameter:er,isLoading:Dl,isTimerRunning:nd,isUpdatableParameter:Eo,isValidParameter:Co,isVisible:du,mixin:Ju,resumeTimer:ci,showLoading:kt,stopTimer:li,toggleTimer:ed},Symbol.toStringTag,{value:"Module"}));let hr;class _t{constructor(...e){if(typeof window>"u")return;hr=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);H.promise.set(this,r)}_main(e,n={}){$l(Object.assign({},n,e)),V.currentInstance&&(V.currentInstance._destroy(),rr()&&jo()),V.currentInstance=this;const r=ad(e,n);Uc(r),Object.freeze(r),V.timeout&&(V.timeout.stop(),delete V.timeout),clearTimeout(V.restoreFocusTimeout);const o=ld(this);return Ho(this,r),H.innerParams.set(this,r),sd(this,o,r)}then(e){return H.promise.get(this).then(e)}finally(e){return H.promise.get(this).finally(e)}}const sd=(t,e,n)=>new Promise((r,o)=>{const i=l=>{t.closePopup({isDismissed:!0,dismiss:l})};Jt.swalPromiseResolve.set(t,r),Jt.swalPromiseReject.set(t,o),e.confirmButton.onclick=()=>Uu(t),e.denyButton.onclick=()=>Vu(t),e.cancelButton.onclick=()=>Hu(t,i),e.closeButton.onclick=()=>i(wt.close),Fu(t,e,i),pu(t,V,n,i),tu(t,n),Xc(n),cd(V,n,i),ud(e,n),setTimeout(()=>{e.container.scrollTop=0})}),ad=(t,e)=>{const n=Pc(t),r=Object.assign({},yt,e,n,t);return r.showClass=Object.assign({},yt.showClass,r.showClass),r.hideClass=Object.assign({},yt.hideClass,r.hideClass),r},ld=t=>{const e={popup:J(),container:se(),actions:qt(),confirmButton:Re(),denyButton:nt(),cancelButton:ct(),loader:bt(),closeButton:tr(),validationMessage:kn(),progressSteps:Po()};return H.domCache.set(t,e),e},cd=(t,e,n)=>{const r=_n();le(r),e.timer&&(t.timeout=new Vc(()=>{n("timer"),delete t.timeout},e.timer),e.timerProgressBar&&(oe(r),xe(r,e,"timerProgressBar"),setTimeout(()=>{t.timeout&&t.timeout.running&&ir(e.timer)})))},ud=(t,e)=>{if(!e.toast){if(!vn(e.allowEnterKey))return fd();dd(t,e)||ur(e,-1,1)}},dd=(t,e)=>e.focusDeny&&Ie(t.denyButton)?(t.denyButton.focus(),!0):e.focusCancel&&Ie(t.cancelButton)?(t.cancelButton.focus(),!0):e.focusConfirm&&Ie(t.confirmButton)?(t.confirmButton.focus(),!0):!1,fd=()=>{document.activeElement instanceof HTMLElement&&typeof document.activeElement.blur=="function"&&document.activeElement.blur()};Object.assign(_t.prototype,ri),Object.assign(_t,id),Object.keys(ri).forEach(t=>{_t[t]=function(...e){if(hr)return hr[t](...e)}}),_t.DismissReason=wt,_t.version="11.4.8";const ft=_t;ft.default=ft;/*! @license DOMPurify 3.1.6 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.1.6/LICENSE */const{entries:di,setPrototypeOf:fi,isFrozen:md,getPrototypeOf:pd,getOwnPropertyDescriptor:hd}=Object;let{freeze:ge,seal:Oe,create:mi}=Object,{apply:gr,construct:yr}=typeof Reflect<"u"&&Reflect;ge||(ge=function(e){return e}),Oe||(Oe=function(e){return e}),gr||(gr=function(e,n,r){return e.apply(n,r)}),yr||(yr=function(e,n){return new e(...n)});const Tn=Te(Array.prototype.forEach),pi=Te(Array.prototype.pop),en=Te(Array.prototype.push),An=Te(String.prototype.toLowerCase),br=Te(String.prototype.toString),hi=Te(String.prototype.match),tn=Te(String.prototype.replace),gd=Te(String.prototype.indexOf),yd=Te(String.prototype.trim),Ue=Te(Object.prototype.hasOwnProperty),ye=Te(RegExp.prototype.test),nn=bd(TypeError);function Te(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 gr(t,e,r)}}function bd(t){return function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return yr(t,n)}}function z(t,e){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:An;fi&&fi(t,null);let r=e.length;for(;r--;){let o=e[r];if(typeof o=="string"){const i=n(o);i!==o&&(md(e)||(e[r]=i),o=i)}t[o]=!0}return t}function vd(t){for(let e=0;e<t.length;e++)Ue(t,e)||(t[e]=null);return t}function mt(t){const e=mi(null);for(const[n,r]of di(t))Ue(t,n)&&(Array.isArray(r)?e[n]=vd(r):r&&typeof r=="object"&&r.constructor===Object?e[n]=mt(r):e[n]=r);return e}function rn(t,e){for(;t!==null;){const r=hd(t,e);if(r){if(r.get)return Te(r.get);if(typeof r.value=="function")return Te(r.value)}t=pd(t)}function n(){return null}return n}const gi=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"]),vr=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"]),wr=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"]),wd=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"]),kr=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"]),kd=ge(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),yi=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","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"]),_r=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"]),vi=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"]),Pn=ge(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),_d=Oe(/\{\{[\w\W]*|[\w\W]*\}\}/gm),Sd=Oe(/<%[\w\W]*|[\w\W]*%>/gm),Cd=Oe(/\${[\w\W]*}/gm),Ed=Oe(/^data-[\-\w.\u00B7-\uFFFF]/),Id=Oe(/^aria-[\-\w]+$/),wi=Oe(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),Td=Oe(/^(?:\w+script|data):/i),Ad=Oe(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),ki=Oe(/^html$/i),Pd=Oe(/^[a-z][.\w]*(-[.\w]+)+$/i);var _i=Object.freeze({__proto__:null,MUSTACHE_EXPR:_d,ERB_EXPR:Sd,TMPLIT_EXPR:Cd,DATA_ATTR:Ed,ARIA_ATTR:Id,IS_ALLOWED_URI:wi,IS_SCRIPT_OR_DATA:Td,ATTR_WHITESPACE:Ad,DOCTYPE_NAME:ki,CUSTOM_ELEMENT:Pd});const on={element:1,attribute:2,text:3,cdataSection:4,entityReference:5,entityNode:6,progressingInstruction:7,comment:8,document:9,documentType:10,documentFragment:11,notation:12},Ld=function(){return typeof window>"u"?null:window},xd=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(l){return l},createScriptURL(l){return l}})}catch{return console.warn("TrustedTypes policy "+i+" could not be created."),null}};function Si(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Ld();const e=B=>Si(B);if(e.version="3.1.6",e.removed=[],!t||!t.document||t.document.nodeType!==on.document)return e.isSupported=!1,e;let{document:n}=t;const r=n,o=r.currentScript,{DocumentFragment:i,HTMLTemplateElement:l,Node:a,Element:c,NodeFilter:d,NamedNodeMap:f=t.NamedNodeMap||t.MozNamedAttrMap,HTMLFormElement:p,DOMParser:y,trustedTypes:k}=t,C=c.prototype,A=rn(C,"cloneNode"),L=rn(C,"remove"),w=rn(C,"nextSibling"),S=rn(C,"childNodes"),N=rn(C,"parentNode");if(typeof l=="function"){const B=n.createElement("template");B.content&&B.content.ownerDocument&&(n=B.content.ownerDocument)}let U,G="";const{implementation:ce,createNodeIterator:te,createDocumentFragment:Ae,getElementsByTagName:ne}=n,{importNode:Y}=r;let M={};e.isSupported=typeof di=="function"&&typeof N=="function"&&ce&&ce.createHTMLDocument!==void 0;const{MUSTACHE_EXPR:X,ERB_EXPR:ue,TMPLIT_EXPR:de,DATA_ATTR:je,ARIA_ATTR:Xe,IS_SCRIPT_OR_DATA:Fe,ATTR_WHITESPACE:ze,CUSTOM_ELEMENT:pt}=_i;let{IS_ALLOWED_URI:$e}=_i,u=null;const h=z({},[...gi,...vr,...wr,...kr,...yi]);let v=null;const T=z({},[...bi,..._r,...vi,...Pn]);let b=Object.seal(mi(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,_=null,E=!0,O=!0,x=!1,R=!0,F=!1,_e=!0,fe=!1,me=!1,Ze=!1,Ct=!1,On=!1,$n=!1,Ui=!0,Vi=!1;const Bf="user-content-";let Ar=!0,ln=!1,Et={},It=null;const Hi=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 ji=null;const Fi=z({},["audio","video","img","source","image","track"]);let Pr=null;const zi=z({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),Bn="http://www.w3.org/1998/Math/MathML",Nn="http://www.w3.org/2000/svg",Je="http://www.w3.org/1999/xhtml";let Tt=Je,Lr=!1,xr=null;const Nf=z({},[Bn,Nn,Je],br);let cn=null;const Mf=["application/xhtml+xml","text/html"],Df="text/html";let re=null,At=null;const Rf=n.createElement("form"),Ki=function(m){return m instanceof RegExp||m instanceof Function},Or=function(){let m=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(!(At&&At===m)){if((!m||typeof m!="object")&&(m={}),m=mt(m),cn=Mf.indexOf(m.PARSER_MEDIA_TYPE)===-1?Df:m.PARSER_MEDIA_TYPE,re=cn==="application/xhtml+xml"?br:An,u=Ue(m,"ALLOWED_TAGS")?z({},m.ALLOWED_TAGS,re):h,v=Ue(m,"ALLOWED_ATTR")?z({},m.ALLOWED_ATTR,re):T,xr=Ue(m,"ALLOWED_NAMESPACES")?z({},m.ALLOWED_NAMESPACES,br):Nf,Pr=Ue(m,"ADD_URI_SAFE_ATTR")?z(mt(zi),m.ADD_URI_SAFE_ATTR,re):zi,ji=Ue(m,"ADD_DATA_URI_TAGS")?z(mt(Fi),m.ADD_DATA_URI_TAGS,re):Fi,It=Ue(m,"FORBID_CONTENTS")?z({},m.FORBID_CONTENTS,re):Hi,P=Ue(m,"FORBID_TAGS")?z({},m.FORBID_TAGS,re):{},_=Ue(m,"FORBID_ATTR")?z({},m.FORBID_ATTR,re):{},Et=Ue(m,"USE_PROFILES")?m.USE_PROFILES:!1,E=m.ALLOW_ARIA_ATTR!==!1,O=m.ALLOW_DATA_ATTR!==!1,x=m.ALLOW_UNKNOWN_PROTOCOLS||!1,R=m.ALLOW_SELF_CLOSE_IN_ATTR!==!1,F=m.SAFE_FOR_TEMPLATES||!1,_e=m.SAFE_FOR_XML!==!1,fe=m.WHOLE_DOCUMENT||!1,Ct=m.RETURN_DOM||!1,On=m.RETURN_DOM_FRAGMENT||!1,$n=m.RETURN_TRUSTED_TYPE||!1,Ze=m.FORCE_BODY||!1,Ui=m.SANITIZE_DOM!==!1,Vi=m.SANITIZE_NAMED_PROPS||!1,Ar=m.KEEP_CONTENT!==!1,ln=m.IN_PLACE||!1,$e=m.ALLOWED_URI_REGEXP||wi,Tt=m.NAMESPACE||Je,b=m.CUSTOM_ELEMENT_HANDLING||{},m.CUSTOM_ELEMENT_HANDLING&&Ki(m.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(b.tagNameCheck=m.CUSTOM_ELEMENT_HANDLING.tagNameCheck),m.CUSTOM_ELEMENT_HANDLING&&Ki(m.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(b.attributeNameCheck=m.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),m.CUSTOM_ELEMENT_HANDLING&&typeof m.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements=="boolean"&&(b.allowCustomizedBuiltInElements=m.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),F&&(O=!1),On&&(Ct=!0),Et&&(u=z({},yi),v=[],Et.html===!0&&(z(u,gi),z(v,bi)),Et.svg===!0&&(z(u,vr),z(v,_r),z(v,Pn)),Et.svgFilters===!0&&(z(u,wr),z(v,_r),z(v,Pn)),Et.mathMl===!0&&(z(u,kr),z(v,vi),z(v,Pn))),m.ADD_TAGS&&(u===h&&(u=mt(u)),z(u,m.ADD_TAGS,re)),m.ADD_ATTR&&(v===T&&(v=mt(v)),z(v,m.ADD_ATTR,re)),m.ADD_URI_SAFE_ATTR&&z(Pr,m.ADD_URI_SAFE_ATTR,re),m.FORBID_CONTENTS&&(It===Hi&&(It=mt(It)),z(It,m.FORBID_CONTENTS,re)),Ar&&(u["#text"]=!0),fe&&z(u,["html","head","body"]),u.table&&(z(u,["tbody"]),delete P.tbody),m.TRUSTED_TYPES_POLICY){if(typeof m.TRUSTED_TYPES_POLICY.createHTML!="function")throw nn('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof m.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw nn('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');U=m.TRUSTED_TYPES_POLICY,G=U.createHTML("")}else U===void 0&&(U=xd(k,o)),U!==null&&typeof G=="string"&&(G=U.createHTML(""));ge&&ge(m),At=m}},Wi=z({},["mi","mo","mn","ms","mtext"]),Gi=z({},["foreignobject","annotation-xml"]),Uf=z({},["title","style","font","a","script"]),qi=z({},[...vr,...wr,...wd]),Yi=z({},[...kr,...kd]),Vf=function(m){let I=N(m);(!I||!I.tagName)&&(I={namespaceURI:Tt,tagName:"template"});const $=An(m.tagName),Q=An(I.tagName);return xr[m.namespaceURI]?m.namespaceURI===Nn?I.namespaceURI===Je?$==="svg":I.namespaceURI===Bn?$==="svg"&&(Q==="annotation-xml"||Wi[Q]):!!qi[$]:m.namespaceURI===Bn?I.namespaceURI===Je?$==="math":I.namespaceURI===Nn?$==="math"&&Gi[Q]:!!Yi[$]:m.namespaceURI===Je?I.namespaceURI===Nn&&!Gi[Q]||I.namespaceURI===Bn&&!Wi[Q]?!1:!Yi[$]&&(Uf[$]||!qi[$]):!!(cn==="application/xhtml+xml"&&xr[m.namespaceURI]):!1},Ke=function(m){en(e.removed,{element:m});try{N(m).removeChild(m)}catch{L(m)}},Mn=function(m,I){try{en(e.removed,{attribute:I.getAttributeNode(m),from:I})}catch{en(e.removed,{attribute:null,from:I})}if(I.removeAttribute(m),m==="is"&&!v[m])if(Ct||On)try{Ke(I)}catch{}else try{I.setAttribute(m,"")}catch{}},Xi=function(m){let I=null,$=null;if(Ze)m="<remove></remove>"+m;else{const ie=hi(m,/^[\r\n\t ]+/);$=ie&&ie[0]}cn==="application/xhtml+xml"&&Tt===Je&&(m='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+m+"</body></html>");const Q=U?U.createHTML(m):m;if(Tt===Je)try{I=new y().parseFromString(Q,cn)}catch{}if(!I||!I.documentElement){I=ce.createDocument(Tt,"template",null);try{I.documentElement.innerHTML=Lr?G:Q}catch{}}const pe=I.body||I.documentElement;return m&&$&&pe.insertBefore(n.createTextNode($),pe.childNodes[0]||null),Tt===Je?ne.call(I,fe?"html":"body")[0]:fe?I.documentElement:pe},Zi=function(m){return te.call(m.ownerDocument||m,m,d.SHOW_ELEMENT|d.SHOW_COMMENT|d.SHOW_TEXT|d.SHOW_PROCESSING_INSTRUCTION|d.SHOW_CDATA_SECTION,null)},Ji=function(m){return m instanceof p&&(typeof m.nodeName!="string"||typeof m.textContent!="string"||typeof m.removeChild!="function"||!(m.attributes instanceof f)||typeof m.removeAttribute!="function"||typeof m.setAttribute!="function"||typeof m.namespaceURI!="string"||typeof m.insertBefore!="function"||typeof m.hasChildNodes!="function")},Qi=function(m){return typeof a=="function"&&m instanceof a},Qe=function(m,I,$){M[m]&&Tn(M[m],Q=>{Q.call(e,I,$,At)})},es=function(m){let I=null;if(Qe("beforeSanitizeElements",m,null),Ji(m))return Ke(m),!0;const $=re(m.nodeName);if(Qe("uponSanitizeElement",m,{tagName:$,allowedTags:u}),m.hasChildNodes()&&!Qi(m.firstElementChild)&&ye(/<[/\w]/g,m.innerHTML)&&ye(/<[/\w]/g,m.textContent)||m.nodeType===on.progressingInstruction||_e&&m.nodeType===on.comment&&ye(/<[/\w]/g,m.data))return Ke(m),!0;if(!u[$]||P[$]){if(!P[$]&&ns($)&&(b.tagNameCheck instanceof RegExp&&ye(b.tagNameCheck,$)||b.tagNameCheck instanceof Function&&b.tagNameCheck($)))return!1;if(Ar&&!It[$]){const Q=N(m)||m.parentNode,pe=S(m)||m.childNodes;if(pe&&Q){const ie=pe.length;for(let Se=ie-1;Se>=0;--Se){const We=A(pe[Se],!0);We.__removalCount=(m.__removalCount||0)+1,Q.insertBefore(We,w(m))}}}return Ke(m),!0}return m instanceof c&&!Vf(m)||($==="noscript"||$==="noembed"||$==="noframes")&&ye(/<\/no(script|embed|frames)/i,m.innerHTML)?(Ke(m),!0):(F&&m.nodeType===on.text&&(I=m.textContent,Tn([X,ue,de],Q=>{I=tn(I,Q," ")}),m.textContent!==I&&(en(e.removed,{element:m.cloneNode()}),m.textContent=I)),Qe("afterSanitizeElements",m,null),!1)},ts=function(m,I,$){if(Ui&&(I==="id"||I==="name")&&($ in n||$ in Rf))return!1;if(!(O&&!_[I]&&ye(je,I))){if(!(E&&ye(Xe,I))){if(!v[I]||_[I]){if(!(ns(m)&&(b.tagNameCheck instanceof RegExp&&ye(b.tagNameCheck,m)||b.tagNameCheck instanceof Function&&b.tagNameCheck(m))&&(b.attributeNameCheck instanceof RegExp&&ye(b.attributeNameCheck,I)||b.attributeNameCheck instanceof Function&&b.attributeNameCheck(I))||I==="is"&&b.allowCustomizedBuiltInElements&&(b.tagNameCheck instanceof RegExp&&ye(b.tagNameCheck,$)||b.tagNameCheck instanceof Function&&b.tagNameCheck($))))return!1}else if(!Pr[I]){if(!ye($e,tn($,ze,""))){if(!((I==="src"||I==="xlink:href"||I==="href")&&m!=="script"&&gd($,"data:")===0&&ji[m])){if(!(x&&!ye(Fe,tn($,ze,"")))){if($)return!1}}}}}}return!0},ns=function(m){return m!=="annotation-xml"&&hi(m,pt)},rs=function(m){Qe("beforeSanitizeAttributes",m,null);const{attributes:I}=m;if(!I)return;const $={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:v};let Q=I.length;for(;Q--;){const pe=I[Q],{name:ie,namespaceURI:Se,value:We}=pe,un=re(ie);let be=ie==="value"?We:yd(We);if($.attrName=un,$.attrValue=be,$.keepAttr=!0,$.forceKeepAttr=void 0,Qe("uponSanitizeAttribute",m,$),be=$.attrValue,_e&&ye(/((--!?|])>)|<\/(style|title)/i,be)){Mn(ie,m);continue}if($.forceKeepAttr||(Mn(ie,m),!$.keepAttr))continue;if(!R&&ye(/\/>/i,be)){Mn(ie,m);continue}F&&Tn([X,ue,de],is=>{be=tn(be,is," ")});const os=re(m.nodeName);if(ts(os,un,be)){if(Vi&&(un==="id"||un==="name")&&(Mn(ie,m),be=Bf+be),U&&typeof k=="object"&&typeof k.getAttributeType=="function"&&!Se)switch(k.getAttributeType(os,un)){case"TrustedHTML":{be=U.createHTML(be);break}case"TrustedScriptURL":{be=U.createScriptURL(be);break}}try{Se?m.setAttributeNS(Se,ie,be):m.setAttribute(ie,be),Ji(m)?Ke(m):pi(e.removed)}catch{}}}Qe("afterSanitizeAttributes",m,null)},Hf=function B(m){let I=null;const $=Zi(m);for(Qe("beforeSanitizeShadowDOM",m,null);I=$.nextNode();)Qe("uponSanitizeShadowNode",I,null),!es(I)&&(I.content instanceof i&&B(I.content),rs(I));Qe("afterSanitizeShadowDOM",m,null)};return e.sanitize=function(B){let m=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},I=null,$=null,Q=null,pe=null;if(Lr=!B,Lr&&(B="<!-->"),typeof B!="string"&&!Qi(B))if(typeof B.toString=="function"){if(B=B.toString(),typeof B!="string")throw nn("dirty is not a string, aborting")}else throw nn("toString is not a function");if(!e.isSupported)return B;if(me||Or(m),e.removed=[],typeof B=="string"&&(ln=!1),ln){if(B.nodeName){const We=re(B.nodeName);if(!u[We]||P[We])throw nn("root node is forbidden and cannot be sanitized in-place")}}else if(B instanceof a)I=Xi("<!---->"),$=I.ownerDocument.importNode(B,!0),$.nodeType===on.element&&$.nodeName==="BODY"||$.nodeName==="HTML"?I=$:I.appendChild($);else{if(!Ct&&!F&&!fe&&B.indexOf("<")===-1)return U&&$n?U.createHTML(B):B;if(I=Xi(B),!I)return Ct?null:$n?G:""}I&&Ze&&Ke(I.firstChild);const ie=Zi(ln?B:I);for(;Q=ie.nextNode();)es(Q)||(Q.content instanceof i&&Hf(Q.content),rs(Q));if(ln)return B;if(Ct){if(On)for(pe=Ae.call(I.ownerDocument);I.firstChild;)pe.appendChild(I.firstChild);else pe=I;return(v.shadowroot||v.shadowrootmode)&&(pe=Y.call(r,pe,!0)),pe}let Se=fe?I.outerHTML:I.innerHTML;return fe&&u["!doctype"]&&I.ownerDocument&&I.ownerDocument.doctype&&I.ownerDocument.doctype.name&&ye(ki,I.ownerDocument.doctype.name)&&(Se="<!DOCTYPE "+I.ownerDocument.doctype.name+`>
|
|
405
|
-
`+Se),F&&Tn([X,ue,de],We=>{Se=tn(Se,We," ")}),U&&$n?U.createHTML(Se):Se},e.setConfig=function(){let B=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};Or(B),me=!0},e.clearConfig=function(){At=null,me=!1},e.isValidAttribute=function(B,m,I){At||Or({});const $=re(B),Q=re(m);return ts($,Q,I)},e.addHook=function(B,m){typeof m=="function"&&(M[B]=M[B]||[],en(M[B],m))},e.removeHook=function(B){if(M[B])return pi(M[B])},e.removeHooks=function(B){M[B]&&(M[B]=[])},e.removeAllHooks=function(){M={}},e}var Ci=Si();class Ei{get IsVisible(){return ft.isVisible()}async CreateConfirmAsync(e){return new Promise(n=>{ft.fire({showCancelButton:!0,allowEscapeKey:!1,allowOutsideClick:!1,icon:"question",title:e.title,html:Ci.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 Ii=()=>new Ei,Od=()=>new Ei;function $d(t){return t instanceof Uint8Array||t!=null&&typeof t=="object"&&t.constructor.name==="Uint8Array"}function Ti(t,...e){if(!$d(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 Ai(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 Bd(t,e){Ti(t);const n=e.outputLen;if(t.length<n)throw new Error(`digestInto() expects output buffer of length at least ${n}`)}/*! noble-hashes - MIT License (c) 2022 Paul Miller (paulmillr.com) */const Sr=t=>new DataView(t.buffer,t.byteOffset,t.byteLength),He=(t,e)=>t<<32-e|t>>>e;new Uint8Array(new Uint32Array([287454020]).buffer)[0];function Nd(t){if(typeof t!="string")throw new Error(`utf8ToBytes expected string, got ${typeof t}`);return new Uint8Array(new TextEncoder().encode(t))}function Pi(t){return typeof t=="string"&&(t=Nd(t)),Ti(t),t}class Md{clone(){return this._cloneInto()}}function Dd(t){const e=r=>t().update(Pi(r)).digest(),n=t();return e.outputLen=n.outputLen,e.blockLen=n.blockLen,e.create=()=>t(),e}function Rd(t,e,n,r){if(typeof t.setBigUint64=="function")return t.setBigUint64(e,n,r);const o=BigInt(32),i=BigInt(4294967295),l=Number(n>>o&i),a=Number(n&i),c=r?4:0,d=r?0:4;t.setUint32(e+c,l,r),t.setUint32(e+d,a,r)}const Ud=(t,e,n)=>t&e^~t&n,Vd=(t,e,n)=>t&e^t&n^e&n;class Hd extends Md{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=Sr(this.buffer)}update(e){Ai(this);const{view:n,buffer:r,blockLen:o}=this;e=Pi(e);const i=e.length;for(let l=0;l<i;){const a=Math.min(o-this.pos,i-l);if(a===o){const c=Sr(e);for(;o<=i-l;l+=o)this.process(c,l);continue}r.set(e.subarray(l,l+a),this.pos),this.pos+=a,l+=a,this.pos===o&&(this.process(n,0),this.pos=0)}return this.length+=e.length,this.roundClean(),this}digestInto(e){Ai(this),Bd(e,this),this.finished=!0;const{buffer:n,view:r,blockLen:o,isLE:i}=this;let{pos:l}=this;n[l++]=128,this.buffer.subarray(l).fill(0),this.padOffset>o-l&&(this.process(r,0),l=0);for(let p=l;p<o;p++)n[p]=0;Rd(r,o-8,BigInt(this.length*8),i),this.process(r,0);const a=Sr(e),c=this.outputLen;if(c%4)throw new Error("_sha2: outputLen should be aligned to 32bit");const d=c/4,f=this.get();if(d>f.length)throw new Error("_sha2: outputLen bigger than state");for(let p=0;p<d;p++)a.setUint32(4*p,f[p],i)}digest(){const{buffer:e,outputLen:n}=this;this.digestInto(e);const r=e.slice(0,n);return this.destroy(),r}_cloneInto(e){e||(e=new this.constructor),e.set(...this.get());const{blockLen:n,buffer:r,length:o,finished:i,destroyed:l,pos:a}=this;return e.length=o,e.pos=a,e.finished=i,e.destroyed=l,o%n&&e.buffer.set(r),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]),ot=new Uint32Array([1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225]),it=new Uint32Array(64);class Fd extends Hd{constructor(){super(64,32,8,!1),this.A=ot[0]|0,this.B=ot[1]|0,this.C=ot[2]|0,this.D=ot[3]|0,this.E=ot[4]|0,this.F=ot[5]|0,this.G=ot[6]|0,this.H=ot[7]|0}get(){const{A:e,B:n,C:r,D:o,E:i,F:l,G:a,H:c}=this;return[e,n,r,o,i,l,a,c]}set(e,n,r,o,i,l,a,c){this.A=e|0,this.B=n|0,this.C=r|0,this.D=o|0,this.E=i|0,this.F=l|0,this.G=a|0,this.H=c|0}process(e,n){for(let p=0;p<16;p++,n+=4)it[p]=e.getUint32(n,!1);for(let p=16;p<64;p++){const y=it[p-15],k=it[p-2],C=He(y,7)^He(y,18)^y>>>3,A=He(k,17)^He(k,19)^k>>>10;it[p]=A+it[p-7]+C+it[p-16]|0}let{A:r,B:o,C:i,D:l,E:a,F:c,G:d,H:f}=this;for(let p=0;p<64;p++){const y=He(a,6)^He(a,11)^He(a,25),k=f+y+Ud(a,c,d)+jd[p]+it[p]|0,A=(He(r,2)^He(r,13)^He(r,22))+Vd(r,o,i)|0;f=d,d=c,c=a,a=l+k|0,l=i,i=o,o=r,r=k+A|0}r=r+this.A|0,o=o+this.B|0,i=i+this.C|0,l=l+this.D|0,a=a+this.E|0,c=c+this.F|0,d=d+this.G|0,f=f+this.H|0,this.set(r,o,i,l,a,c,d,f)}roundClean(){it.fill(0)}destroy(){this.set(0,0,0,0,0,0,0,0),this.buffer.fill(0)}}const zd=Dd(()=>new Fd);class sn extends Error{}sn.prototype.name="InvalidTokenError";function Kd(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 Wd(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 Kd(e)}catch{return atob(e)}}function Cr(t,e){if(typeof t!="string")throw new sn("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 sn(`Invalid token specified: missing part #${n+1}`);let o;try{o=Wd(r)}catch(i){throw new sn(`Invalid token specified: invalid base64 for part #${n+1} (${i.message})`)}try{return JSON.parse(o)}catch(i){throw new sn(`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 Li(t){if(!(this instanceof Li))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 l=document.getElementsByTagName("script"),a=0;a<l.length;a++)(l[a].src.indexOf("keycloak.js")!==-1||l[a].src.indexOf("keycloak.min.js")!==-1)&&l[a].src.indexOf("version=")!==-1&&(e.iframeVersion=l[a].src.substring(l[a].src.indexOf("version=")+8).split("&")[0]);var c=!0,d=$e(console.info),f=$e(console.warn);e.init=function(u){if(e.didInitialize)throw new Error("A 'Keycloak' instance can only be initialized once.");e.didInitialize=!0,e.authenticated=!1,o=pt();var h=["default","cordova","cordova-native"];if(u&&h.indexOf(u.adapter)>-1?n=Xe(u.adapter):u&&typeof u.adapter=="object"?n=u.adapter:window.Cordova||window.cordova?n=Xe("cordova"):n=Xe(),u){if(typeof u.useNonce<"u"&&(c=u.useNonce),typeof u.checkLoginIframe<"u"&&(i.enable=u.checkLoginIframe),u.checkLoginIframeInterval&&(i.interval=u.checkLoginIframeInterval),u.onLoad==="login-required"&&(e.loginRequired=!0),u.responseMode)if(u.responseMode==="query"||u.responseMode==="fragment")e.responseMode=u.responseMode;else throw"Invalid value for responseMode";if(u.flow){switch(u.flow){case"standard":e.responseType="code";break;case"implicit":e.responseType="id_token token";break;case"hybrid":e.responseType="code id_token token";break;default:throw"Invalid value for flow"}e.flow=u.flow}if(u.timeSkew!=null&&(e.timeSkew=u.timeSkew),u.redirectUri&&(e.redirectUri=u.redirectUri),u.silentCheckSsoRedirectUri&&(e.silentCheckSsoRedirectUri=u.silentCheckSsoRedirectUri),typeof u.silentCheckSsoFallback=="boolean"?e.silentCheckSsoFallback=u.silentCheckSsoFallback:e.silentCheckSsoFallback=!0,typeof u.pkceMethod<"u"){if(u.pkceMethod!=="S256"&&u.pkceMethod!==!1)throw new TypeError(`Invalid value for pkceMethod', expected 'S256' or false but got ${u.pkceMethod}.`);e.pkceMethod=u.pkceMethod}else e.pkceMethod="S256";typeof u.enableLogging=="boolean"?e.enableLogging=u.enableLogging:e.enableLogging=!1,u.logoutMethod==="POST"?e.logoutMethod="POST":e.logoutMethod="GET",typeof u.scope=="string"&&(e.scope=u.scope),typeof u.acrValues=="string"&&(e.acrValues=u.acrValues),typeof u.messageReceiveTimeout=="number"&&u.messageReceiveTimeout>0?e.messageReceiveTimeout=u.messageReceiveTimeout:e.messageReceiveTimeout=1e4}e.responseMode||(e.responseMode="fragment"),e.responseType||(e.responseType="code",e.flow="standard");var v=Y(),T=Y();T.promise.then(function(){e.onReady&&e.onReady(e.authenticated),v.setSuccess(e.authenticated)}).catch(function(O){v.setError(O)});var b=N();function P(){var O=function(F){F||(R.prompt="none"),u&&u.locale&&(R.locale=u.locale),e.login(R).then(function(){T.setSuccess()}).catch(function(_e){T.setError(_e)})},x=function(){var F=document.createElement("iframe"),_e=e.createLoginUrl({prompt:"none",redirectUri:e.silentCheckSsoRedirectUri});F.setAttribute("src",_e),F.setAttribute("sandbox","allow-storage-access-by-user-activation allow-scripts allow-same-origin"),F.setAttribute("title","keycloak-silent-check-sso"),F.style.display="none",document.body.appendChild(F);var fe=function(me){if(!(me.origin!==window.location.origin||F.contentWindow!==me.source)){var Ze=te(me.data);S(Ze,T),document.body.removeChild(F),window.removeEventListener("message",fe)}};window.addEventListener("message",fe)},R={};switch(u.onLoad){case"check-sso":i.enable?X().then(function(){de().then(function(F){F?T.setSuccess():e.silentCheckSsoRedirectUri?x():O(!1)}).catch(function(F){T.setError(F)})}):e.silentCheckSsoRedirectUri?x():O(!1);break;case"login-required":O(!0);break;default:throw"Invalid value for onLoad"}}function _(){var O=te(window.location.href);if(O&&window.history.replaceState(window.history.state,null,O.newUrl),O&&O.valid)return X().then(function(){S(O,T)}).catch(function(x){T.setError(x)});u?u.token&&u.refreshToken?(G(u.token,u.refreshToken,u.idToken),i.enable?X().then(function(){de().then(function(x){x?(e.onAuthSuccess&&e.onAuthSuccess(),T.setSuccess(),ue()):T.setSuccess()}).catch(function(x){T.setError(x)})}):e.updateToken(-1).then(function(){e.onAuthSuccess&&e.onAuthSuccess(),T.setSuccess()}).catch(function(x){e.onAuthError&&e.onAuthError(),u.onLoad?P():T.setError(x)})):u.onLoad?P():T.setSuccess():T.setSuccess()}function E(){var O=Y(),x=function(){(document.readyState==="interactive"||document.readyState==="complete")&&(document.removeEventListener("readystatechange",x),O.setSuccess())};return document.addEventListener("readystatechange",x),x(),O.promise}return b.then(function(){E().then(je).then(_).catch(function(O){v.setError(O)})}),b.catch(function(O){v.setError(O)}),v.promise},e.login=function(u){return n.login(u)};function p(u){var h=null,v=window.crypto||window.msCrypto;if(v&&v.getRandomValues&&window.Uint8Array)return h=new Uint8Array(u),v.getRandomValues(h),h;h=new Array(u);for(var T=0;T<h.length;T++)h[T]=Math.floor(256*Math.random());return h}function y(u){return k(u,"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789")}function k(u,h){for(var v=p(u),T=new Array(u),b=0;b<u;b++)T[b]=h.charCodeAt(v[b]%h.length);return String.fromCharCode.apply(null,T)}function C(u,h){if(u!=="S256")throw new TypeError(`Invalid value for 'pkceMethod', expected 'S256' but got '${u}'.`);const v=zd(h);return Gd(v).replace(/\+/g,"-").replace(/\//g,"_").replace(/\=/g,"")}function A(u){var h={id_token:{acr:u}};return JSON.stringify(h)}e.createLoginUrl=function(u){var h=ce(),v=ce(),T=n.redirectUri(u),b={state:h,nonce:v,redirectUri:encodeURIComponent(T),loginOptions:u};u&&u.prompt&&(b.prompt=u.prompt);var P;u&&u.action=="register"?P=e.endpoints.register():P=e.endpoints.authorize();var _=u&&u.scope||e.scope;_?_.indexOf("openid")===-1&&(_="openid "+_):_="openid";var E=P+"?client_id="+encodeURIComponent(e.clientId)+"&redirect_uri="+encodeURIComponent(T)+"&state="+encodeURIComponent(h)+"&response_mode="+encodeURIComponent(e.responseMode)+"&response_type="+encodeURIComponent(e.responseType)+"&scope="+encodeURIComponent(_);if(c&&(E=E+"&nonce="+encodeURIComponent(v)),u&&u.prompt&&(E+="&prompt="+encodeURIComponent(u.prompt)),u&&u.maxAge&&(E+="&max_age="+encodeURIComponent(u.maxAge)),u&&u.loginHint&&(E+="&login_hint="+encodeURIComponent(u.loginHint)),u&&u.idpHint&&(E+="&kc_idp_hint="+encodeURIComponent(u.idpHint)),u&&u.action&&u.action!="register"&&(E+="&kc_action="+encodeURIComponent(u.action)),u&&u.locale&&(E+="&ui_locales="+encodeURIComponent(u.locale)),u&&u.acr){var O=A(u.acr);E+="&claims="+encodeURIComponent(O)}if((u&&u.acrValues||e.acrValues)&&(E+="&acr_values="+encodeURIComponent(u.acrValues||e.acrValues)),e.pkceMethod){var x=y(96);b.pkceCodeVerifier=x;var R=C(e.pkceMethod,x);E+="&code_challenge="+R,E+="&code_challenge_method="+e.pkceMethod}return o.add(b),E},e.logout=function(u){return n.logout(u)},e.createLogoutUrl=function(u){if(((u==null?void 0:u.logoutMethod)??e.logoutMethod)==="POST")return e.endpoints.logout();var v=e.endpoints.logout()+"?client_id="+encodeURIComponent(e.clientId)+"&post_logout_redirect_uri="+encodeURIComponent(n.redirectUri(u,!1));return e.idToken&&(v+="&id_token_hint="+encodeURIComponent(e.idToken)),v},e.register=function(u){return n.register(u)},e.createRegisterUrl=function(u){return u||(u={}),u.action="register",e.createLoginUrl(u)},e.createAccountUrl=function(u){var h=L(),v=void 0;return typeof h<"u"&&(v=h+"/account?referrer="+encodeURIComponent(e.clientId)+"&referrer_uri="+encodeURIComponent(n.redirectUri(u))),v},e.accountManagement=function(){return n.accountManagement()},e.hasRealmRole=function(u){var h=e.realmAccess;return!!h&&h.roles.indexOf(u)>=0},e.hasResourceRole=function(u,h){if(!e.resourceAccess)return!1;var v=e.resourceAccess[h||e.clientId];return!!v&&v.roles.indexOf(u)>=0},e.loadUserProfile=function(){var u=L()+"/account",h=new XMLHttpRequest;h.open("GET",u,!0),h.setRequestHeader("Accept","application/json"),h.setRequestHeader("Authorization","bearer "+e.token);var v=Y();return h.onreadystatechange=function(){h.readyState==4&&(h.status==200?(e.profile=JSON.parse(h.responseText),v.setSuccess(e.profile)):v.setError())},h.send(),v.promise},e.loadUserInfo=function(){var u=e.endpoints.userinfo(),h=new XMLHttpRequest;h.open("GET",u,!0),h.setRequestHeader("Accept","application/json"),h.setRequestHeader("Authorization","bearer "+e.token);var v=Y();return h.onreadystatechange=function(){h.readyState==4&&(h.status==200?(e.userInfo=JSON.parse(h.responseText),v.setSuccess(e.userInfo)):v.setError())},h.send(),v.promise},e.isTokenExpired=function(u){if(!e.tokenParsed||!e.refreshToken&&e.flow!="implicit")throw"Not authenticated";if(e.timeSkew==null)return d("[KEYCLOAK] Unable to determine if token is expired as timeskew is not set"),!0;var h=e.tokenParsed.exp-Math.ceil(new Date().getTime()/1e3)+e.timeSkew;if(u){if(isNaN(u))throw"Invalid minValidity";h-=u}return h<0},e.updateToken=function(u){var h=Y();if(!e.refreshToken)return h.setError(),h.promise;u=u||5;var v=function(){var b=!1;if(u==-1?(b=!0,d("[KEYCLOAK] Refreshing token: forced refresh")):(!e.tokenParsed||e.isTokenExpired(u))&&(b=!0,d("[KEYCLOAK] Refreshing token: token expired")),!b)h.setSuccess(!1);else{var P="grant_type=refresh_token&refresh_token="+e.refreshToken,_=e.endpoints.token();if(r.push(h),r.length==1){var E=new XMLHttpRequest;E.open("POST",_,!0),E.setRequestHeader("Content-type","application/x-www-form-urlencoded"),E.withCredentials=!0,P+="&client_id="+encodeURIComponent(e.clientId);var O=new Date().getTime();E.onreadystatechange=function(){if(E.readyState==4)if(E.status==200){d("[KEYCLOAK] Token refreshed"),O=(O+new Date().getTime())/2;var x=JSON.parse(E.responseText);G(x.access_token,x.refresh_token,x.id_token,O),e.onAuthRefreshSuccess&&e.onAuthRefreshSuccess();for(var R=r.pop();R!=null;R=r.pop())R.setSuccess(!0)}else{f("[KEYCLOAK] Failed to refresh token"),E.status==400&&e.clearToken(),e.onAuthRefreshError&&e.onAuthRefreshError();for(var R=r.pop();R!=null;R=r.pop())R.setError(!0)}},E.send(P)}}};if(i.enable){var T=de();T.then(function(){v()}).catch(function(b){h.setError(b)})}else v();return h.promise},e.clearToken=function(){e.token&&(G(null,null,null),e.onAuthLogout&&e.onAuthLogout(),e.loginRequired&&e.login())};function L(){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 w(){return window.location.origin?window.location.origin:window.location.protocol+"//"+window.location.hostname+(window.location.port?":"+window.location.port:"")}function S(u,h){var v=u.code,T=u.error,b=u.prompt,P=new Date().getTime();if(u.kc_action_status&&e.onActionUpdate&&e.onActionUpdate(u.kc_action_status,u.kc_action),T){if(b!="none")if(u.error_description&&u.error_description==="authentication_expired")e.login(u.loginOptions);else{var _={error:T,error_description:u.error_description};e.onAuthError&&e.onAuthError(_),h&&h.setError(_)}else h&&h.setSuccess();return}else e.flow!="standard"&&(u.access_token||u.id_token)&&R(u.access_token,null,u.id_token,!0);if(e.flow!="implicit"&&v){var E="code="+v+"&grant_type=authorization_code",O=e.endpoints.token(),x=new XMLHttpRequest;x.open("POST",O,!0),x.setRequestHeader("Content-type","application/x-www-form-urlencoded"),E+="&client_id="+encodeURIComponent(e.clientId),E+="&redirect_uri="+u.redirectUri,u.pkceCodeVerifier&&(E+="&code_verifier="+u.pkceCodeVerifier),x.withCredentials=!0,x.onreadystatechange=function(){if(x.readyState==4)if(x.status==200){var F=JSON.parse(x.responseText);R(F.access_token,F.refresh_token,F.id_token,e.flow==="standard"),ue()}else e.onAuthError&&e.onAuthError(),h&&h.setError()},x.send(E)}function R(F,_e,fe,me){P=(P+new Date().getTime())/2,G(F,_e,fe,P),c&&e.idTokenParsed&&e.idTokenParsed.nonce!=u.storedNonce?(d("[KEYCLOAK] Invalid nonce, clearing token"),e.clearToken(),h&&h.setError()):me&&(e.onAuthSuccess&&e.onAuthSuccess(),h&&h.setSuccess())}}function N(u){var h=Y(),v;t?typeof t=="string"&&(v=t):v="keycloak.json";function T(x){x?e.endpoints={authorize:function(){return x.authorization_endpoint},token:function(){return x.token_endpoint},logout:function(){if(!x.end_session_endpoint)throw"Not supported by the OIDC server";return x.end_session_endpoint},checkSessionIframe:function(){if(!x.check_session_iframe)throw"Not supported by the OIDC server";return x.check_session_iframe},register:function(){throw'Redirection to "Register user" page not supported in standard OIDC mode'},userinfo:function(){if(!x.userinfo_endpoint)throw"Not supported by the OIDC server";return x.userinfo_endpoint}}:e.endpoints={authorize:function(){return L()+"/protocol/openid-connect/auth"},token:function(){return L()+"/protocol/openid-connect/token"},logout:function(){return L()+"/protocol/openid-connect/logout"},checkSessionIframe:function(){var R=L()+"/protocol/openid-connect/login-status-iframe.html";return e.iframeVersion&&(R=R+"?version="+e.iframeVersion),R},thirdPartyCookiesIframe:function(){var R=L()+"/protocol/openid-connect/3p-cookies/step1.html";return e.iframeVersion&&(R=R+"?version="+e.iframeVersion),R},register:function(){return L()+"/protocol/openid-connect/registrations"},userinfo:function(){return L()+"/protocol/openid-connect/userinfo"}}}if(v){var b=new XMLHttpRequest;b.open("GET",v,!0),b.setRequestHeader("Accept","application/json"),b.onreadystatechange=function(){if(b.readyState==4)if(b.status==200||U(b)){var x=JSON.parse(b.responseText);e.authServerUrl=x["auth-server-url"],e.realm=x.realm,e.clientId=x.resource,T(null),h.setSuccess()}else h.setError()},b.send()}else{if(!t.clientId)throw"clientId missing";e.clientId=t.clientId;var P=t.oidcProvider;if(P)if(typeof P=="string"){var O;P.charAt(P.length-1)=="/"?O=P+".well-known/openid-configuration":O=P+"/.well-known/openid-configuration";var b=new XMLHttpRequest;b.open("GET",O,!0),b.setRequestHeader("Accept","application/json"),b.onreadystatechange=function(){if(b.readyState==4)if(b.status==200||U(b)){var R=JSON.parse(b.responseText);T(R),h.setSuccess()}else h.setError()},b.send()}else T(P),h.setSuccess();else{if(!t.url){for(var _=document.getElementsByTagName("script"),E=0;E<_.length;E++)if(_[E].src.match(/.*keycloak\.js/)){t.url=_[E].src.substr(0,_[E].src.indexOf("/js/keycloak.js"));break}}if(!t.realm)throw"realm missing";e.authServerUrl=t.url,e.realm=t.realm,T(null),h.setSuccess()}}return h.promise}function U(u){return u.status==0&&u.responseText&&u.responseURL.startsWith("file:")}function G(u,h,v,T){if(e.tokenTimeoutHandle&&(clearTimeout(e.tokenTimeoutHandle),e.tokenTimeoutHandle=null),h?(e.refreshToken=h,e.refreshTokenParsed=Cr(h)):(delete e.refreshToken,delete e.refreshTokenParsed),v?(e.idToken=v,e.idTokenParsed=Cr(v)):(delete e.idToken,delete e.idTokenParsed),u){if(e.token=u,e.tokenParsed=Cr(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,T&&(e.timeSkew=Math.floor(T/1e3)-e.tokenParsed.iat),e.timeSkew!=null&&(d("[KEYCLOAK] Estimated time difference between browser and server is "+e.timeSkew+" seconds"),e.onTokenExpired)){var b=(e.tokenParsed.exp-new Date().getTime()/1e3+e.timeSkew)*1e3;d("[KEYCLOAK] Token expires in "+Math.round(b/1e3)+" s"),b<=0?e.onTokenExpired():e.tokenTimeoutHandle=setTimeout(e.onTokenExpired,b)}}else delete e.token,delete e.tokenParsed,delete e.subject,delete e.realmAccess,delete e.resourceAccess,e.authenticated=!1}function ce(){var u="0123456789abcdef",h=k(36,u).split("");h[14]="4",h[19]=u.substr(h[19]&3|8,1),h[8]=h[13]=h[18]=h[23]="-";var v=h.join("");return v}function te(u){var h=Ae(u);if(h){var v=o.get(h.state);return v&&(h.valid=!0,h.redirectUri=v.redirectUri,h.storedNonce=v.nonce,h.prompt=v.prompt,h.pkceCodeVerifier=v.pkceCodeVerifier,h.loginOptions=v.loginOptions),h}}function Ae(u){var h;switch(e.flow){case"standard":h=["code","state","session_state","kc_action_status","kc_action","iss"];break;case"implicit":h=["access_token","token_type","id_token","state","session_state","expires_in","kc_action_status","kc_action","iss"];break;case"hybrid":h=["access_token","token_type","id_token","code","state","session_state","expires_in","kc_action_status","kc_action","iss"];break}h.push("error"),h.push("error_description"),h.push("error_uri");var v=u.indexOf("?"),T=u.indexOf("#"),b,P;if(e.responseMode==="query"&&v!==-1?(b=u.substring(0,v),P=ne(u.substring(v+1,T!==-1?T:u.length),h),P.paramsString!==""&&(b+="?"+P.paramsString),T!==-1&&(b+=u.substring(T))):e.responseMode==="fragment"&&T!==-1&&(b=u.substring(0,T),P=ne(u.substring(T+1),h),P.paramsString!==""&&(b+="#"+P.paramsString)),P&&P.oauthParams){if(e.flow==="standard"||e.flow==="hybrid"){if((P.oauthParams.code||P.oauthParams.error)&&P.oauthParams.state)return P.oauthParams.newUrl=b,P.oauthParams}else if(e.flow==="implicit"&&(P.oauthParams.access_token||P.oauthParams.error)&&P.oauthParams.state)return P.oauthParams.newUrl=b,P.oauthParams}}function ne(u,h){for(var v=u.split("&"),T={paramsString:"",oauthParams:{}},b=0;b<v.length;b++){var P=v[b].indexOf("="),_=v[b].slice(0,P);h.indexOf(_)!==-1?T.oauthParams[_]=v[b].slice(P+1):(T.paramsString!==""&&(T.paramsString+="&"),T.paramsString+=v[b])}return T}function Y(){var u={setSuccess:function(h){u.resolve(h)},setError:function(h){u.reject(h)}};return u.promise=new Promise(function(h,v){u.resolve=h,u.reject=v}),u}function M(u,h,v){var T=null,b=new Promise(function(P,_){T=setTimeout(function(){_({error:v})},h)});return Promise.race([u,b]).finally(function(){clearTimeout(T)})}function X(){var u=Y();if(!i.enable||i.iframe)return u.setSuccess(),u.promise;var h=document.createElement("iframe");i.iframe=h,h.onload=function(){var b=e.endpoints.authorize();b.charAt(0)==="/"?i.iframeOrigin=w():i.iframeOrigin=b.substring(0,b.indexOf("/",8)),u.setSuccess()};var v=e.endpoints.checkSessionIframe();h.setAttribute("src",v),h.setAttribute("sandbox","allow-storage-access-by-user-activation allow-scripts allow-same-origin"),h.setAttribute("title","keycloak-session-iframe"),h.style.display="none",document.body.appendChild(h);var T=function(b){if(!(b.origin!==i.iframeOrigin||i.iframe.contentWindow!==b.source)&&(b.data=="unchanged"||b.data=="changed"||b.data=="error")){b.data!="unchanged"&&e.clearToken();for(var P=i.callbackList.splice(0,i.callbackList.length),_=P.length-1;_>=0;--_){var E=P[_];b.data=="error"?E.setError():E.setSuccess(b.data=="unchanged")}}};return window.addEventListener("message",T,!1),u.promise}function ue(){i.enable&&e.token&&setTimeout(function(){de().then(function(u){u&&ue()})},i.interval*1e3)}function de(){var u=Y();if(i.iframe&&i.iframeOrigin){var h=e.clientId+" "+(e.sessionId?e.sessionId:"");i.callbackList.push(u);var v=i.iframeOrigin;i.callbackList.length==1&&i.iframe.contentWindow.postMessage(h,v)}else u.setSuccess();return u.promise}function je(){var u=Y();if(i.enable||e.silentCheckSsoRedirectUri){var h=document.createElement("iframe");h.setAttribute("src",e.endpoints.thirdPartyCookiesIframe()),h.setAttribute("sandbox","allow-storage-access-by-user-activation allow-scripts allow-same-origin"),h.setAttribute("title","keycloak-3p-check-iframe"),h.style.display="none",document.body.appendChild(h);var v=function(T){h.contentWindow===T.source&&(T.data!=="supported"&&T.data!=="unsupported"||(T.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 Ru(){const t=H.domCache.get(this),e=H.innerParams.get(this);if(!e){ni(this);return}t.popup&&V.swalCloseEventFinishedCallback&&(V.swalCloseEventFinishedCallback(),delete V.swalCloseEventFinishedCallback),V.deferDisposalTimer&&(clearTimeout(V.deferDisposalTimer),delete V.deferDisposalTimer),typeof e.didDestroy=="function"&&e.didDestroy(),Uu(this)}const Uu=t=>{ni(t),delete t.params,delete V.keydownHandler,delete V.keydownTarget,delete V.currentInstance},ni=t=>{t.isAwaitingPromise()?(dr(H,t),H.awaitingPromise.set(t,!0)):(dr(Jt,t),dr(H,t))},dr=(t,e)=>{for(const n in t)t[n].delete(e)},ri=Object.freeze(Object.defineProperty({__proto__:null,_destroy:Ru,close:En,closeModal:En,closePopup:En,closeToast:En,disableButtons:Lu,disableInput:Ou,disableLoading:qo,enableButtons:Pu,enableInput:xu,getInput:du,getProgressSteps:Nu,handleAwaitingPromise:Qt,hideLoading:qo,isAwaitingPromise:Su,rejectPromise:Eu,resetValidationMessage:Bu,showValidationMessage:$u,update:Mu},Symbol.toStringTag,{value:"Module"})),Vu=t=>{const e=H.innerParams.get(t);t.disableButtons(),e.input?oi(t,"confirm"):mr(t,!0)},Hu=t=>{const e=H.innerParams.get(t);t.disableButtons(),e.returnInputValueOnDeny?oi(t,"deny"):fr(t,!1)},ju=(t,e)=>{t.disableButtons(),e(wt.cancel)},oi=(t,e)=>{const n=H.innerParams.get(t);if(!n.input)return lt(`The "input" parameter is needed to be set when using returnInputValueOn${Zn(e)}`);const r=ru(t,n);n.inputValidator?Fu(t,r,e):t.getInput().checkValidity()?e==="deny"?fr(t,r):mr(t,r):(t.enableButtons(),t.showValidationMessage(n.validationMessage))},Fu=(t,e,n)=>{const r=H.innerParams.get(t);t.disableInput(),Promise.resolve().then(()=>zt(r.inputValidator(e,r.validationMessage))).then(i=>{t.enableButtons(),t.enableInput(),i?t.showValidationMessage(i):n==="deny"?fr(t,e):mr(t,e)})},fr=(t,e)=>{const n=H.innerParams.get(t||void 0);n.showLoaderOnDeny&&kt(rt()),n.preDeny?(H.awaitingPromise.set(t||void 0,!0),Promise.resolve().then(()=>zt(n.preDeny(e,n.validationMessage))).then(o=>{o===!1?(t.hideLoading(),Qt(t)):t.closePopup({isDenied:!0,value:typeof o>"u"?e:o})}).catch(o=>si(t||void 0,o))):t.closePopup({isDenied:!0,value:e})},ii=(t,e)=>{t.closePopup({isConfirmed:!0,value:e})},si=(t,e)=>{t.rejectPromise(e)},mr=(t,e)=>{const n=H.innerParams.get(t||void 0);n.showLoaderOnConfirm&&kt(),n.preConfirm?(t.resetValidationMessage(),H.awaitingPromise.set(t||void 0,!0),Promise.resolve().then(()=>zt(n.preConfirm(e,n.validationMessage))).then(o=>{Ie(kn())||o===!1?(t.hideLoading(),Qt(t)):ii(t,typeof o>"u"?e:o)}).catch(o=>si(t||void 0,o))):ii(t,e)},zu=(t,e,n)=>{H.innerParams.get(t).toast?Ku(t,e,n):(Gu(e),qu(e),Yu(t,e,n))},Ku=(t,e,n)=>{e.popup.onclick=()=>{const r=H.innerParams.get(t);r&&(Wu(r)||r.timer||r.input)||n(wt.close)}},Wu=t=>t.showConfirmButton||t.showDenyButton||t.showCancelButton||t.showCloseButton;let In=!1;const Gu=t=>{t.popup.onmousedown=()=>{t.container.onmouseup=function(e){t.container.onmouseup=void 0,e.target===t.container&&(In=!0)}}},qu=t=>{t.container.onmousedown=()=>{t.popup.onmouseup=function(e){t.popup.onmouseup=void 0,(e.target===t.popup||t.popup.contains(e.target))&&(In=!0)}}},Yu=(t,e,n)=>{e.container.onclick=r=>{const o=H.innerParams.get(t);if(In){In=!1;return}r.target===e.container&&vn(o.allowOutsideClick)&&n(wt.backdrop)}},Xu=t=>typeof t=="object"&&t.jquery,ai=t=>t instanceof Element||Xu(t),Zu=t=>{const e={};return typeof t[0]=="object"&&!ai(t[0])?Object.assign(e,t[0]):["title","html","icon"].forEach((n,r)=>{const o=t[r];typeof o=="string"||ai(o)?e[n]=o:o!==void 0&<(`Unexpected type of ${n}! Expected "string" or "Element", got ${typeof o}`)}),e};function Ju(...t){const e=this;return new e(...t)}function Qu(t){class e extends this{_main(r,o){return super._main(r,Object.assign({},t,o))}}return e}const ed=()=>V.timeout&&V.timeout.getTimerLeft(),li=()=>{if(V.timeout)return Hl(),V.timeout.stop()},ci=()=>{if(V.timeout){const t=V.timeout.start();return ir(t),t}},td=()=>{const t=V.timeout;return t&&(t.running?li():ci())},nd=t=>{if(V.timeout){const e=V.timeout.increase(t);return ir(e,!0),e}},rd=()=>V.timeout&&V.timeout.isRunning();let ui=!1;const pr={};function od(t="data-swal-template"){pr[t]=this,ui||(document.body.addEventListener("click",id),ui=!0)}const id=t=>{for(let e=t.target;e&&e!==document;e=e.parentNode)for(const n in pr){const r=e.getAttribute(n);if(r){pr[n].fire({template:r});return}}},sd=Object.freeze(Object.defineProperty({__proto__:null,argsToParams:Zu,bindClickHandler:od,clickCancel:pu,clickConfirm:Yo,clickDeny:mu,enableLoading:kt,fire:Ju,getActions:qt,getCancelButton:ct,getCloseButton:tr,getConfirmButton:Re,getContainer:se,getDenyButton:rt,getFocusableElements:nr,getFooter:Lo,getHtmlContainer:wn,getIcon:Gt,getImage:Ao,getInputLabel:Ml,getLoader:bt,getPopup:J,getTimerLeft:ed,getTimerProgressBar:_n,getTitle:To,getValidationMessage:kn,increaseTimer:nd,isDeprecatedParameter:er,isLoading:Rl,isTimerRunning:rd,isUpdatableParameter:Eo,isValidParameter:Co,isVisible:fu,mixin:Qu,resumeTimer:ci,showLoading:kt,stopTimer:li,toggleTimer:td},Symbol.toStringTag,{value:"Module"}));let hr;class _t{constructor(...e){if(typeof window>"u")return;hr=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);H.promise.set(this,r)}_main(e,n={}){Bl(Object.assign({},n,e)),V.currentInstance&&(V.currentInstance._destroy(),rr()&&jo()),V.currentInstance=this;const r=ld(e,n);Vc(r),Object.freeze(r),V.timeout&&(V.timeout.stop(),delete V.timeout),clearTimeout(V.restoreFocusTimeout);const o=cd(this);return Ho(this,r),H.innerParams.set(this,r),ad(this,o,r)}then(e){return H.promise.get(this).then(e)}finally(e){return H.promise.get(this).finally(e)}}const ad=(t,e,n)=>new Promise((r,o)=>{const i=l=>{t.closePopup({isDismissed:!0,dismiss:l})};Jt.swalPromiseResolve.set(t,r),Jt.swalPromiseReject.set(t,o),e.confirmButton.onclick=()=>Vu(t),e.denyButton.onclick=()=>Hu(t),e.cancelButton.onclick=()=>ju(t,i),e.closeButton.onclick=()=>i(wt.close),zu(t,e,i),hu(t,V,n,i),nu(t,n),Zc(n),ud(V,n,i),dd(e,n),setTimeout(()=>{e.container.scrollTop=0})}),ld=(t,e)=>{const n=Lc(t),r=Object.assign({},yt,e,n,t);return r.showClass=Object.assign({},yt.showClass,r.showClass),r.hideClass=Object.assign({},yt.hideClass,r.hideClass),r},cd=t=>{const e={popup:J(),container:se(),actions:qt(),confirmButton:Re(),denyButton:rt(),cancelButton:ct(),loader:bt(),closeButton:tr(),validationMessage:kn(),progressSteps:Po()};return H.domCache.set(t,e),e},ud=(t,e,n)=>{const r=_n();le(r),e.timer&&(t.timeout=new Hc(()=>{n("timer"),delete t.timeout},e.timer),e.timerProgressBar&&(oe(r),xe(r,e,"timerProgressBar"),setTimeout(()=>{t.timeout&&t.timeout.running&&ir(e.timer)})))},dd=(t,e)=>{if(!e.toast){if(!vn(e.allowEnterKey))return md();fd(t,e)||ur(e,-1,1)}},fd=(t,e)=>e.focusDeny&&Ie(t.denyButton)?(t.denyButton.focus(),!0):e.focusCancel&&Ie(t.cancelButton)?(t.cancelButton.focus(),!0):e.focusConfirm&&Ie(t.confirmButton)?(t.confirmButton.focus(),!0):!1,md=()=>{document.activeElement instanceof HTMLElement&&typeof document.activeElement.blur=="function"&&document.activeElement.blur()};Object.assign(_t.prototype,ri),Object.assign(_t,sd),Object.keys(ri).forEach(t=>{_t[t]=function(...e){if(hr)return hr[t](...e)}}),_t.DismissReason=wt,_t.version="11.4.8";const ft=_t;ft.default=ft;/*! @license DOMPurify 3.1.6 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.1.6/LICENSE */const{entries:di,setPrototypeOf:fi,isFrozen:pd,getPrototypeOf:hd,getOwnPropertyDescriptor:gd}=Object;let{freeze:ge,seal:Oe,create:mi}=Object,{apply:gr,construct:yr}=typeof Reflect<"u"&&Reflect;ge||(ge=function(e){return e}),Oe||(Oe=function(e){return e}),gr||(gr=function(e,n,r){return e.apply(n,r)}),yr||(yr=function(e,n){return new e(...n)});const Tn=Te(Array.prototype.forEach),pi=Te(Array.prototype.pop),en=Te(Array.prototype.push),An=Te(String.prototype.toLowerCase),br=Te(String.prototype.toString),hi=Te(String.prototype.match),tn=Te(String.prototype.replace),yd=Te(String.prototype.indexOf),bd=Te(String.prototype.trim),Ue=Te(Object.prototype.hasOwnProperty),ye=Te(RegExp.prototype.test),nn=vd(TypeError);function Te(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 gr(t,e,r)}}function vd(t){return function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return yr(t,n)}}function z(t,e){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:An;fi&&fi(t,null);let r=e.length;for(;r--;){let o=e[r];if(typeof o=="string"){const i=n(o);i!==o&&(pd(e)||(e[r]=i),o=i)}t[o]=!0}return t}function wd(t){for(let e=0;e<t.length;e++)Ue(t,e)||(t[e]=null);return t}function mt(t){const e=mi(null);for(const[n,r]of di(t))Ue(t,n)&&(Array.isArray(r)?e[n]=wd(r):r&&typeof r=="object"&&r.constructor===Object?e[n]=mt(r):e[n]=r);return e}function rn(t,e){for(;t!==null;){const r=gd(t,e);if(r){if(r.get)return Te(r.get);if(typeof r.value=="function")return Te(r.value)}t=hd(t)}function n(){return null}return n}const gi=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"]),vr=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"]),wr=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"]),kd=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"]),kr=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"]),_d=ge(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),yi=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","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"]),_r=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"]),vi=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"]),Pn=ge(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),Sd=Oe(/\{\{[\w\W]*|[\w\W]*\}\}/gm),Cd=Oe(/<%[\w\W]*|[\w\W]*%>/gm),Ed=Oe(/\${[\w\W]*}/gm),Id=Oe(/^data-[\-\w.\u00B7-\uFFFF]/),Td=Oe(/^aria-[\-\w]+$/),wi=Oe(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),Ad=Oe(/^(?:\w+script|data):/i),Pd=Oe(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),ki=Oe(/^html$/i),Ld=Oe(/^[a-z][.\w]*(-[.\w]+)+$/i);var _i=Object.freeze({__proto__:null,MUSTACHE_EXPR:Sd,ERB_EXPR:Cd,TMPLIT_EXPR:Ed,DATA_ATTR:Id,ARIA_ATTR:Td,IS_ALLOWED_URI:wi,IS_SCRIPT_OR_DATA:Ad,ATTR_WHITESPACE:Pd,DOCTYPE_NAME:ki,CUSTOM_ELEMENT:Ld});const on={element:1,attribute:2,text:3,cdataSection:4,entityReference:5,entityNode:6,progressingInstruction:7,comment:8,document:9,documentType:10,documentFragment:11,notation:12},xd=function(){return typeof window>"u"?null:window},Od=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(l){return l},createScriptURL(l){return l}})}catch{return console.warn("TrustedTypes policy "+i+" could not be created."),null}};function Si(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:xd();const e=B=>Si(B);if(e.version="3.1.6",e.removed=[],!t||!t.document||t.document.nodeType!==on.document)return e.isSupported=!1,e;let{document:n}=t;const r=n,o=r.currentScript,{DocumentFragment:i,HTMLTemplateElement:l,Node:a,Element:c,NodeFilter:d,NamedNodeMap:f=t.NamedNodeMap||t.MozNamedAttrMap,HTMLFormElement:p,DOMParser:y,trustedTypes:k}=t,C=c.prototype,A=rn(C,"cloneNode"),L=rn(C,"remove"),w=rn(C,"nextSibling"),S=rn(C,"childNodes"),N=rn(C,"parentNode");if(typeof l=="function"){const B=n.createElement("template");B.content&&B.content.ownerDocument&&(n=B.content.ownerDocument)}let U,G="";const{implementation:ce,createNodeIterator:te,createDocumentFragment:Ae,getElementsByTagName:ne}=n,{importNode:Y}=r;let D={};e.isSupported=typeof di=="function"&&typeof N=="function"&&ce&&ce.createHTMLDocument!==void 0;const{MUSTACHE_EXPR:X,ERB_EXPR:ue,TMPLIT_EXPR:de,DATA_ATTR:je,ARIA_ATTR:Xe,IS_SCRIPT_OR_DATA:Fe,ATTR_WHITESPACE:ze,CUSTOM_ELEMENT:pt}=_i;let{IS_ALLOWED_URI:$e}=_i,u=null;const h=z({},[...gi,...vr,...wr,...kr,...yi]);let v=null;const T=z({},[...bi,..._r,...vi,...Pn]);let b=Object.seal(mi(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,_=null,E=!0,O=!0,x=!1,R=!0,F=!1,_e=!0,fe=!1,me=!1,Ze=!1,Ct=!1,On=!1,$n=!1,Ui=!0,Vi=!1;const Nf="user-content-";let Ar=!0,ln=!1,Et={},It=null;const Hi=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 ji=null;const Fi=z({},["audio","video","img","source","image","track"]);let Pr=null;const zi=z({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),Bn="http://www.w3.org/1998/Math/MathML",Nn="http://www.w3.org/2000/svg",Je="http://www.w3.org/1999/xhtml";let Tt=Je,Lr=!1,xr=null;const Mf=z({},[Bn,Nn,Je],br);let cn=null;const Df=["application/xhtml+xml","text/html"],Rf="text/html";let re=null,At=null;const Uf=n.createElement("form"),Ki=function(m){return m instanceof RegExp||m instanceof Function},Or=function(){let m=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(!(At&&At===m)){if((!m||typeof m!="object")&&(m={}),m=mt(m),cn=Df.indexOf(m.PARSER_MEDIA_TYPE)===-1?Rf:m.PARSER_MEDIA_TYPE,re=cn==="application/xhtml+xml"?br:An,u=Ue(m,"ALLOWED_TAGS")?z({},m.ALLOWED_TAGS,re):h,v=Ue(m,"ALLOWED_ATTR")?z({},m.ALLOWED_ATTR,re):T,xr=Ue(m,"ALLOWED_NAMESPACES")?z({},m.ALLOWED_NAMESPACES,br):Mf,Pr=Ue(m,"ADD_URI_SAFE_ATTR")?z(mt(zi),m.ADD_URI_SAFE_ATTR,re):zi,ji=Ue(m,"ADD_DATA_URI_TAGS")?z(mt(Fi),m.ADD_DATA_URI_TAGS,re):Fi,It=Ue(m,"FORBID_CONTENTS")?z({},m.FORBID_CONTENTS,re):Hi,P=Ue(m,"FORBID_TAGS")?z({},m.FORBID_TAGS,re):{},_=Ue(m,"FORBID_ATTR")?z({},m.FORBID_ATTR,re):{},Et=Ue(m,"USE_PROFILES")?m.USE_PROFILES:!1,E=m.ALLOW_ARIA_ATTR!==!1,O=m.ALLOW_DATA_ATTR!==!1,x=m.ALLOW_UNKNOWN_PROTOCOLS||!1,R=m.ALLOW_SELF_CLOSE_IN_ATTR!==!1,F=m.SAFE_FOR_TEMPLATES||!1,_e=m.SAFE_FOR_XML!==!1,fe=m.WHOLE_DOCUMENT||!1,Ct=m.RETURN_DOM||!1,On=m.RETURN_DOM_FRAGMENT||!1,$n=m.RETURN_TRUSTED_TYPE||!1,Ze=m.FORCE_BODY||!1,Ui=m.SANITIZE_DOM!==!1,Vi=m.SANITIZE_NAMED_PROPS||!1,Ar=m.KEEP_CONTENT!==!1,ln=m.IN_PLACE||!1,$e=m.ALLOWED_URI_REGEXP||wi,Tt=m.NAMESPACE||Je,b=m.CUSTOM_ELEMENT_HANDLING||{},m.CUSTOM_ELEMENT_HANDLING&&Ki(m.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(b.tagNameCheck=m.CUSTOM_ELEMENT_HANDLING.tagNameCheck),m.CUSTOM_ELEMENT_HANDLING&&Ki(m.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(b.attributeNameCheck=m.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),m.CUSTOM_ELEMENT_HANDLING&&typeof m.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements=="boolean"&&(b.allowCustomizedBuiltInElements=m.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),F&&(O=!1),On&&(Ct=!0),Et&&(u=z({},yi),v=[],Et.html===!0&&(z(u,gi),z(v,bi)),Et.svg===!0&&(z(u,vr),z(v,_r),z(v,Pn)),Et.svgFilters===!0&&(z(u,wr),z(v,_r),z(v,Pn)),Et.mathMl===!0&&(z(u,kr),z(v,vi),z(v,Pn))),m.ADD_TAGS&&(u===h&&(u=mt(u)),z(u,m.ADD_TAGS,re)),m.ADD_ATTR&&(v===T&&(v=mt(v)),z(v,m.ADD_ATTR,re)),m.ADD_URI_SAFE_ATTR&&z(Pr,m.ADD_URI_SAFE_ATTR,re),m.FORBID_CONTENTS&&(It===Hi&&(It=mt(It)),z(It,m.FORBID_CONTENTS,re)),Ar&&(u["#text"]=!0),fe&&z(u,["html","head","body"]),u.table&&(z(u,["tbody"]),delete P.tbody),m.TRUSTED_TYPES_POLICY){if(typeof m.TRUSTED_TYPES_POLICY.createHTML!="function")throw nn('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof m.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw nn('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');U=m.TRUSTED_TYPES_POLICY,G=U.createHTML("")}else U===void 0&&(U=Od(k,o)),U!==null&&typeof G=="string"&&(G=U.createHTML(""));ge&&ge(m),At=m}},Wi=z({},["mi","mo","mn","ms","mtext"]),Gi=z({},["foreignobject","annotation-xml"]),Vf=z({},["title","style","font","a","script"]),qi=z({},[...vr,...wr,...kd]),Yi=z({},[...kr,..._d]),Hf=function(m){let I=N(m);(!I||!I.tagName)&&(I={namespaceURI:Tt,tagName:"template"});const $=An(m.tagName),Q=An(I.tagName);return xr[m.namespaceURI]?m.namespaceURI===Nn?I.namespaceURI===Je?$==="svg":I.namespaceURI===Bn?$==="svg"&&(Q==="annotation-xml"||Wi[Q]):!!qi[$]:m.namespaceURI===Bn?I.namespaceURI===Je?$==="math":I.namespaceURI===Nn?$==="math"&&Gi[Q]:!!Yi[$]:m.namespaceURI===Je?I.namespaceURI===Nn&&!Gi[Q]||I.namespaceURI===Bn&&!Wi[Q]?!1:!Yi[$]&&(Vf[$]||!qi[$]):!!(cn==="application/xhtml+xml"&&xr[m.namespaceURI]):!1},Ke=function(m){en(e.removed,{element:m});try{N(m).removeChild(m)}catch{L(m)}},Mn=function(m,I){try{en(e.removed,{attribute:I.getAttributeNode(m),from:I})}catch{en(e.removed,{attribute:null,from:I})}if(I.removeAttribute(m),m==="is"&&!v[m])if(Ct||On)try{Ke(I)}catch{}else try{I.setAttribute(m,"")}catch{}},Xi=function(m){let I=null,$=null;if(Ze)m="<remove></remove>"+m;else{const ie=hi(m,/^[\r\n\t ]+/);$=ie&&ie[0]}cn==="application/xhtml+xml"&&Tt===Je&&(m='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+m+"</body></html>");const Q=U?U.createHTML(m):m;if(Tt===Je)try{I=new y().parseFromString(Q,cn)}catch{}if(!I||!I.documentElement){I=ce.createDocument(Tt,"template",null);try{I.documentElement.innerHTML=Lr?G:Q}catch{}}const pe=I.body||I.documentElement;return m&&$&&pe.insertBefore(n.createTextNode($),pe.childNodes[0]||null),Tt===Je?ne.call(I,fe?"html":"body")[0]:fe?I.documentElement:pe},Zi=function(m){return te.call(m.ownerDocument||m,m,d.SHOW_ELEMENT|d.SHOW_COMMENT|d.SHOW_TEXT|d.SHOW_PROCESSING_INSTRUCTION|d.SHOW_CDATA_SECTION,null)},Ji=function(m){return m instanceof p&&(typeof m.nodeName!="string"||typeof m.textContent!="string"||typeof m.removeChild!="function"||!(m.attributes instanceof f)||typeof m.removeAttribute!="function"||typeof m.setAttribute!="function"||typeof m.namespaceURI!="string"||typeof m.insertBefore!="function"||typeof m.hasChildNodes!="function")},Qi=function(m){return typeof a=="function"&&m instanceof a},Qe=function(m,I,$){D[m]&&Tn(D[m],Q=>{Q.call(e,I,$,At)})},es=function(m){let I=null;if(Qe("beforeSanitizeElements",m,null),Ji(m))return Ke(m),!0;const $=re(m.nodeName);if(Qe("uponSanitizeElement",m,{tagName:$,allowedTags:u}),m.hasChildNodes()&&!Qi(m.firstElementChild)&&ye(/<[/\w]/g,m.innerHTML)&&ye(/<[/\w]/g,m.textContent)||m.nodeType===on.progressingInstruction||_e&&m.nodeType===on.comment&&ye(/<[/\w]/g,m.data))return Ke(m),!0;if(!u[$]||P[$]){if(!P[$]&&ns($)&&(b.tagNameCheck instanceof RegExp&&ye(b.tagNameCheck,$)||b.tagNameCheck instanceof Function&&b.tagNameCheck($)))return!1;if(Ar&&!It[$]){const Q=N(m)||m.parentNode,pe=S(m)||m.childNodes;if(pe&&Q){const ie=pe.length;for(let Se=ie-1;Se>=0;--Se){const We=A(pe[Se],!0);We.__removalCount=(m.__removalCount||0)+1,Q.insertBefore(We,w(m))}}}return Ke(m),!0}return m instanceof c&&!Hf(m)||($==="noscript"||$==="noembed"||$==="noframes")&&ye(/<\/no(script|embed|frames)/i,m.innerHTML)?(Ke(m),!0):(F&&m.nodeType===on.text&&(I=m.textContent,Tn([X,ue,de],Q=>{I=tn(I,Q," ")}),m.textContent!==I&&(en(e.removed,{element:m.cloneNode()}),m.textContent=I)),Qe("afterSanitizeElements",m,null),!1)},ts=function(m,I,$){if(Ui&&(I==="id"||I==="name")&&($ in n||$ in Uf))return!1;if(!(O&&!_[I]&&ye(je,I))){if(!(E&&ye(Xe,I))){if(!v[I]||_[I]){if(!(ns(m)&&(b.tagNameCheck instanceof RegExp&&ye(b.tagNameCheck,m)||b.tagNameCheck instanceof Function&&b.tagNameCheck(m))&&(b.attributeNameCheck instanceof RegExp&&ye(b.attributeNameCheck,I)||b.attributeNameCheck instanceof Function&&b.attributeNameCheck(I))||I==="is"&&b.allowCustomizedBuiltInElements&&(b.tagNameCheck instanceof RegExp&&ye(b.tagNameCheck,$)||b.tagNameCheck instanceof Function&&b.tagNameCheck($))))return!1}else if(!Pr[I]){if(!ye($e,tn($,ze,""))){if(!((I==="src"||I==="xlink:href"||I==="href")&&m!=="script"&&yd($,"data:")===0&&ji[m])){if(!(x&&!ye(Fe,tn($,ze,"")))){if($)return!1}}}}}}return!0},ns=function(m){return m!=="annotation-xml"&&hi(m,pt)},rs=function(m){Qe("beforeSanitizeAttributes",m,null);const{attributes:I}=m;if(!I)return;const $={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:v};let Q=I.length;for(;Q--;){const pe=I[Q],{name:ie,namespaceURI:Se,value:We}=pe,un=re(ie);let be=ie==="value"?We:bd(We);if($.attrName=un,$.attrValue=be,$.keepAttr=!0,$.forceKeepAttr=void 0,Qe("uponSanitizeAttribute",m,$),be=$.attrValue,_e&&ye(/((--!?|])>)|<\/(style|title)/i,be)){Mn(ie,m);continue}if($.forceKeepAttr||(Mn(ie,m),!$.keepAttr))continue;if(!R&&ye(/\/>/i,be)){Mn(ie,m);continue}F&&Tn([X,ue,de],is=>{be=tn(be,is," ")});const os=re(m.nodeName);if(ts(os,un,be)){if(Vi&&(un==="id"||un==="name")&&(Mn(ie,m),be=Nf+be),U&&typeof k=="object"&&typeof k.getAttributeType=="function"&&!Se)switch(k.getAttributeType(os,un)){case"TrustedHTML":{be=U.createHTML(be);break}case"TrustedScriptURL":{be=U.createScriptURL(be);break}}try{Se?m.setAttributeNS(Se,ie,be):m.setAttribute(ie,be),Ji(m)?Ke(m):pi(e.removed)}catch{}}}Qe("afterSanitizeAttributes",m,null)},jf=function B(m){let I=null;const $=Zi(m);for(Qe("beforeSanitizeShadowDOM",m,null);I=$.nextNode();)Qe("uponSanitizeShadowNode",I,null),!es(I)&&(I.content instanceof i&&B(I.content),rs(I));Qe("afterSanitizeShadowDOM",m,null)};return e.sanitize=function(B){let m=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},I=null,$=null,Q=null,pe=null;if(Lr=!B,Lr&&(B="<!-->"),typeof B!="string"&&!Qi(B))if(typeof B.toString=="function"){if(B=B.toString(),typeof B!="string")throw nn("dirty is not a string, aborting")}else throw nn("toString is not a function");if(!e.isSupported)return B;if(me||Or(m),e.removed=[],typeof B=="string"&&(ln=!1),ln){if(B.nodeName){const We=re(B.nodeName);if(!u[We]||P[We])throw nn("root node is forbidden and cannot be sanitized in-place")}}else if(B instanceof a)I=Xi("<!---->"),$=I.ownerDocument.importNode(B,!0),$.nodeType===on.element&&$.nodeName==="BODY"||$.nodeName==="HTML"?I=$:I.appendChild($);else{if(!Ct&&!F&&!fe&&B.indexOf("<")===-1)return U&&$n?U.createHTML(B):B;if(I=Xi(B),!I)return Ct?null:$n?G:""}I&&Ze&&Ke(I.firstChild);const ie=Zi(ln?B:I);for(;Q=ie.nextNode();)es(Q)||(Q.content instanceof i&&jf(Q.content),rs(Q));if(ln)return B;if(Ct){if(On)for(pe=Ae.call(I.ownerDocument);I.firstChild;)pe.appendChild(I.firstChild);else pe=I;return(v.shadowroot||v.shadowrootmode)&&(pe=Y.call(r,pe,!0)),pe}let Se=fe?I.outerHTML:I.innerHTML;return fe&&u["!doctype"]&&I.ownerDocument&&I.ownerDocument.doctype&&I.ownerDocument.doctype.name&&ye(ki,I.ownerDocument.doctype.name)&&(Se="<!DOCTYPE "+I.ownerDocument.doctype.name+`>
|
|
405
|
+
`+Se),F&&Tn([X,ue,de],We=>{Se=tn(Se,We," ")}),U&&$n?U.createHTML(Se):Se},e.setConfig=function(){let B=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};Or(B),me=!0},e.clearConfig=function(){At=null,me=!1},e.isValidAttribute=function(B,m,I){At||Or({});const $=re(B),Q=re(m);return ts($,Q,I)},e.addHook=function(B,m){typeof m=="function"&&(D[B]=D[B]||[],en(D[B],m))},e.removeHook=function(B){if(D[B])return pi(D[B])},e.removeHooks=function(B){D[B]&&(D[B]=[])},e.removeAllHooks=function(){D={}},e}var Ci=Si();class Ei{get IsVisible(){return ft.isVisible()}async CreateConfirmAsync(e){return new Promise(n=>{ft.fire({showCancelButton:!0,allowEscapeKey:!1,allowOutsideClick:!1,icon:"question",title:e.title,html:Ci.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 Ii=()=>new Ei,$d=()=>new Ei;function Bd(t){return t instanceof Uint8Array||t!=null&&typeof t=="object"&&t.constructor.name==="Uint8Array"}function Ti(t,...e){if(!Bd(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 Ai(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 Nd(t,e){Ti(t);const n=e.outputLen;if(t.length<n)throw new Error(`digestInto() expects output buffer of length at least ${n}`)}/*! noble-hashes - MIT License (c) 2022 Paul Miller (paulmillr.com) */const Sr=t=>new DataView(t.buffer,t.byteOffset,t.byteLength),He=(t,e)=>t<<32-e|t>>>e;new Uint8Array(new Uint32Array([287454020]).buffer)[0];function Md(t){if(typeof t!="string")throw new Error(`utf8ToBytes expected string, got ${typeof t}`);return new Uint8Array(new TextEncoder().encode(t))}function Pi(t){return typeof t=="string"&&(t=Md(t)),Ti(t),t}class Dd{clone(){return this._cloneInto()}}function Rd(t){const e=r=>t().update(Pi(r)).digest(),n=t();return e.outputLen=n.outputLen,e.blockLen=n.blockLen,e.create=()=>t(),e}function Ud(t,e,n,r){if(typeof t.setBigUint64=="function")return t.setBigUint64(e,n,r);const o=BigInt(32),i=BigInt(4294967295),l=Number(n>>o&i),a=Number(n&i),c=r?4:0,d=r?0:4;t.setUint32(e+c,l,r),t.setUint32(e+d,a,r)}const Vd=(t,e,n)=>t&e^~t&n,Hd=(t,e,n)=>t&e^t&n^e&n;class jd extends Dd{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=Sr(this.buffer)}update(e){Ai(this);const{view:n,buffer:r,blockLen:o}=this;e=Pi(e);const i=e.length;for(let l=0;l<i;){const a=Math.min(o-this.pos,i-l);if(a===o){const c=Sr(e);for(;o<=i-l;l+=o)this.process(c,l);continue}r.set(e.subarray(l,l+a),this.pos),this.pos+=a,l+=a,this.pos===o&&(this.process(n,0),this.pos=0)}return this.length+=e.length,this.roundClean(),this}digestInto(e){Ai(this),Nd(e,this),this.finished=!0;const{buffer:n,view:r,blockLen:o,isLE:i}=this;let{pos:l}=this;n[l++]=128,this.buffer.subarray(l).fill(0),this.padOffset>o-l&&(this.process(r,0),l=0);for(let p=l;p<o;p++)n[p]=0;Ud(r,o-8,BigInt(this.length*8),i),this.process(r,0);const a=Sr(e),c=this.outputLen;if(c%4)throw new Error("_sha2: outputLen should be aligned to 32bit");const d=c/4,f=this.get();if(d>f.length)throw new Error("_sha2: outputLen bigger than state");for(let p=0;p<d;p++)a.setUint32(4*p,f[p],i)}digest(){const{buffer:e,outputLen:n}=this;this.digestInto(e);const r=e.slice(0,n);return this.destroy(),r}_cloneInto(e){e||(e=new this.constructor),e.set(...this.get());const{blockLen:n,buffer:r,length:o,finished:i,destroyed:l,pos:a}=this;return e.length=o,e.pos=a,e.finished=i,e.destroyed=l,o%n&&e.buffer.set(r),e}}const Fd=new Uint32Array([1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298]),it=new Uint32Array([1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225]),st=new Uint32Array(64);class zd extends jd{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:l,G:a,H:c}=this;return[e,n,r,o,i,l,a,c]}set(e,n,r,o,i,l,a,c){this.A=e|0,this.B=n|0,this.C=r|0,this.D=o|0,this.E=i|0,this.F=l|0,this.G=a|0,this.H=c|0}process(e,n){for(let p=0;p<16;p++,n+=4)st[p]=e.getUint32(n,!1);for(let p=16;p<64;p++){const y=st[p-15],k=st[p-2],C=He(y,7)^He(y,18)^y>>>3,A=He(k,17)^He(k,19)^k>>>10;st[p]=A+st[p-7]+C+st[p-16]|0}let{A:r,B:o,C:i,D:l,E:a,F:c,G:d,H:f}=this;for(let p=0;p<64;p++){const y=He(a,6)^He(a,11)^He(a,25),k=f+y+Vd(a,c,d)+Fd[p]+st[p]|0,A=(He(r,2)^He(r,13)^He(r,22))+Hd(r,o,i)|0;f=d,d=c,c=a,a=l+k|0,l=i,i=o,o=r,r=k+A|0}r=r+this.A|0,o=o+this.B|0,i=i+this.C|0,l=l+this.D|0,a=a+this.E|0,c=c+this.F|0,d=d+this.G|0,f=f+this.H|0,this.set(r,o,i,l,a,c,d,f)}roundClean(){st.fill(0)}destroy(){this.set(0,0,0,0,0,0,0,0),this.buffer.fill(0)}}const Kd=Rd(()=>new zd);class sn extends Error{}sn.prototype.name="InvalidTokenError";function Wd(t){return decodeURIComponent(atob(t).replace(/(.)/g,(e,n)=>{let r=n.charCodeAt(0).toString(16).toUpperCase();return r.length<2&&(r="0"+r),"%"+r}))}function Gd(t){let e=t.replace(/-/g,"+").replace(/_/g,"/");switch(e.length%4){case 0:break;case 2:e+="==";break;case 3:e+="=";break;default:throw new Error("base64 string is not of the correct length")}try{return Wd(e)}catch{return atob(e)}}function Cr(t,e){if(typeof t!="string")throw new sn("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 sn(`Invalid token specified: missing part #${n+1}`);let o;try{o=Gd(r)}catch(i){throw new sn(`Invalid token specified: invalid base64 for part #${n+1} (${i.message})`)}try{return JSON.parse(o)}catch(i){throw new sn(`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 Li(t){if(!(this instanceof Li))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 l=document.getElementsByTagName("script"),a=0;a<l.length;a++)(l[a].src.indexOf("keycloak.js")!==-1||l[a].src.indexOf("keycloak.min.js")!==-1)&&l[a].src.indexOf("version=")!==-1&&(e.iframeVersion=l[a].src.substring(l[a].src.indexOf("version=")+8).split("&")[0]);var c=!0,d=$e(console.info),f=$e(console.warn);e.init=function(u){if(e.didInitialize)throw new Error("A 'Keycloak' instance can only be initialized once.");e.didInitialize=!0,e.authenticated=!1,o=pt();var h=["default","cordova","cordova-native"];if(u&&h.indexOf(u.adapter)>-1?n=Xe(u.adapter):u&&typeof u.adapter=="object"?n=u.adapter:window.Cordova||window.cordova?n=Xe("cordova"):n=Xe(),u){if(typeof u.useNonce<"u"&&(c=u.useNonce),typeof u.checkLoginIframe<"u"&&(i.enable=u.checkLoginIframe),u.checkLoginIframeInterval&&(i.interval=u.checkLoginIframeInterval),u.onLoad==="login-required"&&(e.loginRequired=!0),u.responseMode)if(u.responseMode==="query"||u.responseMode==="fragment")e.responseMode=u.responseMode;else throw"Invalid value for responseMode";if(u.flow){switch(u.flow){case"standard":e.responseType="code";break;case"implicit":e.responseType="id_token token";break;case"hybrid":e.responseType="code id_token token";break;default:throw"Invalid value for flow"}e.flow=u.flow}if(u.timeSkew!=null&&(e.timeSkew=u.timeSkew),u.redirectUri&&(e.redirectUri=u.redirectUri),u.silentCheckSsoRedirectUri&&(e.silentCheckSsoRedirectUri=u.silentCheckSsoRedirectUri),typeof u.silentCheckSsoFallback=="boolean"?e.silentCheckSsoFallback=u.silentCheckSsoFallback:e.silentCheckSsoFallback=!0,typeof u.pkceMethod<"u"){if(u.pkceMethod!=="S256"&&u.pkceMethod!==!1)throw new TypeError(`Invalid value for pkceMethod', expected 'S256' or false but got ${u.pkceMethod}.`);e.pkceMethod=u.pkceMethod}else e.pkceMethod="S256";typeof u.enableLogging=="boolean"?e.enableLogging=u.enableLogging:e.enableLogging=!1,u.logoutMethod==="POST"?e.logoutMethod="POST":e.logoutMethod="GET",typeof u.scope=="string"&&(e.scope=u.scope),typeof u.acrValues=="string"&&(e.acrValues=u.acrValues),typeof u.messageReceiveTimeout=="number"&&u.messageReceiveTimeout>0?e.messageReceiveTimeout=u.messageReceiveTimeout:e.messageReceiveTimeout=1e4}e.responseMode||(e.responseMode="fragment"),e.responseType||(e.responseType="code",e.flow="standard");var v=Y(),T=Y();T.promise.then(function(){e.onReady&&e.onReady(e.authenticated),v.setSuccess(e.authenticated)}).catch(function(O){v.setError(O)});var b=N();function P(){var O=function(F){F||(R.prompt="none"),u&&u.locale&&(R.locale=u.locale),e.login(R).then(function(){T.setSuccess()}).catch(function(_e){T.setError(_e)})},x=function(){var F=document.createElement("iframe"),_e=e.createLoginUrl({prompt:"none",redirectUri:e.silentCheckSsoRedirectUri});F.setAttribute("src",_e),F.setAttribute("sandbox","allow-storage-access-by-user-activation allow-scripts allow-same-origin"),F.setAttribute("title","keycloak-silent-check-sso"),F.style.display="none",document.body.appendChild(F);var fe=function(me){if(!(me.origin!==window.location.origin||F.contentWindow!==me.source)){var Ze=te(me.data);S(Ze,T),document.body.removeChild(F),window.removeEventListener("message",fe)}};window.addEventListener("message",fe)},R={};switch(u.onLoad){case"check-sso":i.enable?X().then(function(){de().then(function(F){F?T.setSuccess():e.silentCheckSsoRedirectUri?x():O(!1)}).catch(function(F){T.setError(F)})}):e.silentCheckSsoRedirectUri?x():O(!1);break;case"login-required":O(!0);break;default:throw"Invalid value for onLoad"}}function _(){var O=te(window.location.href);if(O&&window.history.replaceState(window.history.state,null,O.newUrl),O&&O.valid)return X().then(function(){S(O,T)}).catch(function(x){T.setError(x)});u?u.token&&u.refreshToken?(G(u.token,u.refreshToken,u.idToken),i.enable?X().then(function(){de().then(function(x){x?(e.onAuthSuccess&&e.onAuthSuccess(),T.setSuccess(),ue()):T.setSuccess()}).catch(function(x){T.setError(x)})}):e.updateToken(-1).then(function(){e.onAuthSuccess&&e.onAuthSuccess(),T.setSuccess()}).catch(function(x){e.onAuthError&&e.onAuthError(),u.onLoad?P():T.setError(x)})):u.onLoad?P():T.setSuccess():T.setSuccess()}function E(){var O=Y(),x=function(){(document.readyState==="interactive"||document.readyState==="complete")&&(document.removeEventListener("readystatechange",x),O.setSuccess())};return document.addEventListener("readystatechange",x),x(),O.promise}return b.then(function(){E().then(je).then(_).catch(function(O){v.setError(O)})}),b.catch(function(O){v.setError(O)}),v.promise},e.login=function(u){return n.login(u)};function p(u){var h=null,v=window.crypto||window.msCrypto;if(v&&v.getRandomValues&&window.Uint8Array)return h=new Uint8Array(u),v.getRandomValues(h),h;h=new Array(u);for(var T=0;T<h.length;T++)h[T]=Math.floor(256*Math.random());return h}function y(u){return k(u,"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789")}function k(u,h){for(var v=p(u),T=new Array(u),b=0;b<u;b++)T[b]=h.charCodeAt(v[b]%h.length);return String.fromCharCode.apply(null,T)}function C(u,h){if(u!=="S256")throw new TypeError(`Invalid value for 'pkceMethod', expected 'S256' but got '${u}'.`);const v=Kd(h);return qd(v).replace(/\+/g,"-").replace(/\//g,"_").replace(/\=/g,"")}function A(u){var h={id_token:{acr:u}};return JSON.stringify(h)}e.createLoginUrl=function(u){var h=ce(),v=ce(),T=n.redirectUri(u),b={state:h,nonce:v,redirectUri:encodeURIComponent(T),loginOptions:u};u&&u.prompt&&(b.prompt=u.prompt);var P;u&&u.action=="register"?P=e.endpoints.register():P=e.endpoints.authorize();var _=u&&u.scope||e.scope;_?_.indexOf("openid")===-1&&(_="openid "+_):_="openid";var E=P+"?client_id="+encodeURIComponent(e.clientId)+"&redirect_uri="+encodeURIComponent(T)+"&state="+encodeURIComponent(h)+"&response_mode="+encodeURIComponent(e.responseMode)+"&response_type="+encodeURIComponent(e.responseType)+"&scope="+encodeURIComponent(_);if(c&&(E=E+"&nonce="+encodeURIComponent(v)),u&&u.prompt&&(E+="&prompt="+encodeURIComponent(u.prompt)),u&&u.maxAge&&(E+="&max_age="+encodeURIComponent(u.maxAge)),u&&u.loginHint&&(E+="&login_hint="+encodeURIComponent(u.loginHint)),u&&u.idpHint&&(E+="&kc_idp_hint="+encodeURIComponent(u.idpHint)),u&&u.action&&u.action!="register"&&(E+="&kc_action="+encodeURIComponent(u.action)),u&&u.locale&&(E+="&ui_locales="+encodeURIComponent(u.locale)),u&&u.acr){var O=A(u.acr);E+="&claims="+encodeURIComponent(O)}if((u&&u.acrValues||e.acrValues)&&(E+="&acr_values="+encodeURIComponent(u.acrValues||e.acrValues)),e.pkceMethod){var x=y(96);b.pkceCodeVerifier=x;var R=C(e.pkceMethod,x);E+="&code_challenge="+R,E+="&code_challenge_method="+e.pkceMethod}return o.add(b),E},e.logout=function(u){return n.logout(u)},e.createLogoutUrl=function(u){if(((u==null?void 0:u.logoutMethod)??e.logoutMethod)==="POST")return e.endpoints.logout();var v=e.endpoints.logout()+"?client_id="+encodeURIComponent(e.clientId)+"&post_logout_redirect_uri="+encodeURIComponent(n.redirectUri(u,!1));return e.idToken&&(v+="&id_token_hint="+encodeURIComponent(e.idToken)),v},e.register=function(u){return n.register(u)},e.createRegisterUrl=function(u){return u||(u={}),u.action="register",e.createLoginUrl(u)},e.createAccountUrl=function(u){var h=L(),v=void 0;return typeof h<"u"&&(v=h+"/account?referrer="+encodeURIComponent(e.clientId)+"&referrer_uri="+encodeURIComponent(n.redirectUri(u))),v},e.accountManagement=function(){return n.accountManagement()},e.hasRealmRole=function(u){var h=e.realmAccess;return!!h&&h.roles.indexOf(u)>=0},e.hasResourceRole=function(u,h){if(!e.resourceAccess)return!1;var v=e.resourceAccess[h||e.clientId];return!!v&&v.roles.indexOf(u)>=0},e.loadUserProfile=function(){var u=L()+"/account",h=new XMLHttpRequest;h.open("GET",u,!0),h.setRequestHeader("Accept","application/json"),h.setRequestHeader("Authorization","bearer "+e.token);var v=Y();return h.onreadystatechange=function(){h.readyState==4&&(h.status==200?(e.profile=JSON.parse(h.responseText),v.setSuccess(e.profile)):v.setError())},h.send(),v.promise},e.loadUserInfo=function(){var u=e.endpoints.userinfo(),h=new XMLHttpRequest;h.open("GET",u,!0),h.setRequestHeader("Accept","application/json"),h.setRequestHeader("Authorization","bearer "+e.token);var v=Y();return h.onreadystatechange=function(){h.readyState==4&&(h.status==200?(e.userInfo=JSON.parse(h.responseText),v.setSuccess(e.userInfo)):v.setError())},h.send(),v.promise},e.isTokenExpired=function(u){if(!e.tokenParsed||!e.refreshToken&&e.flow!="implicit")throw"Not authenticated";if(e.timeSkew==null)return d("[KEYCLOAK] Unable to determine if token is expired as timeskew is not set"),!0;var h=e.tokenParsed.exp-Math.ceil(new Date().getTime()/1e3)+e.timeSkew;if(u){if(isNaN(u))throw"Invalid minValidity";h-=u}return h<0},e.updateToken=function(u){var h=Y();if(!e.refreshToken)return h.setError(),h.promise;u=u||5;var v=function(){var b=!1;if(u==-1?(b=!0,d("[KEYCLOAK] Refreshing token: forced refresh")):(!e.tokenParsed||e.isTokenExpired(u))&&(b=!0,d("[KEYCLOAK] Refreshing token: token expired")),!b)h.setSuccess(!1);else{var P="grant_type=refresh_token&refresh_token="+e.refreshToken,_=e.endpoints.token();if(r.push(h),r.length==1){var E=new XMLHttpRequest;E.open("POST",_,!0),E.setRequestHeader("Content-type","application/x-www-form-urlencoded"),E.withCredentials=!0,P+="&client_id="+encodeURIComponent(e.clientId);var O=new Date().getTime();E.onreadystatechange=function(){if(E.readyState==4)if(E.status==200){d("[KEYCLOAK] Token refreshed"),O=(O+new Date().getTime())/2;var x=JSON.parse(E.responseText);G(x.access_token,x.refresh_token,x.id_token,O),e.onAuthRefreshSuccess&&e.onAuthRefreshSuccess();for(var R=r.pop();R!=null;R=r.pop())R.setSuccess(!0)}else{f("[KEYCLOAK] Failed to refresh token"),E.status==400&&e.clearToken(),e.onAuthRefreshError&&e.onAuthRefreshError();for(var R=r.pop();R!=null;R=r.pop())R.setError(!0)}},E.send(P)}}};if(i.enable){var T=de();T.then(function(){v()}).catch(function(b){h.setError(b)})}else v();return h.promise},e.clearToken=function(){e.token&&(G(null,null,null),e.onAuthLogout&&e.onAuthLogout(),e.loginRequired&&e.login())};function L(){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 w(){return window.location.origin?window.location.origin:window.location.protocol+"//"+window.location.hostname+(window.location.port?":"+window.location.port:"")}function S(u,h){var v=u.code,T=u.error,b=u.prompt,P=new Date().getTime();if(u.kc_action_status&&e.onActionUpdate&&e.onActionUpdate(u.kc_action_status,u.kc_action),T){if(b!="none")if(u.error_description&&u.error_description==="authentication_expired")e.login(u.loginOptions);else{var _={error:T,error_description:u.error_description};e.onAuthError&&e.onAuthError(_),h&&h.setError(_)}else h&&h.setSuccess();return}else e.flow!="standard"&&(u.access_token||u.id_token)&&R(u.access_token,null,u.id_token,!0);if(e.flow!="implicit"&&v){var E="code="+v+"&grant_type=authorization_code",O=e.endpoints.token(),x=new XMLHttpRequest;x.open("POST",O,!0),x.setRequestHeader("Content-type","application/x-www-form-urlencoded"),E+="&client_id="+encodeURIComponent(e.clientId),E+="&redirect_uri="+u.redirectUri,u.pkceCodeVerifier&&(E+="&code_verifier="+u.pkceCodeVerifier),x.withCredentials=!0,x.onreadystatechange=function(){if(x.readyState==4)if(x.status==200){var F=JSON.parse(x.responseText);R(F.access_token,F.refresh_token,F.id_token,e.flow==="standard"),ue()}else e.onAuthError&&e.onAuthError(),h&&h.setError()},x.send(E)}function R(F,_e,fe,me){P=(P+new Date().getTime())/2,G(F,_e,fe,P),c&&e.idTokenParsed&&e.idTokenParsed.nonce!=u.storedNonce?(d("[KEYCLOAK] Invalid nonce, clearing token"),e.clearToken(),h&&h.setError()):me&&(e.onAuthSuccess&&e.onAuthSuccess(),h&&h.setSuccess())}}function N(u){var h=Y(),v;t?typeof t=="string"&&(v=t):v="keycloak.json";function T(x){x?e.endpoints={authorize:function(){return x.authorization_endpoint},token:function(){return x.token_endpoint},logout:function(){if(!x.end_session_endpoint)throw"Not supported by the OIDC server";return x.end_session_endpoint},checkSessionIframe:function(){if(!x.check_session_iframe)throw"Not supported by the OIDC server";return x.check_session_iframe},register:function(){throw'Redirection to "Register user" page not supported in standard OIDC mode'},userinfo:function(){if(!x.userinfo_endpoint)throw"Not supported by the OIDC server";return x.userinfo_endpoint}}:e.endpoints={authorize:function(){return L()+"/protocol/openid-connect/auth"},token:function(){return L()+"/protocol/openid-connect/token"},logout:function(){return L()+"/protocol/openid-connect/logout"},checkSessionIframe:function(){var R=L()+"/protocol/openid-connect/login-status-iframe.html";return e.iframeVersion&&(R=R+"?version="+e.iframeVersion),R},thirdPartyCookiesIframe:function(){var R=L()+"/protocol/openid-connect/3p-cookies/step1.html";return e.iframeVersion&&(R=R+"?version="+e.iframeVersion),R},register:function(){return L()+"/protocol/openid-connect/registrations"},userinfo:function(){return L()+"/protocol/openid-connect/userinfo"}}}if(v){var b=new XMLHttpRequest;b.open("GET",v,!0),b.setRequestHeader("Accept","application/json"),b.onreadystatechange=function(){if(b.readyState==4)if(b.status==200||U(b)){var x=JSON.parse(b.responseText);e.authServerUrl=x["auth-server-url"],e.realm=x.realm,e.clientId=x.resource,T(null),h.setSuccess()}else h.setError()},b.send()}else{if(!t.clientId)throw"clientId missing";e.clientId=t.clientId;var P=t.oidcProvider;if(P)if(typeof P=="string"){var O;P.charAt(P.length-1)=="/"?O=P+".well-known/openid-configuration":O=P+"/.well-known/openid-configuration";var b=new XMLHttpRequest;b.open("GET",O,!0),b.setRequestHeader("Accept","application/json"),b.onreadystatechange=function(){if(b.readyState==4)if(b.status==200||U(b)){var R=JSON.parse(b.responseText);T(R),h.setSuccess()}else h.setError()},b.send()}else T(P),h.setSuccess();else{if(!t.url){for(var _=document.getElementsByTagName("script"),E=0;E<_.length;E++)if(_[E].src.match(/.*keycloak\.js/)){t.url=_[E].src.substr(0,_[E].src.indexOf("/js/keycloak.js"));break}}if(!t.realm)throw"realm missing";e.authServerUrl=t.url,e.realm=t.realm,T(null),h.setSuccess()}}return h.promise}function U(u){return u.status==0&&u.responseText&&u.responseURL.startsWith("file:")}function G(u,h,v,T){if(e.tokenTimeoutHandle&&(clearTimeout(e.tokenTimeoutHandle),e.tokenTimeoutHandle=null),h?(e.refreshToken=h,e.refreshTokenParsed=Cr(h)):(delete e.refreshToken,delete e.refreshTokenParsed),v?(e.idToken=v,e.idTokenParsed=Cr(v)):(delete e.idToken,delete e.idTokenParsed),u){if(e.token=u,e.tokenParsed=Cr(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,T&&(e.timeSkew=Math.floor(T/1e3)-e.tokenParsed.iat),e.timeSkew!=null&&(d("[KEYCLOAK] Estimated time difference between browser and server is "+e.timeSkew+" seconds"),e.onTokenExpired)){var b=(e.tokenParsed.exp-new Date().getTime()/1e3+e.timeSkew)*1e3;d("[KEYCLOAK] Token expires in "+Math.round(b/1e3)+" s"),b<=0?e.onTokenExpired():e.tokenTimeoutHandle=setTimeout(e.onTokenExpired,b)}}else delete e.token,delete e.tokenParsed,delete e.subject,delete e.realmAccess,delete e.resourceAccess,e.authenticated=!1}function ce(){var u="0123456789abcdef",h=k(36,u).split("");h[14]="4",h[19]=u.substr(h[19]&3|8,1),h[8]=h[13]=h[18]=h[23]="-";var v=h.join("");return v}function te(u){var h=Ae(u);if(h){var v=o.get(h.state);return v&&(h.valid=!0,h.redirectUri=v.redirectUri,h.storedNonce=v.nonce,h.prompt=v.prompt,h.pkceCodeVerifier=v.pkceCodeVerifier,h.loginOptions=v.loginOptions),h}}function Ae(u){var h;switch(e.flow){case"standard":h=["code","state","session_state","kc_action_status","kc_action","iss"];break;case"implicit":h=["access_token","token_type","id_token","state","session_state","expires_in","kc_action_status","kc_action","iss"];break;case"hybrid":h=["access_token","token_type","id_token","code","state","session_state","expires_in","kc_action_status","kc_action","iss"];break}h.push("error"),h.push("error_description"),h.push("error_uri");var v=u.indexOf("?"),T=u.indexOf("#"),b,P;if(e.responseMode==="query"&&v!==-1?(b=u.substring(0,v),P=ne(u.substring(v+1,T!==-1?T:u.length),h),P.paramsString!==""&&(b+="?"+P.paramsString),T!==-1&&(b+=u.substring(T))):e.responseMode==="fragment"&&T!==-1&&(b=u.substring(0,T),P=ne(u.substring(T+1),h),P.paramsString!==""&&(b+="#"+P.paramsString)),P&&P.oauthParams){if(e.flow==="standard"||e.flow==="hybrid"){if((P.oauthParams.code||P.oauthParams.error)&&P.oauthParams.state)return P.oauthParams.newUrl=b,P.oauthParams}else if(e.flow==="implicit"&&(P.oauthParams.access_token||P.oauthParams.error)&&P.oauthParams.state)return P.oauthParams.newUrl=b,P.oauthParams}}function ne(u,h){for(var v=u.split("&"),T={paramsString:"",oauthParams:{}},b=0;b<v.length;b++){var P=v[b].indexOf("="),_=v[b].slice(0,P);h.indexOf(_)!==-1?T.oauthParams[_]=v[b].slice(P+1):(T.paramsString!==""&&(T.paramsString+="&"),T.paramsString+=v[b])}return T}function Y(){var u={setSuccess:function(h){u.resolve(h)},setError:function(h){u.reject(h)}};return u.promise=new Promise(function(h,v){u.resolve=h,u.reject=v}),u}function D(u,h,v){var T=null,b=new Promise(function(P,_){T=setTimeout(function(){_({error:v})},h)});return Promise.race([u,b]).finally(function(){clearTimeout(T)})}function X(){var u=Y();if(!i.enable||i.iframe)return u.setSuccess(),u.promise;var h=document.createElement("iframe");i.iframe=h,h.onload=function(){var b=e.endpoints.authorize();b.charAt(0)==="/"?i.iframeOrigin=w():i.iframeOrigin=b.substring(0,b.indexOf("/",8)),u.setSuccess()};var v=e.endpoints.checkSessionIframe();h.setAttribute("src",v),h.setAttribute("sandbox","allow-storage-access-by-user-activation allow-scripts allow-same-origin"),h.setAttribute("title","keycloak-session-iframe"),h.style.display="none",document.body.appendChild(h);var T=function(b){if(!(b.origin!==i.iframeOrigin||i.iframe.contentWindow!==b.source)&&(b.data=="unchanged"||b.data=="changed"||b.data=="error")){b.data!="unchanged"&&e.clearToken();for(var P=i.callbackList.splice(0,i.callbackList.length),_=P.length-1;_>=0;--_){var E=P[_];b.data=="error"?E.setError():E.setSuccess(b.data=="unchanged")}}};return window.addEventListener("message",T,!1),u.promise}function ue(){i.enable&&e.token&&setTimeout(function(){de().then(function(u){u&&ue()})},i.interval*1e3)}function de(){var u=Y();if(i.iframe&&i.iframeOrigin){var h=e.clientId+" "+(e.sessionId?e.sessionId:"");i.callbackList.push(u);var v=i.iframeOrigin;i.callbackList.length==1&&i.iframe.contentWindow.postMessage(h,v)}else u.setSuccess();return u.promise}function je(){var u=Y();if(i.enable||e.silentCheckSsoRedirectUri){var h=document.createElement("iframe");h.setAttribute("src",e.endpoints.thirdPartyCookiesIframe()),h.setAttribute("sandbox","allow-storage-access-by-user-activation allow-scripts allow-same-origin"),h.setAttribute("title","keycloak-3p-check-iframe"),h.style.display="none",document.body.appendChild(h);var v=function(T){h.contentWindow===T.source&&(T.data!=="supported"&&T.data!=="unsupported"||(T.data==="unsupported"&&(f(`[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",v),u.setSuccess()))};window.addEventListener("message",v,!1)}else u.setSuccess();return M(u.promise,e.messageReceiveTimeout,"Timeout when waiting for 3rd party check iframe message.")}function Xe(u){if(!u||u=="default")return{login:function(_){return window.location.assign(e.createLoginUrl(_)),Y().promise},logout:async function(_){if(((_==null?void 0:_.logoutMethod)??e.logoutMethod)==="GET"){window.location.replace(e.createLogoutUrl(_));return}const O=e.createLogoutUrl(_),x=await fetch(O,{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(_,!1)})});if(x.redirected){window.location.href=x.url;return}if(x.ok){window.location.reload();return}throw new Error("Logout failed, request returned an error code.")},register:function(_){return window.location.assign(e.createRegisterUrl(_)),Y().promise},accountManagement:function(){var _=e.createAccountUrl();if(typeof _<"u")window.location.href=_;else throw"Not supported by the OIDC server";return Y().promise},redirectUri:function(_,E){return _&&_.redirectUri?_.redirectUri:e.redirectUri?e.redirectUri:location.href}};if(u=="cordova"){i.enable=!1;var h=function(_,E,O){return window.cordova&&window.cordova.InAppBrowser?window.cordova.InAppBrowser.open(_,E,O):window.open(_,E,O)},v=function(_){return _&&_.cordovaOptions?Object.keys(_.cordovaOptions).reduce(function(E,O){return E[O]=_.cordovaOptions[O],E},{}):{}},T=function(_){return Object.keys(_).reduce(function(E,O){return E.push(O+"="+_[O]),E},[]).join(",")},b=function(_){var E=v(_);return E.location="no",_&&_.prompt=="none"&&(E.hidden="yes"),T(E)},P=function(){return e.redirectUri||"http://localhost"};return{login:function(_){var E=Y(),O=b(_),x=e.createLoginUrl(_),R=h(x,"_blank",O),F=!1,_e=!1,fe=function(){_e=!0,R.close()};return R.addEventListener("loadstart",function(me){if(me.url.indexOf(P())==0){var Ze=te(me.url);S(Ze,E),fe(),F=!0}}),R.addEventListener("loaderror",function(me){if(!F)if(me.url.indexOf(P())==0){var Ze=te(me.url);S(Ze,E),fe(),F=!0}else E.setError(),fe()}),R.addEventListener("exit",function(me){_e||E.setError({reason:"closed_by_user"})}),E.promise},logout:function(_){var E=Y(),O=e.createLogoutUrl(_),x=h(O,"_blank","location=no,hidden=yes,clearcache=yes"),R;return x.addEventListener("loadstart",function(F){F.url.indexOf(P())==0&&x.close()}),x.addEventListener("loaderror",function(F){F.url.indexOf(P())==0||(R=!0),x.close()}),x.addEventListener("exit",function(F){R?E.setError():(e.clearToken(),E.setSuccess())}),E.promise},register:function(_){var E=Y(),O=e.createRegisterUrl(),x=b(_),R=h(O,"_blank",x);return R.addEventListener("loadstart",function(F){if(F.url.indexOf(P())==0){R.close();var _e=te(F.url);S(_e,E)}}),E.promise},accountManagement:function(){var _=e.createAccountUrl();if(typeof _<"u"){var E=h(_,"_blank","location=no");E.addEventListener("loadstart",function(O){O.url.indexOf(P())==0&&E.close()})}else throw"Not supported by the OIDC server"},redirectUri:function(_){return P()}}}if(u=="cordova-native")return i.enable=!1,{login:function(_){var E=Y(),O=e.createLoginUrl(_);return universalLinks.subscribe("keycloak",function(x){universalLinks.unsubscribe("keycloak"),window.cordova.plugins.browsertab.close();var R=te(x.url);S(R,E)}),window.cordova.plugins.browsertab.openUrl(O),E.promise},logout:function(_){var E=Y(),O=e.createLogoutUrl(_);return universalLinks.subscribe("keycloak",function(x){universalLinks.unsubscribe("keycloak"),window.cordova.plugins.browsertab.close(),e.clearToken(),E.setSuccess()}),window.cordova.plugins.browsertab.openUrl(O),E.promise},register:function(_){var E=Y(),O=e.createRegisterUrl(_);return universalLinks.subscribe("keycloak",function(x){universalLinks.unsubscribe("keycloak"),window.cordova.plugins.browsertab.close();var R=te(x.url);S(R,E)}),window.cordova.plugins.browsertab.openUrl(O),E.promise},accountManagement:function(){var _=e.createAccountUrl();if(typeof _<"u")window.cordova.plugins.browsertab.openUrl(_);else throw"Not supported by the OIDC server"},redirectUri:function(_){return _&&_.redirectUri?_.redirectUri:e.redirectUri?e.redirectUri:"http://localhost"}};throw"invalid adapter type: "+u}var Fe=function(){if(!(this instanceof Fe))return new Fe;localStorage.setItem("kc-test","test"),localStorage.removeItem("kc-test");var u=this;function h(){for(var v=new Date().getTime(),T=0;T<localStorage.length;T++){var b=localStorage.key(T);if(b&&b.indexOf("kc-callback-")==0){var P=localStorage.getItem(b);if(P)try{var _=JSON.parse(P).expires;(!_||_<v)&&localStorage.removeItem(b)}catch{localStorage.removeItem(b)}}}}u.get=function(v){if(v){var T="kc-callback-"+v,b=localStorage.getItem(T);return b&&(localStorage.removeItem(T),b=JSON.parse(b)),h(),b}},u.add=function(v){h();var T="kc-callback-"+v.state;v.expires=new Date().getTime()+60*60*1e3,localStorage.setItem(T,JSON.stringify(v))}},ze=function(){if(!(this instanceof ze))return new ze;var u=this;u.get=function(b){if(b){var P=v("kc-callback-"+b);if(T("kc-callback-"+b,"",h(-100)),P)return JSON.parse(P)}},u.add=function(b){T("kc-callback-"+b.state,JSON.stringify(b),h(60))},u.removeItem=function(b){T(b,"",h(-100))};var h=function(b){var P=new Date;return P.setTime(P.getTime()+b*60*1e3),P},v=function(b){for(var P=b+"=",_=document.cookie.split(";"),E=0;E<_.length;E++){for(var O=_[E];O.charAt(0)==" ";)O=O.substring(1);if(O.indexOf(P)==0)return O.substring(P.length,O.length)}return""},T=function(b,P,_){var E=b+"="+P+"; expires="+_.toUTCString()+"; ";document.cookie=E}};function pt(){try{return new Fe}catch{}return new ze}function $e(u){return function(){e.enableLogging&&u.apply(console,Array.prototype.slice.call(arguments))}}}function Gd(t){const e=String.fromCodePoint(...t);return btoa(e)}class qd{constructor(e){Pe(this,"oidc");Pe(this,"isAuthenticated",!1);Pe(this,"authenticatedWith",null);this.oidc=new Li(e)}async InitAsync(e={}){return await this.oidc.init(e).then(async n=>(this.isAuthenticated=n,this.authenticatedWith=this.AuthenticatedWith(),n)).catch(n=>(console.info("Ocorreu um erro na inicialização. Verifique o console para mais detalhes."),console.error(n),!1))}LoginGovBr(){this.oidc.login({idpHint:"GOV.BR"})}LoginSenhaweb(){var n;const e=(n=this.oidc.authServerUrl)!=null&&n.startsWith("https://keycloak.dev.apps.sf.prefeitura.sp.gov.br")?"senhawebdev":"senhaweb";this.oidc.login({idpHint:e})}AuthenticatedWith(){var n,r;const e=this.oidc.tokenParsed;return e?(n=e.identity_provider)!=null&&n.startsWith("GOV.BR")?"govbr":(r=e.identity_provider)!=null&&r.startsWith("senhaweb")?"senhaweb":"ad":null}}let xi;function Yd(t){xi=new qd(t)}const Er=()=>xi;function Xd(t){return s.getCurrentScope()?(s.onScopeDispose(t),!0):!1}const Zd=typeof window<"u"&&typeof document<"u";typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;function Jd(t){return s.getCurrentInstance()}function Qd(t){return Array.isArray(t)?t:[t]}function ef(t,e=!0,n){Jd()?s.onMounted(t,n):e?t():s.nextTick(t)}const Oi=Zd?window:void 0;function St(t){var e;const n=s.toValue(t);return(e=n==null?void 0:n.$el)!=null?e:n}function tf(){const t=s.ref(!1),e=s.getCurrentInstance();return e&&s.onMounted(()=>{t.value=!0},e),t}function nf(t){const e=tf();return s.computed(()=>(e.value,!!t()))}function rf(t,e,n={}){const{window:r=Oi,...o}=n;let i;const l=nf(()=>r&&"ResizeObserver"in r),a=()=>{i&&(i.disconnect(),i=void 0)},c=s.computed(()=>{const p=s.toValue(t);return Array.isArray(p)?p.map(y=>St(y)):[St(p)]}),d=s.watch(c,p=>{if(a(),l.value&&r){i=new ResizeObserver(e);for(const y of p)y&&i.observe(y,o)}},{immediate:!0,flush:"post"}),f=()=>{a(),d()};return Xd(f),{isSupported:l,stop:f}}function of(t,e={width:0,height:0},n={}){const{window:r=Oi,box:o="content-box"}=n,i=s.computed(()=>{var p,y;return(y=(p=St(t))==null?void 0:p.namespaceURI)==null?void 0:y.includes("svg")}),l=s.ref(e.width),a=s.ref(e.height),{stop:c}=rf(t,([p])=>{const y=o==="border-box"?p.borderBoxSize:o==="content-box"?p.contentBoxSize:p.devicePixelContentBoxSize;if(r&&i.value){const k=St(t);if(k){const C=k.getBoundingClientRect();l.value=C.width,a.value=C.height}}else if(y){const k=Qd(y);l.value=k.reduce((C,{inlineSize:A})=>C+A,0),a.value=k.reduce((C,{blockSize:A})=>C+A,0)}else l.value=p.contentRect.width,a.value=p.contentRect.height},n);ef(()=>{const p=St(t);p&&(l.value="offsetWidth"in p?p.offsetWidth:e.width,a.value="offsetHeight"in p?p.offsetHeight:e.height)});const d=s.watch(()=>St(t),p=>{l.value=p?e.width:0,a.value=p?e.height:0});function f(){c(),d()}return{width:l,height:a,stop:f}}var sf=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function af(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var $i={exports:{}};(function(t){(function(e,n){t.exports?t.exports=n():e.log=n()})(sf,function(){var e=function(){},n="undefined",r=typeof window!==n&&typeof window.navigator!==n&&/Trident\/|MSIE /.test(window.navigator.userAgent),o=["trace","debug","info","warn","error"],i={},l=null;function a(A,L){var w=A[L];if(typeof w.bind=="function")return w.bind(A);try{return Function.prototype.bind.call(w,A)}catch{return function(){return Function.prototype.apply.apply(w,[A,arguments])}}}function c(){console.log&&(console.log.apply?console.log.apply(console,arguments):Function.prototype.apply.apply(console.log,[console,arguments])),console.trace&&console.trace()}function d(A){return A==="debug"&&(A="log"),typeof console===n?!1:A==="trace"&&r?c:console[A]!==void 0?a(console,A):console.log!==void 0?a(console,"log"):e}function f(){for(var A=this.getLevel(),L=0;L<o.length;L++){var w=o[L];this[w]=L<A?e:this.methodFactory(w,A,this.name)}if(this.log=this.debug,typeof console===n&&A<this.levels.SILENT)return"No console available for logging"}function p(A){return function(){typeof console!==n&&(f.call(this),this[A].apply(this,arguments))}}function y(A,L,w){return d(A)||p.apply(this,arguments)}function k(A,L){var w=this,S,N,U,G="loglevel";typeof A=="string"?G+=":"+A:typeof A=="symbol"&&(G=void 0);function ce(M){var X=(o[M]||"silent").toUpperCase();if(!(typeof window===n||!G)){try{window.localStorage[G]=X;return}catch{}try{window.document.cookie=encodeURIComponent(G)+"="+X+";"}catch{}}}function te(){var M;if(!(typeof window===n||!G)){try{M=window.localStorage[G]}catch{}if(typeof M===n)try{var X=window.document.cookie,ue=encodeURIComponent(G),de=X.indexOf(ue+"=");de!==-1&&(M=/^([^;]+)/.exec(X.slice(de+ue.length+1))[1])}catch{}return w.levels[M]===void 0&&(M=void 0),M}}function Ae(){if(!(typeof window===n||!G)){try{window.localStorage.removeItem(G)}catch{}try{window.document.cookie=encodeURIComponent(G)+"=; expires=Thu, 01 Jan 1970 00:00:00 UTC"}catch{}}}function ne(M){var X=M;if(typeof X=="string"&&w.levels[X.toUpperCase()]!==void 0&&(X=w.levels[X.toUpperCase()]),typeof X=="number"&&X>=0&&X<=w.levels.SILENT)return X;throw new TypeError("log.setLevel() called with invalid level: "+M)}w.name=A,w.levels={TRACE:0,DEBUG:1,INFO:2,WARN:3,ERROR:4,SILENT:5},w.methodFactory=L||y,w.getLevel=function(){return U??N??S},w.setLevel=function(M,X){return U=ne(M),X!==!1&&ce(U),f.call(w)},w.setDefaultLevel=function(M){N=ne(M),te()||w.setLevel(M,!1)},w.resetLevel=function(){U=null,Ae(),f.call(w)},w.enableAll=function(M){w.setLevel(w.levels.TRACE,M)},w.disableAll=function(M){w.setLevel(w.levels.SILENT,M)},w.rebuild=function(){if(l!==w&&(S=ne(l.getLevel())),f.call(w),l===w)for(var M in i)i[M].rebuild()},S=ne(l?l.getLevel():"WARN");var Y=te();Y!=null&&(U=ne(Y)),f.call(w)}l=new k,l.getLogger=function(L){if(typeof L!="symbol"&&typeof L!="string"||L==="")throw new TypeError("You must supply a name when creating a logger.");var w=i[L];return w||(w=i[L]=new k(L,l.methodFactory)),w};var C=typeof window!==n?window.log:void 0;return l.noConflict=function(){return typeof window!==n&&window.log===l&&(window.log=C),l},l.getLoggers=function(){return i},l.default=l,l})})($i);var lf=$i.exports;const Ln=af(lf),cf={install(t,e){const n=e??{};Ln.setDefaultLevel(n.enableLogging?Ln.levels.DEBUG:Ln.levels.SILENT);const r=240;document.documentElement.style.setProperty("--nav-menu-width",`${r}px`);const o=s.ref(!0),i=s.ref(0),l=s.ref(!1),a=s.ref(!1),c=s.ref(""),d=s.ref(null),{width:f}=of(d);t.provide(ko,{navMenuWidth:r,isMenuOpened:o,ToggleMenu:()=>{o.value=!o.value},OpenMenu:()=>{o.value=!0},CloseMenu:()=>{o.value=!1},scrollY:i,pageTitle:c,isDarkMode:l,ToggleTheme:()=>Ft.Toggle(),EnableDarkMode:()=>Ft.EnableDarkMode(),EnableLightMode:()=>Ft.EnableLightMode(),ClearStoredTheme:()=>Ft.ClearStoredTheme(),LogoutAsync:async()=>{const y=Ii(),{oidc:k}=Er();await y.ConfirmAsync("Deseja realmente sair da sua conta?")&&(a.value=!0,await new Promise(A=>setTimeout(A,1e3)),k.logout({redirectUri:window.location.origin}))},Login:()=>{const{oidc:y}=Er();y.login()},isLoggingOut:a,mainRef:d,mainWidth:f,isMainXs:s.computed(()=>f.value<=384),isMainSm:s.computed(()=>f.value>384),isMainMd:s.computed(()=>f.value>768),isMainLg:s.computed(()=>f.value>992),isMainXl:s.computed(()=>f.value>1280),isMain2Xl:s.computed(()=>f.value>1536),isMain3Xl:s.computed(()=>f.value>1920)}),new MutationObserver(()=>{l.value=document.documentElement.classList.contains("dark")}).observe(document.documentElement,{attributes:!0,attributeFilter:["class"]}),document.addEventListener("scroll",()=>{i.value=document.documentElement.scrollTop}),Ft.SetInitialTheme()}},uf=Ln;class Ir extends Error{constructor(n=[]){const r=Array.isArray(n)?n:[n];super(r[0]);Pe(this,"errors",[]);this.errors=r}}class Bi{constructor(e=null){Pe(this,"errors",[]);Pe(this,"_value",null);Pe(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){if(Array.isArray(e)){e.forEach(n=>this.WithError(n));return}this.errors.push(e),this.isSuccessfulHttpStatusCode||(this._httpStatusCode=400)}get isSuccessfulHttpStatusCode(){return this._httpStatusCode>=200&&this._httpStatusCode<300}[Symbol.toPrimitive](e){if(e==="throw")throw new Ir(this.errors)}get firstError(){return this.hasSuccess?null:this.errors[0]}}class Ni{get IsVisible(){return ft.isVisible()}async CreateAlertAsync(e){let n="info",r,o;return typeof e=="string"||Array.isArray(e)?r=Array.isArray(e)?e.join("<br />"):e:(n=e.icon??"info",o=e.title??"",r=Array.isArray(e.text)?e.text.join("<br />"):e.text),new Promise(i=>{ft.fire({allowEscapeKey:!1,allowOutsideClick:!1,icon:n,title:o,html:`<div style="max-height: 50vh; overflow: auto">${Ci.sanitize(r)}</div>`}).then(()=>i(!0))})}async AlertAsync(e){return this.CreateAlertAsync({text:e,icon:"info"})}async AlertErrorAsync(e){return this.CreateAlertAsync({text:e,icon:"error"})}async AlertSuccessAsync(e){return this.CreateAlertAsync({text:e,icon:"success"})}}const Mi=()=>new Ni,df=()=>new Ni;window.addEventListener("error",function(t){return Tr(t.error)||console.error(t.error),t.preventDefault(),!1}),window.addEventListener("unhandledrejection",function(t){return Tr(t.reason)||console.error("Unhandled Rejection",t.reason),t.preventDefault(),!1});const ff=t=>{t.config.errorHandler=(e,n,r)=>{Tr(e)||console.error("Vue Global Error Handler: ",{err:e,vm:n,info:r})}},Tr=t=>t instanceof Ir||t instanceof Bi?(Mi().AlertErrorAsync(t.errors),!0):!1;function mf(){return s.inject(ko)}const xn=()=>mf(),pf={class:"font-percentage"},Di="--font-size-increment",hf="tamanho-fonte",gf=st(s.defineComponent({__name:"FontSize",setup(t){const e=s.ref(!1),n=s.ref(0),r=()=>{n.value=Dn(),e.value=!0},o=()=>{e.value=!1},i=()=>document.documentElement,l=()=>parseInt(getComputedStyle(i()).getPropertyValue(Di)||"1"),a=y=>{y<.5||y>1.6||(i().style.setProperty(Di,y.toString()),p.value=y)},c=()=>{a(p.value+.1)},d=()=>{a(p.value-.1)},f=()=>{a(1)},p=s.ref(1);return s.onBeforeMount(()=>{localStorage.removeItem(hf)}),s.onMounted(()=>{p.value=l()}),(y,k)=>(s.openBlock(),s.createElementBlock(s.Fragment,null,[s.createVNode(Be,{button:!0,size:"sm",icon:"text_increase",tooltip:"Tamanho da fonte",onClick:r}),e.value?(s.openBlock(),s.createElementBlock(s.Fragment,{key:0},[s.createElementVNode("div",{class:s.normalizeClass(["border","fadein","font-size-wrapper"]),style:s.normalizeStyle({zIndex:n.value+1})},[s.createElementVNode("div",{class:"icon",onClick:d}),s.createElementVNode("span",pf,s.toDisplayString(p.value.toLocaleString("pt-br",{style:"percent",maximumFractionDigits:0})),1),s.createElementVNode("div",{class:"icon add",onClick:c}),s.createElementVNode("span",{class:"redefinir",onClick:f}," Redefinir ")],4),s.createElementVNode("div",{class:"font-size-mask",style:s.normalizeStyle({zIndex:n.value}),onClick:o},null,4)],64)):s.createCommentVNode("",!0)],64))}}),[["__scopeId","data-v-af78ca17"]]),yf=s.defineComponent({__name:"ScrollToTop",setup(t){const{scrollY:e}=xn(),n=s.computed(()=>e.value>screen.availHeight);function r(){document.documentElement.scrollTo(0,0)}return(o,i)=>(s.openBlock(),s.createElementBlock("button",{class:s.normalizeClass(["sf-scrollToTop",{"sf-scrollToTop-visible":n.value}]),onClick:r},null,2))}}),bf={class:"nav-menu-header"},vf={class:"nav-menu-inner-close"},wf={class:"main-content"},kf={class:"menu-button"},_f={class:"page-title"},Sf={class:"action"},Cf={id:"content"},Ef={key:0,id:"logging-out"},If={class:"info-fazenda"},Tf={class:"font-bold"},Af={class:"info-endereco text-muted"},Pf=st(s.defineComponent({__name:"Main",props:{auth:{}},setup(t){const e=t,{navMenuWidth:n,isMenuOpened:r,pageTitle:o,scrollY:i,ToggleMenu:l,isDarkMode:a,ToggleTheme:c,CloseMenu:d,LogoutAsync:f,Login:p,isLoggingOut:y,mainRef:k}=xn(),C=s.ref(null),A=()=>{if(!C.value||!r.value)return!1;C.value.offsetWidth!==n&&d()};return s.onMounted(()=>{ht.useRouter().afterEach(()=>{A()})}),(L,w)=>(s.openBlock(),s.createElementBlock(s.Fragment,null,[s.createElementVNode("main",{ref_key:"mainRef",ref:k,class:s.normalizeClass({disabled:s.unref(y),"nav-menu-visible":s.unref(r)})},[s.createElementVNode("aside",{id:"nav-menu",ref_key:"navMenuRef",ref:C,class:s.normalizeClass({"nav-menu-hidden":!s.unref(r)})},[s.createElementVNode("div",bf,[w[0]||(w[0]=s.createElementVNode("span",null,"Menu",-1)),s.createElementVNode("div",vf,[s.createVNode(Be,{button:!0,icon:"close",onClick:s.unref(l)},null,8,["onClick"])])]),s.renderSlot(L.$slots,"nav-menu",{},void 0,!0)],2),s.createElementVNode("div",wf,[s.createElementVNode("div",{id:"top-bar",class:s.normalizeClass({"shadow-bottom":s.unref(i)>72})},[s.createElementVNode("div",kf,[s.createVNode(Be,{button:!0,icon:s.unref(r)?"menu_open":"menu",tooltip:"Menu",onClick:s.unref(l)},null,8,["icon","onClick"])]),s.createElementVNode("div",_f,s.toDisplayString(s.unref(y)?"Saindo...":s.unref(o)),1),w[1]||(w[1]=s.createElementVNode("span",{class:"sep"},null,-1)),s.createElementVNode("div",Sf,[s.createVNode(Be,{button:!0,size:"sm",icon:s.unref(a)?"light_mode":"dark_mode",tooltip:s.unref(a)?"Modo claro":"Modo escuro",onClick:s.unref(c)},null,8,["icon","tooltip","onClick"]),s.createVNode(gf),e.auth?(s.openBlock(),s.createElementBlock(s.Fragment,{key:0},[e.auth.isAuthenticated?(s.openBlock(),s.createBlock(Be,{key:0,button:!0,size:"sm",icon:"logout",tooltip:"Sair",onClick:s.unref(f)},null,8,["onClick"])):(s.openBlock(),s.createBlock(Be,{key:1,button:!0,size:"sm",icon:"login",tooltip:"Entrar",onClick:s.unref(p)},null,8,["onClick"]))],64)):s.createCommentVNode("",!0)])],2),s.createElementVNode("div",Cf,[s.unref(y)?(s.openBlock(),s.createElementBlock("div",Ef,[s.createVNode(Br)])):s.renderSlot(L.$slots,"content",{key:1},void 0,!0)])]),s.createElementVNode("footer",null,[w[4]||(w[4]=s.createElementVNode("div",{class:"logo-fazenda"},null,-1)),s.createElementVNode("div",If,[s.createElementVNode("span",Tf,[s.renderSlot(L.$slots,"footer-nome-fazenda",{},()=>[w[2]||(w[2]=s.createTextVNode(" SECRETARIA MUNICIPAL DA FAZENDA "))],!0)]),s.createElementVNode("span",Af,[s.renderSlot(L.$slots,"footer-endereco-fazenda",{},()=>[w[3]||(w[3]=s.createTextVNode(" Rua Líbero Badaró, 190 - Centro - São Paulo - SP - CEP 01008-000 "))],!0)])])])],2),s.createVNode(yf)],64))}}),[["__scopeId","data-v-d98607df"]]),Lf=s.defineComponent({__name:"PageTitle",props:{title:{}},setup(t){const{pageTitle:e}=xn(),n=t;return s.watchEffect(()=>{document.title=n.title,e.value=n.title}),(r,o)=>null}}),Ri={surface:{0:"{surface.0.color}",50:"{surface.100.color}",100:"{surface.100.color}",200:"{surface.200.color}",300:"{surface.300.color}",400:"{surface.400.color}",500:"{surface.1000.color}",600:"{surface.600.color}",700:"{surface.700.color}",800:"{surface.800.color}",900:"{surface.900.color}",950:"{surface.1000.color}"},primary:{color:"{primary.color}",contrastColor:"{bg.color}",hoverColor:"{primary.hover.color}",activeColor:"{primary.color}"},highlight:{background:"{primary.color}",color:"{bg.color}"},formField:{background:"{surface.0.color}",disabledBackground:"{surface.0.color}",filledBackground:"{surface.100.color}",filledFocusBackground:"{surface.100.color}",borderColor:"{surface.1000.color}",hoverBorderColor:"{primary.color}",focusBorderColor:"{primary.color}",invalidBorderColor:"{error.color}",color:"{text.color}",disabledColor:"{disabled.color}",placeholderColor:"{muted.color}",floatLabelColor:"{secondary.color}",floatLabelFocusColor:"{secondary.color}",floatLabelInvalidColor:"{error.color}",iconColor:"{primary.color}"},text:{color:"{text.color}",hoverColor:"{primary.color}",mutedColor:"{muted.color}",hoverMutedColor:"{muted.color}"},mask:{background:"{maskbg.color}",color:"{surface.200.color}"},content:{background:"{bg.color}",color:"{text.color}",border:{color:"{surface.1000.color}",radius:"6px"},hover:{background:"{primary.hover.color}",color:"{primary.color}"}}},xf={semantic:{disabled:{opacity:"1"},transitionDuration:"0",primary:{50:"{primary.color}",100:"{primary.color}",200:"{primary.color}",300:"{primary.color}",400:"{primary.color}",500:"{primary.color}",600:"{primary.color}",700:"{primary.color}",800:"{primary.color}",900:"{primary.color}",950:"{primary.color}"},colorScheme:{light:{...Ri},dark:{...Ri}}},components:{blockui:{border:{radius:"0px"}},button:{padding:{x:"1rem",y:"0.5rem"},primary:{hover:{background:"{primary.color} !important",border:{color:"{primary.color} !important"}}},text:{secondary:{color:"{secondary.color} !important",hover:{background:"{surface.200.color} !important"}}},icon:{only:{width:"2rem"}}},checkbox:{background:"{surface.100.color} !important",border:{color:"{border.color} !important"},checked:{background:"{primary.color} !important",hover:{background:"{primary.color} !important"}},sm:{width:"1rem",height:"1rem"},lg:{width:"1.5rem",height:"1.5rem"}},datatable:{header:{border:{color:"{border.color} !important"},cell:{border:{color:"{border.color} !important"},hover:{background:"{primary.hover.color} !important",color:"{primary.color} !important"}}},body:{cell:{border:{color:"{border.color} !important"}}},row:{striped:{background:"{surface.100.color} !important"}},footer:{border:{color:"transparent !important"}}},datepicker:{today:{background:"{primary.hover.color} !important",color:"{primary.color} !important"}},dialog:{background:"{bg.color} !important",color:"{text.color} !important",border:{color:"{surface.0.color} !important",radius:"{border.radius} !important"},title:{font:{size:"{font.size} !important",weight:"700 !important"}},header:{padding:"0.75rem 0.75rem 0 1rem !important",gap:"{inline.spacing} !important"},content:{padding:"{content.spacing} !important"},footer:{padding:"0.75rem 0.75rem 0 1rem !important",gap:"{inline.spacing} !important"}},inputtext:{background:"{bg.color}",color:"{text.color}",border:{color:"{border.color}"},hover:{border:{color:"{primary.color}"}},placeholder:{color:"{muted.color}"}},inputmask:{background:"{bg.color}",color:"{text.color}",border:{color:"{border.color}"},hover:{border:{color:"{primary.color}"}},placeholder:{color:"{muted.color}"}},select:{background:"{bg.color}",color:"{primary.color}",option:{focus:{background:"{primary.hover.color}",color:"{primary.color}"},selected:{focus:{background:"{primary.color}",color:"{bg.color}"}}},overlay:{background:"{bg.color}",border:{color:"{border.color}"}},dropdown:{color:"{primary.color}"},hover:{border:{color:"{primary.color}"}},placeholder:{color:"{disabled.color}"},disabled:{color:"{disabled.color}"}},skeleton:{background:"{surface.700.color} !important",animation:{background:"{surface.100.color} !important"}}}};class an{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 an.Mask(e.padStart(11,"0"),"###.###.###-##")}static MaskCnpj(e){return an.Mask(e.padStart(14,"0"),"##.###.###/####-##")}static MaskCcm(e){return an.Mask(e.padStart(8,"0"),"#.###.###-#")}static async DelayAsync(e){return new Promise(n=>setTimeout(n,e))}}const Of=t=>{const e=new Set;function n(r){const{name:o,children:i}=r;if(o){if(e.has(o))throw new Error(["Erro na validação das rotas!",`Nome de rota duplicado: ${o}`].join(`
|
|
411
|
-
`));e.add(o)}if(i&&Array.isArray(i))for(const l of i)n(l)}for(const r of t)n(r)};function
|
|
410
|
+
For more information see: https://www.keycloak.org/docs/latest/securing_apps/#_modern_browsers`),i.enable=!1,e.silentCheckSsoFallback&&(e.silentCheckSsoRedirectUri=!1)),document.body.removeChild(h),window.removeEventListener("message",v),u.setSuccess()))};window.addEventListener("message",v,!1)}else u.setSuccess();return D(u.promise,e.messageReceiveTimeout,"Timeout when waiting for 3rd party check iframe message.")}function Xe(u){if(!u||u=="default")return{login:function(_){return window.location.assign(e.createLoginUrl(_)),Y().promise},logout:async function(_){if(((_==null?void 0:_.logoutMethod)??e.logoutMethod)==="GET"){window.location.replace(e.createLogoutUrl(_));return}const O=e.createLogoutUrl(_),x=await fetch(O,{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(_,!1)})});if(x.redirected){window.location.href=x.url;return}if(x.ok){window.location.reload();return}throw new Error("Logout failed, request returned an error code.")},register:function(_){return window.location.assign(e.createRegisterUrl(_)),Y().promise},accountManagement:function(){var _=e.createAccountUrl();if(typeof _<"u")window.location.href=_;else throw"Not supported by the OIDC server";return Y().promise},redirectUri:function(_,E){return _&&_.redirectUri?_.redirectUri:e.redirectUri?e.redirectUri:location.href}};if(u=="cordova"){i.enable=!1;var h=function(_,E,O){return window.cordova&&window.cordova.InAppBrowser?window.cordova.InAppBrowser.open(_,E,O):window.open(_,E,O)},v=function(_){return _&&_.cordovaOptions?Object.keys(_.cordovaOptions).reduce(function(E,O){return E[O]=_.cordovaOptions[O],E},{}):{}},T=function(_){return Object.keys(_).reduce(function(E,O){return E.push(O+"="+_[O]),E},[]).join(",")},b=function(_){var E=v(_);return E.location="no",_&&_.prompt=="none"&&(E.hidden="yes"),T(E)},P=function(){return e.redirectUri||"http://localhost"};return{login:function(_){var E=Y(),O=b(_),x=e.createLoginUrl(_),R=h(x,"_blank",O),F=!1,_e=!1,fe=function(){_e=!0,R.close()};return R.addEventListener("loadstart",function(me){if(me.url.indexOf(P())==0){var Ze=te(me.url);S(Ze,E),fe(),F=!0}}),R.addEventListener("loaderror",function(me){if(!F)if(me.url.indexOf(P())==0){var Ze=te(me.url);S(Ze,E),fe(),F=!0}else E.setError(),fe()}),R.addEventListener("exit",function(me){_e||E.setError({reason:"closed_by_user"})}),E.promise},logout:function(_){var E=Y(),O=e.createLogoutUrl(_),x=h(O,"_blank","location=no,hidden=yes,clearcache=yes"),R;return x.addEventListener("loadstart",function(F){F.url.indexOf(P())==0&&x.close()}),x.addEventListener("loaderror",function(F){F.url.indexOf(P())==0||(R=!0),x.close()}),x.addEventListener("exit",function(F){R?E.setError():(e.clearToken(),E.setSuccess())}),E.promise},register:function(_){var E=Y(),O=e.createRegisterUrl(),x=b(_),R=h(O,"_blank",x);return R.addEventListener("loadstart",function(F){if(F.url.indexOf(P())==0){R.close();var _e=te(F.url);S(_e,E)}}),E.promise},accountManagement:function(){var _=e.createAccountUrl();if(typeof _<"u"){var E=h(_,"_blank","location=no");E.addEventListener("loadstart",function(O){O.url.indexOf(P())==0&&E.close()})}else throw"Not supported by the OIDC server"},redirectUri:function(_){return P()}}}if(u=="cordova-native")return i.enable=!1,{login:function(_){var E=Y(),O=e.createLoginUrl(_);return universalLinks.subscribe("keycloak",function(x){universalLinks.unsubscribe("keycloak"),window.cordova.plugins.browsertab.close();var R=te(x.url);S(R,E)}),window.cordova.plugins.browsertab.openUrl(O),E.promise},logout:function(_){var E=Y(),O=e.createLogoutUrl(_);return universalLinks.subscribe("keycloak",function(x){universalLinks.unsubscribe("keycloak"),window.cordova.plugins.browsertab.close(),e.clearToken(),E.setSuccess()}),window.cordova.plugins.browsertab.openUrl(O),E.promise},register:function(_){var E=Y(),O=e.createRegisterUrl(_);return universalLinks.subscribe("keycloak",function(x){universalLinks.unsubscribe("keycloak"),window.cordova.plugins.browsertab.close();var R=te(x.url);S(R,E)}),window.cordova.plugins.browsertab.openUrl(O),E.promise},accountManagement:function(){var _=e.createAccountUrl();if(typeof _<"u")window.cordova.plugins.browsertab.openUrl(_);else throw"Not supported by the OIDC server"},redirectUri:function(_){return _&&_.redirectUri?_.redirectUri:e.redirectUri?e.redirectUri:"http://localhost"}};throw"invalid adapter type: "+u}var Fe=function(){if(!(this instanceof Fe))return new Fe;localStorage.setItem("kc-test","test"),localStorage.removeItem("kc-test");var u=this;function h(){for(var v=new Date().getTime(),T=0;T<localStorage.length;T++){var b=localStorage.key(T);if(b&&b.indexOf("kc-callback-")==0){var P=localStorage.getItem(b);if(P)try{var _=JSON.parse(P).expires;(!_||_<v)&&localStorage.removeItem(b)}catch{localStorage.removeItem(b)}}}}u.get=function(v){if(v){var T="kc-callback-"+v,b=localStorage.getItem(T);return b&&(localStorage.removeItem(T),b=JSON.parse(b)),h(),b}},u.add=function(v){h();var T="kc-callback-"+v.state;v.expires=new Date().getTime()+60*60*1e3,localStorage.setItem(T,JSON.stringify(v))}},ze=function(){if(!(this instanceof ze))return new ze;var u=this;u.get=function(b){if(b){var P=v("kc-callback-"+b);if(T("kc-callback-"+b,"",h(-100)),P)return JSON.parse(P)}},u.add=function(b){T("kc-callback-"+b.state,JSON.stringify(b),h(60))},u.removeItem=function(b){T(b,"",h(-100))};var h=function(b){var P=new Date;return P.setTime(P.getTime()+b*60*1e3),P},v=function(b){for(var P=b+"=",_=document.cookie.split(";"),E=0;E<_.length;E++){for(var O=_[E];O.charAt(0)==" ";)O=O.substring(1);if(O.indexOf(P)==0)return O.substring(P.length,O.length)}return""},T=function(b,P,_){var E=b+"="+P+"; expires="+_.toUTCString()+"; ";document.cookie=E}};function pt(){try{return new Fe}catch{}return new ze}function $e(u){return function(){e.enableLogging&&u.apply(console,Array.prototype.slice.call(arguments))}}}function qd(t){const e=String.fromCodePoint(...t);return btoa(e)}class Yd{constructor(e){Pe(this,"oidc");Pe(this,"isAuthenticated",!1);Pe(this,"authenticatedWith",null);this.oidc=new Li(e)}async InitAsync(e={}){return await this.oidc.init(e).then(async n=>(this.isAuthenticated=n,this.authenticatedWith=this.AuthenticatedWith(),n)).catch(n=>(console.info("Ocorreu um erro na inicialização. Verifique o console para mais detalhes."),console.error(n),!1))}LoginGovBr(){this.oidc.login({idpHint:"GOV.BR"})}LoginSenhaweb(){var n;const e=(n=this.oidc.authServerUrl)!=null&&n.startsWith("https://keycloak.dev.apps.sf.prefeitura.sp.gov.br")?"senhawebdev":"senhaweb";this.oidc.login({idpHint:e})}AuthenticatedWith(){var n,r;const e=this.oidc.tokenParsed;return e?(n=e.identity_provider)!=null&&n.startsWith("GOV.BR")?"govbr":(r=e.identity_provider)!=null&&r.startsWith("senhaweb")?"senhaweb":"ad":null}}let xi;function Xd(t){xi=new Yd(t)}const Er=()=>xi;function Zd(t){return s.getCurrentScope()?(s.onScopeDispose(t),!0):!1}const Jd=typeof window<"u"&&typeof document<"u";typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;function Qd(t){return s.getCurrentInstance()}function ef(t){return Array.isArray(t)?t:[t]}function tf(t,e=!0,n){Qd()?s.onMounted(t,n):e?t():s.nextTick(t)}const Oi=Jd?window:void 0;function St(t){var e;const n=s.toValue(t);return(e=n==null?void 0:n.$el)!=null?e:n}function nf(){const t=s.ref(!1),e=s.getCurrentInstance();return e&&s.onMounted(()=>{t.value=!0},e),t}function rf(t){const e=nf();return s.computed(()=>(e.value,!!t()))}function of(t,e,n={}){const{window:r=Oi,...o}=n;let i;const l=rf(()=>r&&"ResizeObserver"in r),a=()=>{i&&(i.disconnect(),i=void 0)},c=s.computed(()=>{const p=s.toValue(t);return Array.isArray(p)?p.map(y=>St(y)):[St(p)]}),d=s.watch(c,p=>{if(a(),l.value&&r){i=new ResizeObserver(e);for(const y of p)y&&i.observe(y,o)}},{immediate:!0,flush:"post"}),f=()=>{a(),d()};return Zd(f),{isSupported:l,stop:f}}function sf(t,e={width:0,height:0},n={}){const{window:r=Oi,box:o="content-box"}=n,i=s.computed(()=>{var p,y;return(y=(p=St(t))==null?void 0:p.namespaceURI)==null?void 0:y.includes("svg")}),l=s.ref(e.width),a=s.ref(e.height),{stop:c}=of(t,([p])=>{const y=o==="border-box"?p.borderBoxSize:o==="content-box"?p.contentBoxSize:p.devicePixelContentBoxSize;if(r&&i.value){const k=St(t);if(k){const C=k.getBoundingClientRect();l.value=C.width,a.value=C.height}}else if(y){const k=ef(y);l.value=k.reduce((C,{inlineSize:A})=>C+A,0),a.value=k.reduce((C,{blockSize:A})=>C+A,0)}else l.value=p.contentRect.width,a.value=p.contentRect.height},n);tf(()=>{const p=St(t);p&&(l.value="offsetWidth"in p?p.offsetWidth:e.width,a.value="offsetHeight"in p?p.offsetHeight:e.height)});const d=s.watch(()=>St(t),p=>{l.value=p?e.width:0,a.value=p?e.height:0});function f(){c(),d()}return{width:l,height:a,stop:f}}var af=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function lf(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var $i={exports:{}};(function(t){(function(e,n){t.exports?t.exports=n():e.log=n()})(af,function(){var e=function(){},n="undefined",r=typeof window!==n&&typeof window.navigator!==n&&/Trident\/|MSIE /.test(window.navigator.userAgent),o=["trace","debug","info","warn","error"],i={},l=null;function a(A,L){var w=A[L];if(typeof w.bind=="function")return w.bind(A);try{return Function.prototype.bind.call(w,A)}catch{return function(){return Function.prototype.apply.apply(w,[A,arguments])}}}function c(){console.log&&(console.log.apply?console.log.apply(console,arguments):Function.prototype.apply.apply(console.log,[console,arguments])),console.trace&&console.trace()}function d(A){return A==="debug"&&(A="log"),typeof console===n?!1:A==="trace"&&r?c:console[A]!==void 0?a(console,A):console.log!==void 0?a(console,"log"):e}function f(){for(var A=this.getLevel(),L=0;L<o.length;L++){var w=o[L];this[w]=L<A?e:this.methodFactory(w,A,this.name)}if(this.log=this.debug,typeof console===n&&A<this.levels.SILENT)return"No console available for logging"}function p(A){return function(){typeof console!==n&&(f.call(this),this[A].apply(this,arguments))}}function y(A,L,w){return d(A)||p.apply(this,arguments)}function k(A,L){var w=this,S,N,U,G="loglevel";typeof A=="string"?G+=":"+A:typeof A=="symbol"&&(G=void 0);function ce(D){var X=(o[D]||"silent").toUpperCase();if(!(typeof window===n||!G)){try{window.localStorage[G]=X;return}catch{}try{window.document.cookie=encodeURIComponent(G)+"="+X+";"}catch{}}}function te(){var D;if(!(typeof window===n||!G)){try{D=window.localStorage[G]}catch{}if(typeof D===n)try{var X=window.document.cookie,ue=encodeURIComponent(G),de=X.indexOf(ue+"=");de!==-1&&(D=/^([^;]+)/.exec(X.slice(de+ue.length+1))[1])}catch{}return w.levels[D]===void 0&&(D=void 0),D}}function Ae(){if(!(typeof window===n||!G)){try{window.localStorage.removeItem(G)}catch{}try{window.document.cookie=encodeURIComponent(G)+"=; expires=Thu, 01 Jan 1970 00:00:00 UTC"}catch{}}}function ne(D){var X=D;if(typeof X=="string"&&w.levels[X.toUpperCase()]!==void 0&&(X=w.levels[X.toUpperCase()]),typeof X=="number"&&X>=0&&X<=w.levels.SILENT)return X;throw new TypeError("log.setLevel() called with invalid level: "+D)}w.name=A,w.levels={TRACE:0,DEBUG:1,INFO:2,WARN:3,ERROR:4,SILENT:5},w.methodFactory=L||y,w.getLevel=function(){return U??N??S},w.setLevel=function(D,X){return U=ne(D),X!==!1&&ce(U),f.call(w)},w.setDefaultLevel=function(D){N=ne(D),te()||w.setLevel(D,!1)},w.resetLevel=function(){U=null,Ae(),f.call(w)},w.enableAll=function(D){w.setLevel(w.levels.TRACE,D)},w.disableAll=function(D){w.setLevel(w.levels.SILENT,D)},w.rebuild=function(){if(l!==w&&(S=ne(l.getLevel())),f.call(w),l===w)for(var D in i)i[D].rebuild()},S=ne(l?l.getLevel():"WARN");var Y=te();Y!=null&&(U=ne(Y)),f.call(w)}l=new k,l.getLogger=function(L){if(typeof L!="symbol"&&typeof L!="string"||L==="")throw new TypeError("You must supply a name when creating a logger.");var w=i[L];return w||(w=i[L]=new k(L,l.methodFactory)),w};var C=typeof window!==n?window.log:void 0;return l.noConflict=function(){return typeof window!==n&&window.log===l&&(window.log=C),l},l.getLoggers=function(){return i},l.default=l,l})})($i);var cf=$i.exports;const Ln=lf(cf),uf={install(t,e){const n=e??{};Ln.setDefaultLevel(n.enableLogging?Ln.levels.DEBUG:Ln.levels.SILENT);const r=240;document.documentElement.style.setProperty("--nav-menu-width",`${r}px`);const o=s.ref(!0),i=s.ref(0),l=s.ref(!1),a=s.ref(!1),c=s.ref(""),d=s.ref(null),{width:f}=sf(d);t.provide(ko,{navMenuWidth:r,isMenuOpened:o,ToggleMenu:()=>{o.value=!o.value},OpenMenu:()=>{o.value=!0},CloseMenu:()=>{o.value=!1},scrollY:i,pageTitle:c,isDarkMode:l,ToggleTheme:()=>Ft.Toggle(),EnableDarkMode:()=>Ft.EnableDarkMode(),EnableLightMode:()=>Ft.EnableLightMode(),ClearStoredTheme:()=>Ft.ClearStoredTheme(),LogoutAsync:async()=>{const y=Ii(),{oidc:k}=Er();await y.ConfirmAsync("Deseja realmente sair da sua conta?")&&(a.value=!0,await new Promise(A=>setTimeout(A,1e3)),k.logout({redirectUri:window.location.origin}))},Login:()=>{const{oidc:y}=Er();y.login()},isLoggingOut:a,mainRef:d,mainWidth:f,isMainXs:s.computed(()=>f.value<=384),isMainSm:s.computed(()=>f.value>384),isMainMd:s.computed(()=>f.value>768),isMainLg:s.computed(()=>f.value>992),isMainXl:s.computed(()=>f.value>1280),isMain2Xl:s.computed(()=>f.value>1536),isMain3Xl:s.computed(()=>f.value>1920)}),new MutationObserver(()=>{l.value=document.documentElement.classList.contains("dark")}).observe(document.documentElement,{attributes:!0,attributeFilter:["class"]}),document.addEventListener("scroll",()=>{i.value=document.documentElement.scrollTop}),Ft.SetInitialTheme()}},df=Ln;class Ir extends Error{constructor(n=[]){const r=Array.isArray(n)?n:[n];super(r[0]);Pe(this,"errors",[]);this.errors=r}}class Bi{constructor(e=null){Pe(this,"errors",[]);Pe(this,"_value",null);Pe(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){if(Array.isArray(e)){e.forEach(n=>this.WithError(n));return}this.errors.push(e),this.isSuccessfulHttpStatusCode||(this._httpStatusCode=400)}get isSuccessfulHttpStatusCode(){return this._httpStatusCode>=200&&this._httpStatusCode<300}[Symbol.toPrimitive](e){if(e==="throw")throw new Ir(this.errors)}get firstError(){return this.hasSuccess?null:this.errors[0]}}class Ni{get IsVisible(){return ft.isVisible()}async CreateAlertAsync(e){let n="info",r,o;return typeof e=="string"||Array.isArray(e)?r=Array.isArray(e)?e.join("<br />"):e:(n=e.icon??"info",o=e.title??"",r=Array.isArray(e.text)?e.text.join("<br />"):e.text),new Promise(i=>{ft.fire({allowEscapeKey:!1,allowOutsideClick:!1,icon:n,title:o,html:`<div style="max-height: 50vh; overflow: auto">${Ci.sanitize(r)}</div>`}).then(()=>i(!0))})}async AlertAsync(e){return this.CreateAlertAsync({text:e,icon:"info"})}async AlertErrorAsync(e){return this.CreateAlertAsync({text:e,icon:"error"})}async AlertSuccessAsync(e){return this.CreateAlertAsync({text:e,icon:"success"})}}const Mi=()=>new Ni,ff=()=>new Ni;window.addEventListener("error",function(t){return Tr(t.error)||console.error(t.error),t.preventDefault(),!1}),window.addEventListener("unhandledrejection",function(t){return Tr(t.reason)||console.error("Unhandled Rejection",t.reason),t.preventDefault(),!1});const mf=t=>{t.config.errorHandler=(e,n,r)=>{Tr(e)||console.error("Vue Global Error Handler: ",{err:e,vm:n,info:r})}},Tr=t=>t instanceof Ir||t instanceof Bi?(Mi().AlertErrorAsync(t.errors),!0):!1;function pf(){return s.inject(ko)}const xn=()=>pf(),hf={class:"font-percentage"},Di="--font-size-increment",gf="tamanho-fonte",yf=et(s.defineComponent({__name:"FontSize",setup(t){const e=s.ref(!1),n=s.ref(0),r=()=>{n.value=Dn(),e.value=!0},o=()=>{e.value=!1},i=()=>document.documentElement,l=()=>parseInt(getComputedStyle(i()).getPropertyValue(Di)||"1"),a=y=>{y<.5||y>1.6||(i().style.setProperty(Di,y.toString()),p.value=y)},c=()=>{a(p.value+.1)},d=()=>{a(p.value-.1)},f=()=>{a(1)},p=s.ref(1);return s.onBeforeMount(()=>{localStorage.removeItem(gf)}),s.onMounted(()=>{p.value=l()}),(y,k)=>(s.openBlock(),s.createElementBlock(s.Fragment,null,[s.createVNode(Be,{button:!0,size:"sm",icon:"text_increase",tooltip:"Tamanho da fonte",onClick:r}),e.value?(s.openBlock(),s.createElementBlock(s.Fragment,{key:0},[s.createElementVNode("div",{class:s.normalizeClass(["border","fadein","font-size-wrapper"]),style:s.normalizeStyle({zIndex:n.value+1})},[s.createElementVNode("div",{class:"icon",onClick:d}),s.createElementVNode("span",hf,s.toDisplayString(p.value.toLocaleString("pt-br",{style:"percent",maximumFractionDigits:0})),1),s.createElementVNode("div",{class:"icon add",onClick:c}),s.createElementVNode("span",{class:"redefinir",onClick:f}," Redefinir ")],4),s.createElementVNode("div",{class:"font-size-mask",style:s.normalizeStyle({zIndex:n.value}),onClick:o},null,4)],64)):s.createCommentVNode("",!0)],64))}}),[["__scopeId","data-v-af78ca17"]]),bf=s.defineComponent({__name:"ScrollToTop",setup(t){const{scrollY:e}=xn(),n=s.computed(()=>e.value>800);function r(){document.documentElement.scrollTo(0,0)}return(o,i)=>(s.openBlock(),s.createElementBlock("button",{class:s.normalizeClass(["sf-scrollToTop",{"sf-scrollToTop-visible":n.value}]),onClick:r},null,2))}}),vf={class:"nav-menu-header"},wf={class:"nav-menu-inner-close"},kf={class:"main-content"},_f={class:"menu-button"},Sf={class:"page-title"},Cf={class:"action"},Ef={id:"content"},If={key:0,id:"logging-out"},Tf={class:"info-fazenda"},Af={class:"font-bold"},Pf={class:"info-endereco text-muted"},Lf=et(s.defineComponent({__name:"Main",props:{auth:{}},setup(t){const e=t,{navMenuWidth:n,isMenuOpened:r,pageTitle:o,scrollY:i,ToggleMenu:l,isDarkMode:a,ToggleTheme:c,CloseMenu:d,LogoutAsync:f,Login:p,isLoggingOut:y,mainRef:k}=xn(),C=s.ref(null),A=()=>{if(!C.value||!r.value)return!1;C.value.offsetWidth!==n&&d()};return s.onMounted(()=>{ht.useRouter().afterEach(()=>{A()})}),(L,w)=>(s.openBlock(),s.createElementBlock("main",{ref_key:"mainRef",ref:k,class:s.normalizeClass({disabled:s.unref(y),"nav-menu-visible":s.unref(r)})},[s.createElementVNode("aside",{id:"nav-menu",ref_key:"navMenuRef",ref:C,class:s.normalizeClass({"nav-menu-hidden":!s.unref(r)})},[s.createElementVNode("div",vf,[w[0]||(w[0]=s.createElementVNode("span",null,"Menu",-1)),s.createElementVNode("div",wf,[s.createVNode(Be,{button:!0,icon:"close",onClick:s.unref(l)},null,8,["onClick"])])]),s.renderSlot(L.$slots,"nav-menu",{},void 0,!0)],2),s.createElementVNode("div",kf,[s.createElementVNode("div",{id:"top-bar",class:s.normalizeClass({"shadow-bottom":s.unref(i)>72})},[s.createElementVNode("div",_f,[s.createVNode(Be,{button:!0,icon:s.unref(r)?"menu_open":"menu",tooltip:"Menu",onClick:s.unref(l)},null,8,["icon","onClick"])]),s.createElementVNode("div",Sf,s.toDisplayString(s.unref(y)?"Saindo...":s.unref(o)),1),w[1]||(w[1]=s.createElementVNode("span",{class:"sep"},null,-1)),s.createElementVNode("div",Cf,[s.createVNode(Be,{button:!0,size:"sm",icon:s.unref(a)?"light_mode":"dark_mode",tooltip:s.unref(a)?"Modo claro":"Modo escuro",onClick:s.unref(c)},null,8,["icon","tooltip","onClick"]),s.createVNode(yf),e.auth?(s.openBlock(),s.createElementBlock(s.Fragment,{key:0},[e.auth.isAuthenticated?(s.openBlock(),s.createBlock(Be,{key:0,button:!0,size:"sm",icon:"logout",tooltip:"Sair",onClick:s.unref(f)},null,8,["onClick"])):(s.openBlock(),s.createBlock(Be,{key:1,button:!0,size:"sm",icon:"login",tooltip:"Entrar",onClick:s.unref(p)},null,8,["onClick"]))],64)):s.createCommentVNode("",!0)])],2),s.createElementVNode("div",Ef,[s.unref(y)?(s.openBlock(),s.createElementBlock("div",If,[s.createVNode(Br)])):s.renderSlot(L.$slots,"content",{key:1},void 0,!0)])]),s.createElementVNode("footer",null,[w[4]||(w[4]=s.createElementVNode("div",{class:"logo-fazenda"},null,-1)),s.createElementVNode("div",Tf,[s.createElementVNode("span",Af,[s.renderSlot(L.$slots,"footer-nome-fazenda",{},()=>[w[2]||(w[2]=s.createTextVNode(" SECRETARIA MUNICIPAL DA FAZENDA "))],!0)]),s.createElementVNode("span",Pf,[s.renderSlot(L.$slots,"footer-endereco-fazenda",{},()=>[w[3]||(w[3]=s.createTextVNode(" Rua Líbero Badaró, 190 - Centro - São Paulo - SP - CEP 01008-000 "))],!0)])])]),s.createVNode(bf)],2))}}),[["__scopeId","data-v-c6f926b4"]]),xf=s.defineComponent({__name:"PageTitle",props:{title:{}},setup(t){const{pageTitle:e}=xn(),n=t;return s.watchEffect(()=>{document.title=n.title,e.value=n.title}),(r,o)=>null}}),Ri={surface:{0:"{surface.0.color}",50:"{surface.100.color}",100:"{surface.100.color}",200:"{surface.200.color}",300:"{surface.300.color}",400:"{surface.400.color}",500:"{surface.1000.color}",600:"{surface.600.color}",700:"{surface.700.color}",800:"{surface.800.color}",900:"{surface.900.color}",950:"{surface.1000.color}"},primary:{color:"{primary.color}",contrastColor:"{bg.color}",hoverColor:"{primary.hover.color}",activeColor:"{primary.color}"},highlight:{background:"{primary.color}",color:"{bg.color}"},formField:{background:"{surface.0.color}",disabledBackground:"{surface.0.color}",filledBackground:"{surface.100.color}",filledFocusBackground:"{surface.100.color}",borderColor:"{surface.1000.color}",hoverBorderColor:"{primary.color}",focusBorderColor:"{primary.color}",invalidBorderColor:"{error.color}",color:"{text.color}",disabledColor:"{disabled.color}",placeholderColor:"{muted.color}",floatLabelColor:"{secondary.color}",floatLabelFocusColor:"{secondary.color}",floatLabelInvalidColor:"{error.color}",iconColor:"{primary.color}"},text:{color:"{text.color}",hoverColor:"{primary.color}",mutedColor:"{muted.color}",hoverMutedColor:"{muted.color}"},mask:{background:"{maskbg.color}",color:"{surface.200.color}"},content:{background:"{bg.color}",color:"{text.color}",border:{color:"{surface.1000.color}",radius:"6px"},hover:{background:"{primary.hover.color}",color:"{primary.color}"}}},Of={semantic:{disabled:{opacity:"1"},transitionDuration:"0",primary:{50:"{primary.color}",100:"{primary.color}",200:"{primary.color}",300:"{primary.color}",400:"{primary.color}",500:"{primary.color}",600:"{primary.color}",700:"{primary.color}",800:"{primary.color}",900:"{primary.color}",950:"{primary.color}"},colorScheme:{light:{...Ri},dark:{...Ri}}},components:{blockui:{border:{radius:"0px"}},button:{padding:{x:"1rem",y:"0.5rem"},primary:{hover:{background:"{primary.color} !important",border:{color:"{primary.color} !important"}}},text:{secondary:{color:"{secondary.color} !important",hover:{background:"{surface.200.color} !important"}}},icon:{only:{width:"2rem"}}},checkbox:{background:"{surface.100.color} !important",border:{color:"{border.color} !important"},checked:{background:"{primary.color} !important",hover:{background:"{primary.color} !important"}},sm:{width:"1rem",height:"1rem"},lg:{width:"1.5rem",height:"1.5rem"}},datatable:{header:{border:{color:"{border.color} !important"},cell:{border:{color:"{border.color} !important"},hover:{background:"{primary.hover.color} !important",color:"{primary.color} !important"}}},body:{cell:{border:{color:"{border.color} !important"}}},row:{striped:{background:"{surface.100.color} !important"}},footer:{border:{color:"transparent !important"}}},datepicker:{today:{background:"{primary.hover.color} !important",color:"{primary.color} !important"}},dialog:{background:"{bg.color} !important",color:"{text.color} !important",border:{color:"{surface.0.color} !important",radius:"{border.radius} !important"},title:{font:{size:"{font.size} !important",weight:"700 !important"}},header:{padding:"0.75rem 0.75rem 0 1rem !important",gap:"{inline.spacing} !important"},content:{padding:"{content.spacing} !important"},footer:{padding:"0.75rem 0.75rem 0 1rem !important",gap:"{inline.spacing} !important"}},inputtext:{background:"{bg.color}",color:"{text.color}",border:{color:"{border.color}"},hover:{border:{color:"{primary.color}"}},placeholder:{color:"{muted.color}"}},inputmask:{background:"{bg.color}",color:"{text.color}",border:{color:"{border.color}"},hover:{border:{color:"{primary.color}"}},placeholder:{color:"{muted.color}"}},select:{background:"{bg.color}",color:"{primary.color}",option:{focus:{background:"{primary.hover.color}",color:"{primary.color}"},selected:{focus:{background:"{primary.color}",color:"{bg.color}"}}},overlay:{background:"{bg.color}",border:{color:"{border.color}"}},dropdown:{color:"{primary.color}"},hover:{border:{color:"{primary.color}"}},placeholder:{color:"{disabled.color}"},disabled:{color:"{disabled.color}"}},skeleton:{background:"{surface.700.color} !important",animation:{background:"{surface.100.color} !important"}}}};class an{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 an.Mask(e.padStart(11,"0"),"###.###.###-##")}static MaskCnpj(e){return an.Mask(e.padStart(14,"0"),"##.###.###/####-##")}static MaskCcm(e){return an.Mask(e.padStart(8,"0"),"#.###.###-#")}static async DelayAsync(e){return new Promise(n=>setTimeout(n,e))}}const $f=t=>{const e=new Set;function n(r){const{name:o,children:i}=r;if(o){if(e.has(o))throw new Error(["Erro na validação das rotas!",`Nome de rota duplicado: ${o}`].join(`
|
|
411
|
+
`));e.add(o)}if(i&&Array.isArray(i))for(const l of i)n(l)}for(const r of t)n(r)};function Bf(){document.documentElement.classList.add("app-mounted")}M.AppError=Ir,M.AppResult=Bi,M.ConfigAuth=Xd,M.EnsureUniqueRouteNames=$f,M.RemovePreloader=Bf,M.SfButton=gs,M.SfContent=Sl,M.SfDrawer=Nr,M.SfHelpButton=kl,M.SfIcon=Be,M.SfLoadingCircle=_l,M.SfMain=Lf,M.SfMessage=ws,M.SfNavMenu=wl,M.SfPageTitle=xf,M.SfTabNavigation=ps,M.SfTooltip=$r,M.UseAlert=Mi,M.UseAlertService=ff,M.UseAppInject=xn,M.UseAuth=Er,M.UseConfirm=Ii,M.UseConfirmService=$d,M.Utilities=an,M._logger=df,M.configSF=uf,M.globalErrorHandler=mf,M.themePreset=Of,Object.defineProperty(M,Symbol.toStringTag,{value:"Module"})});
|
|
412
412
|
//# sourceMappingURL=sf.prefeiturasp.vuecomponents.umd.cjs.map
|